Frequency Distribution FormsVariables can be observed and studied much more easily when we arrange values in an ordered column and place, next to each value, the number of times it appears repeated.Simple FrequencyWe call frequency the number of repetitions of a given value of the studied variable. Frequency distribution is the analysis of all these frequencies and how they are distributed.As an example, let’s analyze a frequency distribution table of the heights of students in a given class:Height (cm)Frequency1511152015321541155415631571158215901605161416231632164316511661Frequency by ClassBut this process is still inconvenient, since it takes up a lot of space, even when the number of values of the variable (n) is reasonably large. When possible, the most acceptable solution, due to the very nature of the continuous variable, is to group the values into several intervals. For example:Height (cm)Frequency150 - 1558155 - 16011160 - 16513165 - 1701The intervals created are called classes. In the table above, on the right, we can see the frequency of each class.> Frequency classes, or simply classes, are intervals of variation of the variable.Frequency NomenclatureExtremes> We also call the extremes of each class class limitsIn this case there is the lower and upper limit of each class. In the previous examples, the lower limits would be: 150, 155, 160, 165; and the upper limits: 155, 160, 165, 170.Amplitude> Amplitude of a class interval, or simply amplitude, is the measure of the interval that defines the class.It is obtained by the difference between the upper and lower limits. In the previous examples, there are the following amplitudes for each class in order: 5.\[ \text{amplitude: } 155 - 150 = 160 - 155 = 165 - 160 = 170 - 165 = 5 \]Total amplitude of the distribution> Total amplitude of the distribution is the difference between the upper limit of the last class and the lower limit of the first class. Or also the difference between the smallest value and the largest.In the example, the total amplitude would be 20, because the lower limit of the first class is 150 and the upper limit of the last class is 170.Number of classesThe first concern we have in a frequency distribution is determining the number of classes.Normally, Sturges' rule is used, which gives us the number of classes from the following function:\[ \text{number of classes = } 1 + 3.3 * log(n) \]The amplitude of each class is given by dividing the total amplitude by the number of classes:\[ \text{amplitude of each class = } \frac{\text{total amplitude}}{\text{number of classes}} \]Types of FrequencySimple or absolute frequency> Simple or absolute frequency are the values that actually represent the number of data in each classExample:Height (cm)Simple frequency150 - 1558155 - 16011160 - 16513165 - 1701Relative frequency> Relative frequency are the values of the ratios between the simple frequencies and the total frequencyExample with total 33:Height (cm)Relative frequency150 - 1558/33155 - 16011/33160 - 16513/33165 - 1701/33Cumulative frequency> Cumulative frequency is the total of the frequencies of all values lower than the upper limit of the interval of a given class.Height (cm)Cumulative frequency150 - 1558155 - 16019160 - 16532165 - 17033Relative cumulative frequency> Relative cumulative frequency is the cumulative frequency of the classes divided by the total of the distribution.Example with total 33:Height (cm)Relative cumulative frequency151 - 1558/33156 - 16019/33161 - 16532/33166 - 17033/33Graphical RepresentationIn addition to the bar graph or histogram to graphically represent a frequency distribution, we can use the following possibilities.Frequency PolygonFor a graphical representation of the frequency distribution, the frequency polygon is used.> The frequency polygon is a line graph, with the frequencies marked on perpendiculars to the horizontal axis, raised by the midpoints of the class intervals.Example:Cumulative Frequency Polygon> The cumulative frequency polygon is drawn by marking the cumulative frequencies on perpendiculars to the horizontal axis, raised at the points corresponding to the upper limits of the class intervals.Example:The Shapes of Frequency CurvesBell-shaped Curves> They are characterized by having a maximum value in the central region. They are the most commonly found in nature. Examples: heights, student grades, daily growth of stock prices, etc...They can be symmetric:And they can be asymmetric:The asymmetric ones can be skewed to the right or left, or respectively positive or negative asymmetrical.J-shaped Curves> These are related to extremely asymmetric distributions. Normally found in exponential functions. Examples: population growth, value of a fund, product prices over time.U-shaped Curves> These are related to distributions that present maximum ordinates at both extremes. They can be found in very specific situations: temperature throughout the year, mortality rate by age.Transformations in the frequency tableSmoothed curve: when the sample curve does not come out as we expectedIf you plot a histogram of the heights of 100 people, it may have irregular peaks and valleys. Making the smoothed curve (or smoothed) after collecting the frequencies of a sample is a common technique in statistics and data analysis, especially when working with histograms or empirical distributions. This smoothing is done for several important reasons:Reduction of Noise and Random FluctuationsBetter Visualization of the Real DistributionFacilitate Comparisons and InterpretationsEstimate Probabilities in a Continuous WayThe most common smoothing techniques are: Kernel Density Estimation (KDE), Moving Averages or Splines (Non-Parametric Regression). Let’s understand here the simplest method for making the smoothed curve. The simple moving average (SMA) of order n n is calculated as:\[ SMA_t = \frac{x_t + x_{t-1} + x_{t-2} + \dots + x_{t-n+1}}{n} \]Where:- \( x_t \) = value at time \( t \)- \( n \) = number of periods consideredSuppose we collected the following daily frequencies of accesses to a website during 10 days:Day (\( t \))Accesses (\( x_t \))11202150313041705160614071908180917010200We apply the formula for the days starting from the 3rd:- Day 3:\[ SMA_3 = \frac{130 + 150 + 120}{3} = \frac{400}{3} \approx 133.3 \]- Day 4:\[ SMA_4 = \frac{170 + 130 + 150}{3} = \frac{450}{3} = 150 \]- Day 5:\[ SMA_5 = \frac{160 + 170 + 130}{3} = \frac{460}{3} \approx 153.3 \]... and so on until Day 10.Day (\( t \))Accesses (\( x_t \))SMA(3) (Smoothed Curve)1120-2150-3130133.34170150.05160153.36140156.77190163.38180170.09170180.010200183.3See the final result: the smoothed curve does not have the sudden "jumps" of the initial sample distribution, smoothing its curve.Smoothed curve vs real sample curveOther transformationsIn addition to the smoothed curve (smoothing), there are several mathematical transformations applied to data to improve their distribution, linearity, or interpretation. Below is a summary of the main ones:TransformationFormulaWhen to UseApplication ExampleLogarithmic\( \log(x) \) or \( \ln(x) \)Data with positive skewness (long right tail).Income, city size, stock prices.Square Root\( \sqrt{x} \)Count data (Poisson) or moderate skewness.Number of clicks, accidents per day.Inverse\( \frac{1}{x} \)Inverse relationships (e.g., time vs. speed).Time between events, failure rates.Box-Cox\( \frac{x^\lambda - 1}{\lambda} \)Normalization of non-linear data (adjusts \( \lambda \) automatically).Data with non-constant variance.Standardization (Z-score)\( \frac{x - \mu}{\sigma} \)When a comparable scale is needed (mean=0, sd=1).Machine Learning, algorithms sensitive to scale.Min-Max Normalization\( \frac{x - \min(X)}{\max(X) - \min(X)} \)Data in fixed intervals (e.g., [0, 1]).Neural networks, images (pixels).Exercises1) The grades obtained by 50 students in a class were: 1 2 3 4 5 6 6 7 7 8 2 3 3 4 5 6 6 7 8 8 2 3 4 4 5 6 6 7 8 9 2 3 4 5 5 6 6 7 8 9 2 3 4 5 5 6 7 7 8 9 It was decided to divide the frequencies into 5 classes (0-2, 2-4, 4-6, 6-8 and 8-10). Answer:a) Complete the frequency distribution of the classes.b) What is the sample range?c) What is the distribution range?d) What is the number of classes in the distribution?e) What is the upper limit of the fourth class?f) What is the upper limit of the second-order class?g) What is the range of the second class interval?2) Given the grades of 50 students: 84 68 33 52 47 73 68 61 73 77 74 71 81 91 65 55 57 35 85 88 59 80 41 50 53 65 76 85 73 60 67 41 78 56 94 35 45 55 64 74 65 94 66 48 39 69 89 98 42 54 Obtain the frequency distribution, using 30 as the lower limit of the first class and 10 as the class interval.3) The results of rolling a die 50 times were as follows: 1 1 1 1 1 1 1 2 2 1 2 2 2 2 2 2 3 3 3 3 4 4 4 4 4 4 4 4 4 4 5 5 5 3 3 3 5 5 5 5 5 5 6 6 6 6 6 6 6 6 Form a frequency distribution without class intervals.4) Given the frequency distribution: xFrequency 1 Frequency 232245551296106782831Determine:a) The sum of the frequenciesb) The relative frequenciesc) The cumulative frequenciesd) The cumulative relative frequencies5) Construct the smoothed curve for the frequency distribution: iclassesFrequency14 - 8228 - 125312 - 169416 - 206520 - 242624 - 2816) State the type of curve corresponding to each distribution below: a) Number of women aged 15 to 30, in a given population, married, classified according to the number of times they have married;b) Grades of students in the final year of high school, in a given population;c) Mortality rate due to accidents, by age group;d) Parking time of motor vehicles in a congested area;e) Number of qualified men, by age group, who are unemployed.7) The numbers below show the liquidity ratios obtained from the balance sheet analysis of 50 industries: 3,9 7,4 10,0 11,8 2,3 4,5 10,5 8,4 15,6 7,6 18,8 2,9 2,3 0,4 5,0 9,0 5,5 9,2 12,4 8,7 4,5 4,4 10,6 5,6 8,5 2,4 17,8 11,6 0,8 4,4 7,1 3,2 2,7 16,2 2,7 9,5 13,1 3,8 6,3 7,9 4,8 5,3 12,9 6,9 6,3 7,5 2,6 3,3 4,6 16,0 a) Using these data, form a distribution with class intervals of 3, such that the lower limits are multiples of 3;b) Construct the corresponding histogram.8) A level of cloudiness, recorded in tenths, occurs according to the distribution below: CloudinessFrequency0 - 0.53200.5 - 1.51251.5 - 2.5752.5 - 3.5653.5 - 4.5454.5 - 5.5455.5 - 6.5556.5 - 7.5657.5 - 8.5908.5 - 9.51459.5 - 10676Construct the corresponding histogram.9) Considering the distribution below: ClassesFrequency1 - 272 - 333 - 4104 - 5115 - 6126 - 7377 - 8358 - 9459 - 103910 - 113011 - 1225Construct the corresponding histogram.10) The table below presents a frequency distribution of the areas of 400 lots: Areas (m²)Number of lots300 - 40014400 - 50046500 - 60058600 - 70076700 - 80068800 - 90062900 - 1000481000 - 1100221100 - 12006With reference to this table, determine:a) the total range;b) the upper limit of the fifth class;c) the lower limit of the eighth class;d) the midpoint of the seventh class;e) the width of the interval of the second class;f) frequency of the fourth class;g) relative frequency of the sixth class;h) cumulative frequency of the fifth class;i) the number of lots whose area does not reach 700 m²;j) The number of lots whose area reaches and exceeds 800 m²;l) The percentage of lots whose area is greater than or equal to 900 m²;m) The percentage of lots whose area is at least 500 m², but less than 1000 m²;Answer Key
— Comments 0
, Reactions 1
Be the first to comment