PracticeVideosBlogFlashcards

15.4 Normal Distribution, Statistical Sampling, Correlation, and Regression

Key Takeaways

  • Organize raw samples with frequency tables, histograms, or stem-and-leaf plots before estimating a population.

  • Compute sample mean, variance/standard deviation, median, and quartiles from ordered data; the IQR summarizes spread resistant to extremes.

  • Simple random, stratified, and systematic sampling each control bias differently when estimating population parameters.

  • The Normal model N(μ,σ2)N(\mu,\sigma^2) approximates many measurement distributions; standardize with Z=(X−μ)/σZ=(X-\mu)/\sigma for probability lookups.

  • Scatter plots, correlation, and least-squares regression quantify linear association between paired variables.

Last updated: July 2026

15.4 Normal Distribution, Statistical Sampling, Correlation, and Regression

0. Descriptive Statistics from Raw Sample Data

Before Normal models and regression, Gaokao statistics questions often ask you to organize a raw sample and compute its basic features. Treat this as the mandatory descriptive layer of 统计.

Frequency tables, histograms, and stem-and-leaf plots

Given a sample of size nn, group values into class intervals and record frequencies fif_i (counts) and relative frequencies fi/nf_i/n.

DisplayWhat it showsGaokao use
Frequency distribution tableClass intervals with counts fif_iOrganize raw scores before estimating a population
Frequency histogramAdjacent bars whose heights are frequencies (or densities)Compare shape: unimodal, skewed, roughly Normal
Stem-and-leaf plotStems (leading digits) with leaves (trailing digits)Preserve original data while showing distribution shape

Worked Example (raw sample). Scores: 72,85,78,90,66,85,73,88,79,8472, 85, 78, 90, 66, 85, 73, 88, 79, 84.

Stem-and-leaf (tens | ones):

6 | 6
7 | 2 3 8 9
8 | 4 5 5 8
9 | 0

The sample is unimodal and slightly left-concentrated in the 70s–80s; a histogram with width-10 classes would show the same pattern.

Sample mean, variance, and quartiles

For raw data x1,…,xnx_1,\dots,x_n:

  • Sample mean: xˉ=1n∑i=1nxi\bar{x} = \dfrac{1}{n}\sum_{i=1}^n x_i
  • Sample variance (population-style form often used in high-school contexts): s2=1n∑i=1n(xi−xˉ)2s^2 = \dfrac{1}{n}\sum_{i=1}^n (x_i-\bar{x})^2 (some problems use n−1n-1; follow the formula stated in the question)
  • Sample standard deviation: s=s2s = \sqrt{s^2}
  • Ordered sample x(1)≤⋯≤x(n)x_{(1)} \le \cdots \le x_{(n)}; median is the middle value (or average of two middle values). Quartiles Q1,Q3Q_1,Q_3 split the lower/upper halves; the interquartile range is IQR=Q3−Q1IQR = Q_3 - Q_1. A box plot marks min, Q1Q_1, median, Q3Q_3, max.

Worked Example (continued). For the ten scores above, ∑xi=800\sum x_i = 800, so xˉ=80\bar{x} = 80. Using the 1/n1/n variance form:

s2=110[(72−80)2+(85−80)2+⋯+(84−80)2]=54410=54.4,s=54.4≈7.38.s^2 = \frac{1}{10}\left[(72-80)^2+(85-80)^2+\cdots+(84-80)^2\right]=\frac{544}{10}=54.4,\quad s=\sqrt{54.4}\approx 7.38.

Ordered list: 66,72,73,78,79,84,85,85,88,9066,72,73,78,79,84,85,85,88,90. Median =79+842=81.5= \frac{79+84}{2} = 81.5. Lower half median Q1=73Q_1 = 73, upper half median Q3=85Q_3 = 85, so IQR=12IQR = 12.

These descriptive summaries are what sampling later estimates for a population, and they feed the correlation/regression displays that follow.

1. Normal Distribution

The Normal Distribution (or Gaussian distribution) is the most fundamental continuous probability distribution in statistics, describing phenomena affected by numerous small, independent random forces.

1.1 Probability Density Function

A continuous random variable XX follows a Normal Distribution with mean μ\mu and standard deviation σ>0\sigma > 0, denoted X∼N(μ,σ2)X \sim N(\mu, \sigma^2), if its probability density function (PDF) is:

f(x)=12πσe−(x−μ)22σ2,−∞<x<∞f(x) = \frac{1}{\sqrt{2\pi}\sigma} e^{-\frac{(x-\mu)^2}{2\sigma^2}}, \quad -\infty < x < \infty

1.2 Key Geometric Properties of the Normal Curve

  1. Symmetry: The curve is bell-shaped and symmetric about the vertical line x=μx = \mu.
  2. Maximum Value: The maximum value occurs at x=μx = \mu, where f(μ)=12πσf(\mu) = \frac{1}{\sqrt{2\pi}\sigma}. As σ\sigma decreases, the peak becomes taller and narrower; as σ\sigma increases, the curve flattens.
  3. Asymptotes: The x-axis (y=0y = 0) is a horizontal asymptote as x→±∞x \to \pm\infty.
  4. Inflection Points: The curve has inflection points at x=μ−σx = \mu - \sigma and x=μ+σx = \mu + \sigma.
  5. Standard Normal Distribution: When μ=0\mu = 0 and σ=1\sigma = 1, Z∼N(0,1)Z \sim N(0, 1) is the Standard Normal Distribution. Any X∼N(μ,σ2)X \sim N(\mu, \sigma^2) can be standardized via Z=X−μσZ = \frac{X - \mu}{\sigma}.

1.3 The 3σ3\sigma Empirical Rule

For X∼N(μ,σ2)X \sim N(\mu, \sigma^2), the area under the PDF curve yields standard probabilities:

  • P(μ−σ≤X≤μ+σ)≈0.6827P(\mu - \sigma \le X \le \mu + \sigma) \approx 0.6827
  • P(μ−2σ≤X≤μ+2σ)≈0.9545P(\mu - 2\sigma \le X \le \mu + 2\sigma) \approx 0.9545
  • P(μ−3σ≤X≤μ+3σ)≈0.9973P(\mu - 3\sigma \le X \le \mu + 3\sigma) \approx 0.9973

Due to symmetry about x=μx = \mu:

P(X≤μ)=P(X≥μ)=0.5P(X \le \mu) = P(X \ge \mu) = 0.5 P(X≤μ−a)=P(X≥μ+a)=1−P(X≤μ+a)P(X \le \mu - a) = P(X \ge \mu + a) = 1 - P(X \le \mu + a)

2. Statistical Sampling Methods

Statistical inference relies on selecting representative samples from a target population of size NN.

2.1 Simple Random Sampling

Every combination of nn units has an equal probability of selection.

  • Lottery Method: Draw numbered tokens from an urn (suitable for small NN).
  • Random Number Table: Select units matching pseudo-random digits.

2.2 Stratified Random Sampling

When the population consists of distinct sub-groups (strata) with high between-stratum variability and low within-stratum variability:

  1. Divide population NN into kk mutually exclusive strata of sizes N1,N2,…,NkN_1, N_2, \dots, N_k (∑Ni=N\sum N_i = N).
  2. Sample nin_i items from stratum ii proportionally to its size: niNi=nN  ⟹  ni=n×NiN\frac{n_i}{N_i} = \frac{n}{N} \implies n_i = n \times \frac{N_i}{N}
  3. Sample Mean Formula: xˉ=∑i=1kNiNxˉi\bar{x} = \sum_{i=1}^k \frac{N_i}{N} \bar{x}_i where xˉi\bar{x}_i is the sample mean of stratum ii.

3. Bivariate Correlation and Linear Regression Analysis

3.1 Scatter Plots and Pearson Correlation Coefficient rr

For paired sample data (x1,y1),(x2,y2),…,(xn,yn)(x_1, y_1), (x_2, y_2), \dots, (x_n, y_n), the sample correlation coefficient rr measures the strength and direction of linear association:

r=∑i=1n(xi−xˉ)(yi−yˉ)∑i=1n(xi−xˉ)2∑i=1n(yi−yˉ)2=∑i=1nxiyi−nxˉyˉ(∑xi2−nxˉ2)(∑yi2−nyˉ2)r = \frac{\sum_{i=1}^n (x_i - \bar{x})(y_i - \bar{y})}{\sqrt{\sum_{i=1}^n (x_i - \bar{x})^2} \sqrt{\sum_{i=1}^n (y_i - \bar{y})^2}} = \frac{\sum_{i=1}^n x_i y_i - n \bar{x} \bar{y}}{\sqrt{(\sum x_i^2 - n \bar{x}^2)(\sum y_i^2 - n \bar{y}^2)}}
  • −1≤r≤1-1 \le r \le 1.
  • r>0r > 0: Positive linear correlation; r<0r < 0: Negative linear correlation.
  • ∣r∣→1|r| \to 1: Strong linear relationship; ∣r∣→0|r| \to 0: Weak linear relationship.

3.2 Least Squares Linear Regression

When a strong linear relationship exists, we fit the linear model y^=b^x+a^\hat{y} = \hat{b}x + \hat{a} by minimizing the sum of squared residual errors ∑i=1n(yi−y^i)2\sum_{i=1}^n (y_i - \hat{y}_i)^2.

Estimation Formulas:

b^=∑i=1n(xi−xˉ)(yi−yˉ)∑i=1n(xi−xˉ)2=∑i=1nxiyi−nxˉyˉ∑i=1nxi2−nxˉ2\hat{b} = \frac{\sum_{i=1}^n (x_i - \bar{x})(y_i - \bar{y})}{\sum_{i=1}^n (x_i - \bar{x})^2} = \frac{\sum_{i=1}^n x_i y_i - n \bar{x} \bar{y}}{\sum_{i=1}^n x_i^2 - n \bar{x}^2} a^=yˉ−b^xˉ\hat{a} = \bar{y} - \hat{b} \bar{x}

Critical Property of Linear Regression:

The regression line always passes through the sample centroid (xˉ,yˉ)(\bar{x}, \bar{y}), satisfying yˉ=b^xˉ+a^\bar{y} = \hat{b} \bar{x} + \hat{a}.


4. 2×22 \times 2 Contingency Table and χ2\chi^2 Independence Test

To test whether two categorical variables AA and BB are statistically independent, we construct a 2×22 \times 2 contingency table:

VariableBBB‾\overline{B}Total
AAaabba+ba + b
A‾\overline{A}ccddc+dc + d
Totala+ca + cb+db + dn=a+b+c+dn = a + b + c + d

4.1 Test Statistic K2K^2 (χ2\chi^2) Formula

K2=n(ad−bc)2(a+b)(c+d)(a+c)(b+d)K^2 = \frac{n(ad - bc)^2}{(a+b)(c+d)(a+c)(b+d)}

4.2 Decision Rule Table (Critical Values)

Compare calculated K2K^2 against standard critical thresholds xαx_\alpha:

P(K2≥xα)P(K^2 \ge x_\alpha)0.100.100.050.050.0100.0100.0010.001
Critical Value xαx_\alpha2.7062.7063.8413.8416.6356.63510.82810.828
Confidence Level90%90\%95%95\%99%99\%99.9%99.9\%
  • If K2≥3.841K^2 \ge 3.841, we have at least 95%95\% confidence (p<0.05p < 0.05) to reject independence and conclude AA and BB are associated.
  • If K2<3.841K^2 < 3.841, there is insufficient evidence at the 5%5\% significance level to claim association.

5. Worked Gaokao Exam Examples

Example 1: Normal Distribution Probability Calculation

Problem: The weight XX of apples produced by an orchard follows a normal distribution N(200,100)N(200, 100) (in grams, so μ=200\mu = 200, σ2=100  ⟹  σ=10\sigma^2 = 100 \implies \sigma = 10).

  1. Find P(190≤X≤220)P(190 \le X \le 220).
  2. If 10,000 apples are harvested, estimate the number of apples weighing more than 220 g220\text{ g}.

Detailed Solution:

  1. Express intervals in terms of μ\mu and σ\sigma:

    • μ−σ=200−10=190\mu - \sigma = 200 - 10 = 190
    • μ+σ=200+10=210\mu + \sigma = 200 + 10 = 210
    • μ+2σ=200+20=220\mu + 2\sigma = 200 + 20 = 220

    We know from the empirical rule:

    • P(190≤X≤210)=P(μ−σ≤X≤μ+σ)≈0.6827P(190 \le X \le 210) = P(\mu-\sigma \le X \le \mu+\sigma) \approx 0.6827
    • P(180≤X≤220)=P(μ−2σ≤X≤μ+2σ)≈0.9545P(180 \le X \le 220) = P(\mu-2\sigma \le X \le \mu+2\sigma) \approx 0.9545

    By symmetry:

    • P(X≥220)=1−P(180≤X≤220)2≈1−0.95452=0.04552=0.02275P(X \ge 220) = \frac{1 - P(180 \le X \le 220)}{2} \approx \frac{1 - 0.9545}{2} = \frac{0.0455}{2} = 0.02275
    • P(X≤190)=1−P(190≤X≤210)2≈1−0.68272=0.31732=0.15865P(X \le 190) = \frac{1 - P(190 \le X \le 210)}{2} \approx \frac{1 - 0.6827}{2} = \frac{0.3173}{2} = 0.15865

    Therefore:

    P(190≤X≤220)=1−P(X<190)−P(X>220)=1−0.15865−0.02275=0.8186P(190 \le X \le 220) = 1 - P(X < 190) - P(X > 220) = 1 - 0.15865 - 0.02275 = 0.8186
  2. Expected count weighing >220 g> 220\text{ g}:

    N>220=10000×P(X>220)=10000×0.02275≈227.5≈228 applesN_{>220} = 10000 \times P(X > 220) = 10000 \times 0.02275 \approx 227.5 \approx 228 \text{ apples}

Example 2: Comprehensive Statistics (Regression + χ2\chi^2 Test)

Problem: A study investigated the relationship between weekly study hours (xx) and exam score (yy) for 5 students:

Student12345
Study Hours xix_i24568
Exam Score yiy_i6070758090
  1. Calculate the linear regression equation y^=b^x+a^\hat{y} = \hat{b}x + \hat{a}.
  2. Predict the score of a student who studies 7 hours per week.
  3. In a survey of 100 students on whether studying >5> 5 hours improves passing rates, a 2×22 \times 2 table gave a=40,b=10,c=20,d=30a=40, b=10, c=20, d=30. Test if studying >5>5 hours is associated with passing at the 99%99\% confidence level (x0.01=6.635x_{0.01} = 6.635).

Detailed Solution:

  1. Regression Calculations:

    • xˉ=2+4+5+6+85=255=5\bar{x} = \frac{2 + 4 + 5 + 6 + 8}{5} = \frac{25}{5} = 5
    • yˉ=60+70+75+80+905=3755=75\bar{y} = \frac{60 + 70 + 75 + 80 + 90}{5} = \frac{375}{5} = 75
    • ∑xi2=22+42+52+62+82=4+16+25+36+64=145\sum x_i^2 = 2^2 + 4^2 + 5^2 + 6^2 + 8^2 = 4 + 16 + 25 + 36 + 64 = 145
    • ∑xiyi=(2×60)+(4×70)+(5×75)+(6×80)+(8×90)=120+280+375+480+720=1975\sum x_i y_i = (2 \times 60) + (4 \times 70) + (5 \times 75) + (6 \times 80) + (8 \times 90) = 120 + 280 + 375 + 480 + 720 = 1975

    Now compute slope b^\hat{b}:

    b^=∑xiyi−5xˉyˉ∑xi2−5xˉ2=1975−5(5)(75)145−5(25)=1975−1875145−125=10020=5\hat{b} = \frac{\sum x_i y_i - 5 \bar{x} \bar{y}}{\sum x_i^2 - 5 \bar{x}^2} = \frac{1975 - 5(5)(75)}{145 - 5(25)} = \frac{1975 - 1875}{145 - 125} = \frac{100}{20} = 5

    Compute intercept a^\hat{a}:

    a^=yˉ−b^xˉ=75−5(5)=50\hat{a} = \bar{y} - \hat{b} \bar{x} = 75 - 5(5) = 50

    Thus, the regression equation is:

    y^=5x+50\hat{y} = 5x + 50
  2. Prediction for x=7x = 7:

    y^=5(7)+50=35+50=85 points\hat{y} = 5(7) + 50 = 35 + 50 = 85 \text{ points}
  3. χ2\chi^2 Independence Test: n=40+10+20+30=100n = 40 + 10 + 20 + 30 = 100. ad−bc=(40×30)−(10×20)=1200−200=1000ad - bc = (40 \times 30) - (10 \times 20) = 1200 - 200 = 1000. (ad−bc)2=10002=1,000,000(ad - bc)^2 = 1000^2 = 1,000,000. Row totals: a+b=50a+b = 50, c+d=50c+d = 50. Column totals: a+c=60a+c = 60, b+d=40b+d = 40.

    K2=100×1,000,00050×50×60×40=100,000,0006,000,000=1006≈16.667K^2 = \frac{100 \times 1,000,000}{50 \times 50 \times 60 \times 40} = \frac{100,000,000}{6,000,000} = \frac{100}{6} \approx 16.667

    Since K2≈16.667>6.635=x0.01K^2 \approx 16.667 > 6.635 = x_{0.01} (and even >10.828=x0.001> 10.828 = x_{0.001}), we have over 99.9%99.9\% confidence to reject independence and conclude that studying >5>5 hours per week is significantly associated with passing.

Loading diagram...
Statistical Analysis Pipeline
Test Your Knowledge

Given a normal distribution X ~ N(10, σ^2), if P(X > 14) = 0.15, what is P(6 ≤ X ≤ 14)?

A

0.35

B

0.50

C

0.70

D

0.85

Test Your Knowledge

In a simple linear regression analysis with 10 pairs of data (x_i, y_i), the sample means are x̄ = 4 and ȳ = 15. The calculated regression slope is b̂ = 2.5. What is the linear regression equation?

A

ŷ = 2.5x + 5

B

ŷ = 2.5x + 10

C

ŷ = 4x + 15

D

ŷ = 2.5x + 15

Test Your Knowledge

In a 2 x 2 contingency table with total sample size n = 100, the calculated test statistic is K^2 = 5.20. Given critical values x_0.05 = 3.841 and x_0.01 = 6.635, which conclusion is correct?

A

There is a 99% probability that the two variables are independent.

B

There is less than 95% confidence to claim an association between the variables.

C

We are 99% confident that the two variables are associated.

D

We have at least 95% confidence (p < 0.05) to conclude that the two variables are associated, but less than 99% confidence.

Sections you finish are checked off in the contents.