What statistics is
Introduction · Topic 1 of 32
Key idea
Statistics is the science of collecting, organizing, analyzing and interpreting data in order to make decisions. It has two branches: descriptive statistics organizes, summarizes and displays data you already have; inferential statistics uses a sample to draw conclusions about a population. Almost every business question (Will this price sell? Is this supplier reliable? Is demand rising?) is one or the other.
- Descriptive averages, spreads, tables, charts, index numbers, trend lines. The data in hand is the whole story.
- Inferential estimates and hypothesis tests. A sample stands in for a population, so every conclusion carries a margin of doubt.
Functions: describe phenomena accurately; plan an inquiry; collect the right quantitative data; present complex data in tables and graphs; understand variability; draw valid inferences with a measure of their reliability.
Why it matters in business: informed decisions, predicting outcomes, testing hypotheses, monitoring progress, quality control, understanding competitors and demographics, estimating market risk, finding profit centres and root causes of problems.
- Misuse figures can be selected or framed to support an agenda.
- Inaccurate data results are only as good as the data behind them.
- Oversimplification a single number can hide social, cultural or political nuance.
- Overreliance numbers need context and critical thinking.
- Limited scope only measured variables appear; the unmeasured ones may matter most.
- Ethics privacy and responsible use of personal data.
Scope: business and economics (sales trends, pricing, demand forecasts, marketing impact), medicine (clinical trials), social science, engineering, sports and entertainment.
How to work it
- Identify the population (everything of interest) and the data you actually have (all of it, or a sample).
- Decide: describing the data in hand (descriptive) or generalizing beyond it (inferential)?
- Pick the tool that matches the question: an average for a typical value, a dispersion measure for spread, an index for change over time, a test for a claim.
- Interpret the number in the units and context of the problem, and say what it does not tell you.
A store computes last month's average sale from every receipt: descriptive, the data is complete. A poll of 1,000 voters predicts an election: inferential, the sample speaks for millions. A factory tests 50 bulbs from a batch of 10,000 and reports the batch's mean life: inferential. The median salary of a firm's 200 employees from payroll: descriptive.
The giveaway is whether the conclusion reaches beyond the data that was measured.
Watch out. A sample result (a statistic) is not the population value (a parameter). Reporting "60% of customers are satisfied" from a survey of 400 is an estimate with uncertainty, not a fact about all customers.
Practice: problem 1 in the practice sets (last group in the contents).
Mathematical averages: AM, GM, HM
Unit I: Descriptive statistics · Topic 2 of 32
Key idea
A measure of central tendency is a single value that represents a whole distribution. Bowley called averages "statistical constants which enable us to comprehend in a single effort the significance of the whole." The three mathematical averages use every observation: the arithmetic mean adds, the geometric mean multiplies, the harmonic mean works with reciprocals. Each is right for a different kind of data.
Arithmetic mean
\[\bar x = \frac{1}{n}\sum_{i=1}^{n} x_i\] \[\bar x = \frac{1}{N}\sum f_i x_i \quad (N = \sum f_i)\]Geometric mean
\[GM = \sqrt[n]{x_1 x_2 \cdots x_n}\] \[GM = \sqrt[N]{x_1^{f_1} x_2^{f_2}\cdots x_n^{f_n}} = \operatorname{antilog}\!\left(\frac{\sum f_i \log x_i}{N}\right)\]Harmonic mean
\[HM = \frac{n}{\sum \frac{1}{x_i}}\] \[HM = \frac{N}{\sum \frac{f_i}{x_i}}\]For positive data, \(AM \ge GM \ge HM\), with equality only when all values are equal.
- AM comparing class averages, average spending; the default when values add up (totals, costs, marks).
- GM averaging ratios, rates and percentages; average rate under compound interest or depreciation; constructing index numbers.
- HM averages involving time, speed, rate and price when the quantity (distance, money spent) is fixed; gives the largest weight to the smallest item.
Rule of thumb: values that multiply (growth factors) want GM; values that are "per unit" with a fixed numerator want HM; everything else wants AM.
How to work it
- AM: add the values (or \(f_i x_i\)) and divide by the count \(n\) (or \(N\)).
- GM: multiply the values and take the \(n\)th root; for many values use logs: average the logs, then take the antilog.
- HM: take reciprocals, average them, and invert the result.
- Check the order \(AM \ge GM \ge HM\); if it fails, there is an arithmetic error.
Data: \(2, 4, 8\).
\[AM = \frac{2 + 4 + 8}{3} = 4.67\] \[GM = \sqrt[3]{2\cdot 4\cdot 8} = \sqrt[3]{64} = 4\] \[HM = \frac{3}{\frac12 + \frac14 + \frac18} = \frac{3}{0.875} = 3.43.\]If a price rose by factors \(1.10\), \(1.20\), \(1.30\) in three years, the average yearly factor is \(GM = \sqrt[3]{1.716} = 1.197\), i.e. 19.7% per year, not the AM 20%. If a car does one leg at 30 km/h and an equal-distance leg at 60 km/h, the average speed is \(HM = \dfrac{2}{\frac{1}{30} + \frac{1}{60}} = 40\) km/h, not 45.
Frequency-distribution forms. \(x: 2, 4, 8\) with \(f: 1, 2, 1\) (\(N = 4\)). \(AM = \frac{2 + 2(4) + 8}{4} = \frac{18}{4} = 4.5\). \(GM = \sqrt[4]{2\cdot 4^2\cdot 8} = \sqrt[4]{256} = 4\); by logs, \(\sum f\log_{10} x = 0.301 + 2(0.602) + 0.903 = 2.408\), \(\frac{2.408}{4} = 0.602\), antilog \(= 4\). \(HM = \frac{4}{\frac12 + \frac24 + \frac18} = \frac{4}{1.125} = 3.56\). Again \(4.5 \ge 4 \ge 3.56\). Each frequency simply repeats its value that many times.
Watch out. Averaging percentage changes or growth factors with the arithmetic mean overstates the true average rate. Averaging speeds (or prices per unit) over equal distances (or equal spending) with the arithmetic mean also overstates; the harmonic mean is right.
Practice: problems 2, 3, 4, 5 in the practice sets (last group in the contents).
Positional averages: mode, median and partition values
Unit I: Descriptive statistics · Topic 3 of 32
Key idea
Positional averages are found by location in the ordered data rather than by arithmetic on every value. The mode is the most frequent value, the median the middle one, and the partition values (quartiles, deciles, percentiles) split the ordered data into 4, 10 or 100 equal parts. They are not pulled around by extreme values, which is why business reports quote median income, not mean income.
Mode. Ungrouped: the value that occurs most often. Continuous (modal class has the largest frequency):
\[\text{Mode} = L + \frac{f_1 - f_0}{2f_1 - f_0 - f_2}\times h\]\(L\) lower limit of the modal class, \(f_1\) its frequency, \(f_0\) and \(f_2\) the frequencies before and after, \(h\) the class width.
Median. Individual series: the \(\frac{n+1}{2}\)th value (odd \(n\)); the mean of the \(\frac n2\)th and \((\frac n2 + 1)\)th values (even \(n\)). Discrete series: find \(\frac N2\); the first cumulative frequency that exceeds it gives the median. Continuous:
\[M_d = L + \frac{\frac N2 - cf}{f}\times h\]\(cf\) cumulative frequency before the median class, \(f\) its frequency.
Individual series: \(Q_k\) is the \(k\frac{n+1}{4}\)th value, \(D_k\) the \(k\frac{n+1}{10}\)th, \(P_k\) the \(k\frac{n+1}{100}\)th, interpolating between neighbours when the position is fractional. Discrete series: find \(\frac{kN}{4}\) (or \(\frac{kN}{10}\), \(\frac{kN}{100}\)) and read off the first cumulative frequency that exceeds it.
\(Q_2 = D_5 = P_{50} = \) median. \(Q_1\) and \(Q_3\) feed the quartile deviation and Bowley's skewness; \(P_{10}, P_{90}\) feed Kelly's skewness.
How to work it
- Build the cumulative frequency column and find \(N\).
- Compute the target position: \(\frac N2\) for the median, \(\frac{kN}{4}\) for \(Q_k\), and so on.
- Locate the class whose cumulative frequency first reaches or exceeds the target; read \(L\), \(f\), \(h\) from it and \(cf\) from the class before.
- Substitute into the formula. The answer must lie inside the class you chose.
Classes 0–10, 10–20, 20–30, 30–40, 40–50 with frequencies 5, 8, 15, 10, 2 (\(N = 40\)); cumulative frequencies 5, 13, 28, 38, 40.
Median: \(\frac N2 = 20\), first cf \(\ge 20\) is 28 (class 20–30), \(cf = 13\), \(f = 15\):
\[M_d = 20 + \frac{20 - 13}{15}\times 10 = 24.67.\]Mode: modal class 20–30 (\(f_1 = 15\), \(f_0 = 8\), \(f_2 = 10\)):
\[\text{Mode} = 20 + \frac{15 - 8}{30 - 8 - 10}\times 10 = 20 + \frac{7}{12}\times 10\] \[= 25.83.\]\(Q_1\): target 10, class 10–20 (\(cf = 5\), \(f = 8\)): \(10 + \frac{10 - 5}{8}\times 10 = 16.25\). \(Q_3\): target 30, class 30–40 (\(cf = 28\), \(f = 10\)): \(30 + \frac{30 - 28}{10}\times 10 = 32\).
The mean is \(\frac{\sum fx}{N} = \frac{960}{40} = 24\), and the empirical relation \(\text{Mode} \approx 3M_d - 2\bar x = 74 - 48 = 26\) agrees closely with 25.83.
Discrete series (no interpolation). \(x: 5, 10, 15, 20, 25\) with \(f: 4, 6, 10, 7, 3\), \(N = 30\); cumulative frequencies \(4, 10, 20, 27, 30\). Median: \(\frac N2 = 15\), the first cf that exceeds 15 is 20, so \(M_d = 15\). \(Q_1\): \(\frac N4 = 7.5\), first cf above it is 10, \(Q_1 = 10\). \(Q_3\): \(22.5 \to 27\), \(Q_3 = 20\). \(D_7\): \(\frac{7N}{10} = 21 \to 27\), \(D_7 = 20\). \(P_{20}\): \(\frac{20N}{100} = 6 \to 10\), \(P_{20} = 10\). Mode \(= 15\), the value with the largest frequency. In a discrete series the answer is always one of the listed values; the formula with \(L\), \(f\) and \(h\) is only for class intervals.
Watch out. Using the frequency of the median class as \(cf\). The \(cf\) in the formula is the cumulative frequency of the class before the median (or quartile) class. And the median class is found from \(N/2\), never from the largest frequency (that is the modal class).
Practice: problems 6, 7, 8, 9 in the practice sets (last group in the contents).
Combining groups and choosing an average
Unit I: Descriptive statistics · Topic 4 of 32
Key idea
Two branches each report a mean and a standard deviation; head office wants the figures for the company as a whole. The composite formulas combine group summaries without going back to the raw data. The second half of this tab is the judgement call every report needs: which average to quote.
The combined variance has two parts: the average of the within-group variances, and the spread of the group means around the overall mean. Even two groups with zero spread each have a positive combined spread if their means differ.
Properties of a good average: rigidly defined; simple to understand and compute; based on all values; capable of further algebraic treatment; stable from sample to sample; not unduly affected by extreme values. No single average has all six.
- Mean comparing performance of companies, colleges or classes; mean house prices to tell clients what to expect. Uses every value and supports further algebra, but is pulled by extremes.
- Median the middle value; half the items lie below it. Best for skewed data and open-ended classes (incomes, salaries, house prices); it ignores extremes.
- Mode the most frequent value; the only average for categorical data (favourite brand, bedrooms per house). May not exist or may not be unique.
In a symmetrical distribution all three coincide, so the choice does not arise. In a skewed one the median sits between the mean and the mode and is usually the honest summary.
How to work it
- Compute the overall mean \(\bar x\) from the group sizes and means.
- Find each group's deviation \(d_i = \bar x_i - \bar x\).
- Add the four terms \(n_1\sigma_1^2 + n_2\sigma_2^2 + n_1 d_1^2 + n_2 d_2^2\), divide by \(N\), take the square root.
- Sanity check: the combined \(\sigma\) is at least as large as the smaller group \(\sigma\) and usually larger than both when the means differ.
Group 1: \(n_1 = 40\), \(\bar x_1 = 60\), \(\sigma_1 = 8\). Group 2: \(n_2 = 60\), \(\bar x_2 = 70\), \(\sigma_2 = 10\).
\[\bar x = \frac{40(60) + 60(70)}{100} = \frac{2400 + 4200}{100} = 66\] \[d_1 = -6,\quad d_2 = 4.\] \[\sigma^2 = \frac{40(64) + 60(100) + 40(36) + 60(16)}{100}\] \[= \frac{2560 + 6000 + 1440 + 960}{100} = 109.6\] \[\sigma = 10.47.\]The combined standard deviation (10.47) exceeds both group values because the group means are 10 units apart.
Working backwards. All 50 students average 66; section A's 30 students average 70. Section B's mean: \(\bar x_2 = \frac{N\bar x - n_1\bar x_1}{n_2} = \frac{50(66) - 30(70)}{20} = \frac{3300 - 2100}{20} = 60\). The overall total is the sum of the group totals, so any one missing piece can be recovered.
Watch out. Averaging the two standard deviations (here \(9\)) or the two variances and forgetting the \(d_i^2\) terms. The spread between group means is part of the overall spread.
Practice: problems 10, 11, 12 in the practice sets (last group in the contents).
Dispersion: absolute measures
Unit I: Descriptive statistics · Topic 5 of 32
Key idea
Two data sets can share a mean and look nothing alike. Measures of dispersion (scatter, variation) say how far the values spread around the centre: the more alike the values, the smaller the dispersion. Absolute measures are in the units of the data; the next tab turns them into unit-free coefficients for comparisons.
- Range \(H - S\), highest minus smallest. Quick, crude, uses two values.
- Quartile deviation \(QD = \dfrac{Q_3 - Q_1}{2}\), half the spread of the middle 50%.
- Mean deviation \(MD = \dfrac{\sum|x_i - A|}{n}\) or \(\dfrac{\sum f_i|x_i - A|}{N}\), average distance from \(A\) (mean, median or mode).
- Standard deviation \(\sigma = \sqrt{\dfrac{\sum(x_i - \bar x)^2}{n}}\) or \(\sqrt{\dfrac{\sum f_i(x_i - \bar x)^2}{N}}\).
Variance is \(\sigma^2\). The standard deviation is the measure that supports further algebra (composite groups, skewness, kurtosis, the normal curve).
- To find the average distance of the items from an average.
- To know the structure of the series.
- To gauge the reliability of an average: a small dispersion means the average represents the data well.
- To know the limits of the items.
- To serve as a basis for controlling variability itself (quality control).
- To compare two or more series with regard to their variability.
Central tendency and dispersion are complementary: the average tells you where the centre is, the dispersion tells you how tightly the data gathers around it. Two data sets can have the same median and very different spreads.
How to work it
- Find the mean \(\bar x\) (or \(\frac{\sum fx}{N}\) for grouped data, using class midpoints).
- Either square the deviations \((x - \bar x)^2\), weight by \(f\), sum and divide by \(n\) (or \(N\)); or use the computational form with \(\sum x^2\).
- Take the square root. Report the variance too if asked.
- For mean deviation, use absolute values (no squaring) around the stated average.
Data: \(2, 4, 4, 4, 5, 5, 7, 9\) (\(n = 8\), \(\bar x = 5\)).
Range \(= 9 - 2 = 7\). Deviations from the mean: \(-3, -1, -1, -1, 0, 0, 2, 4\).
\[MD_{\bar x} = \frac{3 + 1 + 1 + 1 + 0 + 0 + 2 + 4}{8} = \frac{12}{8} = 1.5\] \[\sigma = \sqrt{\frac{9 + 1 + 1 + 1 + 0 + 0 + 4 + 16}{8}} = \sqrt{\frac{32}{8}} = 2.\]Quartiles (positions \(\frac{9}{4} = 2.25\) and \(6.75\)): \(Q_1 = 4\), \(Q_3 = 5 + 0.75(7 - 5) = 6.5\), so \(QD = \frac{6.5 - 4}{2} = 1.25\).
Computational check: \(\sum x^2 = 232\), \(\sigma = \sqrt{232/8 - 25} = \sqrt{29 - 25} = 2\).
Grouped data (the classes 0–10 to 40–50 with \(f = 5, 8, 15, 10, 2\) from the positional-averages tab). Midpoints \(x = 5, 15, 25, 35, 45\). \(fx = 25, 120, 375, 350, 90\), total 960, so \(\bar x = 960/40 = 24\). \(fx^2 = 125, 1800, 9375, 12250, 4050\), total \(27{,}600\).
\[\sigma = \sqrt{\frac{27600}{40} - 24^2} = \sqrt{690 - 576} = \sqrt{114} = 10.68.\]Mean deviation about the mean: \(|x - 24| = 19, 9, 1, 11, 21\); \(f|x - 24| = 95, 72, 15, 110, 42\), total 334; \(MD = 334/40 = 8.35\). As always \(MD \lt \sigma\), because squaring weights the far-out classes more heavily.
Watch out. Forgetting to square-root the variance, and mixing up \(n\) (population formula, used throughout these notes) with \(n - 1\) (the sample estimate \(S^2\) used later in \(t\)-tests). Mean deviation uses absolute values; dropping them makes every mean deviation zero.
Practice: problems 13, 14, 15 in the practice sets (last group in the contents).
Dispersion: relative measures and the coefficient of variation
Unit I: Descriptive statistics · Topic 6 of 32
Key idea
An absolute measure of spread is in rupees, kilograms or marks, so it cannot compare a series measured in one unit with a series in another, or a series with a large mean against one with a small mean. Dividing the absolute measure by a corresponding average gives a pure number: a relative measure. The coefficient of variation is the one used most.
All four are unit-free. Smaller means more consistent, more uniform, more reliable.
\(CV\) is the standard deviation as a percentage of the mean. It answers "spread relative to size": a standard deviation of 5 is huge for a mean of 10 (\(CV = 50\%\)) and tiny for a mean of 1,000 (\(CV = 0.5\%\)).
- Lower CV more consistent (a worker, a machine, a stock's returns, a supplier's delivery times).
- Higher CV more variable, less reliable average.
- Use comparing two series in different units or with different means; the series with the smaller \(CV\) is the more stable one.
\(CV\) is meaningless when the mean is zero or negative, and misleading for data with an arbitrary zero (temperature in Celsius).
How to work it
- Compute the mean and standard deviation of each series.
- Form \(CV = \sigma/\bar x\times 100\) for each.
- The smaller \(CV\) is the more consistent series. Say so in words, with the percentages.
- If only quartiles or range are available, use the matching coefficient instead.
Worker A: mean output 50 units, \(\sigma = 5\). Worker B: mean 80, \(\sigma = 6\).
\[CV_A = \frac{5}{50}\times 100 = 10\%\] \[CV_B = \frac{6}{80}\times 100 = 7.5\%.\]B has the larger absolute spread but the smaller relative spread: B is the more consistent worker.
For the data \(2, 4, 4, 4, 5, 5, 7, 9\) from the previous tab (\(\bar x = 5\), \(\sigma = 2\), \(H = 9\), \(S = 2\)): coefficient of range \(= \frac{7}{11} = 0.64\); \(CV = \frac{2}{5}\times 100 = 40\%\). With \(Q_1 = 4\), \(Q_3 = 6.5\) and \(MD_{\bar x} = 1.5\) from the same tab: coefficient of \(QD = \frac{6.5 - 4}{6.5 + 4} = \frac{2.5}{10.5} = 0.24\); coefficient of \(MD = \frac{1.5}{5} = 0.30\). The four coefficients are not comparable with each other (each has its own scale); compare like with like across two series.
Watch out. Judging consistency by the standard deviation alone. The series with the larger \(\sigma\) can be the more consistent one if its mean is much larger. Also, the coefficient of range divides by \(H + S\), not by the mean.
Practice: problems 16, 17 in the practice sets (last group in the contents).
Skewness
Unit I: Descriptive statistics · Topic 7 of 32
Key idea
Skewness is lack of symmetry. In a symmetrical distribution mean, median and mode coincide. Extreme values on the right stretch the tail that way and pull the mean past the median: positive skew, with Mean \(\gt\) Median \(\gt\) Mode. Extreme values on the left give negative skew, Mean \(\lt\) Median \(\lt\) Mode. Several coefficients measure how much.
- \(S_k = 0\) symmetrical about the mean.
- \(S_k \gt 0\) positively skewed (long right tail; mean largest).
- \(S_k \lt 0\) negatively skewed (long left tail; mean smallest).
Pearson's coefficient uses the mean and standard deviation, so it needs all the data and lies roughly in \([-3, 3]\). Bowley's uses quartiles only, lies in \([-1, 1]\), and works for open-ended distributions. Kelly's extends Bowley's to the 10th and 90th percentiles so it uses more of the data. The moment measure \(\beta_1\) is always nonnegative; the sign of skewness comes from \(\mu_3\).
The empirical relation holds for moderately skewed distributions; use it to estimate the mode when the modal class is ill-defined.
How to work it
- Compute the mean and standard deviation (and the median or mode).
- If the mode is well defined, use \((\text{Mean} - \text{Mode})/\sigma\); otherwise use \(3(\text{Mean} - \text{Median})/\sigma\).
- Read the sign for the direction of skew and the size for how strong it is.
- For Bowley's coefficient compute \(Q_1\), median and \(Q_3\) and substitute; the result is between \(-1\) and \(1\).
Mean 24, median 24.67, mode 25.83, \(Q_1 = 16.25\), \(Q_3 = 32\). Standard deviation: \(\sum fx^2 = 27{,}600\), so \(\sigma = \sqrt{27600/40 - 24^2} = \sqrt{690 - 576} = 10.68\).
\[S_k(\text{Pearson}) = \frac{24 - 25.83}{10.68} = -0.17\] \[S_k(\text{Bowley}) = \frac{32 - 2(24.67) + 16.25}{32 - 16.25}\] \[= \frac{-1.08}{15.75} = -0.07.\]Both are small and negative: the distribution is nearly symmetrical with a slight tail to the left. Kelly's coefficient on the same data: \(P_{10}\) (target 4, class 0–10) \(= 0 + \frac{4 - 0}{5}\times 10 = 8\); \(P_{90}\) (target 36, class 30–40, \(cf = 28\), \(f = 10\)) \(= 30 + \frac{36 - 28}{10}\times 10 = 38\); \(S_k = \frac{38 - 2(24.67) + 8}{38 - 8} = \frac{-3.34}{30} = -0.11\). Three measures, three scales, one verdict: slightly negative, consistent with Mean \(\lt\) Median \(\lt\) Mode.
Moment measure, for \(2, 4, 4, 4, 5, 5, 7, 9\) (\(\bar x = 5\), \(\mu_2 = \sigma^2 = 4\)). Deviations \(-3, -1, -1, -1, 0, 0, 2, 4\); cubes \(-27, -1, -1, -1, 0, 0, 8, 64\), total 42, so \(\mu_3 = 42/8 = 5.25\).
\[\beta_1 = \frac{\mu_3^2}{\mu_2^3} = \frac{5.25^2}{4^3} = \frac{27.56}{64} = 0.43\]\(\mu_3 \gt 0\), so the skew is positive (\(\sqrt{\beta_1} = 0.66\)); Pearson's measure agrees: mode 4, \(S_k = (5 - 4)/2 = 0.5\). The 9 pulls the mean above the mode and the long tail is to the right.
Watch out. Swapping the order in the numerator (Mode minus Mean) and getting the sign backwards, or reading "positive skew" as "most values are large" when it means the tail is on the right and most values are on the left.
Practice: problems 18, 19, 20 in the practice sets (last group in the contents).
Kurtosis
Unit I: Descriptive statistics · Topic 8 of 32
Key idea
Skewness describes lopsidedness; kurtosis describes peakedness. Two symmetrical distributions with the same mean and standard deviation can still differ: one tall and narrow with heavy tails, the other flat-topped. Karl Pearson's coefficient \(\beta_2\) measures this using the fourth moment.
- \(\beta_2 = 3\) mesokurtic: the normal curve.
- \(\beta_2 \gt 3\) leptokurtic: more peaked than normal, heavier tails.
- \(\beta_2 \lt 3\) platykurtic: flatter than normal, lighter tails.
\(\gamma_2 = \beta_2 - 3\) (excess kurtosis) is zero for the normal distribution. Skewness from moments is \(\beta_1 = \mu_3^2/\mu_2^3\).
\(\beta_2\) compares the fourth moment, which is dominated by the farthest-out values, with the square of the variance. A large \(\beta_2\) means the data has more of its spread in a few extreme observations (fat tails) than a normal curve would; a small \(\beta_2\) means the spread is evenly distributed with few extremes.
In finance, leptokurtic returns mean crashes and spikes happen more often than a normal model predicts. In quality control, platykurtic measurements mean the process wanders without producing extreme defects.
Kurtosis says nothing about the location or the scale of the data; it is unit-free, like skewness.
How to work it
- Find the mean and the deviations \(x_i - \bar x\).
- Compute \(\mu_2\) (the variance) and \(\mu_4\) (average of the fourth powers of the deviations), weighting by \(f\) for grouped data.
- Form \(\beta_2 = \mu_4/\mu_2^2\).
- Compare with 3: above is leptokurtic, below platykurtic, equal mesokurtic.
Data: \(-2, -1, 0, 1, 2\) (\(\bar x = 0\)).
\[\mu_2 = \frac{4 + 1 + 0 + 1 + 4}{5} = 2\] \[\mu_4 = \frac{16 + 1 + 0 + 1 + 16}{5} = 6.8\] \[\beta_2 = \frac{6.8}{2^2} = 1.7.\]\(\beta_2 \lt 3\): platykurtic, flatter than a normal curve, as a uniform spread of five equally spaced values should be. \(\mu_3 = 0\) too, so \(\beta_1 = 0\): the data is symmetrical.
A second data set. \(2, 4, 4, 4, 5, 5, 7, 9\) (\(\bar x = 5\), \(\mu_2 = 4\)): fourth powers of the deviations \(81, 1, 1, 1, 0, 0, 16, 256\), total 356, \(\mu_4 = 356/8 = 44.5\), \(\beta_2 = \frac{44.5}{4^2} = 2.78\). Slightly platykurtic, even though the single value 9 supplies 256 of the 356: that is how strongly the fourth power favours the extremes.
Watch out. Squaring \(\mu_4\) instead of \(\mu_2\), or comparing \(\beta_2\) with 0 instead of 3. The normal distribution has \(\beta_2 = 3\); only the excess kurtosis \(\beta_2 - 3\) is compared with zero.
Practice: problems 21, 22 in the practice sets (last group in the contents).
Time series: components and models
Unit II: Time series analysis · Topic 9 of 32
Key idea
A time series is a set of observations recorded in time order: daily sales, monthly production, quarterly profits, yearly population. \(y_t\) is the value at time \(t\). The movement looks haphazard, but most of it can be accounted for by four components; what is left is random. Separating them is how business forecasts are built.
- Secular trend (T) the smooth, long-term direction: growth or decline over many years (population, prices, agricultural output). Linear if the series clusters around a straight line, otherwise non-linear.
- Seasonal variation (S) regular, periodic swings within a year, repeating with the same pattern: natural causes (umbrellas in the rainy season, fans in summer) or human conventions (festival and wedding-season sales).
- Cyclical variation (C) oscillations with a period longer than a year: the business cycle of prosperity, recession, depression and recovery.
- Irregular (I) random, unpredictable shocks: strikes, floods, fires, sudden policy changes.
The multiplicative (classical) model treats the components as dependent on each other: seasonal and cyclical effects are proportions of the trend (a 20% seasonal lift is \(S = 1.20\)). The additive model treats them as independent amounts added to the trend (a seasonal lift of 200 units is \(S = +200\)).
Not every series shows every component: barometric readings fluctuate around a constant level with no trend. Deseasonalizing divides (multiplicative) or subtracts (additive) the seasonal component.
How to work it
- Ask how long the pattern takes to repeat: within a year is seasonal, more than a year is cyclical, never (one-off) is irregular.
- Ask whether it is a steady direction over the whole span: that is the trend.
- Decide on a model: multiplicative when swings grow with the level of the series, additive when they stay the same size.
- Isolate the trend first (next two tabs); the other components are studied in what remains.
Ice-cream sales peak every summer: seasonal. An economy expanding for six years then contracting for three: cyclical. A city's population rising steadily for forty years: trend. A factory fire halting output for two months: irregular.
Multiplicative model with \(T = 500\), \(S = 1.2\), \(C = 0.9\), \(I = 1.05\): \(y = 500\times 1.2\times 0.9\times 1.05 = 567\). Additive model with \(T = 500\), \(S = +100\), \(C = -50\), \(I = +5\): \(y = 555\).
Using a seasonal index. Actual sales in a quarter whose seasonal index is 0.90 are 360; deseasonalized sales are \(\frac{360}{0.90} = 400\), the level once the quiet season is allowed for. Forecasting: a trend of 500 in a quarter with index 1.10 gives \(500\times 1.10 = 550\). Under the additive model you would subtract or add the seasonal amount instead.
Watch out. Calling anything that repeats "seasonal". Seasonal means within one year; a multi-year rhythm is cyclical. And in the multiplicative model the components are ratios around 1, not amounts.
Practice: problems 23, 24, 34 in the practice sets (last group in the contents).
Measuring trend: freehand, semi-averages and moving averages
Unit II: Time series analysis · Topic 10 of 32
Key idea
Four methods isolate the secular trend. Three are in this tab; the fourth, least squares, has the next tab to itself. They trade objectivity for effort: a freehand curve is quick but personal, semi-averages are objective but assume a straight line, moving averages smooth away fluctuations but lose values at both ends.
Freehand (graphical). Plot \(y_t\) against \(t\) and draw a smooth curve through the scatter by eye. Merit: a quick estimate. Demerits: depends on individual judgement, so different people get different trends; it cannot be used to project reliably.
Semi-average. Split the data into two equal halves (omit the middle year if the count is odd), average each half, plot the two averages at the midpoints of their halves and join them. Merit: objective, everyone gets the same line. Demerit: assumes the trend is linear.
\[\text{slope}\] \[= \frac{\bar y_{\text{second half}} - \bar y_{\text{first half}}}{\text{distance between the two midpoints}}\]A moving average of period \(n\) replaces each value by the arithmetic mean of \(n\) consecutive values centred on it:
\[MA_t = \frac{y_{t-1} + y_t + y_{t+1}}{3} \quad (n = 3)\] \[MA_t = \frac{y_{t-2} + \cdots + y_{t+2}}{5} \quad (n = 5)\]For an even period (4 quarters, 12 months) the averages fall between time points, so a second 2-item average centres them.
Merit: simple, no complicated mathematics, removes short fluctuations whose period matches \(n\). Demerits: trend values at the beginning and end of the series cannot be obtained; the period must be chosen to match the cycle.
How to work it
- Add the first three values and divide by 3; place the result against the middle (second) time point.
- Drop the first value, add the next, divide by 3; place against the third time point. Continue to the end.
- For an even period, compute the \(n\)-period averages, then average each adjacent pair to centre them on the time points.
- Note which time points have no trend value (the first and last \((n-1)/2\)).
Sales over seven years: \(10, 12, 15, 13, 16, 18, 20\).
3-year moving averages: \(\frac{10+12+15}{3} = 12.33\), \(\frac{12+15+13}{3} = 13.33\), \(\frac{15+13+16}{3} = 14.67\), \(\frac{13+16+18}{3} = 15.67\), \(\frac{16+18+20}{3} = 18\), placed at years 2 to 6. Years 1 and 7 get no trend value.
Semi-averages: seven years, so omit year 4. First half \(10, 12, 15\) averages \(12.33\) at year 2; second half \(16, 18, 20\) averages \(18\) at year 6. Slope \(= \frac{18 - 12.33}{6 - 2} = 1.42\) per year; the trend line passes through \((2, 12.33)\) with that slope, giving \(12.33 + 1.42\times 5 = 19.4\) at year 7.
Centred 4-quarter moving average. Quarterly sales \(30, 50, 60, 40, 34, 54, 64, 44\). 4-quarter totals \(180, 184, 188, 192, 196\) (each sits between two quarters: Q2/Q3, Q3/Q4, …), averages \(45, 46, 47, 48, 49\). Centre by averaging neighbours: \(\frac{45 + 46}{2} = 45.5\), \(46.5\), \(47.5\), \(48.5\), placed against Q3, Q4, Q5, Q6. Shortcut: add adjacent 4-quarter totals and divide by 8, \(\frac{180 + 184}{8} = 45.5\). Two quarters at each end have no trend value, and the seasonal swing of about \(\pm 15\) has been smoothed to a steady rise of 1 per quarter.
Watch out. Placing a moving average against the first year of its group instead of the middle one, and forgetting to centre an even-period average. In the semi-average method with an odd count, the middle value is left out of both halves.
Practice: problems 25, 26, 27, 32 in the practice sets (last group in the contents).
Trend by least squares
Unit II: Time series analysis · Topic 11 of 32
Key idea
Fitting a mathematical curve by least squares is the most objective method: choose the line (or parabola, or exponential) that minimizes the total squared error between the data and the curve. It removes personal bias, gives a trend value for every period, and, unlike moving averages, lets you forecast. Its cost is more arithmetic and a judgement call about which curve to use.
Straight line \(y = a + bx\):
\[\sum y = na + b\sum x\] \[\sum xy = a\sum x + b\sum x^2\]Code the time variable so that \(\sum x = 0\) (odd \(n\): \(\ldots,-2,-1,0,1,2,\ldots\); even \(n\): \(\ldots,-3,-1,1,3,\ldots\) in half-year units). Then the equations uncouple:
\[a = \frac{\sum y}{n}\] \[b = \frac{\sum xy}{\sum x^2}\]Second-degree parabola \(y = a + bx + cx^2\):
\[\sum y = na + b\sum x + c\sum x^2\] \[\sum xy = a\sum x + b\sum x^2 + c\sum x^3\] \[\sum x^2 y = a\sum x^2 + b\sum x^3 + c\sum x^4\]With \(\sum x = \sum x^3 = 0\) the middle equation gives \(b\) directly and the other two give \(a\) and \(c\).
Exponential \(y = ab^x\) (constant percentage growth). Take logs:
\[\log y = \log a + x\log b\] \[\Longrightarrow\ Y = A + Bx\]with \(Y = \log y\), \(A = \log a\), \(B = \log b\): a straight line in \(Y\), fitted by the same normal equations, then \(a = \operatorname{antilog} A\), \(b = \operatorname{antilog} B\). The growth rate per period is \(b - 1\).
Merits: eliminates personal bias; trend values for all periods; enables forecasting. Demerits: the choice of curve is subjective; the calculations are heavier than the other methods.
How to work it
- Code the years as \(x\) with \(\sum x = 0\) and note the units (years, or half-years for even \(n\)).
- Compute \(\sum y\), \(\sum xy\), \(\sum x^2\).
- \(a = \sum y/n\), \(b = \sum xy/\sum x^2\); write \(y = a + bx\) and state the origin and unit of \(x\).
- Trend values: substitute each \(x\). Forecast: substitute the coded \(x\) of the future year.
Sales 2019–2023: \(20, 24, 27, 31, 38\). Code \(x = -2, -1, 0, 1, 2\) (origin 2021, unit one year).
\[\sum y = 140\] \[\sum xy = -40 - 24 + 0 + 31 + 76 = 43\] \[\sum x^2 = 10\] \[a = \frac{140}{5} = 28,\quad b = \frac{43}{10} = 4.3.\] \[y = 28 + 4.3x\]Trend values: \(19.4, 23.7, 28, 32.3, 36.6\). Forecast for 2025 (\(x = 4\)): \(28 + 17.2 = 45.2\). Sales are growing by about 4.3 units per year.
Exponential example: \(2, 4, 8, 16, 32\) has \(\log_{10} y = 0.301, 0.602, 0.903, 1.204, 1.505\), exactly linear with slope \(0.301 = \log 2\): \(b = 2\), the series doubles every year.
Even number of years. Output 2018–2023: \(12, 15, 17, 20, 24, 26\). Code \(x = -5, -3, -1, 1, 3, 5\) (origin midway between 2020 and 2021, unit half a year). \(\sum y = 114\), \(\sum xy = -60 - 45 - 17 + 20 + 72 + 130 = 100\), \(\sum x^2 = 25 + 9 + 1 + 1 + 9 + 25 = 70\).
\[a = \frac{114}{6} = 19,\quad b = \frac{100}{70} = 1.43 \text{ per half-year}\]So \(y = 19 + 1.43x\), growth \(2b = 2.86\) per year. 2024 is two half-years after 2023 (\(x = 5\)), so \(x = 7\): \(19 + 1.43(7) = 29.0\). Trend for 2023 itself: \(19 + 1.43(5) = 26.1\).
Watch out. Forgetting the origin and unit when forecasting: with even \(n\) the code \(x\) is in half-years, so the next year is \(x = n + 1\), not \(x = n/2 + 1\). And \(a\) is the trend at the origin year, not at the first year.
Practice: problems 28, 29, 30, 31, 33 in the practice sets (last group in the contents).
Index numbers: what they are and how to construct one
Unit III: Index numbers · Topic 12 of 32
Key idea
An index number measures the change in a variable, or a group of related variables, over time, place or some other characteristic, expressed as a percentage of a base value of 100: prices, industrial production, sales, imports and exports, the cost of living. They are the pulse of an economy and the standard indicator of inflation or deflation.
Spiegel: a statistical measure designed to show changes in a variable or group of related variables with respect to time, location or other characteristics. Wheldon: a device that shows by its variation changes in a magnitude that cannot be measured accurately or valued directly.
- \(p_0, p_n\) price per unit in the base year and the current (given) year.
- \(q_0, q_n\) quantities in the base and current year.
- \(I_{0n}\) index for year \(n\) with base year \(0\); \(I_{n0}\) the reverse; \(I_{23}\) year 3 with base year 2.
\(I_{0n} = 125\) means prices are 25% above the base year, so purchasing power is \(\frac{100}{125} = 0.80\) of what it was.
- Purpose: no all-purpose index; a consumer price index must not mix in wholesale prices.
- Base period: a normal year (no war, famine, boom, depression), not too distant, and fixed base or chain base.
- Items: only commodities relevant to the purpose and the group studied.
- Data: reliable sources (trade journals, official publications, actual retail quotations).
- Average: geometric mean is theoretically best; arithmetic mean is used in practice for simplicity.
- Weights: unweighted (all items equal) or weighted by importance.
- Formula: many exist; choose by purpose and available data.
How to work it
- Fix the purpose, the base period (set to 100) and the list of items.
- Collect base and current prices (and quantities, if weighting).
- Choose a formula from the next tabs and compute \(I_{0n}\).
- Interpret: \(I_{0n} - 100\) is the percentage change since the base; \(100/I_{0n}\) is the purchasing power of one unit of money relative to the base.
A consumer price index with base 2015 reads 118 in 2023. Prices are 18% higher than in 2015. A rupee (or dollar) in 2023 buys \(\frac{100}{118} = 0.847\) of what it bought in 2015. A salary of 59,000 in 2023 is worth \(\frac{59{,}000}{1.18} = 50{,}000\) in 2015 money (the real wage).
Base shifting: an index 2015 = 100, 2020 = 125, 2023 = 150 rebased to 2020 becomes 2015 = \(\frac{100}{125}\times 100 = 80\), 2020 = 100, 2023 = \(\frac{150}{125}\times 100 = 120\).
A cost-of-living index from group indices. Household budgets split food 50, housing 20, clothing 10, other 20 (weights summing to 100); the group price indices are 120, 110, 105, 115. Weighted average \(= \frac{50(120) + 20(110) + 10(105) + 20(115)}{100} = \frac{6000 + 2200 + 1050 + 2300}{100} = 115.5\). The cost of living is up 15.5%; food, with half the weight, contributes 6,000 of the 11,550 points. A simple average of the four indices, 112.5, would understate the rise by ignoring how budgets are actually spent.
Watch out. Treating an index of 118 as "118%" of something other than the base, or subtracting indices from different base years. A change from 120 to 150 is a 25% rise in prices, not 30 percentage points of anything.
Practice: problems 35, 36, 49, 50 in the practice sets (last group in the contents).
Unweighted indices: simple aggregative and price relatives
Unit III: Index numbers · Topic 13 of 32
Key idea
The simplest price indices give every commodity the same importance. The simple aggregative method compares total prices; the relative method first expresses each price as a percentage of its base price and then averages those percentages. The second avoids a flaw of the first: dependence on the units in which prices are quoted.
Add the current-year prices of all items, divide by the sum of base-year prices. Quick, but a commodity quoted in a large unit (per quintal) swamps one quoted in a small unit (per kg), so changing a unit changes the index.
\(k\) is the number of commodities. Each relative is a pure percentage, so units no longer matter. The GM version is preferred in theory (it satisfies the time reversal test) and the AM version in practice.
How to work it
- List \(p_0\) and \(p_n\) for each commodity in consistent units.
- Simple aggregative: total each column and divide, times 100.
- Relatives: compute \(p_n/p_0\times 100\) for each item.
- Average the relatives with the AM (sum over \(k\)) or the GM (\(k\)th root of the product, or antilog of the mean log).
Base prices \(10, 20, 50\); current prices \(12, 25, 55\).
\[\text{Simple aggregative: } \frac{12 + 25 + 55}{10 + 20 + 50}\times 100\] \[= \frac{92}{80}\times 100 = 115.\]Relatives: \(120, 125, 110\).
\[\text{AM of relatives} = \frac{120 + 125 + 110}{3} = 118.33\] \[\text{GM of relatives} = \sqrt[3]{120\times 125\times 110} = \sqrt[3]{1{,}650{,}000}\] \[= 118.2.\]The aggregative index is dragged toward the 10% rise of the expensive item (base price 50); the relatives treat all three rises equally.
The GM by logs, which is how it is done without a cube-root key: \(\log_{10}120 = 2.0792\), \(\log_{10}125 = 2.0969\), \(\log_{10}110 = 2.0414\); mean \(= \frac{6.2175}{3} = 2.0725\); antilog \(= 118.2\). The GM is always a little below the AM of the same relatives.
Watch out. Reporting the average of the relatives as a decimal (1.18) or forgetting the \(\times 100\). And in the aggregative method, changing one item's unit (per kg to per quintal) changes the index: that is the method's known defect, not a calculation error.
Practice: problems 37, 38, 39 in the practice sets (last group in the contents).
Weighted aggregative indices
Unit III: Index numbers · Topic 14 of 32
Key idea
Wheat matters more than saffron in a cost-of-living index. Weighted aggregative indices multiply each price by a quantity so that important commodities count for more. The formulas differ only in which quantities serve as weights: base-year, current-year, both, or a fixed basket.
Laspeyres asks: what does the base-year basket cost at today's prices? Paasche asks: what would today's basket have cost at base-year prices? Laspeyres keeps a fixed basket; Paasche updates it every period.
Marshall–Edgeworth uses both years' quantities together; Kelly uses one fixed set of quantities that need not belong to either year, which makes it easy to keep comparable over time.
Fisher's index is "ideal" because it is the only common formula that passes both the time reversal and factor reversal tests. Laspeyres tends to overstate price rises (people substitute away from dearer goods), Paasche to understate them; the averages sit between.
How to work it
- Make a table with \(p_0, q_0, p_n, q_n\) and the four products \(p_0q_0\), \(p_nq_0\), \(p_0q_n\), \(p_nq_n\); total each column.
- Laspeyres \(= \frac{\sum p_nq_0}{\sum p_0q_0}\times 100\); Paasche \(= \frac{\sum p_nq_n}{\sum p_0q_n}\times 100\).
- Dorbish–Bowley is their arithmetic mean, Fisher their geometric mean.
- Marshall–Edgeworth: add \(q_0 + q_n\) first, then multiply by \(p_n\) and \(p_0\). Kelly: use the given fixed \(q\).
A: \(p_0 = 10, q_0 = 4, p_n = 12, q_n = 5\). B: \(p_0 = 20, q_0 = 3, p_n = 25, q_n = 2\).
\[\sum p_0q_0 = 40 + 60 = 100\] \[\sum p_nq_0 = 48 + 75 = 123\] \[\sum p_0q_n = 50 + 40 = 90\] \[\sum p_nq_n = 60 + 50 = 110.\] \[L = \frac{123}{100}\times 100 = 123\] \[P = \frac{110}{90}\times 100 = 122.22\] \[DB = \frac{123 + 122.22}{2} = 122.61\] \[F = \sqrt{123\times 122.22} = 122.61.\] \[ME = \frac{9(12) + 5(25)}{9(10) + 5(20)}\times 100 = \frac{233}{190}\times 100\] \[= 122.63.\]With fixed weights \(q = (4, 3)\) Kelly's index equals Laspeyres here, 123. All six agree that prices rose about 22 to 23%.
In words: \(L = 123\) says the basket people bought in the base year (4 of A, 3 of B) costs 23% more at current prices; \(P = 122.22\) says the basket they buy now (5 of A, 2 of B) would have cost 18.2% less at base prices, equivalently prices are 22.2% higher. A manager quoting one number should name the formula and the base year with it.
Watch out. Mixing the weights: \(\sum p_n q_0\) over \(\sum p_0 q_n\) is not any index. Laspeyres uses \(q_0\) in both numerator and denominator; Paasche uses \(q_n\) in both. Also, Fisher is the geometric mean of the two indices, not the square root of their sum.
Practice: problems 40, 41, 42 in the practice sets (last group in the contents).
Weighted relatives, quantity indices and the value index
Unit III: Index numbers · Topic 15 of 32
Key idea
Two more members of the index family. A weighted average of relatives averages the price relatives with weights, and turns out to reproduce Laspeyres or Paasche depending on the weights. A quantity index measures changes in physical volume instead of price, using the same formulas with \(p\) and \(q\) swapped. The value index tracks total expenditure.
With \(w = p_0q_0\) (base-year values) this is exactly Laspeyres:
\[\frac{\sum\left(\frac{p_n}{p_0}\times 100\right)p_0q_0}{\sum p_0q_0} = \frac{\sum p_nq_0}{\sum p_0q_0}\times 100\]With \(w = p_0q_n\) it is exactly Paasche. The relatives form is convenient when only percentage changes and expenditure shares are published.
Quantity indices measure production, consumption or sales volume; the value index measures total spending, and the factor reversal test (next tab) says price index times quantity index should give it.
How to work it
- Compute each price relative \(R = p_n/p_0\times 100\) and its weight \(w\) (usually \(p_0q_0\)).
- Multiply, sum, divide by \(\sum w\).
- For a quantity index, write the chosen price formula and exchange every \(p\) with \(q\): the prices become the weights.
- For the value index divide total current spending by total base spending.
A: \(p_0 = 10, q_0 = 4, p_n = 12, q_n = 5\); B: \(p_0 = 20, q_0 = 3, p_n = 25, q_n = 2\). Relatives \(R_A = 120\), \(R_B = 125\); weights \(w = p_0q_0 = 40, 60\).
\[I_{0n} = \frac{120(40) + 125(60)}{100} = \frac{4800 + 7500}{100}\] \[= 123 \ \ (= \text{Laspeyres}).\] \[\text{Laspeyres quantity: } \frac{\sum q_np_0}{\sum q_0p_0} = \frac{90}{100}\times 100\] \[= 90\] \[\text{Paasche quantity: } \frac{110}{123}\times 100 = 89.43\] \[V_{0n} = \frac{110}{100}\times 100 = 110.\]Prices rose about 23%, quantities fell about 10%, and total spending rose 10%: \(1.23\times 0.894 \approx 1.10\), as the factor reversal idea predicts.
With current-year values as weights, \(w = p_0q_n = 50, 40\): \(I_{0n} = \frac{120(50) + 125(40)}{90} = \frac{11{,}000}{90} = 122.22\), exactly Paasche from the previous tab. Same relatives, different weights, different index: the weights decide whose price rise counts for more.
Watch out. Weighting relatives by quantities instead of values, and in a quantity index forgetting that the weights are now prices. The value index is not the product of a Laspeyres price and Laspeyres quantity index; only Fisher's pair multiplies to it exactly.
Practice: problems 43, 44 in the practice sets (last group in the contents).
Tests of adequacy and chain base indices
Unit III: Index numbers · Topic 16 of 32
Key idea
With so many formulas, which is best? Three tests of adequacy check whether a formula behaves consistently when time is reversed, when price and quantity swap roles, and across a chain of years. Separately, the chain base method builds an index year by year from link relatives instead of comparing everything with one fixed base.
- Pass time reversal simple aggregative, Marshall–Edgeworth, Fisher, simple GM of relatives, weighted aggregative and weighted GM of relatives (with constant weights). Laspeyres and Paasche fail.
- Pass factor reversal Fisher's ideal index only.
- Pass circular simple aggregative and simple GM of relatives; weighted versions only with constant weights.
\(CI_t\) is this year's chain index, \(LR_t\) this year's link relative and \(CI_{t-1}\) last year's chain index.
With Laspeyres links: \(I_{01} = \frac{\sum p_1q_0}{\sum p_0q_0}\times 100\), \(I_{12} = \frac{\sum p_2q_1}{\sum p_1q_1}\times 100\), and so on; chaining multiplies them: \(I_{02}' = I_{01}\times I_{12}/100\).
Fixed base: easy to understand, simple (denominator fixed), rigid, cannot easily add or drop items or change weights, affected by seasonal variation, unaffected by a missing year. Chain base: more realistic, compares adjacent periods, flexible on items and weights, least affected by seasonal variation, but tedious, one error propagates, a missing year breaks the chain, suitable for short periods.
How to work it
- Time reversal: compute the index forward (base 0, year \(n\)), then swap the roles of 0 and \(n\) and compute again; multiply (as decimals). Fisher gives exactly 1.
- Factor reversal: compute Fisher's price and quantity indices and multiply; compare with \(\sum p_nq_n/\sum p_0q_0\).
- Chain base: compute each year's link relative against the previous year.
- Multiply the link relatives successively (dividing by 100 each time) to get chain indices on the first year as base; check the last against the direct fixed-base ratio.
Data from the weighted tab: \(\sum p_0q_0 = 100\), \(\sum p_nq_0 = 123\), \(\sum p_0q_n = 90\), \(\sum p_nq_n = 110\). Forward Fisher \(F_{0n} = \sqrt{1.23\times 1.2222} = 1.2261\). Backward (swap 0 and \(n\)): \(F_{n0} = \sqrt{\frac{90}{110}\times\frac{100}{123}} = \sqrt{0.8182\times 0.8130} = 0.8156\). Product \(1.2261\times 0.8156 = 1.000\): time reversal passed. Laspeyres: \(1.23\times\frac{90}{110} = 1.006 \ne 1\): failed.
Factor reversal: Fisher quantity \(= \sqrt{\frac{90}{100}\times\frac{110}{123}} = \sqrt{0.9\times 0.8943} = 0.8971\); \(1.2261\times 0.8971 = 1.100 = \frac{110}{100}\). Passed.
Chain: prices 50, 55, 60.5, 57 in 2020–2023. Link relatives 110, 110, 94.21. Chain indices (2020 = 100): 110; \(110\times 110/100 = 121\); \(121\times 94.21/100 = 114\). Check: \(57/50 = 1.14\).
Converting the other way. Given fixed-base indices 100, 120, 150, 165, the link relatives are \(\frac{120}{100}\times 100 = 120\), \(\frac{150}{120}\times 100 = 125\), \(\frac{165}{150}\times 100 = 110\): each year's index over the previous year's. Given link relatives 120 and 125, the fixed-base series is 100, 120, \(\frac{125\times 120}{100} = 150\). The two forms carry the same information; which to publish depends on whether readers want "since the base year" or "since last year".
Watch out. Testing with the factor of 100 left in (the products should be 1 and the value ratio, not 10,000). In chaining, multiplying link relatives without dividing by 100 at each step, or chaining to the wrong previous index.
Practice: problems 45, 46, 47, 48 in the practice sets (last group in the contents).
Correlation and Karl Pearson's coefficient
Unit III: Correlation and regression · Topic 17 of 32
Key idea
Income and expenditure, price and demand, advertising and sales: two variables that move together. Correlation measures the strength and direction of a linear relationship between them. A scatter diagram gives the picture; Karl Pearson's coefficient \(r\) gives the number.
Plot \((x, y)\) pairs. Points rising to the right: positive correlation; falling: negative; a shapeless cloud: zero; points on a straight line: perfect (\(+1\) or \(-1\)). Demerits of the diagram: unsuitable for many observations and gives only a vague idea, not an amount.
\[r_{XY} = \frac{\operatorname{Cov}(X,Y)}{\sigma_X\sigma_Y}\] \[= \frac{\frac1n\sum(x - \bar x)(y - \bar y)}{\sqrt{\frac1n\sum(x - \bar x)^2}\sqrt{\frac1n\sum(y - \bar y)^2}}\] \[r_{XY}\] \[= \frac{\frac1n\sum xy - \bar x\bar y}{\sqrt{\frac1n\sum x^2 - \bar x^2}\sqrt{\frac1n\sum y^2 - \bar y^2}}\] \[= \frac{n\sum xy - \sum x\sum y}{\sqrt{\left(n\sum x^2 - (\sum x)^2\right)\left(n\sum y^2 - (\sum y)^2\right)}}\]- Independent of origin and scale shifting or rescaling \(x\) or \(y\) (changing units, subtracting a constant) leaves \(r\) unchanged; this is why coding simplifies the arithmetic.
- Pure number no units: height in inches against weight in kg still gives a plain number.
- Bounded \(-1 \le r \le +1\). Values near \(\pm 1\) mean a strong linear relation; near 0, none.
\(r^2\) (the coefficient of determination) is the fraction of the variation in \(y\) explained by the linear relation with \(x\). Correlation is about linear association and says nothing about cause.
How to work it
- Make columns \(x, y, xy, x^2, y^2\) and total each.
- Substitute into the \(n\sum xy - \sum x\sum y\) form, or compute \(\bar x, \bar y\), the covariance and the two standard deviations.
- Check \(-1 \le r \le 1\); an impossible value means an arithmetic slip.
- Interpret direction (sign) and strength (size), and report \(r^2\) if asked.
\(x: 1, 2, 3, 4, 5\); \(y: 2, 4, 5, 4, 5\). \(n = 5\), \(\sum x = 15\), \(\sum y = 20\), \(\sum xy = 2 + 8 + 15 + 16 + 25 = 66\), \(\sum x^2 = 55\), \(\sum y^2 = 86\).
\[r = \frac{5(66) - 15(20)}{\sqrt{\left(5(55) - 225\right)\left(5(86) - 400\right)}}\] \[= \frac{330 - 300}{\sqrt{50\times 30}} = \frac{30}{38.73} = 0.775.\]A fairly strong positive linear relationship; \(r^2 = 0.60\), so 60% of the variation in \(y\) goes with \(x\). Via covariance: \(\operatorname{Cov} = 66/5 - 3(4) = 1.2\), \(\sigma_x = \sqrt{11 - 9} = \sqrt2\), \(\sigma_y = \sqrt{17.2 - 16} = \sqrt{1.2}\), and \(r = 1.2/(\sqrt2\sqrt{1.2}) = 0.775\).
Reading the size. A common working scale: \(|r|\) below 0.3 weak, 0.3 to 0.7 moderate, above 0.7 strong, and exactly 0 no linear relation (a curved one can still exist). So 0.775 is a strong positive correlation; \(-0.2\) is a weak negative one. In the formulas \(n\) is the number of pairs, \(\operatorname{Cov}(X, Y)\) the average product of paired deviations (positive when large \(x\) go with large \(y\)), and \(\sigma_x, \sigma_y\) scale it into \([-1, 1]\).
Watch out. Getting \(|r| \gt 1\) and not noticing; it is always an error. Confusing \(\sum x^2\) with \((\sum x)^2\). And reading a strong correlation as cause and effect.
Practice: problems 51, 52, 53, 63 in the practice sets (last group in the contents).
Spearman's rank correlation
Unit III: Correlation and regression · Topic 18 of 32
Key idea
Beauty, intelligence, taste, service quality: qualities that can be ranked but not measured. Spearman's rank correlation \(\rho\) applies Pearson's idea to the ranks instead of the values. It is also useful when the data has extreme values, since ranks tame them.
\(R_x, R_y\) are the ranks of the \(i\)th item under the two variables (or two judges), \(n\) the number of items. Like \(r\), \(\rho\) lies between \(-1\) and \(+1\).
Tied ranks. Items with equal values share the average of the ranks they would have occupied; for each group of \(m\) tied items add \(\frac{m(m^2 - 1)}{12}\):
\[\rho = 1 - \frac{6\left(\sum d_i^2 + \sum\frac{m(m^2 - 1)}{12}\right)}{n(n^2 - 1)}\]- \(\rho = +1\) the two rankings agree exactly.
- \(\rho = -1\) one ranking is the exact reverse of the other.
- \(\rho \approx 0\) no agreement.
Use it for qualitative data (rankings by judges, preference orders), for ordinal data, and when only ranks are available. If actual values are given, rank them first (1 for the largest or the smallest, as long as both variables are ranked the same way).
For data without ties, \(\rho\) equals Pearson's \(r\) computed on the ranks.
How to work it
- Rank each variable (same direction for both). Give tied items the average of the ranks they span.
- Compute \(d = R_x - R_y\) and \(d^2\) for each item; sum the squares.
- Add \(\frac{m(m^2-1)}{12}\) for each tie group of size \(m\), if any.
- Substitute into \(\rho = 1 - \frac{6(\ldots)}{n(n^2-1)}\).
Five contestants ranked by judge A: \(1, 2, 3, 4, 5\) and by judge B: \(2, 1, 4, 3, 5\). Differences \(d = -1, 1, -1, 1, 0\), \(\sum d^2 = 4\).
\[\rho = 1 - \frac{6(4)}{5(24)} = 1 - 0.2 = 0.8.\]Scores \(x: 10, 12, 12, 15, 18\) rank as \(1, 2.5, 2.5, 4, 5\) (the two 12s share ranks 2 and 3). The tie group has \(m = 2\), so add \(\frac{2(4 - 1)}{12} = 0.5\) to \(\sum d^2\) before using the formula.
Finishing it: suppose \(y: 20, 25, 23, 30, 35\), ranks \(1, 3, 2, 4, 5\). Then \(d = 0, -0.5, 0.5, 0, 0\) and \(\sum d^2 = 0.5\); with the correction, \(0.5 + 0.5 = 1\).
\[\rho = 1 - \frac{6(1)}{5(24)} = 1 - 0.05 = 0.95.\]Without the correction \(\rho\) would come out as \(0.975\): ties, left uncorrected, overstate the agreement.
Watch out. Ranking one variable from the top and the other from the bottom, which flips the sign of \(\rho\). Forgetting to average tied ranks (the ranks must still sum to \(1 + 2 + \cdots + n\)).
Practice: problems 54, 55 in the practice sets (last group in the contents).
Regression lines and equations
Unit III: Correlation and regression · Topic 19 of 32
Key idea
Correlation says how closely two variables move together; regression uses one to predict the other. The variable being predicted is the dependent (regressed, explained) variable; the one used to predict is the independent (regressor, predictor) variable. There are always two regression lines, one for each direction of prediction.
Y on X (predict \(y\) from \(x\)): \(y = a + bx\), with normal equations
\[\sum y = na + b\sum x\] \[\sum xy = a\sum x + b\sum x^2\]X on Y (predict \(x\) from \(y\)): \(x = a' + b'y\), with \(\sum x = na' + b'\sum y\), \(\sum xy = a'\sum y + b'\sum y^2\).
Equivalent form through the means:
\[y - \bar y = b_{yx}(x - \bar x)\] \[b_{yx} = r\frac{\sigma_y}{\sigma_x} = \frac{n\sum xy - \sum x\sum y}{n\sum x^2 - (\sum x)^2}\] \[x - \bar x = b_{xy}(y - \bar y)\] \[b_{xy} = r\frac{\sigma_x}{\sigma_y} = \frac{n\sum xy - \sum x\sum y}{n\sum y^2 - (\sum y)^2}\]The line of Y on X minimizes the squared vertical errors (in \(y\)), so it is the best line for predicting \(y\). Using it to predict \(x\) is not best, because it never minimized errors in \(x\). For that, the line of X on Y minimizes horizontal errors. Only when \(r = \pm 1\) do the two lines coincide.
- \(b_{yx}\) regression coefficient of Y on X: change in \(y\) per unit change in \(x\).
- \(b_{xy}\) regression coefficient of X on Y: change in \(x\) per unit change in \(y\).
- Both lines pass through \((\bar x, \bar y)\).
Predicting far outside the observed range (extrapolation) is unreliable even with a high \(r\).
How to work it
- Decide which variable is to be predicted; that is the dependent variable and names the line (Y on X predicts \(y\)).
- Compute the regression coefficient from the sums (or from \(r\), \(\sigma_x\), \(\sigma_y\)).
- Write the line through \((\bar x, \bar y)\): \(y - \bar y = b_{yx}(x - \bar x)\) and simplify to \(y = a + bx\).
- Predict by substituting; check that the point lies in or near the data range.
\(x: 1, 2, 3, 4, 5\); \(y: 2, 4, 5, 4, 5\); \(\bar x = 3\), \(\bar y = 4\), \(n\sum xy - \sum x\sum y = 30\), \(n\sum x^2 - (\sum x)^2 = 50\), \(n\sum y^2 - (\sum y)^2 = 30\).
\[b_{yx} = \frac{30}{50} = 0.6\] \[y - 4 = 0.6(x - 3) \ \Rightarrow\ y = 2.2 + 0.6x.\] \[b_{xy} = \frac{30}{30} = 1\] \[x - 3 = 1(y - 4) \ \Rightarrow\ x = y - 1.\]Predicted \(y\) at \(x = 6\): \(2.2 + 3.6 = 5.8\). Check: \(r = \sqrt{b_{yx}b_{xy}} = \sqrt{0.6} = 0.775\), matching the correlation tab, and both lines pass through \((3, 4)\).
From summary statistics only. \(\bar x = 20\), \(\bar y = 50\), \(\sigma_x = 4\), \(\sigma_y = 6\), \(r = 0.8\). \(b_{yx} = r\frac{\sigma_y}{\sigma_x} = 0.8\times\frac{6}{4} = 1.2\); \(b_{xy} = 0.8\times\frac{4}{6} = 0.533\).
\[y - 50 = 1.2(x - 20)\ \Rightarrow\ y = 26 + 1.2x\] \[x - 20 = 0.533(y - 50)\ \Rightarrow\ x = 0.533y - 6.67\]Predicted \(y\) at \(x = 25\): \(26 + 30 = 56\). Predicted \(x\) at \(y = 62\): \(0.533(62) - 6.67 = 26.4\) (from the X on Y line, not by inverting the first). Check: \(b_{yx}b_{xy} = 0.64 = r^2\).
Watch out. Using the Y on X line to predict \(x\) by solving it backwards. And mixing the denominators: \(b_{yx}\) divides by the \(x\) sum of squares, \(b_{xy}\) by the \(y\) sum of squares; the numerator is the same for both.
Practice: problems 56, 57, 58, 62 in the practice sets (last group in the contents).
Properties of regression coefficients
Unit III: Correlation and regression · Topic 20 of 32
Key idea
The two regression coefficients and the correlation coefficient are tied together by a handful of identities. They let you recover \(r\) from two regression lines, spot an impossible pair of coefficients, decide which of two given equations is which line, and find the means from the point where the lines cross.
- \(r\) is the geometric mean of the regression coefficients: \(r = \pm\sqrt{b_{yx}\,b_{xy}}\), with the sign of the coefficients.
- The arithmetic mean of the regression coefficients is at least \(|r|\): \(\frac{b_{yx} + b_{xy}}{2} \ge |r|\).
- Both coefficients cannot exceed 1 in magnitude at the same time (their product is \(r^2 \le 1\)).
- Covariance, \(r\), \(b_{yx}\) and \(b_{xy}\) all have the same sign.
- The two regression lines intersect at \((\bar x, \bar y)\).
- The angle between the lines depends on \(r\): perpendicular when \(r = 0\), coincident when \(r = \pm 1\).
Also: \(\dfrac{b_{yx}}{b_{xy}} = \dfrac{\sigma_y^2}{\sigma_x^2}\), so the ratio of coefficients gives the ratio of variances.
Given two regression equations, assume one is Y on X and solve it for \(y\) (coefficient of \(x\) is \(b_{yx}\)); solve the other for \(x\) (coefficient of \(y\) is \(b_{xy}\)). If \(b_{yx}b_{xy} \le 1\) the assumption is consistent and \(r = \pm\sqrt{b_{yx}b_{xy}}\). If the product exceeds 1, the assumption was wrong: swap the roles and redo.
Solving the two equations simultaneously gives \((\bar x, \bar y)\), because both lines pass through it.
If \(\sigma_x\) is given as well, \(\sigma_y = \sigma_x\sqrt{b_{yx}/b_{xy}}\).
How to work it
- Solve the two equations together for \(x\) and \(y\): that point is \((\bar x, \bar y)\).
- Take one equation as Y on X, solve for \(y\), read \(b_{yx}\); take the other as X on Y, solve for \(x\), read \(b_{xy}\).
- Check \(b_{yx}b_{xy} \le 1\); if not, swap.
- \(r = \pm\sqrt{b_{yx}b_{xy}}\) with the common sign of the coefficients.
Regression lines: \(8x - 10y + 66 = 0\) and \(40x - 18y = 214\), with \(\sigma_x^2 = 9\).
Means: from the first, \(x = \frac{10y - 66}{8}\); substituting, \(5(10y - 66) - 18y = 214\), so \(32y = 544\), \(\bar y = 17\), \(\bar x = \frac{170 - 66}{8} = 13\).
Coefficients: first as Y on X: \(y = 0.8x + 6.6\), \(b_{yx} = 0.8\). Second as X on Y: \(x = 0.45y + 5.35\), \(b_{xy} = 0.45\). Product \(0.36 \le 1\), consistent.
\[r = +\sqrt{0.36} = 0.6\] \[\sigma_y = \sigma_x\sqrt{\frac{b_{yx}}{b_{xy}}} = 3\sqrt{\frac{0.8}{0.45}} = 4.\](Check: \(b_{yx} = r\sigma_y/\sigma_x = 0.6\times 4/3 = 0.8\).)
When the first guess fails. Lines \(2x + 3y = 12\) and \(4x + y = 10\). Try the second as Y on X: \(y = 10 - 4x\), \(b_{yx} = -4\); the first as X on Y: \(x = 6 - 1.5y\), \(b_{xy} = -1.5\). Product \(6 \gt 1\): impossible, so swap. First as Y on X: \(y = 4 - \frac23 x\), \(b_{yx} = -0.667\); second as X on Y: \(x = 2.5 - 0.25y\), \(b_{xy} = -0.25\). Product \(0.167\), so \(r = -\sqrt{0.167} = -0.41\) (negative, like both coefficients). Means: \(y = 10 - 4x\) into the first gives \(2x + 30 - 12x = 12\), \(\bar x = 1.8\), \(\bar y = 2.8\).
Watch out. Accepting \(b_{yx}b_{xy} \gt 1\), which would make \(|r| \gt 1\); it means the equations were assigned to the wrong lines. Also, \(r\) takes the sign of the coefficients: two negative coefficients give a negative \(r\), not \(+\sqrt{\cdot}\).
Practice: problems 59, 60, 61, 64 in the practice sets (last group in the contents).
Probability: experiments, sample spaces and events
Unit IV: Probability and distributions · Topic 21 of 32
Key idea
Probability numerically measures the uncertainty of an event: "it will probably rain", "this share will likely double". Before defining it, the vocabulary: an experiment produces outcomes, a random experiment produces outcomes that vary by chance, the sample space collects them all, and events are the subsets we care about.
- Experiment an operation with well-defined outcomes (toss a coin, roll a die).
- Random experiment repeated under identical conditions, the outcome is not unique but is one of the possibilities.
- Sample space \(S\) the set of all possible outcomes; each outcome is a sample point. Two coins: \(S = \{HH, HT, TH, TT\}\).
- Event any subset of \(S\). "A prime on one die": \(E = \{2, 3, 5\}\).
- Exhaustive events together they cover every possible outcome.
- Equally likely each has the same chance (the six faces of a fair die).
- Mutually exclusive cannot happen together in one trial (head and tail; "less than 3" and "more than 4").
- Complementary \(A\) and \(B\) are mutually exclusive and exhaustive (odd and even on a die; rain and no rain). \(P(A) + P(B) = 1\).
- Independent one occurring does not change the chance of the other (two tosses of a coin).
- Dependent one occurring changes the other's chance (drawing cards without replacement).
Mutually exclusive events with positive probability are never independent: if one happens, the other cannot.
How to work it
- Write the sample space, or at least count it (products of choices, combinations).
- Describe the event as a subset and count its outcomes.
- Decide what relation the events have: exclusive, complementary, independent, dependent. This picks the theorem to use.
- Compute, then check the result lies in \([0, 1]\).
Two coins: \(S = \{HH, HT, TH, TT\}\), four equally likely points. "At least one tail" \(= \{HT, TH, TT\}\), probability \(\tfrac34\). "Two heads" and "at least one tail" are complementary. "First is a head" and "second is a head" are independent, not exclusive (both happen for \(HH\)).
Two dice: 36 points. "Sum is 7" has 6 points, probability \(\tfrac16\). "Sum is 7" and "doubles" are mutually exclusive (doubles have even sums) but not complementary (a sum of 5 is neither).
Counting with combinations. A committee of 3 is chosen at random from 5 men and 4 women. Total sample points \(\binom93 = \frac{9\cdot 8\cdot 7}{3\cdot 2\cdot 1} = 84\), all equally likely. "Exactly 2 men": choose 2 of the 5 men and 1 of the 4 women, \(\binom52\binom41 = 10\times 4 = 40\) ways, so \(P = \frac{40}{84} = 0.476\). Use combinations when the order of selection does not matter, which is nearly always for committees, hands of cards and samples.
Watch out. Treating mutually exclusive and independent as the same thing, and treating mutually exclusive as complementary (complementary also requires that one of them must happen).
Practice: problem 65 in the practice sets (last group in the contents).
Definitions of probability
Unit IV: Probability and distributions · Topic 22 of 32
Key idea
Probability has been defined four ways, each fixing a weakness of the one before: the classical ratio of favourable to total outcomes, the empirical limit of a relative frequency, the subjective degree of belief, and the axiomatic rules that any probability must obey.
Classical (mathematical). If an experiment has \(n\) mutually exclusive, exhaustive and equally likely outcomes and \(m\) of them favour \(A\):
\[P(A) = \frac{m}{n}\] \[= \frac{\text{favourable outcomes}}{\text{total equally likely outcomes}}\] \[0 \le P(A) \le 1\]Limitations: fails when outcomes are not equally likely (a biased coin), when there are infinitely many outcomes, or when the total is unknown beforehand.
Empirical (statistical). If \(A\) occurs \(m\) times in \(n\) independent trials,
\[P(A) = \lim_{n\to\infty}\frac{m}{n}\]provided the limit exists. Limitations: conditions may not stay unchanged over a long series; the relative frequency may not settle to a unique limit.
Subjective. Probability as a degree of belief based on the available evidence: an expert says there is a 75% chance a share price doubles next month. Limitation: different people assign different probabilities to the same evidence.
Axiomatic (modern). Assign each event \(A_i\) of a finite sample space \(S\) a number \(P(A_i)\) such that
\[\text{(i) } 0 \le P(A_i) \le 1\] \[\text{(ii) } P(S) = 1\] \[\text{(iii) } P(A_1\cup A_2\cup\cdots\cup A_n)\] \[= P(A_1) + \cdots + P(A_n) \text{ for mutually exclusive } A_i.\]Everything else (complement rule, addition theorem) follows from these three.
How to work it
- Equally likely, countable outcomes (coins, dice, cards, lottery): classical, count and divide.
- Data from repeated trials or records (defect rates, claim frequencies): empirical, use the observed relative frequency.
- One-off judgements with no repeatable experiment (a product launch succeeding): subjective.
- Whatever the source, the numbers must satisfy the axioms: between 0 and 1, total 1, additive over exclusive events.
Classical: a prime on a fair die, \(P = \frac{3}{6} = \frac12\); two heads in three tosses, 3 favourable of 8, \(P = \frac38\).
Empirical: 2,000 bulbs tested, 40 fail early, so \(P(\text{early failure}) \approx \frac{40}{2000} = 0.02\); 1,000 tosses of a worn coin give 520 heads, \(P(H) \approx 0.52\) (the classical \(0.5\) does not apply to a biased coin).
Subjective: a manager puts the chance of winning a contract at 60%.
Axioms as a check: a forecaster who says "rain 50%, cloudy 30%, clear 30%" for tomorrow has broken axiom (iii), since the three outcomes are mutually exclusive and exhaustive yet the probabilities add to 1.1; one of the figures must come down. Any probability quoted as 120% or \(-0.1\) breaks axiom (i) outright.
Watch out. Using the classical formula when outcomes are not equally likely ("it either rains or it doesn't, so 50%"). Probabilities above 1 or below 0, and sets of probabilities that do not add to 1, violate the axioms.
Practice: problem 66 in the practice sets (last group in the contents).
Addition, multiplication, conditional probability and Bayes' theorem
Unit IV: Probability and distributions · Topic 23 of 32
Key idea
Three theorems do the work in probability problems. Addition handles "A or B", multiplication handles "A and B" (with conditional probability for dependent events), and Bayes' theorem reverses a conditional probability: from "probability of the evidence given each cause" to "probability of each cause given the evidence".
the probability of \(A\) given that \(B\) has occurred.
\[P(A\cap B) = P(A)\,P(B\mid A) = P(B)\,P(A\mid B)\] \[P(A\cap B) = P(A)\,P(B) \text{ if independent}\]Complement: \(P(A') = 1 - P(A)\). "At least one" is usually easiest as 1 minus "none".
If \(A_1, A_2, \ldots, A_n\) are mutually exclusive and exhaustive with \(P(A_i) \gt 0\), and \(B\) is any event with \(P(B) \ne 0\):
\[P(A_i\mid B) = \frac{P(A_i)\,P(B\mid A_i)}{\sum_{r=1}^{n} P(A_r)\,P(B\mid A_r)}\]The denominator is \(P(B)\), built from the multiplication theorem along each cause and the addition theorem across the exclusive causes. The \(P(A_i)\) are prior probabilities; \(P(A_i\mid B)\) are posterior probabilities after seeing \(B\).
Typical use: a defective item is found; which machine most likely made it? A test is positive; what is the chance the condition is really present?
How to work it
- List the causes \(A_i\) with their prior probabilities (they must sum to 1).
- Write \(P(B\mid A_i)\) for the observed event under each cause.
- Compute \(P(B) = \sum P(A_r)P(B\mid A_r)\).
- Divide the branch of interest by \(P(B)\). The posteriors sum to 1 across all causes.
One card: \(P(\text{king or heart}) = \frac{4}{52} + \frac{13}{52} - \frac{1}{52} = \frac{16}{52} = \frac{4}{13}\). Two cards without replacement: \(P(\text{both aces}) = \frac{4}{52}\cdot\frac{3}{51} = \frac{1}{221}\).
Machine A makes 60% of output with 2% defective; machine B makes 40% with 5% defective. An item is defective; probability it came from A:
\[P(D) = 0.6(0.02) + 0.4(0.05) = 0.012 + 0.020 = 0.032\] \[P(A\mid D) = \frac{0.012}{0.032} = 0.375.\]A makes most of the items but B makes most of the defects.
Conditional probability. 60% of students pass maths (\(A\)), 50% pass statistics (\(B\)), 40% pass both. \(P(A\cup B) = 0.6 + 0.5 - 0.4 = 0.7\), so 30% pass neither. \(P(B\mid A) = \frac{0.4}{0.6} = 0.667\): among maths passers, two-thirds also pass statistics. Independent? \(P(A)P(B) = 0.30 \ne 0.40\), so no: passing one raises the chance of passing the other.
At least one. Three independent machines each fail on a given day with probability 0.1. \(P(\text{at least one fails}) = 1 - P(\text{none}) = 1 - 0.9^3 = 1 - 0.729 = 0.271\), far quicker than adding the seven ways one, two or three can fail.
Three events. A firm bids for three contracts with \(P(A) = P(B) = P(C) = 0.3\), each pair won together with probability 0.1, all three with probability 0.05. \(P(\text{at least one}) = 0.9 - 3(0.1) + 0.05 = 0.65\). Adding the three alone (0.9) double-counts the overlaps; subtracting the pairs removes the triple overlap three times, so it is added back once.
Watch out. Adding probabilities of events that can happen together without subtracting the overlap. Multiplying \(P(A)P(B)\) for dependent events. And in Bayes, dividing by the wrong total: the denominator must include every cause.
Practice: problems 67, 68, 69, 70, 71 in the practice sets (last group in the contents).
Binomial distribution
Unit IV: Probability and distributions · Topic 24 of 32
Key idea
A random variable assigns a number to each outcome of a random experiment; its probability distribution lists the possible values with their probabilities. The binomial distribution is the first discrete one: the number of successes in a fixed number of independent yes/no trials, each with the same probability of success.
\(n\) trials, \(p\) probability of success on each, \(X\) the number of successes.
Assumptions: a finite number of trials; each trial has two mutually exclusive outcomes (success or failure); \(p\) is constant from trial to trial; the trials are independent.
Parameters \(n\) and \(p\) determine everything. \(\binom{n}{x} = \frac{n!}{x!(n-x)!}\) counts the arrangements of \(x\) successes among \(n\) trials.
The variance is always less than the mean (since \(q \lt 1\)). Given the mean and variance you can recover \(q = \sigma^2/\text{mean}\), then \(p\) and \(n\).
Uses: anything classified into two categories: coin tossing, dice (success = a six), defective versus good items in a batch, customers who buy versus browse, calls answered versus missed.
How to work it
- Identify \(n\), define success, find \(p\) and \(q\).
- For \(P(X = x)\) compute \(\binom{n}{x}p^xq^{n-x}\).
- For \(P(X \ge 1)\) use \(1 - q^n\); for \(P(X \le k)\) add the terms from 0 to \(k\).
- Mean \(np\), standard deviation \(\sqrt{npq}\), with the units of a count.
\(n = 5\), \(p = 0.2\), \(q = 0.8\).
\[P(X = 2) = \binom52(0.2)^2(0.8)^3 = 10(0.04)(0.512) = 0.2048\] \[P(X \ge 1) = 1 - 0.8^5 = 1 - 0.32768 = 0.672.\] \[\text{Mean } = 5(0.2) = 1\] \[\sigma = \sqrt{5(0.2)(0.8)} = \sqrt{0.8} = 0.894.\]If a binomial variable has mean 4 and variance 2.4, then \(q = 2.4/4 = 0.6\), \(p = 0.4\) and \(n = 4/0.4 = 10\).
“At most” and “more than”, same \(n = 5\), \(p = 0.2\): \(P(0) = 0.8^5 = 0.3277\), \(P(1) = 5(0.2)(0.8)^4 = 0.4096\), \(P(2) = 0.2048\), so \(P(X \le 2) = 0.9421\) and \(P(X \gt 2) = 1 - 0.9421 = 0.0579\). In words: if one customer in five buys, a group of five produces more than two buyers only about 6% of the time; the mean of 1 buyer per five is the long-run average, not a guarantee.
Watch out. Forgetting the binomial coefficient (the \(\binom{n}{x}\) counts the orders in which the successes can occur), and computing "at least one" by adding every term instead of using \(1 - q^n\).
Practice: problems 72, 73, 74 in the practice sets (last group in the contents).
Poisson distribution
Unit IV: Probability and distributions · Topic 25 of 32
Key idea
The Poisson distribution describes rare events: defects per item, accidents per day, earthquakes per year, calls arriving per minute. It is the limit of the binomial when the number of trials is huge and the chance on each trial is tiny, with the average \(np\) held at a fixed value \(\lambda\).
As a limit of the binomial: \(n \to \infty\), \(p \to 0\), \(q \to 1\), with \(np = \lambda\) finite. Rule of thumb: use Poisson in place of binomial when \(n\) is large (say \(\ge 20\)) and \(p\) small (say \(\le 0.05\)).
\(e^{-\lambda}\) is the probability of no events; each further term multiplies the previous by \(\lambda/x\).
- Discrete, with countably infinite possible values \(0, 1, 2, \ldots\)
- Mean \(= \lambda\), variance \(= \lambda\), standard deviation \(= \sqrt\lambda\). Mean equals variance: a quick diagnostic for Poisson data.
- Additive: if \(X\) and \(Y\) are independent Poisson with parameters \(\lambda_1, \lambda_2\), then \(X + Y\) is Poisson with parameter \(\lambda_1 + \lambda_2\).
Uses: number of defective items in a large batch with a small defect rate, arrivals at a counter, typing errors per page, insurance claims per month.
How to work it
- Find \(\lambda\), the average number of events per unit (time, length, item). Convert the unit if the question uses a different one (per hour versus per minute).
- Compute \(e^{-\lambda}\) once; then \(P(0) = e^{-\lambda}\), \(P(1) = \lambda e^{-\lambda}\), \(P(2) = \tfrac{\lambda^2}{2}e^{-\lambda}\), and so on.
- \(P(X \ge k) = 1 - \) (sum of the terms below \(k\)).
- For a binomial with large \(n\) and small \(p\), set \(\lambda = np\) and use the Poisson terms.
A fabric averages \(\lambda = 2\) defects per roll. \(e^{-2} = 0.1353\).
\[P(0) = 0.1353\] \[P(1) = 2(0.1353) = 0.2707\] \[P(2) = \frac{4}{2}(0.1353) = 0.2707\] \[P(X \ge 3) = 1 - 0.6767 = 0.3233.\]Binomial approximation: 200 items with a 1% defect rate has \(\lambda = 200(0.01) = 2\), so the same table applies. Mean 2, standard deviation \(\sqrt2 = 1.41\).
Changing the unit. For three rolls \(\lambda = 3(2) = 6\), so \(P(\text{no defect in three rolls}) = e^{-6} = 0.0025\); for a quarter roll \(\lambda = 0.5\) and \(P(0) = e^{-0.5} = 0.6065\), \(P(1) = 0.5(0.6065) = 0.3033\). Recompute \(e^{-\lambda}\) for every new unit; never scale a probability.
Adding independent streams. If one loom averages 2 defects per roll and a second, independent loom averages 1, their combined output is Poisson with \(\lambda = 3\) per pair of rolls: use the \(\lambda = 3\) table, not a mixture of the two.
Watch out. Using \(\lambda\) for the wrong unit (2 per roll is 4 per two rolls). Forgetting the \(x!\) in the denominator. And expecting the variance to differ from the mean: for Poisson they are equal.
Practice: problems 75, 76, 77 in the practice sets (last group in the contents).
Normal distribution
Unit IV: Probability and distributions · Topic 26 of 32
Key idea
The normal (Gaussian) distribution is the most important continuous distribution: heights, weights, measurement errors, test scores, and, by the central limit theorem, sample means. It is the limit of the binomial when \(n\) is large and neither \(p\) nor \(q\) is small. Two parameters, \(\mu\) and \(\sigma\), fix the bell completely.
\(Z\) is the standard normal variate (mean 0, standard deviation 1); its areas are tabulated, so every normal probability is found by converting \(x\) to \(z\) and reading a table.
\[P(a \lt X \lt b) = P\!\left(\frac{a - \mu}{\sigma} \lt Z \lt \frac{b - \mu}{\sigma}\right)\]- Parameters \(\mu\) and \(\sigma\).
- Mean \(\mu\), standard deviation \(\sigma\).
- Mean = median = mode \(= \mu\).
- Bell-shaped and symmetrical about \(x = \mu\).
- The quartiles are equidistant from the mean: \(Q_1 = \mu - 0.6745\sigma\), \(Q_3 = \mu + 0.6745\sigma\).
- Skewness \(\beta_1 = 0\), kurtosis \(\beta_2 = 3\).
- All odd central moments are zero.
- Even central moments: \(\mu_{2r} = 1\cdot 3\cdot 5\cdots(2r - 1)\,\sigma^{2r}\).
- Total area 1; about 68.26% within \(\mu\pm\sigma\), 95.46% within \(\mu\pm 2\sigma\), 99.73% within \(\mu\pm 3\sigma\).
How to work it
- Sketch the bell, mark \(\mu\) and the values asked about, shade the area wanted.
- Convert each boundary to \(z = (x - \mu)/\sigma\).
- Read the table (area from 0 to \(z\), or cumulative area) and combine using symmetry: \(P(Z \gt z) = 0.5 - P(0 \lt Z \lt z)\).
- For a reverse question (find \(x\) for a given area), find \(z\) from the table and use \(x = \mu + z\sigma\).
The score exceeded by only 10% of candidates: \(P(Z \gt z) = 0.10\) gives \(z = 1.28\), so \(x = 500 + 1.28(50) = 564\).
The empirical rule in context: about 68% of candidates score between 450 and 550 (\(\mu\pm\sigma\)), 95% between 400 and 600, and virtually all between 350 and 650. A score of 700 is 4 standard deviations up and should essentially never occur if the scores are really normal; if it does, question the data or the model.
Normal approximation to a binomial with \(n = 100\), \(p = 0.5\): mean 50, \(\sigma = 5\); \(P(X \ge 60) \approx P\!\left(Z \gt \frac{59.5 - 50}{5}\right) = P(Z \gt 1.9) = 0.0287\) (with the continuity correction).
Two values on the same side of the mean. \(P(520 \lt X \lt 600) = P(0.4 \lt Z \lt 2) = 0.4772 - 0.1554 = 0.3218\): subtract the two table areas, because both are measured from 0.
Finding \(\sigma\). Delivery times have mean 50 minutes and 10% take under 40. \(P(Z \lt z) = 0.10\) gives \(z = -1.28\), so \(\frac{40 - 50}{\sigma} = -1.28\) and \(\sigma = \frac{10}{1.28} = 7.8\) minutes. The same move with two known percentages gives two equations and solves for both \(\mu\) and \(\sigma\).
Watch out. Reading a table area as if it were the probability asked for without checking which region the table gives (from 0 to \(z\), or from \(-\infty\) to \(z\)). Standardizing with the variance instead of the standard deviation.
Practice: problems 78, 79, 80, 81, 82 in the practice sets (last group in the contents).
Sampling: terminology, errors and why we sample
Unit V: Sampling and hypothesis testing · Topic 27 of 32
Key idea
Governments, marketers and quality engineers rarely measure everyone. A sample survey collects data on a fraction of the population; a census (complete enumeration) covers all of it. Sampling theory supplies the vocabulary and the methods for choosing the fraction so that it can speak for the whole.
- Sampling unit the element (or group) on which observations are taken; defined by the survey's objective (a household, a person, a field).
- Population all the sampling units in the region and period of interest; size \(N\), finite or infinite.
- Sample the units actually selected by a specified procedure; a census is a 100% sample.
- Parameter a measure of the population (\(\mu\), \(\sigma\), \(P\)).
- Statistic the same measure computed from the sample (\(\bar x\), \(s\), \(\hat p\)).
- Representative sample shows all the salient features of the population (a 30/70 split in the population should appear in the sample).
- Sampling frame the list of all units from which the sample is drawn (a roll of students, a list of households).
Sampling errors arise from the method of sampling: faulty selection of the method, substituting a convenient unit for the chosen one, faulty demarcation of units, and the natural variability of a heterogeneous population.
Non-sampling errors creep in through human factors: faulty planning, faulty selection of units, untrained staff, negligence and non-response, errors in compilation, wrong statistical measures, incomplete investigation. A census has no sampling error but plenty of non-sampling error.
Advantages of sampling: reduced cost and enlarged scope; easier organization of work; speed when urgent information is required; feasibility when testing destroys the unit (bulb life); greater accuracy from trained staff handling fewer units.
Census versus sample: census for a limited field, heterogeneous units, or when every unit must be studied; sampling for large, homogeneous, infinite or perishable populations.
How to work it
- State the objective; it defines the sampling unit and the population.
- Obtain or build the sampling frame.
- Choose a sampling method (next tab) and the sample size.
- Anticipate non-sampling errors: train interviewers, plan for non-response, check compilation.
A chain surveys 400 of its 20,000 loyalty-card customers; 60% say they are satisfied. Population: the 20,000 customers. Sample: the 400. Sampling unit: a customer. Statistic: \(\hat p = 0.60\). Parameter: the true satisfaction proportion \(P\), unknown. Frame: the loyalty-card list.
Errors: interviewer bias and non-response are non-sampling errors; the chance that this particular 400 differs from the 20,000 is sampling error, which a larger sample reduces.
How much sampling error? The standard error of a proportion is \(\sqrt{\frac{\hat p(1 - \hat p)}{n}} = \sqrt{\frac{0.6\times 0.4}{400}} = 0.0245\), so the survey's 60% is uncertain by about \(\pm 2(0.0245) \approx \pm 5\) percentage points. Quadrupling the sample to 1,600 halves that to about \(\pm 2.5\) points; the same arithmetic drives the tests in the last three tabs.
Watch out. Calling a sample figure a parameter, and believing a census is automatically more accurate: it removes sampling error but multiplies the chances for non-sampling error.
Practice: problems 83, 84 in the practice sets (last group in the contents).
Sampling methods
Unit V: Sampling and hypothesis testing · Topic 28 of 32
Key idea
In probability sampling every unit has a known chance of selection, so sampling error can be measured. In non-probability sampling selection depends on convenience or judgement; it is cheaper and faster but its error cannot be quantified. Five methods of each kind appear in the notes.
- Simple random every unit has an equal chance (lottery, random numbers); with replacement (a unit may be drawn again) or without.
- Stratified random divide a heterogeneous population into homogeneous strata, sample randomly from each; more precise estimates for each stratum and for the whole.
- Systematic random choose a random start, then every \(k\)th unit on the list (a 10% sample: random start among the first ten, then every tenth).
- Multistage random sample large units first (states), then smaller units within them (districts), then units within those (banks), randomly at every stage.
- Cluster divide the area into small non-overlapping clusters, randomly pick some clusters and take every unit in them.
- Quota fix quotas for groups in proportion to the population (500 respondents from a population that is 20% male: 100 men, 400 women), then fill them non-randomly; the non-probability cousin of stratified sampling.
- Convenience whoever is readily available (shoppers invited to a taste test in a mall).
- Judgement (purposive) units chosen by the researcher's judgement as representative (a reporter picking people to interview).
- Snowball existing subjects recruit further subjects from their acquaintances; used for hidden or hard-to-reach populations.
Stratified: sample from every stratum. Cluster: take whole clusters, but only some of them.
How to work it
- Is there a frame and a need to measure error? Then probability sampling.
- Is the population heterogeneous in known groups? Stratify (or quota, if random selection is impractical).
- Is the population spread over a wide area with natural groupings? Cluster or multistage sampling saves travel.
- Is the population hidden or hard to list? Snowball sampling.
Stratified: 200 employees from 5,000 (3,000 staff, 1,500 supervisors, 500 managers) in proportion: \(200\times\frac{3000}{5000} = 120\), \(60\), \(20\).
Systematic: 60 from a list of 1,200: \(k = 1200/60 = 20\); random start 7 gives units 7, 27, 47, …
In symbols, proportional allocation gives stratum \(h\) a sample of \(n_h = n\times\frac{N_h}{N}\), where \(N_h\) is the stratum's size in the population and \(n\) the total sample; the \(n_h\) add up to \(n\). Scenarios: interviewing every household in 10 randomly chosen villages is cluster sampling; asking drug users to refer other users is snowball; polling people at one bus stop is convenience.
Watch out. Confusing stratified with cluster sampling, and treating quota sampling as stratified random sampling. A quota sample has the right proportions but no random selection, so its error cannot be estimated.
Practice: problems 85, 86 in the practice sets (last group in the contents).
Hypothesis testing: steps, errors and critical regions
Unit V: Sampling and hypothesis testing · Topic 29 of 32
Key idea
A sampling distribution is the distribution of a statistic over all possible samples of the same size; its standard deviation is the standard error. Hypothesis testing uses it to judge a claim about a population parameter from one sample: if the sample result would be very unlikely were the claim true, the claim is rejected.
- State the hypotheses. The null hypothesis \(H_0\) is the claim assumed true (like presumed innocence): \(\mu = \mu_0\). The alternative \(H_1\) says what we suspect instead: \(\mu \ne \mu_0\), \(\mu \gt \mu_0\) or \(\mu \lt \mu_0\).
- Set the criterion. Choose the level of significance \(\alpha\) (10%, 5%, 1%): the probability of a sample result at least this extreme if \(H_0\) is true, below which we reject.
- Compute the test statistic. How many standard errors the sample statistic is from the hypothesized value:
- Make a decision. \(|Z_{\text{cal}}| \gt Z_{\text{tab}}\): reject \(H_0\). Otherwise retain \(H_0\).
- Type I error rejecting a true \(H_0\); probability \(\alpha\).
- Type II error retaining a false \(H_0\); probability \(\beta\). Power \(= 1 - \beta\).
- Critical region the values of the statistic that lead to rejection; the critical value separates it from the acceptance region.
- Two-tailed \(H_1: \mu \ne \mu_0\), rejection in both tails (\(\alpha/2\) each). One-tailed \(H_1: \mu \gt \mu_0\) (right) or \(\mu \lt \mu_0\) (left).
| \(\alpha\) | 10% | 5% | 1% |
|---|---|---|---|
| Two-tailed | \(\pm 1.645\) | \(\pm 1.96\) | \(\pm 2.58\) |
| Right-tailed | 1.28 | 1.645 | 2.33 |
| Left-tailed | \(-1.28\) | \(-1.645\) | \(-2.33\) |
How to work it
- Put the claim being tested, with equality, in \(H_0\).
- Put what the researcher suspects (or what would prompt action) in \(H_1\); its sign decides the tail.
- Pick \(\alpha\) before looking at the data and read the critical value from the table.
- After computing, state the conclusion in the words of the problem, not just \"reject \(H_0\)\".
A maker claims bulbs last 1,000 hours; a consumer group suspects less: \(H_0: \mu = 1000\), \(H_1: \mu \lt 1000\), left-tailed, critical value \(-1.645\) at 5%.
A filling machine should deliver 500 ml and either direction is a problem: \(H_0: \mu = 500\), \(H_1: \mu \ne 500\), two-tailed, \(\pm 1.96\).
A training course is supposed to raise scores: \(H_0: \mu = \mu_0\), \(H_1: \mu \gt \mu_0\), right-tailed, \(1.645\).
If the bulb test rejects a true claim, that is a Type I error (the maker is wrongly accused). If it fails to detect bulbs that really last 950 hours, that is a Type II error.
The bulb test, written out. 36 bulbs average 970 hours; the population standard deviation is known to be 90. Standard error \(= 90/\sqrt{36} = 15\).
\[Z_{\text{cal}} = \frac{970 - 1000}{15} = -2.0 \lt -1.645:\ \text{reject } H_0.\]Conclusion in context: the sample mean falls 2 standard errors below the claimed 1,000 hours; if the claim were true, a shortfall this large would occur in fewer than 5 samples in 100, so there is significant evidence at the 5% level that the bulbs last less than claimed. (At 1%, \(-2.33\), the same data would not be conclusive.) Every test in the next three tabs is this template with a different standard error.
Software reports a p-value instead of a critical value: the probability, if \(H_0\) were true, of a result at least as extreme as the one observed. For \(Z_{\text{cal}} = -2\) it is \(P(Z \lt -2) = 0.0228\) one-tailed, or \(0.0455\) two-tailed. "\(p \lt \alpha\)" and "\(|Z_{\text{cal}}| \gt Z_{\text{tab}}\)" are the same decision expressed two ways.
Watch out. Putting the research hypothesis in \(H_0\), using a two-tailed critical value for a one-tailed test (or the reverse), and reading "retain \(H_0\)" as "proved \(H_0\)". A test can fail to reject; it never proves the null.
Practice: problems 87, 88 in the practice sets (last group in the contents).
Large-sample (Z) tests
Unit V: Sampling and hypothesis testing · Topic 30 of 32
Key idea
When the sample size is at least 30, the sampling distribution of the mean (or proportion) is approximately normal, so the test statistic is a \(Z\) and the critical values come from the standard normal table. Five tests cover means, differences of means, standard deviations, proportions and differences of proportions.
One mean \(H_0: \mu = \mu_0\):
\[Z = \frac{\bar x - \mu_0}{\sigma/\sqrt n} \quad\text{(use } s \text{ for } \sigma \text{ if unknown)}\]Two means \(H_0: \mu_1 = \mu_2\):
\[Z = \frac{\bar x_1 - \bar x_2}{\sqrt{\frac{\sigma_1^2}{n_1} + \frac{\sigma_2^2}{n_2}}}\] \[Z = \frac{\bar x_1 - \bar x_2}{\sigma\sqrt{\frac{1}{n_1} + \frac{1}{n_2}}} \text{ if } \sigma_1 = \sigma_2 = \sigma\]Two standard deviations \(H_0: \sigma_1 = \sigma_2\):
\[Z = \frac{s_1 - s_2}{\sqrt{\frac{\sigma_1^2}{2n_1} + \frac{\sigma_2^2}{2n_2}}}\]with the sample variances \(s^2\) standing in for the unknown \(\sigma^2\).
One proportion \(H_0: P = P_0\), with \(\hat p\) the sample proportion and \(Q_0 = 1 - P_0\):
\[Z = \frac{\hat p - P_0}{\sqrt{\frac{P_0 Q_0}{n}}}\]Two proportions \(H_0: P_1 = P_2\), pooling \(P = \frac{n_1\hat p_1 + n_2\hat p_2}{n_1 + n_2}\):
\[Z = \frac{\hat p_1 - \hat p_2}{\sqrt{PQ\left(\frac{1}{n_1} + \frac{1}{n_2}\right)}}\]Decision: compare \(|Z_{\text{cal}}|\) with the table value for the chosen \(\alpha\) and tail (1.96 two-tailed, 1.645 one-tailed at 5%). Larger: reject \(H_0\).
- \(\bar x, s, n\) the sample mean, sample standard deviation and sample size; \(\mu_0\) the value claimed for the population mean under \(H_0\); \(\sigma\) the population standard deviation, replaced by \(s\) when unknown (safe because \(n \ge 30\)).
- \(\hat p, P_0\) the sample proportion \(\frac{\text{number with the attribute}}{n}\) and the claimed population proportion; \(Q_0 = 1 - P_0\). The standard error of a single proportion uses \(P_0\), not \(\hat p\), because it is computed assuming \(H_0\) is true.
- \(P, Q\) the pooled proportion from both samples together, used when \(H_0\) says the two populations share one proportion.
- \(Z_{\text{cal}}\) how many standard errors the sample result lies from the hypothesized value; \(|Z| = 2\) means "two standard errors away", which happens by chance about 4.6% of the time if \(H_0\) is true.
Every statistic has the same shape: (observed minus hypothesized) divided by its standard error.
How to work it
- State \(H_0\), \(H_1\) and the tail; pick \(\alpha\) and the critical value.
- Compute the standard error for the statistic in question.
- \(Z = (\text{observed} - \text{hypothesized})/\text{S.E.}\)
- Compare with the critical value and conclude in context.
A sample of 64 packets has mean weight 52 g with \(s = 8\); is the mean 50 g? Two-tailed, 5%.
\[Z = \frac{52 - 50}{8/\sqrt{64}} = \frac{2}{1} = 2 \gt 1.96:\ \text{reject } H_0.\]The mean weight differs significantly from 50 g (at 1%, 2.58, it would not).
120 of 400 shoppers prefer brand X; is the true proportion 0.25? \(\hat p = 0.30\):
\[Z = \frac{0.30 - 0.25}{\sqrt{\frac{0.25(0.75)}{400}}} = \frac{0.05}{0.02165}\] \[= 2.31 \gt 1.96:\ \text{reject } H_0.\]In words: 30% of the sample prefer brand X against the claimed 25%, a gap of 2.31 standard errors; a gap this large would arise by chance in fewer than 5 samples in 100, so the 25% claim is rejected.
Two means. Daily sales in city A: \(n_1 = 80\), \(\bar x_1 = 42\), \(s_1 = 6\); city B: \(n_2 = 120\), \(\bar x_2 = 40\), \(s_2 = 8\). \(H_0: \mu_1 = \mu_2\) (same average sales), \(H_1: \mu_1 \ne \mu_2\), 5%, \(\pm 1.96\).
\[\text{S.E.} = \sqrt{\frac{36}{80} + \frac{64}{120}} = \sqrt{0.450 + 0.533} = 0.992\] \[Z = \frac{42 - 40}{0.992} = 2.02 \gt 1.96:\ \text{reject } H_0.\]City A's average is significantly higher, though only just: at 1% (2.58) the difference would not be significant.
Two proportions. 70 of 250 customers in branch 1 and 48 of 250 in branch 2 complained. \(H_0: P_1 = P_2\), \(H_1: P_1 \ne P_2\). \(\hat p_1 = 0.280\), \(\hat p_2 = 0.192\); pooled \(P = \frac{70 + 48}{500} = 0.236\), \(Q = 0.764\).
\[\text{S.E.} = \sqrt{0.236(0.764)\left(\frac{1}{250} + \frac{1}{250}\right)} = \sqrt{0.001442} = 0.0380\] \[Z = \frac{0.280 - 0.192}{0.0380} = 2.32 \gt 1.96:\ \text{reject } H_0.\]The complaint rates differ significantly; branch 1's is higher. The pooled \(P\) is used in the standard error because \(H_0\) says the two branches share one rate.
Watch out. Dividing by \(\sigma\) instead of \(\sigma/\sqrt n\), using the sample proportion rather than the hypothesized \(P_0\) in the standard error of a single proportion, and forgetting to pool the proportions when testing two.
Practice: problems 89, 90, 91, 92, 93, 94 in the practice sets (last group in the contents).
Small-sample (t) tests
Unit V: Sampling and hypothesis testing · Topic 31 of 32
Key idea
With fewer than 30 observations and an unknown \(\sigma\), the sample standard deviation is too unreliable for a \(Z\) test. Student's \(t\) distribution, wider than the normal and indexed by degrees of freedom (observations minus independent constraints), takes over. Four \(t\) tests appear in the notes.
Single mean \(H_0: \mu = \mu_0\), \(n - 1\) degrees of freedom:
\[t = \frac{\bar x - \mu_0}{S/\sqrt n}\] \[S^2 = \frac{1}{n-1}\sum(x_i - \bar x)^2\]If the standard deviation is computed with divisor \(n\) (call it \(s\)), then \(S^2 = \frac{n}{n-1}s^2\) and the statistic becomes \(t = \frac{\bar x - \mu_0}{s/\sqrt{n-1}}\).
Two independent means \(H_0: \mu_1 = \mu_2\), \(n_1 + n_2 - 2\) degrees of freedom:
\[t = \frac{\bar x_1 - \bar x_2}{S\sqrt{\frac{1}{n_1} + \frac{1}{n_2}}}\] \[S^2 = \frac{\sum(x_i - \bar x)^2 + \sum(y_i - \bar y)^2}{n_1 + n_2 - 2}\]Paired \(t\) (before and after on the same units), \(H_0: d = 0\), \(n - 1\) degrees of freedom:
\[t = \frac{\bar d}{S_d/\sqrt n}\] \[\bar d = \frac1n\sum d_i\] \[S_d^2 = \frac{1}{n-1}\sum(d_i - \bar d)^2\]Significance of \(r\), \(H_0: R = 0\) (no correlation in the population), \(n - 2\) degrees of freedom:
\[t = \frac{r}{\sqrt{1 - r^2}}\sqrt{n - 2}\]Decision: compare \(|t_{\text{cal}}|\) with the table value for the degrees of freedom and \(\alpha\); larger means reject.
Pairing removes unit-to-unit variation and is used when each observation in one sample is matched with one in the other.
- \(S\) versus \(s\) both are sample standard deviations; \(S\) divides the sum of squares by \(n - 1\) (unbiased, the one the \(t\) formulas want), \(s\) by \(n\). Read the question carefully for which is given.
- Degrees of freedom the number of independent deviations: \(n - 1\) for one mean or for paired differences (one mean was estimated), \(n_1 + n_2 - 2\) for two independent means (two were), \(n - 2\) for a correlation (a line with two constants was fitted). It picks the row of the \(t\) table.
- \(d_i, \bar d, S_d\) the difference for each pair (after minus before, in a fixed order), the mean difference, and the standard deviation of the differences with divisor \(n - 1\).
- \(t_{\text{tab}}\) the critical value for the chosen \(\alpha\), tail and degrees of freedom; it is larger than the corresponding \(Z\) value and shrinks toward it as the degrees of freedom grow (2.262 at 9 d.f., 2.042 at 30, 1.96 in the limit for a two-tailed 5% test).
How to work it
- Check: small \(n\), \(\sigma\) unknown, roughly normal data. Identify the design: one sample, two independent samples, or paired.
- Compute the relevant \(S\) with divisor \(n - 1\) (or the pooled \(S^2\), or \(S_d\) from the differences).
- Compute \(t\) and the degrees of freedom.
- Look up \(t_{\text{tab}}\) for those degrees of freedom and the tail; compare and conclude.
Ten machines average \(\bar x = 48\) units per hour with \(S = 5\); the target is 50. Two-tailed, 5%, 9 degrees of freedom (\(t_{\text{tab}} = 2.262\)).
\[t = \frac{48 - 50}{5/\sqrt{10}} = \frac{-2}{1.581} = -1.26\] \[|t| \lt 2.262:\ \text{retain } H_0.\]The shortfall is not significant.
A correlation \(r = 0.6\) from \(n = 27\) pairs; 25 degrees of freedom, \(t_{\text{tab}} = 2.06\):
\[t = \frac{0.6}{\sqrt{1 - 0.36}}\sqrt{25} = \frac{0.6}{0.8}(5)\] \[= 3.75 \gt 2.06:\ \text{the correlation is significant.}\]Paired \(t\). Six salesmen's weekly sales after minus before a training course: \(d = 3, 5, -1, 4, 2, 5\). \(H_0: \mu_d = 0\) (training made no difference), \(H_1: \mu_d \ne 0\), 5%, \(n - 1 = 5\) d.f., \(t_{\text{tab}} = 2.571\).
\[\bar d = \frac{18}{6} = 3,\qquad S_d^2 = \frac{0 + 4 + 16 + 1 + 1 + 4}{5} = 5.2,\qquad S_d = 2.28\] \[t = \frac{3}{2.28/\sqrt6} = \frac{3}{0.931} = 3.22 \gt 2.571:\ \text{reject } H_0.\]Sales rose by about 3 units a week on average, and the rise is significant. Had the same twelve figures been treated as two independent samples of six, the between-salesman variation would have swamped the gain. If the question had asked only whether training raised sales, the test is right-tailed with \(t_{\text{tab}} = 2.015\): same decision here.
Watch out. Using \(n\) instead of \(n - 1\) in \(S^2\), reading the \(t\) table with the wrong degrees of freedom, and running two independent-sample tests on paired data (which wastes the pairing and usually hides a real difference).
Practice: problems 95, 96, 97, 98 in the practice sets (last group in the contents).
Chi-square tests
Unit V: Sampling and hypothesis testing · Topic 32 of 32
Key idea
The chi-square test compares observed counts with the counts a hypothesis predicts. In the goodness of fit form it asks whether data follow a claimed distribution (uniform, binomial, Poisson, normal). In the independence form it asks whether two attributes in a contingency table are related, for example a new medicine and recovery.
\(H_0\): the observed frequencies do not differ significantly from the hypothetical (expected) frequencies.
\[\chi^2 = \sum\frac{(O_i - E_i)^2}{E_i}\] \[\sum O_i = \sum E_i\]Degrees of freedom \(n - 1\), where \(n\) is the number of categories (subtract one more for each parameter estimated from the data when fitting a binomial, Poisson or normal).
Large \(\chi^2\) means the observed counts are far from what the hypothesis predicts: reject \(H_0\).
\(H_0\): the two attributes are independent.
\[\chi^2 = \sum\sum\frac{(O_{ij} - E_{ij})^2}{E_{ij}}\] \[E_{ij} = \frac{(\text{row } i \text{ total})(\text{column } j \text{ total})}{N}\]Degrees of freedom \((r - 1)(c - 1)\) for \(r\) rows and \(c\) columns; a \(2\times 2\) table has 1.
The expected counts should be at least 5 (combine categories if not). \(\chi^2\) is always a right-tailed test. Critical values: \(3.841\) (1 d.f.), \(5.991\) (2), \(7.815\) (3), \(9.488\) (4), \(11.070\) (5) at 5%.
- \(O_i, E_i\) the observed count in category \(i\) and the count \(H_0\) predicts for it; \(O_{ij}, E_{ij}\) the same for the cell in row \(i\), column \(j\). Both are frequencies (numbers of items), never percentages.
- \(N\) the grand total of all counts; \(r, c\) the numbers of rows and columns.
- \(\chi^2_{\text{cal}}\) a sum of squared relative discrepancies; it is zero only when every observed count equals its expected count, and it grows with the sample size for the same percentage gap, which is why a large sample can make a small association significant.
How to work it
- Write \(H_0\) (fits the distribution, or attributes independent).
- Compute the expected frequencies: from the claimed distribution, or from row total times column total over \(N\).
- Sum \((O - E)^2/E\) over every cell.
- Compare with the table value for the degrees of freedom at \(\alpha\); larger means reject.
A die is rolled 60 times: 8, 12, 9, 11, 6, 14. Fair die means \(E = 10\) each.
\[\chi^2 = \frac{4 + 4 + 1 + 1 + 16 + 16}{10} = 4.2\] \[\text{5 d.f., } \chi^2_{\text{tab}} = 11.07:\ \text{retain } H_0,\ \text{the die may be fair.}\]Medicine and recovery, 100 patients: treated 30 recovered, 20 did not; untreated 20 recovered, 30 did not. Row and column totals are all 50, so every \(E = \frac{50\times 50}{100} = 25\).
\[\chi^2 = 4\times\frac{(30 - 25)^2}{25} = 4\] \[\text{1 d.f., } 3.841:\ \text{reject } H_0.\]Recovery depends on treatment.
A larger table. Defectives by shift, 100 items each: morning 10, afternoon 15, night 20 (good items 90, 85, 80). \(H_0\): defect rate is independent of shift. Column totals 45 defective and 255 good, \(N = 300\); every row total is 100, so \(E_{\text{def}} = \frac{100\times 45}{300} = 15\) and \(E_{\text{good}} = 85\) in each row.
\[\chi^2 = \frac{(10-15)^2}{15} + \frac{(15-15)^2}{15} + \frac{(20-15)^2}{15} + \frac{(90-85)^2}{85} + 0 + \frac{(80-85)^2}{85}\] \[= 1.67 + 0 + 1.67 + 0.29 + 0 + 0.29 = 3.92\]\((3 - 1)(2 - 1) = 2\) d.f., \(\chi^2_{\text{tab}} = 5.991\): retain \(H_0\). The night shift's higher count is within what chance would produce. Note that the small cells (defectives) contribute almost all of \(\chi^2\), because the same difference of 5 is a bigger proportion of 15 than of 85.
Goodness of fit with an estimated parameter: fitting a Poisson to 6 count classes with \(\lambda\) taken as the sample mean uses \(6 - 1 - 1 = 4\) d.f.; a normal with both \(\mu\) and \(\sigma\) estimated loses two more.
Watch out. Using percentages instead of counts (the test needs frequencies), computing \((O - E)^2/O\), and taking \(rc - 1\) instead of \((r-1)(c-1)\) degrees of freedom for a contingency table.
Practice: problems 99, 100 in the practice sets (last group in the contents).
Set 1: descriptive statistics
Business Statistics · Practice problems 1 to 22
Problems 1 to 22
Every problem opens to a full, step-by-step solution with the final answer highlighted. Try it on paper first. The Review link at the end of each solution jumps back to the tab that teaches the idea.
1Classify each as descriptive or inferential statistics and explain: (a) a store computes last month's average sale from every receipt; (b) a poll of 1,000 voters predicts an election; (c) a factory tests 50 bulbs from a batch of 10,000 and reports the batch's mean life; (d) a firm reports the median salary of its 200 employees from payroll.
Solution
(a) Descriptive. Every receipt is in hand; the average summarizes the complete data.
(b) Inferential. A sample of 1,000 is used to draw a conclusion about millions of voters.
(c) Inferential. The 50 bulbs are a sample; the statement is about the whole batch.
(d) Descriptive. Payroll covers all 200 employees; nothing is generalized beyond them.
The test is whether the conclusion reaches beyond the data actually measured.
(a) descriptive, (b) inferential, (c) inferential, (d) descriptive.
Review:
2Find the arithmetic, geometric and harmonic means of \(4, 8, 16\) and verify that \(AM \ge GM \ge HM\).
Solution
\[AM = \frac{4 + 8 + 16}{3} = \frac{28}{3} = 9.33.\] \[GM = \sqrt[3]{4\times 8\times 16} = \sqrt[3]{512} = 8.\] \[HM = \frac{3}{\frac14 + \frac18 + \frac1{16}} = \frac{3}{\frac{7}{16}} = \frac{48}{7} = 6.86.\]\(9.33 \ge 8 \ge 6.86\): the inequality holds, strictly because the values are not all equal.
\(AM = 9.33\), \(GM = 8\), \(HM = 6.86\).
Review:
3Find the mean of the frequency distribution \(x: 10, 20, 30, 40\) with frequencies \(f: 3, 5, 8, 4\).
Solution
\[N = 3 + 5 + 8 + 4 = 20\] \[\sum fx = 3(10) + 5(20) + 8(30) + 4(40) = 30 + 100 + 240 + 160 = 530.\] \[\bar x = \frac{\sum fx}{N} = \frac{530}{20} = 26.5.\]Each value is weighted by how often it occurs; dividing \(\sum x = 100\) by 4 would ignore the frequencies and give the wrong answer 25.
\(\bar x = 26.5\).
Review:
4A car covers 60 km at 30 km/h and the next 60 km at 60 km/h. Find the average speed for the whole trip.
Solution
Equal distances at different speeds call for the harmonic mean, because the quantity that is fixed (distance) is in the numerator of the rate.
\[HM = \frac{2}{\frac{1}{30} + \frac{1}{60}} = \frac{2}{\frac{3}{60}} = 40 \text{ km/h}.\]Check directly: the first leg takes 2 hours, the second 1 hour; 120 km in 3 hours is 40 km/h. The arithmetic mean 45 km/h is wrong because the car spends twice as long at the slower speed.
40 km/h.
Review:
5A price rose by 10% in the first year, 20% in the second and 30% in the third. Find the average annual rate of increase.
Solution
Growth compounds, so average the growth factors \(1.10, 1.20, 1.30\) with the geometric mean:
\[GM = \sqrt[3]{1.10\times 1.20\times 1.30} = \sqrt[3]{1.716} = 1.1972.\]The average rate is about 19.7% per year. Check: \(1.1972^3 = 1.716\), the same total growth as the three actual rises. The arithmetic mean of the rates, 20%, would compound to \(1.2^3 = 1.728\), overstating the true increase.
About 19.7% per year (GM of the growth factors).
Review:
6Find the mean, median and mode of \(7, 3, 9, 3, 5, 8, 3, 10\).
Solution
Order the data: \(3, 3, 3, 5, 7, 8, 9, 10\), \(n = 8\).
\[\text{Mean} = \frac{48}{8} = 6\] \[\text{Median} = \frac{4\text{th} + 5\text{th}}{2} = \frac{5 + 7}{2} = 6\] \[\text{Mode} = 3.\]With an even count the median is the average of the two middle values. The mode is the value that appears most often (three times).
Mean 6, median 6, mode 3.
Review:
7For the discrete distribution \(x: 2, 4, 6, 8, 10\) with \(f: 3, 7, 12, 5, 3\), find the median, \(Q_1\), \(Q_3\) and the mode.
Solution
\(N = 30\); cumulative frequencies: \(3, 10, 22, 27, 30\).
Median: \(\frac N2 = 15\); the first cumulative frequency exceeding 15 is 22, at \(x = 6\). Median \(= 6\).
\(Q_1\): \(\frac N4 = 7.5\); first cf exceeding 7.5 is 10, at \(x = 4\). \(Q_1 = 4\).
\(Q_3\): \(\frac{3N}{4} = 22.5\); first cf exceeding 22.5 is 27, at \(x = 8\). \(Q_3 = 8\).
Mode: the largest frequency (12) belongs to \(x = 6\).
Median 6, \(Q_1 = 4\), \(Q_3 = 8\), mode 6.
Review:
8Classes 10–20, 20–30, 30–40, 40–50, 50–60 have frequencies 4, 6, 10, 7, 3. Find the mean, median and mode.
Solution
\(N = 30\); midpoints 15, 25, 35, 45, 55; cumulative frequencies 4, 10, 20, 27, 30.
\[\text{Mean} = \frac{4(15) + 6(25) + 10(35) + 7(45) + 3(55)}{30} = \frac{1040}{30} = 34.67.\]Median: \(\frac N2 = 15\) falls in 30–40 (cf before it 10, \(f = 10\)):
\[M_d = 30 + \frac{15 - 10}{10}\times 10 = 35.\]Mode: modal class 30–40 with \(f_1 = 10\), \(f_0 = 6\), \(f_2 = 7\):
\[\text{Mode} = 30 + \frac{10 - 6}{2(10) - 6 - 7}\times 10 = 30 + \frac{4}{7}\times 10 = 35.71.\]The denominator \(2f_1 - f_0 - f_2 = 20 - 13 = 7\) is positive because the modal frequency exceeds both neighbours, as it must. All three averages fall in the 30–40 class and are close together, so the distribution is nearly symmetrical; the mean is slightly below the median, a hint of a short left tail.
Mean 34.67, median 35, mode 35.71.
Review:
9For the distribution in problem 8, find \(Q_1\), \(D_4\) and \(P_{90}\).
Solution
Cumulative frequencies 4, 10, 20, 27, 30 with \(N = 30\).
\(Q_1\): target \(\frac N4 = 7.5\), class 20–30 (cf before 4, \(f = 6\)): \(20 + \frac{7.5 - 4}{6}\times 10 = 25.83\).
\(D_4\): target \(\frac{4N}{10} = 12\), class 30–40 (cf before 10, \(f = 10\)): \(30 + \frac{12 - 10}{10}\times 10 = 32\).
\(P_{90}\): target \(\frac{90N}{100} = 27\), class 40–50 (cf before 20, \(f = 7\)): \(40 + \frac{27 - 20}{7}\times 10 = 50\).
\(P_{90}\) lands exactly on the upper boundary of its class because the cumulative frequency there is exactly 27.
\(Q_1 = 25.83\), \(D_4 = 32\), \(P_{90} = 50\).
Review:
10Section A has 30 students with mean marks 70; section B has 20 students with mean marks 60. Find the mean of all 50 students.
Solution
\[\bar x = \frac{n_1\bar x_1 + n_2\bar x_2}{N} = \frac{30(70) + 20(60)}{50} = \frac{2100 + 1200}{50} = 66.\]The combined mean is a weighted average that sits closer to the larger section's mean; the simple average of 70 and 60, which is 65, ignores the section sizes.
66.
Review:
11Group A: \(n_1 = 50\), mean 40, \(\sigma_1 = 6\). Group B: \(n_2 = 50\), mean 50, \(\sigma_2 = 8\). Find the combined mean and standard deviation.
Solution
\(N = 100\). With equal group sizes the combined mean is simply the average of the two means:
\[\bar x = \frac{50(40) + 50(50)}{100} = \frac{2000 + 2500}{100} = 45\] \[d_1 = 40 - 45 = -5\] \[d_2 = 50 - 45 = 5.\] \[\sigma^2 = \frac{n_1\sigma_1^2 + n_2\sigma_2^2 + n_1d_1^2 + n_2d_2^2}{N} = \frac{50(36) + 50(64) + 50(25) + 50(25)}{100} = \frac{1800 + 3200 + 1250 + 1250}{100}\] \[= 75.\] \[\sigma = \sqrt{75} = 8.66.\]The combined spread exceeds both group spreads because the two means are 10 units apart.
Combined mean 45, combined \(\sigma = 8.66\).
Review:
12Which average should be reported, and why: (a) typical house price in a town with one mansion; (b) the most popular shirt size in a store; (c) average marks to compare two classes; (d) typical income from a table whose top class is \"above 1,00,000\"?
Solution
(a) Median. The mansion inflates the mean; the median is unaffected by one extreme value.
(b) Mode. Sizes are categories; the only average for categorical data is the most frequent value, and it is the one the store should stock most of.
(c) Mean. Marks are quantitative with no extreme outliers; the mean uses every value and allows further algebra (combined means, tests).
(d) Median. The class is open-ended, so no midpoint exists and the mean cannot be computed; the median only needs the cumulative frequencies.
(a) median, (b) mode, (c) mean, (d) median.
Review:
13For the data \(5, 8, 10, 12, 15\) find the range, the mean deviation about the mean, the variance and the standard deviation.
Solution
Mean \(= \frac{50}{5} = 10\). Range \(= 15 - 5 = 10\).
Deviations from the mean: \(-5, -2, 0, 2, 5\).
\[MD = \frac{5 + 2 + 0 + 2 + 5}{5} = \frac{14}{5} = 2.8.\] \[\sigma^2 = \frac{25 + 4 + 0 + 4 + 25}{5} = \frac{58}{5} = 11.6\] \[\sigma = \sqrt{11.6} = 3.41.\]Computational check: \(\sum x^2 = 25 + 64 + 100 + 144 + 225 = 558\), and \(\frac{558}{5} - 10^2 = 111.6 - 100 = 11.6\), the same variance.
Range 10, \(MD = 2.8\), variance 11.6, \(\sigma = 3.41\).
Review:
14Find the quartile deviation of \(12, 15, 18, 20, 22, 25, 28, 30, 35\).
Solution
\(n = 9\), data already ordered. \(Q_1\) is the \(\frac{n+1}{4} = 2.5\)th value: halfway between the 2nd (15) and 3rd (18), so \(Q_1 = 16.5\). \(Q_3\) is the \(\frac{3(n+1)}{4} = 7.5\)th value: halfway between 28 and 30, so \(Q_3 = 29\).
\[QD = \frac{Q_3 - Q_1}{2} = \frac{29 - 16.5}{2} = 6.25.\]A position of 2.5 means “go 0.5 of the way from the 2nd value to the 3rd”: \(15 + 0.5(18 - 15) = 16.5\). Half the data lie within \(\pm 6.25\) of the midpoint of the quartiles, \(\frac{16.5 + 29}{2} = 22.75\).
\(QD = 6.25\).
Review:
15Find the standard deviation of the grouped distribution in problem 8 (classes 10–60, frequencies 4, 6, 10, 7, 3).
Solution
Midpoints 15, 25, 35, 45, 55; \(N = 30\); \(\bar x = 34.67\) (problem 8).
\[\sum fx^2 = 4(225) + 6(625) + 10(1225) + 7(2025) + 3(3025) = 900 + 3750 + 12250 + 14175 + 9075 = 40{,}150.\] \[\sigma^2 = \frac{\sum fx^2}{N} - \bar x^2 = \frac{40150}{30} - (34.67)^2 = 1338.33 - 1201.78 = 136.56\] \[\sigma = 11.69.\]\(\sigma \approx 11.69\).
Review:
16Stock A has mean annual return 12% with standard deviation 4%; stock B has mean return 8% with standard deviation 3%. Which is relatively more stable?
Solution
\[CV_A = \frac{4}{12}\times 100 = 33.3\%\] \[CV_B = \frac{3}{8}\times 100 = 37.5\%.\]Stock A has the larger absolute spread but the smaller spread per unit of return. Relative to what it earns, A is the more stable investment; B's returns vary more in proportion to their size.
Stock A (\(CV = 33.3\%\) versus \(37.5\%\)).
Review:
17For the data \(5, 8, 10, 12, 15\) (problem 13) compute the coefficient of range, the coefficient of quartile deviation, the coefficient of mean deviation and the coefficient of variation.
Solution
From problem 13: \(\bar x = 10\), \(MD = 2.8\), \(\sigma = 3.41\), \(H = 15\), \(S = 5\).
\[\text{Coefficient of range} = \frac{15 - 5}{15 + 5} = 0.5.\]Quartiles (\(n = 5\)): \(Q_1\) is the \(\frac{n+1}{4} = 1.5\)th value, halfway between 5 and 8, \(= 6.5\); \(Q_3\) is the \(\frac{3(n+1)}{4} = 4.5\)th value, halfway between 12 and 15, \(= 13.5\).
\[\text{Coefficient of } QD = \frac{13.5 - 6.5}{13.5 + 6.5} = \frac{7}{20} = 0.35\] \[\text{Coefficient of } MD = \frac{2.8}{10} = 0.28\] \[CV = \frac{3.41}{10}\times 100 = 34.1\%.\]0.5, 0.35, 0.28 and \(CV = 34.1\%\).
Review:
18A distribution has mean 50, median 48 and standard deviation 10. Find Karl Pearson's coefficient of skewness, estimate the mode, and describe the shape.
Solution
With the median available, use the second form:
\[S_k = \frac{3(\text{Mean} - \text{Median})}{\sigma} = \frac{3(50 - 48)}{10} = 0.6.\]Estimate the mode from the empirical relation: \(\text{Mode} = 3(48) - 2(50) = 44\). The first form then gives \(\frac{50 - 44}{10} = 0.6\), the same.
\(S_k \gt 0\): positively skewed, with Mean (50) \(\gt\) Median (48) \(\gt\) Mode (44) and a long tail to the right.
\(S_k = 0.6\), mode \(\approx 44\), positively skewed.
Review:
19The quartiles of a distribution are \(Q_1 = 20\), median \(= 30\), \(Q_3 = 50\). Find Bowley's coefficient of skewness.
Solution
\[S_k = \frac{Q_3 - 2\,\text{Median} + Q_1}{Q_3 - Q_1} = \frac{50 - 60 + 20}{50 - 20} = \frac{10}{30} = 0.33.\]The upper quartile is farther from the median (20 units) than the lower quartile (10 units), so the distribution stretches to the right: positive skew.
\(S_k = 0.33\), positively skewed.
Review:
20Given \(P_{10} = 15\), \(P_{50} = 40\) and \(P_{90} = 55\), find Kelly's coefficient of skewness.
Solution
\[S_k = \frac{P_{90} - 2P_{50} + P_{10}}{P_{90} - P_{10}} = \frac{55 - 80 + 15}{55 - 15} = \frac{-10}{40} = -0.25.\]The median is closer to \(P_{90}\) than to \(P_{10}\), so the long tail is on the left: negative skew.
\(S_k = -0.25\), negatively skewed.
Review:
21For the data \(1, 2, 3, 4, 5\) compute \(\mu_2\), \(\mu_3\), \(\mu_4\), \(\beta_1\) and \(\beta_2\), and describe the distribution.
Solution
Mean 3; deviations \(-2, -1, 0, 1, 2\).
\[\mu_2 = \frac{4 + 1 + 0 + 1 + 4}{5} = 2\] \[\mu_3 = \frac{-8 - 1 + 0 + 1 + 8}{5} = 0\] \[\mu_4 = \frac{16 + 1 + 0 + 1 + 16}{5} = 6.8.\] \[\beta_1 = \frac{\mu_3^2}{\mu_2^3} = 0\] \[\beta_2 = \frac{\mu_4}{\mu_2^2} = \frac{6.8}{4} = 1.7.\]Symmetrical (\(\beta_1 = 0\)) and platykurtic (\(\beta_2 \lt 3\)): flatter than a normal curve.
\(\mu_2 = 2\), \(\mu_3 = 0\), \(\mu_4 = 6.8\), \(\beta_1 = 0\), \(\beta_2 = 1.7\): symmetric, platykurtic.
Review:
22A distribution has central moments \(\mu_2 = 16\), \(\mu_3 = -12\), \(\mu_4 = 896\). Find \(\beta_1\) and \(\beta_2\) and interpret.
Solution
\[\beta_1 = \frac{\mu_3^2}{\mu_2^3} = \frac{144}{4096} = 0.035\] \[\beta_2 = \frac{\mu_4}{\mu_2^2} = \frac{896}{256} = 3.5.\]\(\beta_1\) is small, so the skewness is slight; since \(\mu_3 \lt 0\) it is slightly negative. \(\beta_2 \gt 3\): leptokurtic, more peaked with heavier tails than a normal curve.
\(\beta_1 = 0.035\) (slightly negative skew), \(\beta_2 = 3.5\) (leptokurtic).
Review:
Set 2: time series analysis
Business Statistics · Practice problems 23 to 34
Problems 23 to 34
Every problem opens to a full, step-by-step solution with the final answer highlighted. Try it on paper first. The Review link at the end of each solution jumps back to the tab that teaches the idea.
23Name the time-series component responsible for each: (a) ice-cream sales peaking every summer; (b) an economy expanding for six years then contracting for three; (c) a city's population rising steadily over forty years; (d) a factory fire halting output for two months.
Solution
(a) Seasonal: a regular pattern within each year.
(b) Cyclical: an oscillation whose period exceeds a year, the business cycle.
(c) Secular trend: smooth, long-term growth.
(d) Irregular: a one-off random shock.
(a) seasonal, (b) cyclical, (c) trend, (d) irregular.
Review:
24A quarter has trend value \(T = 500\), seasonal index \(S = 1.2\), cyclical factor \(C = 0.9\) and irregular factor \(I = 1.05\). Find the value under the multiplicative model. Under an additive model with \(S = +100\), \(C = -50\), \(I = +5\), find the value.
Solution
\[\text{Multiplicative: } y = T\times S\times C\times I = 500\times 1.2\times 0.9\times 1.05 = 567.\] \[\text{Additive: } y = T + S + C + I = 500 + 100 - 50 + 5 = 555.\]In the multiplicative model the components are ratios around 1 (a 20% seasonal lift is 1.2); in the additive model they are amounts in the units of the series.
567 (multiplicative); 555 (additive).
Review:
25Compute the 3-year moving averages of the sales \(12, 15, 18, 14, 20, 23, 25\) and state which years have no trend value.
Solution
\[\frac{12 + 15 + 18}{3} = 15\] \[\frac{15 + 18 + 14}{3} = 15.67\] \[\frac{18 + 14 + 20}{3} = 17.33\] \[\frac{14 + 20 + 23}{3} = 19\] \[\frac{20 + 23 + 25}{3} = 22.67.\]These are placed against years 2, 3, 4, 5, 6. Years 1 and 7 (the first and last) have no 3-year moving average.
15, 15.67, 17.33, 19, 22.67 at years 2 to 6; years 1 and 7 have none.
Review:
26Quarterly sales over two years are \(20, 30, 40, 30, 24, 34, 44, 34\). Compute the centred 4-quarter moving averages.
Solution
4-quarter totals and averages: \(\frac{120}{4} = 30\), \(\frac{124}{4} = 31\), \(\frac{128}{4} = 32\), \(\frac{132}{4} = 33\), \(\frac{136}{4} = 34\). Each falls between two quarters (between Q2 and Q3, Q3 and Q4, and so on).
Centre by averaging adjacent pairs:
\[\frac{30 + 31}{2} = 30.5,\quad \frac{31 + 32}{2} = 31.5,\quad \frac{32 + 33}{2} = 32.5,\quad \frac{33 + 34}{2} = 33.5\]placed against quarters 3, 4, 5, 6. The trend rises by one unit per quarter; the seasonal swings have been smoothed away.
30.5, 31.5, 32.5, 33.5 at quarters 3 to 6.
Review:
27Fit a trend by the semi-average method to eight years of output \(40, 44, 46, 50, 54, 58, 60, 64\), and forecast year 10.
Solution
First half \(40, 44, 46, 50\): average \(45\), plotted at the midpoint of years 1–4, i.e. year 2.5. Second half \(54, 58, 60, 64\): average \(59\), at year 6.5.
\[\text{slope} = \frac{59 - 45}{6.5 - 2.5} = \frac{14}{4} = 3.5 \text{ per year}.\]Trend at year 1: \(45 - 1.5(3.5) = 39.75\). Forecast for year 10: \(45 + (10 - 2.5)(3.5) = 45 + 26.25 = 71.25\).
Trend rises 3.5 per year through \((2.5, 45)\) and \((6.5, 59)\); forecast for year 10 \(\approx 71.3\).
Review:
28Fit a straight-line trend by least squares to five years of sales \(10, 12, 15, 17, 21\). Give the trend values and forecast the next year.
Solution
Code \(x = -2, -1, 0, 1, 2\) so \(\sum x = 0\). \(\sum y = 75\), \(\sum xy = -20 - 12 + 0 + 17 + 42 = 27\), \(\sum x^2 = 10\).
\[a = \frac{75}{5} = 15\] \[b = \frac{27}{10} = 2.7\] \[y = 15 + 2.7x.\]Trend values: \(9.6, 12.3, 15, 17.7, 20.4\). Next year is \(x = 3\) (the origin is year 3, so year 6 is three units on): \(15 + 2.7(3) = 15 + 8.1 = 23.1\). The trend values rise by exactly \(b = 2.7\) each year, and their total \(75\) equals \(\sum y\), a quick check that \(a\) is right.
\(y = 15 + 2.7x\) (origin year 3); trend 9.6, 12.3, 15, 17.7, 20.4; forecast 23.1.
Review:
29Fit a least-squares line to six years (2018–2023) of profits \(8, 10, 13, 15, 18, 20\) and estimate 2024.
Solution
With an even number of years code \(x = -5, -3, -1, 1, 3, 5\) (units of half a year, origin midway between 2020 and 2021). \(\sum y = 84\), \(\sum x^2 = 70\),
\[\sum xy = -40 - 30 - 13 + 15 + 54 + 100 = 86\] \[a = \frac{84}{6} = 14\] \[b = \frac{86}{70} = 1.229.\]\(y = 14 + 1.229x\) with \(x\) in half-years. 2023 is \(x = 5\), and 2024 is one year, that is two half-year units, later, so \(x = 7\): \(14 + 1.229(7) = 14 + 8.6 = 22.6\). Per year the trend rises \(2(1.229) = 2.46\). Check: the trend value for 2023 is \(14 + 1.229(5) = 20.1\), close to the actual 20.
\(y = 14 + 1.229x\) (half-year units); 2024 estimate \(\approx 22.6\).
Review:
30For a straight-line trend, the normal equations have \(n = 5\), \(\sum x = 0\), \(\sum y = 60\), \(\sum xy = 40\), \(\sum x^2 = 10\). Find \(a\) and \(b\) and interpret them.
Solution
With \(\sum x = 0\) the normal equations reduce to \(\sum y = na\) and \(\sum xy = b\sum x^2\):
\[a = \frac{60}{5} = 12\] \[b = \frac{40}{10} = 4.\]\(a = 12\) is the trend value at the origin year (the middle year); \(b = 4\) is the increase in the trend per unit of \(x\) (per year).
\(a = 12\), \(b = 4\): \(y = 12 + 4x\).
Review:
31Sales for five years are \(2, 4, 8, 16, 32\). Show that an exponential trend \(y = ab^x\) fits exactly and find \(a\) and \(b\) (origin at year 1, \(x = 0, 1, 2, 3, 4\)).
Solution
Take logs: \(\log_{10} y = 0.301, 0.602, 0.903, 1.204, 1.505\). Successive differences are all \(0.301\), so \(\log y\) is exactly linear in \(x\): \(\log y = 0.301 + 0.301x\).
\[\log a = 0.301 \Rightarrow a = 2\] \[\log b = 0.301 \Rightarrow b = 2.\]\(y = 2\cdot 2^x\): sales double every year, a constant growth rate of 100%. A straight line would fit this series badly.
\(y = 2(2^x)\); the series doubles each year.
Review:
32Which trend method would you choose, and why: (a) a quick sketch for a meeting in an hour; (b) an objective forecast for next year's budget; (c) smoothing out quarterly swings to see the underlying level; (d) you need trend values for every year including the first and last?
Solution
(a) Freehand. Quick, though subjective.
(b) Least squares. Objective, uses all the data, and the fitted equation projects forward.
(c) Moving average with period 4, which cancels the quarterly pattern.
(d) Least squares (or semi-averages). Moving averages leave the ends of the series without trend values.
(a) freehand, (b) least squares, (c) 4-quarter moving average, (d) least squares.
Review:
33A parabola \(y = a + bx + cx^2\) is fitted to five years with \(x = -2, -1, 0, 1, 2\). Given \(\sum y = 50\), \(\sum xy = 20\), \(\sum x^2 y = 120\), find \(a\), \(b\), \(c\).
Solution
With this coding \(\sum x = \sum x^3 = 0\), \(\sum x^2 = 10\), \(\sum x^4 = 16 + 1 + 0 + 1 + 16 = 34\). The normal equations become
\[50 = 5a + 10c\] \[20 = 10b\] \[120 = 10a + 34c.\]So \(b = 2\). From the first, \(a = 10 - 2c\); substituting into the third: \(120 = 100 - 20c + 34c\), so \(14c = 20\), \(c = 1.43\), and \(a = 10 - 2.86 = 7.14\).
\[y = 7.14 + 2x + 1.43x^2.\]\(a = 7.14\), \(b = 2\), \(c = 1.43\).
Review:
34Actual first-quarter sales are 240 and the seasonal index for Q1 is 1.20. (a) Find the deseasonalized sales. (b) If the trend for Q3 is 210 and the Q3 seasonal index is 0.90, forecast Q3 sales.
Solution
(a) Deseasonalize by dividing out the seasonal factor (multiplicative model): \(\frac{240}{1.20} = 200\). Sales were 20% above a typical quarter purely because of the season.
(b) Forecast \(= T\times S = 210\times 0.90 = 189\). The third quarter runs 10% below trend.
(a) 200; (b) 189.
Review:
Set 3: index numbers
Business Statistics · Practice problems 35 to 50
Problems 35 to 50
Every problem opens to a full, step-by-step solution with the final answer highlighted. Try it on paper first. The Review link at the end of each solution jumps back to the tab that teaches the idea.
35A consumer price index with base 2015 stands at 118 in 2023. (a) By what percentage have prices risen? (b) What is the purchasing power of one unit of money relative to 2015? (c) A salary of 59,000 in 2023 is worth how much in 2015 money?
Solution
(a) \(118 - 100 = 18\%\) rise.
(b) Purchasing power \(= \frac{100}{118} = 0.847\): one unit buys 84.7% of what it bought in 2015.
(c) Real salary \(= \frac{59{,}000}{1.18} = 50{,}000\).
(a) 18%; (b) 0.847; (c) 50,000.
Review:
36A firm wants to build a price index for its raw materials and proposes 2020 as the base year. Comment, and list what else must be decided before computing anything.
Solution
2020 was a pandemic year with disrupted prices and supply, so it is not a normal base period: every later index would be distorted by the abnormal base. Choose a stable, recent, normal year instead.
Other decisions: the purpose of the index (which materials, for what decision); the list of items relevant to that purpose; reliable price sources; whether to use a fixed or chain base; the average (AM in practice); unweighted or weighted, and with which weights; and which formula.
Reject 2020 (abnormal); fix purpose, items, data source, base type, average, weights and formula.
Review:
37Base-year prices of three items are 20, 50, 30 and current prices are 25, 60, 36. Compute the simple aggregative price index.
Solution
\[I_{0n} = \frac{\sum p_n}{\sum p_0}\times 100 = \frac{25 + 60 + 36}{20 + 50 + 30}\times 100 = \frac{121}{100}\times 100 = 121.\]Prices in aggregate are 21% higher than in the base year.
121.
Review:
38For the data in problem 37, compute the price relatives and the index by the simple arithmetic mean and by the simple geometric mean of relatives.
Solution
Relatives: \(\frac{25}{20}\times 100 = 125\), \(\frac{60}{50}\times 100 = 120\), \(\frac{36}{30}\times 100 = 120\).
\[\text{AM: } \frac{125 + 120 + 120}{3} = 121.67\] \[\text{GM: } \sqrt[3]{125\times 120\times 120} = \sqrt[3]{1{,}800{,}000} = 121.64.\]By logs: \(\log_{10}125 = 2.0969\), \(\log_{10}120 = 2.0792\); mean \(= \frac{2.0969 + 2(2.0792)}{3} = 2.0851\); antilog \(= 121.64\).
The GM is slightly below the AM, as it always is; here the relatives are close together so the difference is tiny.
Relatives 125, 120, 120; AM index 121.67; GM index 121.64.
Review:
39Wheat costs 2 per kg in the base year and 3 now; milk costs 40 per litre and 48 now. Compute the simple aggregative index. Recompute with wheat quoted per quintal (100 kg). Then compute the index from price relatives both ways. What does this show?
Solution
Per kg: \(\frac{3 + 48}{2 + 40}\times 100 = \frac{51}{42}\times 100 = 121.4\).
Per quintal (200 and 300): \(\frac{300 + 48}{200 + 40}\times 100 = \frac{348}{240}\times 100 = 145\).
Relatives: wheat \(150\) either way, milk \(120\); AM of relatives \(= 135\) in both cases.
The simple aggregative index changes just because a unit of quotation changed, while the relatives method does not. That is the known defect of the aggregative method and the reason relatives (or weights) are used.
121.4 versus 145 for the aggregative method; 135 for relatives in both cases: the aggregative index depends on units.
Review:
40Three items: A (\(p_0 = 4, q_0 = 10, p_n = 5, q_n = 12\)), B (\(p_0 = 10, q_0 = 6, p_n = 11, q_n = 5\)), C (\(p_0 = 2, q_0 = 20, p_n = 3, q_n = 25\)). Compute Laspeyres' and Paasche's price indices.
Solution
Set out the four product columns item by item (A, B, C): \(p_0q_0 = 4(10), 10(6), 2(20)\); \(p_nq_0 = 5(10), 11(6), 3(20)\); \(p_0q_n = 4(12), 10(5), 2(25)\); \(p_nq_n = 5(12), 11(5), 3(25)\). Then total each column.
\[\sum p_0q_0 = 40 + 60 + 40 = 140\] \[\sum p_nq_0 = 50 + 66 + 60 = 176\] \[\sum p_0q_n = 48 + 50 + 50 = 148\] \[\sum p_nq_n = 60 + 55 + 75 = 190.\] \[L = \frac{176}{140}\times 100 = 125.71\] \[P = \frac{190}{148}\times 100 = 128.38.\]Paasche is higher here because consumption shifted toward item C, whose price rose the most (50%).
Laspeyres 125.71, Paasche 128.38.
Review:
41Using the data of problem 40, compute the Dorbish–Bowley and Fisher indices.
Solution
\[DB = \frac{L + P}{2} = \frac{125.71 + 128.38}{2} = 127.05.\] \[F = \sqrt{L\times P} = \sqrt{125.71\times 128.38} = \sqrt{16{,}139} = 127.04.\]Both lie between Laspeyres and Paasche; the geometric mean (Fisher) is very slightly below the arithmetic mean (Dorbish–Bowley), as \(GM \le AM\) always requires, and the gap is tiny because \(L\) and \(P\) are close. Fisher is the one to quote when asked for the "ideal" index.
Dorbish–Bowley 127.05; Fisher 127.04.
Review:
42Using the data of problem 40, compute the Marshall–Edgeworth index and Kelly's index with fixed weights \(q = 8, 5, 22\).
Solution
Marshall–Edgeworth, with \(q_0 + q_n = 10 + 12, 6 + 5, 20 + 25 = 22, 11, 45\) as the weights for A, B, C:
\[\frac{\sum(q_0 + q_n)p_n}{\sum(q_0 + q_n)p_0}\times 100 = \frac{22(5) + 11(11) + 45(3)}{22(4) + 11(10) + 45(2)}\times 100 = \frac{366}{288}\times 100\] \[= 127.08.\]Kelly, with \(q = 8, 5, 22\):
\[\frac{\sum p_nq}{\sum p_0q}\times 100 = \frac{40 + 55 + 66}{32 + 50 + 44}\times 100 = \frac{161}{126}\times 100 = 127.78.\]Marshall–Edgeworth 127.08; Kelly 127.78.
Review:
43Using the data of problem 40, compute the weighted arithmetic mean of price relatives with base-year values as weights, and confirm it equals Laspeyres' index.
Solution
Relatives: A \(\frac54\times 100 = 125\), B \(\frac{11}{10}\times 100 = 110\), C \(\frac32\times 100 = 150\). Weights \(w = p_0q_0 = 40, 60, 40\).
\[I = \frac{\sum Rw}{\sum w} = \frac{125(40) + 110(60) + 150(40)}{140} = \frac{5000 + 6600 + 6000}{140} = \frac{17600}{140} = 125.71.\]Exactly Laspeyres (problem 40), because \(R\cdot p_0q_0 = \frac{p_n}{p_0}\cdot 100\cdot p_0q_0 = 100\,p_nq_0\).
125.71, equal to Laspeyres.
Review:
44Using the data of problem 40, compute the Laspeyres and Paasche quantity indices and the value index.
Solution
Swap the roles of \(p\) and \(q\):
\[Q_L = \frac{\sum q_np_0}{\sum q_0p_0}\times 100 = \frac{148}{140}\times 100 = 105.71\] \[Q_P = \frac{\sum q_np_n}{\sum q_0p_n}\times 100 = \frac{190}{176}\times 100 = 107.95.\] \[V = \frac{\sum p_nq_n}{\sum p_0q_0}\times 100 = \frac{190}{140}\times 100 = 135.71.\]Quantities rose about 6 to 8%, prices about 26 to 28%, and total spending about 36%: roughly \(1.27\times 1.07 \approx 1.36\).
\(Q_L = 105.71\), \(Q_P = 107.95\), value index 135.71.
Review:
45Using the data of problem 40, show that Laspeyres' index fails the time reversal test and Fisher's passes it.
Solution
Work in decimals (drop the 100) so the products can be compared with 1. Forward Laspeyres \(L_{0n} = \frac{176}{140} = 1.2571\). Backward means treating year \(n\) as the base and year 0 as current: every \(p_0\) swaps with \(p_n\) and every \(q_0\) with \(q_n\), so Laspeyres' \(\frac{\sum p_nq_0}{\sum p_0q_0}\) becomes \(\frac{\sum p_0q_n}{\sum p_nq_n}\): \(L_{n0} = \frac{\sum p_0q_n}{\sum p_nq_n} = \frac{148}{190} = 0.7789\).
\[L_{0n}\times L_{n0} = 1.2571\times 0.7789 = 0.979 \ne 1:\ \text{fails}.\]Fisher forward \(F_{0n} = \sqrt{\frac{176}{140}\times\frac{190}{148}} = 1.2704\); backward \(F_{n0} = \sqrt{\frac{148}{190}\times\frac{140}{176}} = \sqrt{0.7789\times 0.7955} = 0.7872\).
\[F_{0n}\times F_{n0} = 1.2704\times 0.7872 = 1.000:\ \text{passes}.\]Laspeyres: product 0.979 (fails). Fisher: product 1 (passes).
Review:
46Using the data of problem 40, verify that Fisher's index satisfies the factor reversal test.
Solution
Fisher price index \(P_{0n} = 1.2704\). Fisher quantity index:
\[Q_{0n} = \sqrt{\frac{\sum q_np_0}{\sum q_0p_0}\times\frac{\sum q_np_n}{\sum q_0p_n}} = \sqrt{\frac{148}{140}\times\frac{190}{176}} = \sqrt{1.0571\times 1.0795} = 1.0683.\] \[P_{0n}\times Q_{0n} = 1.2704\times 1.0683 = 1.3571 = \frac{\sum p_nq_n}{\sum p_0q_0} = \frac{190}{140}.\]The product equals the value ratio exactly: the factor reversal test is satisfied, as it is only by Fisher's formula.
\(P\times Q = 1.3571 = 190/140\): passes.
Review:
47Prices of a commodity in 2019–2023 were 80, 88, 99, 90, 108. Compute the link relatives and the chain indices with 2019 as base, and check the last against the direct fixed-base index.
Solution
Link relatives (each year over the previous): \(\frac{88}{80} = 110\), \(\frac{99}{88} = 112.5\), \(\frac{90}{99} = 90.91\), \(\frac{108}{90} = 120\).
Chain indices (2019 = 100): 2020: \(110\); 2021: \(\frac{112.5\times 110}{100} = 123.75\); 2022: \(\frac{90.91\times 123.75}{100} = 112.5\); 2023: \(\frac{120\times 112.5}{100} = 135\).
Direct check: \(\frac{108}{80}\times 100 = 135\). With a single commodity the chain index reproduces the fixed-base index exactly.
Link relatives 110, 112.5, 90.91, 120; chain indices 110, 123.75, 112.5, 135.
Review:
48Fixed-base indices for four years are 100, 120, 150, 165. Convert them to link relatives (chain base).
Solution
A link relative is the current fixed-base index divided by the previous one, times 100:
\[\frac{120}{100}\times 100 = 120\] \[\frac{150}{120}\times 100 = 125\] \[\frac{165}{150}\times 100 = 110.\]Prices rose 20%, then 25%, then 10% year on year. Multiplying the links back (\(1.2\times 1.25\times 1.1 = 1.65\)) recovers the fixed-base index 165.
Link relatives 120, 125, 110.
Review:
49An index has base 2015: 2015 = 100, 2020 = 125, 2023 = 150. Shift the base to 2020.
Solution
Divide every index by the 2020 value and multiply by 100:
\[2015: \frac{100}{125}\times 100 = 80\] \[2020: \frac{125}{125}\times 100 = 100\] \[2023: \frac{150}{125}\times 100 = 120.\]Relative to 2020, prices were 20% lower in 2015 and are 20% higher in 2023.
80, 100, 120.
Review:
50A cost-of-living index uses group weights food 40, rent 20, clothing 15, fuel 10, miscellaneous 15, with group price indices 130, 120, 110, 150, 125. Compute the cost-of-living index.
Solution
Weighted arithmetic mean of the group indices:
\[\sum Iw = 130(40) + 120(20) + 110(15) + 150(10) + 125(15) = 5200 + 2400 + 1650 + 1500 + 1875 = 12625.\] \[\frac{\sum Iw}{\sum w} = \frac{12625}{100} = 126.25.\]The cost of living is up 26.25%; food, with the largest weight, contributes most of the rise.
126.25.
Review:
Set 4: correlation and regression
Business Statistics · Practice problems 51 to 64
Problems 51 to 64
Every problem opens to a full, step-by-step solution with the final answer highlighted. Try it on paper first. The Review link at the end of each solution jumps back to the tab that teaches the idea.
51Compute Karl Pearson's coefficient of correlation for \(x: 2, 4, 6, 8, 10\) and \(y: 3, 7, 5, 11, 14\).
Solution
\(n = 5\), \(\sum x = 30\), \(\sum y = 40\), \(\sum xy = 6 + 28 + 30 + 88 + 140 = 292\), \(\sum x^2 = 220\), \(\sum y^2 = 9 + 49 + 25 + 121 + 196 = 400\).
\[r = \frac{n\sum xy - \sum x\sum y}{\sqrt{\left(n\sum x^2 - (\sum x)^2\right)\left(n\sum y^2 - (\sum y)^2\right)}} = \frac{1460 - 1200}{\sqrt{(1100 - 900)(2000 - 1600)}}\] \[= \frac{260}{\sqrt{80{,}000}} = \frac{260}{282.84} = 0.919.\]A strong positive linear relationship: \(r^2 = 0.845\), so about 84% of the variation in \(y\) goes with \(x\). The numerator \(n\sum xy - \sum x\sum y = 260\) and the denominators 200 and 400 are reused in problems 56, 57 and 63.
\(r = 0.919\).
Review:
52Interpret each correlation coefficient: \(r = 0.92\), \(r = -0.15\), \(r = 0\). What does \(r^2\) mean when \(r = 0.92\)?
Solution
\(r = 0.92\): strong positive linear relationship; as one variable rises the other tends to rise almost proportionally.
\(r = -0.15\): weak negative relationship; a slight tendency for one to fall as the other rises, but the scatter is wide.
\(r = 0\): no linear relationship (a curved relationship could still exist).
\(r^2 = 0.846\): about 85% of the variation in \(y\) is accounted for by its linear relation with \(x\); the remaining 15% is unexplained. None of this proves that one variable causes the other.
Strong positive; weak negative; no linear relation; \(r^2 \approx 0.85\) is the explained fraction.
Review:
53Show numerically that \(r\) is unchanged by a change of origin and scale: for \(x: 10, 12, 14\), \(y: 50, 55, 65\), compute \(r\) directly and also from \(u = (x - 10)/2\), \(v = (y - 50)/5\).
Solution
Code \(u = \frac{x - 10}{2}\) and \(v = \frac{y - 50}{5}\) (subtract a convenient origin, divide by a convenient scale). Coded values: \(u: 0, 1, 2\); \(v: 0, 1, 3\). \(\sum u = 3\), \(\sum v = 4\), \(\sum uv = 0 + 1 + 6 = 7\), \(\sum u^2 = 5\), \(\sum v^2 = 10\).
\[r_{uv} = \frac{3(7) - 3(4)}{\sqrt{(15 - 9)(30 - 16)}} = \frac{9}{\sqrt{84}} = 0.982.\]Directly: \(\sum x = 36\), \(\sum y = 170\), \(\sum xy = 500 + 660 + 910 = 2070\), \(\sum x^2 = 440\), \(\sum y^2 = 9750\).
\[r_{xy} = \frac{3(2070) - 36(170)}{\sqrt{(1320 - 1296)(29250 - 28900)}} = \frac{90}{\sqrt{8400}} = 0.982.\]Identical, with far smaller numbers in the coded version. Shifting and rescaling never changes \(r\).
\(r = 0.982\) both ways.
Review:
54Two judges rank six contestants: Judge A: 1, 2, 3, 4, 5, 6; Judge B: 2, 1, 4, 3, 6, 5. Find Spearman's rank correlation.
Solution
Differences \(d = -1, 1, -1, 1, -1, 1\); every \(d^2 = 1\), so \(\sum d^2 = 6\).
\[\rho = 1 - \frac{6\sum d^2}{n(n^2 - 1)} = 1 - \frac{36}{6(35)} = 1 - 0.171 = 0.829.\]The judges agree strongly; they only swap adjacent pairs.
\(\rho = 0.829\).
Review:
55Scores of five students: \(x: 50, 60, 60, 70, 80\); \(y: 55, 60, 70, 65, 90\). Compute Spearman's rank correlation, allowing for the tie.
Solution
Ranks (1 = lowest): \(x\): \(1, 2.5, 2.5, 4, 5\) (the two 60s share ranks 2 and 3); \(y\): \(1, 2, 4, 3, 5\).
\(d = 0, 0.5, -1.5, 1, 0\); \(\sum d^2 = 0 + 0.25 + 2.25 + 1 + 0 = 3.5\). One tie group of \(m = 2\): correction \(\frac{2(4 - 1)}{12} = 0.5\).
\[\rho = 1 - \frac{6(3.5 + 0.5)}{5(24)} = 1 - \frac{24}{120} = 0.8.\]\(\rho = 0.8\).
Review:
56For the data of problem 51, find the regression line of Y on X and predict \(y\) when \(x = 12\).
Solution
From problem 51: \(n\sum xy - \sum x\sum y = 260\), \(n\sum x^2 - (\sum x)^2 = 200\), \(\bar x = 6\), \(\bar y = 8\).
\[b_{yx} = \frac{260}{200} = 1.3\] \[y - 8 = 1.3(x - 6) \ \Rightarrow\ y = 1.3x + 0.2.\]At \(x = 12\): \(y = 15.6 + 0.2 = 15.8\). (This is a mild extrapolation beyond \(x = 10\); treat it with caution.)
\(y = 1.3x + 0.2\); predicted \(y = 15.8\).
Review:
57For the data of problem 51, find the regression line of X on Y and verify that \(r = \sqrt{b_{yx}b_{xy}}\).
Solution
\[b_{xy} = \frac{n\sum xy - \sum x\sum y}{n\sum y^2 - (\sum y)^2} = \frac{260}{400} = 0.65\] \[x - 6 = 0.65(y - 8) \ \Rightarrow\ x = 0.65y + 0.8.\] \[\sqrt{b_{yx}b_{xy}} = \sqrt{1.3\times 0.65} = \sqrt{0.845} = 0.919 = r.\]Both lines pass through \((6, 8)\), and the geometric mean of the regression coefficients reproduces the correlation coefficient from problem 51.
\(x = 0.65y + 0.8\); \(\sqrt{1.3(0.65)} = 0.919\).
Review:
58Given \(\bar x = 40\), \(\bar y = 60\), \(\sigma_x = 5\), \(\sigma_y = 8\), \(r = 0.7\): find both regression lines, estimate \(y\) when \(x = 45\), and estimate \(x\) when \(y = 70\).
Solution
\[b_{yx} = r\frac{\sigma_y}{\sigma_x} = 0.7\times\frac85 = 1.12\] \[y - 60 = 1.12(x - 40).\] \[b_{xy} = r\frac{\sigma_x}{\sigma_y} = 0.7\times\frac58 = 0.4375\] \[x - 40 = 0.4375(y - 60).\]At \(x = 45\): \(y = 60 + 1.12(5) = 65.6\). At \(y = 70\): \(x = 40 + 0.4375(10) = 44.375\).
Note that solving the first line for \(x\) when \(y = 70\) would give \(48.9\), the wrong answer; predicting \(x\) needs the X on Y line.
\(y = 60 + 1.12(x - 40)\), \(x = 40 + 0.4375(y - 60)\); \(y \approx 65.6\); \(x \approx 44.4\).
Review:
59The two regression lines are \(3x + 2y = 26\) and \(6x + y = 31\). Find \(\bar x\), \(\bar y\), and \(r\).
Solution
Means: solve simultaneously. From the second, \(y = 31 - 6x\); substituting, \(3x + 62 - 12x = 26\), so \(x = 4\) and \(y = 7\). \((\bar x, \bar y) = (4, 7)\).
Coefficients: take the first as Y on X: \(y = 13 - 1.5x\), \(b_{yx} = -1.5\). Take the second as X on Y: \(x = \frac{31 - y}{6}\), \(b_{xy} = -\frac16\). Product \(= 0.25 \le 1\), so the assignment is consistent.
\[r = -\sqrt{0.25} = -0.5\](negative, matching the sign of the coefficients). Had the roles been swapped, the product would have been \(\frac{2}{3}\times 6 = 4 \gt 1\), impossible.
\(\bar x = 4\), \(\bar y = 7\), \(r = -0.5\).
Review:
60Can \(b_{yx} = 1.6\) and \(b_{xy} = 0.8\) be the two regression coefficients of the same data? Explain.
Solution
Their product would be \(r^2\):
\[b_{yx}\,b_{xy} = 1.6\times 0.8 = 1.28 \gt 1\]which would make \(|r| = 1.13 \gt 1\). Impossible. Both coefficients cannot exceed 1 in magnitude at the same time, and more generally their product can never exceed 1.
No: the product 1.28 would give \(|r| \gt 1\).
Review:
61If \(b_{yx} = 0.8\) and \(b_{xy} = 0.45\), find \(r\), verify that the arithmetic mean of the coefficients is at least \(|r|\), and find \(\sigma_y/\sigma_x\).
Solution
\[r = \sqrt{0.8\times 0.45} = \sqrt{0.36} = 0.6 \quad (\text{positive, like the coefficients}).\] \[\frac{0.8 + 0.45}{2} = 0.625 \ge 0.6. \checkmark\] \[\frac{b_{yx}}{b_{xy}} = \frac{r\sigma_y/\sigma_x}{r\sigma_x/\sigma_y} = \frac{\sigma_y^2}{\sigma_x^2} = \frac{0.8}{0.45} = 1.778\] \[\frac{\sigma_y}{\sigma_x} = 1.333.\]\(r = 0.6\); AM \(0.625 \ge 0.6\); \(\sigma_y/\sigma_x = 1.33\).
Review:
62Fit \(y = a + bx\) by the normal equations to \(x: 1, 2, 3, 4\), \(y: 3, 5, 6, 8\).
Solution
\(\sum x = 10\), \(\sum y = 22\), \(\sum xy = 3 + 10 + 18 + 32 = 63\), \(\sum x^2 = 30\), \(n = 4\).
\[22 = 4a + 10b\] \[63 = 10a + 30b.\]Multiply the first by 2.5: \(55 = 10a + 25b\). Subtract from the second: \(8 = 5b\), \(b = 1.6\). Then \(4a = 22 - 16 = 6\), \(a = 1.5\).
\[y = 1.5 + 1.6x.\]Check through the means: \(\bar x = 2.5\), \(\bar y = 5.5\), and \(1.5 + 1.6(2.5) = 5.5\).
\(y = 1.5 + 1.6x\).
Review:
63Recompute \(r\) for the data of problem 51 by the covariance route: \(r = \operatorname{Cov}(X,Y)/(\sigma_x\sigma_y)\).
Solution
\[\operatorname{Cov} = \frac{\sum xy}{n} - \bar x\bar y = \frac{292}{5} - 6(8) = 58.4 - 48 = 10.4.\] \[\sigma_x = \sqrt{\frac{220}{5} - 36} = \sqrt{8} = 2.828\] \[\sigma_y = \sqrt{\frac{400}{5} - 64} = \sqrt{16} = 4.\] \[r = \frac{10.4}{2.828\times 4} = 0.919\]the same as the product-moment formula in problem 51. The covariance carries the sign; the standard deviations scale it into \([-1, 1]\).
\(\operatorname{Cov} = 10.4\), \(\sigma_x = 2.83\), \(\sigma_y = 4\), \(r = 0.919\).
Review:
64Describe the two regression lines when \(r = 0\), when \(r = \pm 1\), and where they always meet. Illustrate with the lines of problem 59.
Solution
Both lines always pass through \((\bar x, \bar y)\), so they intersect there: for problem 59, at \((4, 7)\).
\(r = 0\): \(b_{yx} = b_{xy} = 0\), so the lines are \(y = \bar y\) (horizontal) and \(x = \bar x\) (vertical), perpendicular to each other. Neither variable helps predict the other.
\(r = \pm 1\): the two lines coincide; every point lies on the single line and prediction is exact in both directions.
For problem 59, \(r = -0.5\): the lines are distinct (slopes \(-1.5\) and \(-6\) in \(y\)-against-\(x\) terms) and cross at \((4, 7)\) at an angle between those extremes.
Perpendicular when \(r = 0\); coincident when \(r = \pm 1\); they always meet at \((\bar x, \bar y)\), here \((4, 7)\).
Review:
Set 5: probability and distributions
Business Statistics · Practice problems 65 to 82
Problems 65 to 82
Every problem opens to a full, step-by-step solution with the final answer highlighted. Try it on paper first. The Review link at the end of each solution jumps back to the tab that teaches the idea.
65Two fair dice are rolled. (a) How many sample points are there? (b) Find \(P(\text{sum} = 7)\). (c) Are \"sum is 7\" and \"doubles\" mutually exclusive? Complementary?
Solution
(a) \(6\times 6 = 36\) equally likely points.
(b) Sum 7: \((1,6), (2,5), (3,4), (4,3), (5,2), (6,1)\), six points, so \(P = \frac{6}{36} = \frac16\).
(c) Doubles have even sums, so a roll cannot be both a 7 and a double: mutually exclusive. They are not complementary, because a roll can be neither (for example a sum of 5): their probabilities add to \(\frac{6}{36} + \frac{6}{36} = \frac13 \ne 1\).
(a) 36; (b) \(\tfrac16\); (c) exclusive but not complementary.
Review:
66(a) Using the classical definition, find the probability of exactly two heads in three tosses of a fair coin. (b) Of 2,000 bulbs tested, 40 failed early. Estimate the probability of early failure and name the definition used.
Solution
(a) Sample space of 8 equally likely outcomes; exactly two heads: \(HHT, HTH, THH\).
\[P = \frac{3}{8}.\](b) Relative frequency \(= \frac{40}{2000} = 0.02\). This is the empirical (statistical) definition: the limiting relative frequency in a long series of trials, estimated from the data at hand.
(a) \(\tfrac38\); (b) 0.02, empirical definition.
Review:
67\(P(A) = 0.5\), \(P(B) = 0.4\), \(P(A\cap B) = 0.2\). Find \(P(A\cup B)\), \(P(\text{neither})\) and \(P(\text{exactly one of } A, B)\).
Solution
\[P(A\cup B) = P(A) + P(B) - P(A\cap B) = 0.5 + 0.4 - 0.2 = 0.7.\] \[P(\text{neither}) = 1 - P(A\cup B) = 0.3.\] \[P(\text{exactly one}) = P(A\cup B) - P(A\cap B) = 0.7 - 0.2 = 0.5.\]Adding \(0.5 + 0.4 = 0.9\) without subtracting the overlap would double-count the 0.2 where both happen.
0.7, 0.3, 0.5.
Review:
68With \(P(A) = 0.5\), \(P(B) = 0.4\), \(P(A\cap B) = 0.2\), find \(P(A\mid B)\) and \(P(B\mid A)\). Are \(A\) and \(B\) independent?
Solution
\[P(A\mid B) = \frac{P(A\cap B)}{P(B)} = \frac{0.2}{0.4} = 0.5\] \[P(B\mid A) = \frac{0.2}{0.5} = 0.4.\]\(P(A\mid B) = P(A)\) and \(P(B\mid A) = P(B)\): knowing one event occurred does not change the other's probability. Equivalently \(P(A)P(B) = 0.2 = P(A\cap B)\). The events are independent (and clearly not mutually exclusive, since they can occur together).
\(P(A\mid B) = 0.5\), \(P(B\mid A) = 0.4\); independent.
Review:
69Two cards are drawn without replacement from a well-shuffled pack of 52. Find the probability that both are aces.
Solution
The draws are dependent: the second depends on the first.
\[P(\text{both aces}) = P(A_1)\,P(A_2\mid A_1) = \frac{4}{52}\times\frac{3}{51} = \frac{12}{2652} = \frac{1}{221} \approx 0.0045.\]With replacement the answer would be \(\left(\frac{4}{52}\right)^2 = \frac{1}{169}\), slightly larger.
\(\tfrac{1}{221}\).
Review:
70Machines A, B and C make 50%, 30% and 20% of a factory's output, with defect rates 2%, 3% and 5%. A randomly chosen item is defective. What is the probability it came from machine C?
Solution
\[P(D) = 0.5(0.02) + 0.3(0.03) + 0.2(0.05) = 0.010 + 0.009 + 0.010 = 0.029.\] \[P(C\mid D) = \frac{P(C)\,P(D\mid C)}{P(D)} = \frac{0.010}{0.029} = 0.345.\]The denominator is built branch by branch: each machine's share of output times its defect rate, added across the three mutually exclusive machines. The numerator is C's branch alone, \(0.2\times 0.05 = 0.010\). Machine C makes only a fifth of the output but over a third of the defects, because its defect rate is the highest. (For comparison, \(P(A\mid D) = 0.345\) too and \(P(B\mid D) = 0.310\); the three posteriors sum to 1.)
\(P(C\mid D) = 0.345\).
Review:
71A disease affects 1% of a population. A test detects it in 95% of those who have it and gives a false positive in 5% of those who do not. A person tests positive. Find the probability that they actually have the disease.
Solution
Causes: disease (\(0.01\)) or no disease (\(0.99\)). Evidence: a positive test.
\[P(+) = 0.01(0.95) + 0.99(0.05) = 0.0095 + 0.0495 = 0.0590.\] \[P(\text{disease}\mid +) = \frac{0.0095}{0.0590} = 0.161.\]Only about 16% of positives are true cases, because the disease is rare: the 5% false positives among the healthy 99% outnumber the true positives among the sick 1%.
About 0.16.
Review:
72A fair coin is tossed 6 times. Find the probability of exactly 4 heads and of at least 5 heads.
Solution
\(n = 6\), \(p = q = 0.5\). Because \(p = q\), every term has the same factor \(\left(\tfrac12\right)^6 = \tfrac{1}{64}\), and only the coefficient changes: \(\binom64 = \frac{6!}{4!\,2!} = 15\), \(\binom65 = 6\), \(\binom66 = 1\).
\[P(X = 4) = \binom64\left(\tfrac12\right)^6 = \frac{15}{64} = 0.234.\] \[P(X \ge 5) = P(5) + P(6) = \frac{\binom65 + \binom66}{64} = \frac{6 + 1}{64} = \frac{7}{64} = 0.109.\]\(P(4) = 15/64 = 0.234\); \(P(X \ge 5) = 7/64 = 0.109\).
Review:
73A process produces 10% defectives. In a sample of 8 items find the probability of no defectives and of at most one defective, and give the mean and standard deviation of the number of defectives.
Solution
\(n = 8\), \(p = 0.1\), \(q = 0.9\).
\[P(0) = 0.9^8 = 0.4305\] \[P(1) = \binom81(0.1)^1(0.9)^7 = 8(0.1)(0.4783) = 0.3826\] \[P(X \le 1) = 0.8131.\] \[\text{Mean} = np = 0.8\] \[\sigma = \sqrt{npq} = \sqrt{0.72} = 0.849.\]\(P(0) = 0.4305\), \(P(X \le 1) = 0.8131\); mean 0.8, \(\sigma = 0.849\).
Review:
74A binomial distribution has mean 4 and variance 2.4. Find \(n\), \(p\) and \(P(X = 0)\).
Solution
\[q = \frac{\text{variance}}{\text{mean}} = \frac{npq}{np} = \frac{2.4}{4} = 0.6\] \[p = 0.4\] \[n = \frac{4}{0.4} = 10.\] \[P(X = 0) = q^n = 0.6^{10} = 0.00605.\]The variance of a binomial is always smaller than its mean (by the factor \(q\)); a stated variance larger than the mean cannot be binomial.
\(n = 10\), \(p = 0.4\), \(P(0) = 0.006\).
Review:
75Calls arrive at a help desk at an average rate of 3 per minute. Find the probability of no calls, exactly 2 calls, and at least 2 calls in a given minute.
Solution
\(\lambda = 3\), \(e^{-3} = 0.0498\).
\[P(0) = e^{-3} = 0.0498\] \[P(2) = \frac{e^{-3}3^2}{2!} = \frac{9(0.0498)}{2} = 0.224.\] \[P(X \ge 2) = 1 - P(0) - P(1) = 1 - 0.0498 - 3(0.0498) = 1 - 0.1991 = 0.801.\]\(P(0) = 0.050\), \(P(2) = 0.224\), \(P(X \ge 2) = 0.801\).
Review:
76A batch of 500 items has a 0.4% chance that any given item is defective. Use the Poisson approximation to find the probability of exactly 3 defectives.
Solution
\(n = 500\) is large and \(p = 0.004\) small, so use Poisson with \(\lambda = np = 2\).
\[P(X = 3) = \frac{e^{-2}2^3}{3!} = \frac{8(0.1353)}{6} = 0.180.\]The exact binomial value \(\binom{500}{3}(0.004)^3(0.996)^{497}\) is 0.1806, so the approximation is excellent.
\(P(3) \approx 0.180\).
Review:
77Branch A receives complaints at 1.5 per hour and branch B at 2.5 per hour, independently. Find the probability that the two branches together receive exactly 4 complaints in an hour.
Solution
The two branches are independent Poisson processes, so by the additive property their total is Poisson with \(\lambda = 1.5 + 2.5 = 4\) complaints per hour. From tables \(e^{-4} = 0.0183\); \(4^4 = 256\); \(4! = 24\).
\[P(X = 4) = \frac{e^{-4}4^4}{4!} = \frac{256(0.0183)}{24} = 0.195.\]Four is the mean of the combined process, and the mode of a Poisson is at or just below its mean, so 0.195 is the single most likely count.
\(P(4) = 0.195\).
Review:
78Scores are normally distributed with \(\mu = 100\) and \(\sigma = 15\). Find \(P(X \lt 115)\), \(P(85 \lt X \lt 130)\) and \(P(X \gt 130)\).
Solution
\[P(X \lt 115) = P(Z \lt 1) = 0.5 + 0.3413 = 0.8413.\] \[P(85 \lt X \lt 130) = P(-1 \lt Z \lt 2) = 0.3413 + 0.4772 = 0.8185.\] \[P(X \gt 130) = P(Z \gt 2) = 0.5 - 0.4772 = 0.0228.\]The \(z\) values are \(\frac{115 - 100}{15} = 1\), \(\frac{85 - 100}{15} = -1\), \(\frac{130 - 100}{15} = 2\).
0.8413, 0.8185, 0.0228.
Review:
79For the same distribution (\(\mu = 100\), \(\sigma = 15\)), find the score exceeded by only 5% of candidates, and the interval that contains the middle 95% of scores.
Solution
Top 5%: \(P(Z \gt z) = 0.05\) means the area from 0 to \(z\) is \(0.45\); the table gives \(z = 1.645\) (halfway between 1.64 and 1.65). Convert back with \(x = \mu + z\sigma = 100 + 1.645(15) = 124.7\).
Middle 95%: \(0.025\) in each tail, so the area from 0 to \(z\) is \(0.475\) and \(z = \pm 1.96\); \(100 \pm 1.96(15) = 100 \pm 29.4\): the interval \((70.6, 129.4)\). Only 2.5% of candidates score above 129.4 and 2.5% below 70.6.
124.7; \((70.6, 129.4)\).
Review:
80A normal variable has \(P(X \lt 60) = 0.20\) and \(P(X \lt 90) = 0.90\). Find \(\mu\) and \(\sigma\).
Solution
Standardize both statements. \(P(X \lt 60) = 0.20\) is below one half, so 60 lies below the mean: the area between \(z\) and 0 is \(0.30\), and the table gives \(z = -0.84\). \(P(X \lt 90) = 0.90\): area from 0 to \(z\) is \(0.40\), \(z = 1.28\). Writing each as \(x = \mu + z\sigma\):
\[60 = \mu - 0.84\sigma\] \[90 = \mu + 1.28\sigma.\]Subtracting eliminates \(\mu\): \(30 = 2.12\sigma\), \(\sigma = 14.15\); then \(\mu = 60 + 0.84(14.15) = 71.9\). Check in the second equation: \(71.9 + 1.28(14.15) = 90.0\).
\(\mu \approx 71.9\), \(\sigma \approx 14.2\).
Review:
81A fair coin is tossed 100 times. Use the normal approximation to estimate the probability of at least 60 heads.
Solution
Binomial with \(n = 100\), \(p = 0.5\): mean \(np = 50\), \(\sigma = \sqrt{npq} = 5\). \(n\) is large and \(p\) is not small, so the normal approximation applies. With the continuity correction, \"at least 60\" is \(X \gt 59.5\):
\[P(X \ge 60) \approx P\!\left(Z \gt \frac{59.5 - 50}{5}\right) = P(Z \gt 1.9) = 0.5 - 0.4713 = 0.0287.\]\(\approx 0.029\).
Review:
82For a normal distribution with \(\mu = 50\) and \(\sigma = 10\), find the quartiles and the quartile deviation, and state the values of \(\beta_1\) and \(\beta_2\).
Solution
The quartiles of a normal curve lie \(0.6745\sigma\) either side of the mean:
\[Q_1 = 50 - 0.6745(10) = 43.25\] \[Q_3 = 56.75\] \[QD = \frac{Q_3 - Q_1}{2} = 6.745 \approx \tfrac23\sigma.\]Every normal distribution is symmetrical with \(\beta_1 = 0\) and mesokurtic with \(\beta_2 = 3\). (Also \(MD \approx \tfrac45\sigma = 8\).)
\(Q_1 = 43.25\), \(Q_3 = 56.75\), \(QD = 6.745\); \(\beta_1 = 0\), \(\beta_2 = 3\).
Review:
Set 6: sampling and hypothesis testing
Business Statistics · Practice problems 83 to 100
Problems 83 to 100
Every problem opens to a full, step-by-step solution with the final answer highlighted. Try it on paper first. The Review link at the end of each solution jumps back to the tab that teaches the idea.
83A retail chain surveys 400 of its 20,000 loyalty-card customers; 60% say they are satisfied. Identify the population, sample, sampling unit, sampling frame, statistic and parameter.
Solution
- Population all 20,000 loyalty-card customers.
- Sample the 400 surveyed.
- Sampling unit one customer.
- Sampling frame the loyalty-card list.
- Statistic the sample proportion satisfied, \(\hat p = 0.60\).
- Parameter the true proportion \(P\) of all 20,000 who are satisfied, unknown and estimated by \(\hat p\).
Population 20,000; sample 400; unit a customer; frame the card list; statistic \(\hat p = 0.6\); parameter \(P\).
Review:
84Classify each as a sampling error or a non-sampling error: (a) an interviewer's tone influences answers; (b) this particular random sample happens to contain more young people than the population; (c) 30% of those selected do not respond; (d) totals are mis-added when compiling results; (e) the wrong sampling method is chosen for the population.
Solution
(a) Non-sampling (human factor: interviewer bias).
(b) Sampling (chance variability between sample and population; shrinks with larger samples).
(c) Non-sampling (non-response).
(d) Non-sampling (compilation error).
(e) Sampling (faulty selection of the sampling method, listed in the notes among sampling errors).
(a) non-sampling, (b) sampling, (c) non-sampling, (d) non-sampling, (e) sampling.
Review:
85A company of 5,000 employees (3,000 staff, 1,500 supervisors, 500 managers) wants a stratified random sample of 200 with proportional allocation. How many from each stratum? Why stratify?
Solution
\[\text{Staff: } 200\times\frac{3000}{5000} = 120\] \[\text{Supervisors: } 200\times\frac{1500}{5000} = 60\] \[\text{Managers: } 200\times\frac{500}{5000} = 20.\]Stratifying guarantees that each group is represented in its true proportion (a simple random sample might by chance include only 8 managers, or 35), and because each stratum is internally more homogeneous than the whole, the estimates for each group and for the total are more precise.
120 staff, 60 supervisors, 20 managers.
Review:
86(a) Design a systematic sample of 60 from a list of 1,200 customers. (b) Name the sampling method: interviewing every household in 10 randomly chosen villages; asking identified drug users to refer other users; polling whoever passes one bus stop; a journalist choosing \"typical\" shoppers to interview.
Solution
(a) Sampling interval \(k = \frac{1200}{60} = 20\). Pick a random start between 1 and 20, say 7, then take customers 7, 27, 47, …, 1187.
(b) Every household in some randomly chosen villages: cluster sampling. Users referring users: snowball sampling. Whoever passes: convenience sampling. The journalist's picks: judgement (purposive) sampling. The last three are non-probability methods.
(a) \(k = 20\), random start then every 20th; (b) cluster, snowball, convenience, judgement.
Review:
87State \(H_0\) and \(H_1\) and name the tail: (a) a maker claims its bulbs last at least 1,000 hours and a consumer group suspects less; (b) a machine should fill 500 ml and deviation in either direction is a fault; (c) a training course is claimed to raise scores above the current mean of 70.
Solution
(a) \(H_0: \mu = 1000\), \(H_1: \mu \lt 1000\). Left-tailed; at 5% the critical value is \(-1.645\).
(b) \(H_0: \mu = 500\), \(H_1: \mu \ne 500\). Two-tailed; critical values \(\pm 1.96\).
(c) \(H_0: \mu = 70\), \(H_1: \mu \gt 70\). Right-tailed; critical value \(1.645\).
The null always carries the equality; the direction of the suspicion sets the alternative and the tail.
(a) left-tailed, (b) two-tailed, (c) right-tailed.
Review:
88In a trial of a new drug, \(H_0\) states the drug has no effect. Describe a Type I error and a Type II error in context, name their probabilities, and define the power of the test.
Solution
Type I error: rejecting a true \(H_0\): concluding the drug works when it does not. Probability \(\alpha\), the level of significance chosen by the researcher.
Type II error: retaining a false \(H_0\): concluding the drug does nothing when it actually works. Probability \(\beta\).
Power \(= 1 - \beta\): the probability of detecting a real effect. Lowering \(\alpha\) makes rejection harder and raises \(\beta\); only a larger sample lowers both.
Type I: false claim of effect (\(\alpha\)); Type II: missed real effect (\(\beta\)); power \(1 - \beta\).
Review:
89A sample of 100 cans has mean volume 2.9 litres; the population standard deviation is 0.5 litre. Test \(H_0: \mu = 3\) against \(H_1: \mu \ne 3\) at the 5% level, and again at 1%.
Solution
\[Z = \frac{\bar x - \mu_0}{\sigma/\sqrt n} = \frac{2.9 - 3}{0.5/\sqrt{100}} = \frac{-0.1}{0.05} = -2.\]At 5% (two-tailed, \(\pm 1.96\)): \(|{-2}| \gt 1.96\), reject \(H_0\); the mean volume differs significantly from 3 litres.
At 1% (\(\pm 2.58\)): \(2 \lt 2.58\), retain \(H_0\); the evidence is not strong enough at the stricter level.
\(Z = -2\): reject at 5%, retain at 1%.
Review:
90A sample of 50 bulbs has mean life 1,050 hours with \(s = 100\). Is there evidence at 5% that the population mean exceeds 1,000 hours?
Solution
\(H_0: \mu = 1000\), \(H_1: \mu \gt 1000\), right-tailed, critical value 1.645. With \(\sigma\) unknown and \(n \ge 30\), use \(s\) in its place; the standard error is \(\frac{100}{\sqrt{50}} = 14.14\) hours:
\[Z = \frac{1050 - 1000}{100/\sqrt{50}} = \frac{50}{14.14} = 3.54 \gt 1.645.\]Reject \(H_0\): the mean life is significantly greater than 1,000 hours.
\(Z = 3.54\): reject \(H_0\).
Review:
91Two independent samples: \(n_1 = 100\), \(\bar x_1 = 68\), \(s_1 = 10\); \(n_2 = 150\), \(\bar x_2 = 65\), \(s_2 = 12\). Test whether the population means differ at 5%.
Solution
\(H_0: \mu_1 = \mu_2\), \(H_1: \mu_1 \ne \mu_2\), two-tailed.
\[Z = \frac{\bar x_1 - \bar x_2}{\sqrt{\frac{s_1^2}{n_1} + \frac{s_2^2}{n_2}}} = \frac{3}{\sqrt{\frac{100}{100} + \frac{144}{150}}} = \frac{3}{\sqrt{1.96}} = \frac{3}{1.4} = 2.14 \gt 1.96.\]Reject \(H_0\): the two means differ significantly at 5%.
\(Z = 2.14\): reject \(H_0\).
Review:
92A manufacturer claims 25% of consumers prefer its brand. In a sample of 200, 60 prefer it. Test the claim at 5%.
Solution
\(H_0: P = 0.25\), \(H_1: P \ne 0.25\). \(\hat p = \frac{60}{200} = 0.30\).
\[Z = \frac{\hat p - P_0}{\sqrt{P_0Q_0/n}} = \frac{0.30 - 0.25}{\sqrt{0.25(0.75)/200}} = \frac{0.05}{0.0306} = 1.63 \lt 1.96.\]Retain \(H_0\): the sample does not contradict the 25% claim at the 5% level. Note the standard error uses the hypothesized \(P_0 = 0.25\), not \(\hat p\).
\(Z = 1.63\): retain \(H_0\).
Review:
93In city A, 45 of 150 shoppers buy a product; in city B, 30 of 150 do. Test at 5% whether the proportions differ.
Solution
\(H_0: P_1 = P_2\) (the same share of shoppers buy in both cities), \(H_1: P_1 \ne P_2\), two-tailed, 5%, critical value 1.96. \(\hat p_1 = \frac{45}{150} = 0.30\), \(\hat p_2 = \frac{30}{150} = 0.20\). Under \(H_0\) both samples estimate one common proportion, so pool them: \(P = \frac{45 + 30}{300} = 0.25\), \(Q = 0.75\).
\[Z = \frac{\hat p_1 - \hat p_2}{\sqrt{PQ\left(\frac{1}{n_1} + \frac{1}{n_2}\right)}} = \frac{0.10}{\sqrt{0.25(0.75)\left(\frac{2}{150}\right)}} = \frac{0.10}{\sqrt{0.0025}} = \frac{0.10}{0.05} = 2 \gt 1.96.\]Reject \(H_0\): the proportions differ significantly. City A's buying rate (30%) is higher than city B's (20%) by more than sampling variation explains, so the product is doing better in A.
\(Z = 2\): reject \(H_0\).
Review:
94Two samples of 100 items each have standard deviations \(s_1 = 12\) and \(s_2 = 10\). Test at 5% whether the population standard deviations differ.
Solution
\(H_0: \sigma_1 = \sigma_2\), two-tailed. Using the sample variances in the standard error:
\[Z = \frac{s_1 - s_2}{\sqrt{\frac{s_1^2}{2n_1} + \frac{s_2^2}{2n_2}}} = \frac{2}{\sqrt{\frac{144}{200} + \frac{100}{200}}} = \frac{2}{\sqrt{1.22}} = \frac{2}{1.105} = 1.81 \lt 1.96.\]Retain \(H_0\): no significant difference in variability. The two standard errors inside the root are \(\frac{144}{200} = 0.72\) and \(\frac{100}{200} = 0.50\); the sample values stand in for the unknown \(\sigma_1^2\) and \(\sigma_2^2\) because both samples are large.
\(Z = 1.81\): retain \(H_0\).
Review:
95A sample of 16 packets has mean weight 52 g with sample standard deviation \(S = 8\) (divisor \(n - 1\)). Test \(H_0: \mu = 50\) against \(\mu \ne 50\) at 5%. (\(t_{0.05, 15} = 2.131\).)
Solution
\[t = \frac{\bar x - \mu_0}{S/\sqrt n} = \frac{52 - 50}{8/\sqrt{16}} = \frac{2}{2} = 1\] \[\text{d.f.} = 15.\]\(|t| = 1 \lt 2.131\): retain \(H_0\). With only 16 observations and this much spread, a 2 g difference is not significant.
\(t = 1\): retain \(H_0\).
Review:
96Two independent small samples: \(n_1 = 8\), \(\bar x_1 = 20\), \(\sum(x - \bar x)^2 = 70\); \(n_2 = 10\), \(\bar x_2 = 17\), \(\sum(y - \bar y)^2 = 90\). Test at 5% whether the means differ. (\(t_{0.05, 16} = 2.120\).)
Solution
\(H_0: \mu_1 = \mu_2\), \(H_1: \mu_1 \ne \mu_2\), two-tailed, small samples with unknown but assumed equal variances, so pool the sums of squares with \(n_1 + n_2 - 2 = 16\) d.f.:
\[S^2 = \frac{70 + 90}{8 + 10 - 2} = \frac{160}{16} = 10\] \[S = 3.162.\] \[t = \frac{\bar x_1 - \bar x_2}{S\sqrt{\frac{1}{n_1} + \frac{1}{n_2}}} = \frac{3}{3.162\sqrt{0.125 + 0.1}} = \frac{3}{3.162(0.4743)} = \frac{3}{1.5} = 2.0\] \[\text{d.f.} = 16.\]\(2.0 \lt 2.120\): retain \(H_0\) at 5%. The difference of 3 is suggestive but not significant with these sample sizes.
\(t = 2.0\): retain \(H_0\).
Review:
97Five workers' outputs before and after training differ by \(d = 2, 3, -1, 4, 2\) (after minus before). Test at 5% whether training changed output. (\(t_{0.05, 4} = 2.776\).)
Solution
Each worker is measured twice, so this is a paired test on the differences. \(H_0: \mu_d = 0\) (no change), \(H_1: \mu_d \ne 0\), two-tailed, \(n - 1 = 4\) d.f. \(\sum d = 2 + 3 - 1 + 4 + 2 = 10\).
\[\bar d = \frac{10}{5} = 2\] \[S_d^2 = \frac{\sum(d - \bar d)^2}{n - 1} = \frac{0 + 1 + 9 + 4 + 0}{4} = 3.5\] \[S_d = 1.871.\] \[t = \frac{\bar d}{S_d/\sqrt n} = \frac{2}{1.871/\sqrt5} = \frac{2}{0.837} = 2.39\] \[\text{d.f.} = 4.\]\(2.39 \lt 2.776\): retain \(H_0\). The average gain of 2 units is not statistically significant with five paired observations.
\(t = 2.39\): retain \(H_0\).
Review:
98A correlation coefficient \(r = 0.5\) is computed from 18 pairs. Test at 5% whether the population correlation is zero. (\(t_{0.05, 16} = 2.120\).)
Solution
\(H_0: R = 0\) (no linear relationship in the population; the observed 0.5 is a sampling accident), \(H_1: R \ne 0\), two-tailed, \(n - 2 = 18 - 2 = 16\) d.f.
\[t = \frac{r}{\sqrt{1 - r^2}}\sqrt{n - 2} = \frac{0.5}{\sqrt{0.75}}\sqrt{16} = \frac{0.5}{0.866}(4) = 2.31\] \[\text{d.f.} = 16.\]\(2.31 \gt 2.120\): reject \(H_0: R = 0\). The correlation is significant.
\(t = 2.31\): the correlation is significant.
Review:
99A shop expects its four flavours to sell equally. Of 100 sales, the counts were 30, 20, 25, 25. Test the claim at 5%. (\(\chi^2_{0.05, 3} = 7.815\).)
Solution
\(H_0\): the four flavours are equally popular, so each has expected count \(E = \frac{100}{4} = 25\). The squared differences are \((30 - 25)^2 = 25\), \((20 - 25)^2 = 25\), \(0\), \(0\).
\[\chi^2 = \sum\frac{(O - E)^2}{E} = \frac{25 + 25 + 0 + 0}{25} = 2\] \[\text{d.f.} = 4 - 1 = 3.\]\(2 \lt 7.815\): retain \(H_0\). The observed counts are consistent with equal popularity.
\(\chi^2 = 2\): retain \(H_0\).
Review:
100Of 100 men, 40 prefer product X and 60 prefer Y; of 100 women, 60 prefer X and 40 prefer Y. Test at 5% whether preference is independent of gender. (\(\chi^2_{0.05, 1} = 3.841\).)
Solution
\(H_0\): preference is independent of gender (men and women split between X and Y in the same proportions); \(H_1\): it is not. Row totals 100 and 100; column totals 100 (X) and 100 (Y); \(N = 200\). Every expected count is \(\frac{\text{row total}\times\text{column total}}{N} = \frac{100\times 100}{200} = 50\): under independence, half of each gender would prefer each product.
\[\chi^2 = \frac{(40 - 50)^2}{50} + \frac{(60 - 50)^2}{50} + \frac{(60 - 50)^2}{50} + \frac{(40 - 50)^2}{50} = 4\times\frac{100}{50} = 8\] \[\text{d.f.} = (2 - 1)(2 - 1) = 1.\]\(8 \gt 3.841\): reject \(H_0\). Preference depends on gender: women favour X (60%) and men favour Y (60%), and a split this uneven would arise by chance in well under 5% of samples (\(\chi^2 = 8\) also exceeds the 1% value, 6.635).
\(\chi^2 = 8\): reject independence.
Review: