Lesson 1
Mean, Median and Mode for Grouped Data
For grouped data, individual values are unknown, so each class is represented by its midpoint to find the mean, and interpolation formulas are used for the median and mode. Worked example: marks of 50 students in classes 0-10, 10-20, 20-30, 30-40, 40-50 with frequencies 5, 8, 15, 16, 6 give mean 27, median 28 and mode about 30.91.
Mean of grouped data
- Midpoint x = (lower boundary + upper boundary)/2, e.g. (10+20)/2 = 15.
- f*x estimates the total of all values in a class (e.g. 8*15 = 120).
- Mean = sum(f*x) / sum(f).
- Example: sum(fx) = 25+120+375+560+270 = 1350; sum(f) = 50; mean = 1350/50 = 27.
Median of grouped data
- Build the cumulative frequency (CF) column by adding each class frequency to the previous CF: 5, 13, 28, 44, 50.
- Find N/2 (here 25); the median class is the first class whose CF is >= N/2 (20-30).
- Median = L + ((N/2 - CF)/f) * h, where L = lower boundary of median class, CF = cumulative frequency before it, f = its frequency, h = class width.
- Example: 20 + ((25-13)/15)*10 = 20 + 8 = 28.
Mode of grouped data
- Modal class = class with the highest frequency (30-40, f = 16).
- Mode = L + ((f1 - f0)/(2f1 - f0 - f2)) * h; f1 = modal class frequency, f0 = class before, f2 = class after.
- Example: 30 + ((16-15)/(32-15-6))*10 = 30 + 10/11 = 30.91.
Key terms
- Class midpoint
- (lower + upper boundary)/2, used to represent all values in a class.
- Cumulative frequency
- Running total of frequencies up to and including a class.
- Median class
- First class whose cumulative frequency is at least N/2.
- Modal class
- The class with the highest frequency.
- Class width (h)
- Upper boundary minus lower boundary of a class.
Lesson 2
Quartiles for Grouped Data
Quartiles split grouped data into four parts: Q1 at position N/4, Q2 (the median) at N/2, and Q3 at 3N/4. Each is found by locating its class with the cumulative frequency column and applying an interpolation formula.
Cumulative frequency
- First CF = first frequency; each later CF = class frequency + previous CF.
- The last CF equals N, the total number of observations.
- Example frequencies 5, 6, 3, 2, 1 give CF 5, 11, 14, 16, 17, so N = 17.
Quartile formula
- Qk = L + ((kN/4 - CF)/f) * h.
- L = lower limit of the quartile class, CF = cumulative frequency of the class before it (0 if it is the first class), f = frequency of the quartile class, h = class size.
- The quartile class is the first class whose CF is at least the required position.
Worked example (N = 17, h = 10)
- Q1: position 4.25 lies in 0-10; Q1 = 0 + ((4.25-0)/5)*10 = 8.5.
- Q2: position 8.5 lies in 10-20; Q2 = 10 + ((8.5-5)/6)*10 = 15.833.
- Q3: position 12.75 lies in 20-30; Q3 = 20 + ((12.75-11)/3)*10 = 25.833.
Key terms
- First quartile (Q1)
- Value at position N/4; 25% of the data lies below it.
- Second quartile (Q2)
- Value at position N/2; the same as the median.
- Third quartile (Q3)
- Value at position 3N/4; 75% of the data lies below it.
- Quartile class
- The class containing the quartile's position, found using the CF column.
Lesson 3
Standard Deviation and Coefficient of Variation
The coefficient of variation (CV) expresses standard deviation as a percentage of the mean and is used to compare the variability of two series. The series with the lower CV is more consistent. Worked example: team X has CV 55.43% and team Y has CV 48.86%, so team Y is more consistent.
Formulas
- Mean: X bar = sum(X)/n.
- Deviation x = X - X bar; standard deviation sigma = sqrt(sum(x^2)/n).
- CV = (sigma / X bar) * 100.
Interpreting CV
- CV is used to compare consistency between two variables or series.
- Lower CV means more consistent, more reliable and less variable.
- If a question asks which series is more consistent, calculate CV even when it is not mentioned.
Worked example: two teams over 10 innings
- X bar = 460/10 = 46; Y bar = 500/10 = 50.
- sum(x^2) = 6500, so sigma_X = sqrt(650) = 25.5; sum(y^2) = 5968, so sigma_Y = sqrt(596.8) = 24.43.
- CV_X = 25.5/46 * 100 = 55.43%; CV_Y = 24.43/50 * 100 = 48.86%.
- Conclusion: team Y is more consistent because its CV is lower. Always state the conclusion.
Key terms
- Standard deviation
- sqrt(sum((X - X bar)^2)/n), a measure of spread around the mean.
- Coefficient of variation
- (standard deviation / mean) * 100, a relative measure of variability.
- Consistency
- Stability of values; the series with the lower CV is more consistent.
Lesson 4
Karl Pearson and Bowley Coefficient of Skewness
Skewness measures the lack of symmetry in a distribution. Karl Pearson's coefficient compares the mean with the mode relative to the standard deviation. Bowley's coefficient uses the quartiles and the median.
Formulas
- Karl Pearson: Sk = (Mean - Mode) / Standard deviation
- Bowley: Sk = (Q3 + Q1 - 2 Median) / (Q3 - Q1)
- Sk = 0 means symmetric, Sk > 0 means positive (right) skew, Sk < 0 means negative (left) skew
Karl Pearson for a discrete frequency distribution
- Mean = Σfx / N, where N = Σf
- Mode by inspection: the x value with the highest frequency
- fx² = fx × x
- SD = sqrt(Σfx²/N - (mean)²)
- Example: Σf = 236, Σfx = 957, Σfx² = 4367, highest frequency 72 at x = 4
- Mean = 957/236 = 4.05 and mode = 4
- SD = sqrt(18.50 - 16.40) = sqrt(2.1) ≈ 1.45
- Sk = (4.05 - 4)/1.45 ≈ 0.03, a very slight positive skew
Bowley for a discrete frequency distribution
- Build the cumulative frequency (cf) column by adding the frequencies in turn
- Q1 = size of the (N+1)/4 th item, Median = size of the (N+1)/2 th item, Q3 = size of the 3(N+1)/4 th item
- Find the first cf that is at least the position; the x value in that row is the answer
- Example: positions 59.25, 118.5 and 177.75 give Q1 = 3, Median = 4, Q3 = 5
- Sk = (5 + 3 - 8)/(5 - 3) = 0, so the distribution is symmetric by Bowley's measure
Key terms
- Skewness
- The degree of asymmetry of a distribution.
- Karl Pearson's coefficient
- (Mean - Mode) / SD.
- Bowley's coefficient
- (Q3 + Q1 - 2 Median) / (Q3 - Q1), a skewness measure based on quartiles.
- Cumulative frequency
- The running total of frequencies, used to locate quartiles and the median.
- Mode by inspection
- The value with the highest frequency.
Lesson 5
Karl Pearson and Spearman Rank Correlation
Correlation (symbol r) measures the relationship between two variables. Karl Pearson's coefficient uses deviations from the means and the standard deviations of both series. Spearman's coefficient works on ranks.
Correlation basics
- Correlation shows how two variables move together; for example, if sugar prices rise, the demand for both sugar and tea leaves falls
- Graphic methods: scatter diagram and simple graph
- Mathematical methods: Karl Pearson, Spearman's rank, concurrent deviation and least squares
- Positive r means the variables move in the same direction; negative r means opposite directions
Karl Pearson (direct / actual mean method)
- r = Σdxdy / (N σx σy), where dx = X - X̄ and dy = Y - Ȳ
- σx = sqrt(Σdx²/N) and σy = sqrt(Σdy²/N)
- Equivalent form: r = Σdxdy / sqrt(Σdx² × Σdy²)
- Table columns: X, dx, dx², Y, dy, dy², dxdy
- Watch the signs: (-)(-) gives +, and (-)(+) gives -
Worked example (N = 10)
- ΣX = 330, so X̄ = 33; ΣY = 220, so Ȳ = 22
- Σdx² = 3528, so σx = sqrt(352.8) = 18.78
- Σdy² = 1442, so σy = sqrt(144.2) = 12.01
- Σdxdy = 2219
- r = 2219/(10 × 18.78 × 12.01) = 2219/2255.5 ≈ 0.98, a high positive correlation
Spearman's rank correlation
- Rank each series, then find D = R1 - R2 for every pair
- R = 1 - 6ΣD² / (n(n² - 1))
- Use it for qualitative or ranked data; R lies between -1 and +1
Key terms
- Correlation
- The degree of relationship between two variables.
- Karl Pearson's r
- Σdxdy/(Nσxσy), the product-moment correlation coefficient.
- Deviation dx
- X - X̄, the value minus its mean.
- Spearman's rank correlation
- 1 - 6ΣD²/(n(n²-1)), calculated from rank differences.
Lesson 6
Regression Equations and Estimation
Regression, introduced by Francis Galton, estimates the value of one variable from another. Two regression equations, X on Y and Y on X, are built using the actual mean method and then used for prediction.
Concept
- Galton studied the heights of 1000 fathers and their sons: tall fathers tended to have tall sons, and short fathers short sons
- Regression literally means 'going back' or 'returning'
- Uses include forecasting production, demand and prices from past data
Regression equations (actual mean method)
- X on Y: X - X̄ = r(σx/σy)(Y - Ȳ), where r(σx/σy) = bxy = Σxy/Σy²
- Y on X: Y - Ȳ = r(σy/σx)(X - X̄), where r(σy/σx) = byx = Σxy/Σx²
- Here x = X - X̄ and y = Y - Ȳ
- Table columns: X, x, x², Y, y, y², xy
- The assumed mean method also exists but involves longer formulas
Worked example (n = 5)
- ΣX = 30, so X̄ = 6; ΣY = 40, so Ȳ = 8
- Σx² = 40, Σy² = 20, Σxy = -26
- bxy = -26/20 = -1.3 and byx = -26/40 = -0.65
- X on Y: X - 6 = -1.3(Y - 8), which gives X = -1.3Y + 16.4
- Y on X: Y - 8 = -0.65(X - 6), which gives Y = -0.65X + 11.9
Estimation
- To estimate X for a given Y, use the X on Y equation
- To estimate Y for a given X, use the Y on X equation
- Example: if Y = 5, X = -1.3(5) + 16.4 = 9.9
Key terms
- Regression
- A method for estimating one variable from another using an average relationship.
- Regression coefficient bxy
- r σx/σy = Σxy/Σy², the slope of the X on Y equation.
- Regression coefficient byx
- r σy/σx = Σxy/Σx², the slope of the Y on X equation.
- Actual mean method
- Calculation using deviations taken from the true means.
Lesson 7
Fisher's Index Number with Time and Factor Reversal Tests
Fisher's ideal index is the geometric mean of the Laspeyres and Paasche price indices. It is called 'ideal' because it satisfies both the time reversal test and the factor reversal test, which can be verified with a worked numerical example.
Fisher's Ideal Index
- Laspeyres: P01 = Σp1q0 / Σp0q0 × 100 (base-year quantities as weights)
- Paasche: P01 = Σp1q1 / Σp0q1 × 100 (current-year quantities as weights)
- Fisher: P01 = sqrt[(Σp1q0/Σp0q0) × (Σp1q1/Σp0q1)] × 100
- Compute four column totals first: Σp1q0, Σp0q0, Σp1q1, Σp0q1
Time Reversal Test
- Condition: P01 × P10 = 1 (index factors used without the ×100)
- P10 is obtained by swapping subscripts 0 and 1 everywhere: P10 = sqrt[(Σp0q1/Σp1q1) × (Σp0q0/Σp1q0)]
- For Fisher, every term cancels, giving sqrt(1) = 1, so the test is satisfied
Factor Reversal Test
- Condition: P01 × Q01 = Σp1q1 / Σp0q0 (the value ratio)
- Q01 is Fisher's formula with p and q interchanged: Q01 = sqrt[(Σq1p0/Σq0p0) × (Σq1p1/Σq0p1)]
- Multiplying gives sqrt[(Σp1q1)^2/(Σp0q0)^2] = Σp1q1/Σp0q0, so Fisher satisfies the test
Worked Example
- Σp1q0 = 1516, Σp0q0 = 1392, Σp1q1 = 1734, Σp0q1 = 1572
- Fisher = sqrt[(1516/1392) × (1734/1572)] × 100 ≈ 109.6 (the lesson states 134.75, but this figure does not follow from these totals)
- TRT: product of fractions = 1, so sqrt(1) = 1, satisfied
- FRT: P01 × Q01 = 1734/1392 = Σp1q1/Σp0q0, satisfied
Key terms
- Fisher's ideal index
- Geometric mean of the Laspeyres and Paasche indices.
- Time reversal test
- Requires P01 × P10 = 1 when base and current periods are swapped.
- Factor reversal test
- Requires price index × quantity index = true value ratio Σp1q1/Σp0q0.
- Laspeyres index
- Price index weighted by base-year quantities.
- Paasche index
- Price index weighted by current-year quantities.
Lesson 8
Trend by Moving Average and Least Squares
Secular trend can be measured by the moving average method: total the values over a fixed period, place each total at the middle of its period, then divide by the period length. For an even period, the averages fall between years and must be centred by averaging adjacent pairs. The least squares method is listed as the remaining trend method but is not worked in this part of the lesson.
Methods of Measuring Secular Trend
- Free-hand curve method
- Semi-average method
- Moving average method
- Least squares method (fits a trend line; not worked here)
Odd-Period Moving Average (e.g., 3-year)
- Whether the period is odd or even depends on the moving-average period, not on the number of years n
- Add the first 3 values and write the total against the middle year
- Drop the first value, add the next one, and repeat to the end
- Moving average = moving total / 3
- Example: production 9, 11, 10, 12, 14, 8, 9, 10, 9 gives totals 30, 33, 36, 34, 31, 27, 28
- The corresponding averages are 10, 11, 12, 11.33, 10.33, 9, 9.33 for the years 2011 to 2017
Even-Period Moving Average (e.g., 4-year)
- Leave gaps between the years when writing the table
- A 4-year total has no middle year, so place it between the 2nd and 3rd years
- Divide each total by 4 to get the uncentred averages, e.g., 408/4 = 102 and 415/4 = 103.75
- Centre the values: average each adjacent pair, e.g., (102 + 103.75)/2 = 102.875, placed against 2012
- Without centring, the values cannot be plotted against actual years
Graphing
- Draw a graph only when the question asks for one
- Put years on the x-axis and the variable on the y-axis
- Plot the actual data and the moving-average trend line on the same graph
Key terms
- Secular trend
- The long-term general tendency of a time series.
- Moving total
- Sum of values over a fixed period that shifts forward one year at a time.
- Moving average
- The moving total divided by the number of years in the period.
- Centred moving average
- Average of two consecutive even-period moving averages, aligned to an actual year.
- Least squares method
- Fits the trend line that minimises the sum of squared deviations.
Lesson 9
Probability and Normal Distribution Basics
The normal distribution models continuous random variables with a bell-shaped curve symmetric about the mean. Probabilities are found by converting x to the standard normal variate z = (x - μ)/σ and reading areas from the table, which gives the area from 0 to z.
Discrete vs Continuous
- Binomial and Poisson handle discrete values such as P(X = 0) or P(X = 1)
- The normal distribution handles continuous ranges such as P(0 < X < 2)
PDF and Curve Properties
- f(x) = (1/(σ sqrt(2π))) e^(-(1/2)((x-μ)/σ)^2)
- Limits: -∞ < x < ∞, -∞ < μ < ∞, σ > 0
- The curve is bell-shaped and symmetric, with mean = median = mode at the peak
- The tails approach the x-axis but never touch it; total area = 1, with 0.5 on each side of the mean
- μ ± σ covers about 68.26% of the area; μ ± 2σ about 95.46%; μ ± 3σ about 99.73%
Standard Normal Variate
- z = (x - μ)/σ, with mean 0 and SD 1
- μ maps to z = 0, μ + σ to z = 1, and μ - 2σ to z = -2
- The table gives the area between 0 and z, e.g., z = 2 gives 0.4772
Worked Example (μ = 9, σ = 3)
- P(X ≥ 15): z = (15 - 9)/3 = 2; P(Z ≥ 2) = 0.5 - 0.4772 = 0.0228
- P(X ≤ 15): P(Z ≤ 2) = 0.5 + 0.4772 = 0.9772
- P(0 < X < 9): z ranges from -3 to 0, so the area equals the table value for z = 3
Key terms
- Normal distribution
- Continuous, symmetric, bell-shaped distribution with mean μ and SD σ.
- Standard normal variate
- z = (x - μ)/σ, which has mean 0 and SD 1.
- Probability density function
- The function whose area under the curve gives probabilities.
- Normal table area
- The area under the standard normal curve from 0 to z.
