Chapter

📚 Chapter(4).pdf

Brief overview

This chapter introduces foundational statistical concepts crucial for data analysis. Understanding these topics allows for the interpretation of data distributions and the basic framework of inferential statistics.

Key points

  • Understanding Z-scores and their properties
  • The normal distribution and empirical rule
  • Hypothesis testing for a population mean

1. Understanding Z-scores and their properties

1.1 What is a Z-score?

  • A Z-score is a standardized value. It indicates how far a data point is from the mean. This distance is measured in units of standard deviation 3.
  • It is also known as a standard score.

1.2 Calculating Z-scores

  • A raw score (xx) is converted to a Z-score (ZZ) using its mean (μ\mu) and standard deviation (σ\sigma).
  • The formula is: Z=x−μσZ = \frac{x - \mu}{\sigma}.

1.2.1 Example calculation

  • Given scores: 6, 8, 11, 9, 10, 5, 7.
  • Calculate the mean (μ\mu): μ=8\mu = 8.
  • Calculate the standard deviation (σ\sigma): σ=2\sigma = 2 5.
  • Calculate Z-scores for each score:
  • For x=6x=6: Z=6−82=−1Z = \frac{6 - 8}{2} = -1.
  • For x=8x=8: Z=8−82=0Z = \frac{8 - 8}{2} = 0.
  • For x=11x=11: Z=11−82=1.5Z = \frac{11 - 8}{2} = 1.5 6.

Z-scores transform raw data into a standardized scale for comparison.

1.3 Interpreting Z-scores

  • The Z-score's sign and magnitude provide interpretation:
Z-ScoreInterpretation
Z=0Z = 0Exactly at the mean
Z>0Z > 0Above the mean
Z<0Z < 0Below the mean
Z=1Z = 1One standard deviation above the mean
Z=−1Z = -1One standard deviation below the mean
Z=2Z = 2Two standard deviations above the mean
Z=−2Z = -2Two standard deviations below the mean
  • The mean of any set of Z-scores is always 0 (μZ=0\mu_Z = 0).
  • The standard deviation of any set of Z-scores is always 1 (σZ=1\sigma_Z = 1).
  • The sum of all Z-scores in a distribution is 0 (∑Z=0\sum Z = 0).

Z-scores standardize a distribution to have a mean of 0 and a standard deviation of 1.

1.5 Applying Z-scores: Relative Performance

  • Z-scores help compare performance across different scales or subjects. A higher Z-score indicates better relative performance.

1.5.1 Example: Comparing subject performance

  • Ali's marks: Arabic Accounting Mathematics .
  • Class means: Arabic Accounting Mathematics .
  • Standard deviations: Arabic Accounting Mathematics 1 2 4.
SubjectAli's Mark (xx)Class Mean (μ\mu)Std. Deviation (σ\sigma)Z-Score (Z=x−μσZ = \frac{x-\mu}{\sigma})
Arabic7269172−691=3.00\frac{72-69}{1} = 3.00
Accounting6968469−684=0.25\frac{69-68}{4} = 0.25
Mathematics7579275−792=−2.00\frac{75-79}{2} = -2.00

1.6 Effect of linear transformations on Z-scores

  • When a variable (XX) is linearly transformed into a new variable (YY) using the formula Y=aX+bY = aX + b:
  • The new mean is μY=aμX+b\mu_Y = a\mu_X + b.
  • The new standard deviation is σY=∣a∣σX\sigma_Y = |a|\sigma_X.
  • The new Z-score (ZYZ_Y) depends on the sign of 'aa':
  • If a>0a > 0, then ZY=ZXZ_Y = Z_X.
  • If a≤0a \leq 0, then ZY=−ZXZ_Y = -Z_X 7.

1.6.1 Example: Transformation

  • Original scores: 40, 50, 60, 70, 80.
  • Original Mean (μX\mu_X): 60.
  • Original Standard Deviation (σX\sigma_X): ≈14.14\approx 14.14 (or 10210\sqrt{2}).
  • Transformation: Y=−2X+10Y = -2X + 10.
  • New Mean (μY\mu_Y): μY=(−2)+10=−110\mu_Y = (-2) + 10 = -110 13 .
  • New Standard Deviation (σY\sigma_Y): σY=∣−2∣(102)=202≈28.28\sigma_Y = |-2|(10\sqrt{2}) = 20\sqrt{2} \approx 28.28.
  • If original score x=70x=70:
  • Original Z-score: ZX=70−60102=10102=12≈0.7071Z_X = \frac{70 - 60}{10\sqrt{2}} = \frac{10}{10\sqrt{2}} = \frac{1}{\sqrt{2}} \approx 0.7071.
  • Since a=−2a = -2 (negative), the new Z-score is ZY=−ZX=−12≈−0.7071Z_Y = -Z_X = -\frac{1}{\sqrt{2}} \approx -0.7071 14.

Linear transformations preserve the relative standing of data points, but their Z-scores might flip sign if the slope is negative.

🔑 Important: Z-scores are crucial for comparing values from different distributions and understanding their position relative to the mean in terms of standard deviations.

2. The normal distribution and empirical rule

2.1 The normal distribution

The normal distribution is a common pattern in data, characterized by a bell-shaped, symmetric curve. This curve is completely defined by its mean (μ\mu) and standard deviation (σ\sigma).

The total area under the curve represents 100% of the data, and the curve approaches the horizontal axis without ever touching it.

2.1.1 Standard normal distribution

A special case is the standard normal distribution. It has a mean (μ\mu) of 0 and a standard deviation (σ\sigma) of 1.

This is often represented by the variable ZZ, where Z∼N(0,1)Z \sim N(0, 1) 18.

The standard normal curve is symmetric around zero.

The area to the left of a specific value zz on the standard normal curve gives the probability P(Z≤z)P(Z \leq z) 19.

The standard normal curve is symmetric around zero. The shaded area to the left of zz represents P(Z≤z)P(Z \leq z) 22. A normal distribution curve illustrating the symmetry around zero and the probability of Z being greater than -z equals the probability of Z being less than z.

2.1.2 Calculating probabilities

Probabilities for a standard normal variable ZZ can be found using a Z-table, which shows the cumulative area to the left of a given zz-score. Several fundamental probability rules apply 21:

  • P(Z>z)=1−P(Z<z)P(Z > z) = 1 - P(Z < z): The probability of being greater than zz is one minus the probability of being less than zz.
  • P(Z<−z)=1−P(Z<z)P(Z < -z) = 1 - P(Z < z): Due to symmetry, the probability of being less than −z-z is the same as one minus the probability of being less than zz.
  • P(Z>−z)=P(Z<z)P(Z > -z) = P(Z < z): The probability of being greater than −z-z is equal to the probability of being less than zz, thanks to symmetry.
  • P(z1<Z<z2)=P(Z<z2)−P(Z<z1)P(z_1 < Z < z_2) = P(Z < z_2) - P(Z < z_1): The probability of ZZ being between two values is the difference between their cumulative probabilities.

Use the Z-table for cumulative areas to the left of zz.

2.2 The empirical rule

The empirical rule, also known as the 68-95-99.7 rule, provides a quick way to estimate the percentage of data within certain standard deviations of the mean for a normal distribution.

IntervalPercentage of Data
μ−σ\mu - \sigma to μ+σ\mu + \sigma68%
μ−2σ\mu - 2\sigma to μ+2σ\mu + 2\sigma95%
μ−3σ\mu - 3\sigma to μ+3σ\mu + 3\sigma99.7%

This rule is based on the proportions of data falling within specific ranges around the mean:

  • About 68% of data falls within one standard deviation of the mean (μ±σ\mu \pm \sigma).
  • About 95% of data falls within two standard deviations of the mean (μ±2σ\mu \pm 2\sigma).
  • About 99.7% of data falls within three standard deviations of the mean (μ±3σ\mu \pm 3\sigma).

A normal distribution curve illustrating the number of students whose heights are greater than 170 cm.

The empirical rule offers approximate percentages for data within standard deviations.

📝 Example: If student heights are normally distributed with a mean of 165 cm and a standard deviation of 10 cm, approximately 68% of students will be between 155 cm and 175 cm tall 16.

2.3 Applying normal distribution to real-world data

To find probabilities or counts for a non-standard normal variable X∼N(μ,σ2)X \sim N(\mu, \sigma^2), we first convert XX to a standard normal variable ZZ using the formula: Z=X−μσZ = \frac{X - \mu}{\sigma} 25. Once XX is converted to ZZ, we can use the Z-table to find probabilities.

Convert non-standard normal variables to Z-scores for probability calculations.

2.3.1 Calculating probabilities for non-standard variables

Consider heights of 10-year-old boys, normally distributed with μ=177\mu = 177 cm and σ=7\sigma = 7 cm.

  • The probability a boy is shorter than 170 cm:

  • Convert to Z-score: Z=(170−177)/7=−1Z = (170 - 177) / 7 = -1.

  • Using the Z-table, P(Z<−1)≈0.1587P(Z < -1) \approx 0.1587. So, about 15.87% of boys are shorter than 170 cm.

  • The probability a boy is taller than 191 cm:

  • Convert to Z-score: Z=(191−177)/7=2Z = (191 - 177) / 7 = 2.

  • P(X>191)=P(Z>2)=1−P(Z<2)≈1−0.9772=0.0228P(X > 191) = P(Z > 2) = 1 - P(Z < 2) \approx 1 - 0.9772 = 0.0228. So, about 2.28% of boys are taller than 191 cm 27.

A normal distribution curve illustrating the percentage of students whose heights are less than 155 cm.

For non-standard normal variables, standardize to Z-scores to use Z-tables.

2.3.2 Finding values from probabilities

We can also find a value xx if we know the probability. For example, if 20% of employees earn more than a certain income level xx, we want to find xx such that P(X>x)=0.20P(X > x) = 0.20.

  • This means P(X<x)=1−0.20=0.80P(X < x) = 1 - 0.20 = 0.80.
  • We find the zz-score corresponding to a cumulative probability of 0.80, which is approximately z=0.84z = 0.84.
  • Then, we use the formula x=μ+zσx = \mu + z\sigma. If μ=4000\mu = 4000 dollars and σ=500\sigma = 500 dollars, then x=4000+(0.84)=4000+420=4420x = 4000 + (0.84) = 4000 + 420 = 4420 dollars 34 .

🔑 Important: Use the Z-score formula Z=(X−μ)/σZ = (X - \mu) / \sigma to convert, and X=μ+ZσX = \mu + Z\sigma to reverse the process.

2.3.3 Calculating counts and percentages

The normal distribution helps us find the number or percentage of observations within a certain range.

  • Number of students: If 5,000 students have heights normally distributed with μ=165\mu = 165 cm and σ=10\sigma = 10 cm, the number of students taller than 170 cm is found by:
  • Z=(170−165)/10=0.5Z = (170 - 165) / 10 = 0.5.
  • P(X>170)=P(Z>0.5)=1−P(Z<0.5)≈1−0.6915=0.3085P(X > 170) = P(Z > 0.5) = 1 - P(Z < 0.5) \approx 1 - 0.6915 = 0.3085.
  • Number of students = 5000×0.3085≈15435000 \times 0.3085 \approx 1543 students 29.

A normal distribution curve illustrating the number of students whose heights are greater than 140 cm.

  • Percentage of students: The percentage of students with heights less than 155 cm is calculated as:
  • Z=(155−165)/10=−1Z = (155 - 165) / 10 = -1.
  • P(X<155)=P(Z<−1)≈0.1587P(X < 155) = P(Z < -1) \approx 0.1587.
  • Percentage = 0.1587×100%=15.87%0.1587 \times 100\% = 15.87\% 30.

🔑 Important: To find counts, multiply the total number of observations by the calculated probability. To find percentages, multiply the probability by 100%.

🔑 Important: For reverse questions, find the zz-score for the given probability using the Z-table, then convert it back to the original variable's scale.

🔑 Important: The normal distribution is fundamental for understanding and analyzing many real-world data sets.

3. Hypothesis testing for a population mean

3.1 Introduction to hypothesis testing

Hypothesis testing is a statistical method that uses sample data to make decisions about a population parameter. It helps determine if there's enough evidence to reject a claim about the population.

We do not prove hypotheses; we either reject or fail to reject them based on sample evidence 35.

3.2 Stating hypotheses

3.2.1 Null and alternative hypotheses

  • Null Hypothesis (H0H_0): Represents the status quo or no difference. It always contains an equality sign (=,≤,≥=, \le, \ge). It assumes there is no effect or difference 36.
  • Alternative Hypothesis (H1H_1): Represents the claim or what we want to prove. It contains a strict inequality sign (<,>,≠<, >, \ne). It reflects the researcher's claim or expected difference 37.

3.2.2 Types of alternative hypotheses

The choice of H1H_1 dictates the rejection region.

Type of TestAlternative Hypothesis (H1H_1)Rejection RegionArea (Significance Level α\alpha)
Right-tailedμ>μ0\mu > \mu_0Z>ZαZ > Z_\alphaα\alpha (right tail)
Left-tailedμ<μ0\mu < \mu_0Z<−ZαZ < -Z_\alphaα\alpha (left tail)
Two-tailedμ≠μ0\mu \ne \mu_0Z<−Zα/2Z < -Z_{\alpha/2} or Z>Zα/2Z > Z_{\alpha/2}α\alpha (total, α/2\alpha/2 each tail)

38 39 40## 3.3 Significance level and confidence level

3.3.1 Significance level (α\alpha)

The significance level (α\alpha) is the probability of committing a Type I Error, which is rejecting a true null hypothesis. Common values include 0.10, 0.05, and 0.01.

3.3.2 Confidence level (1−α1 - \alpha)

The confidence level (1−α1 - \alpha) is the probability that a confidence interval contains the true population parameter.

α\alpha (Significance Level)1−α1 - \alpha (Confidence Level)
0.1090%
0.0595%
0.0199%

42

🔑 Important: A smaller α\alpha means a larger critical value. This makes the test stricter but increases the chance of a Type II Error (failing to reject a false null hypothesis).

3.4 Z-test for a population mean

The Z-test is used when the population standard deviation (σ\sigma) is known.

3.4.1 Conditions for Z-test

  • The population standard deviation (σ\sigma) is known.
  • The sample is random and independent.
  • The population is normally distributed, or the sample size is large (n≥30n \ge 30).

3.4.2 Test statistic

The Z-test statistic is calculated as: Z=xˉ−μ0σ/nZ = \frac{\bar{x} - \mu_0}{\sigma / \sqrt{n}} where:

  • xˉ\bar{x} is the sample mean.
  • μ0\mu_0 is the hypothesized population mean.
  • σ\sigma is the population standard deviation.
  • nn is the sample size.

If the null hypothesis is true, the Z statistic follows the standard normal distribution, N(0,1)N(0,1).

🔑 Important: Use the Z-test when σ\sigma is known or when n≥30n \ge 30 due to the Central Limit Theorem 43.

3.4.3 Decision rule

The decision rule depends on the type of test (two-tailed, left-tailed, or right-tailed) and the chosen significance level (α\alpha).

Two-Tailed Z-Test.

  • Hypotheses: H0:μ=μ0H_0: \mu = \mu_0, H1:μ≠μ0H_1: \mu \ne \mu_0
  • Rejection Region: Reject H0H_0 if ∣Z∣>Zα/2|Z| > Z_{\alpha/2}
  • Critical Values: | α\alpha | Zα/2Z_{\alpha/2} | |:------- |:------------- | | 0.10 | 1.645 | | 0.05 | 1.960 | | 0.01 | 2.576 |
  • Decision:
  • If −Zα/2≤Z≤Zα/2-Z_{\alpha/2} \le Z \le Z_{\alpha/2}, fail to reject H0H_0.
  • If Z<−Zα/2Z < -Z_{\alpha/2} or Z>Zα/2Z > Z_{\alpha/2}, reject H0H_0.

Right-Tailed Z-Test.

  • Hypotheses: H0:μ=μ0H_0: \mu = \mu_0, H1:μ>μ0H_1: \mu > \mu_0
  • Rejection Region: Reject H0H_0 if Z>ZαZ > Z_\alpha
  • Critical Values: | α\alpha | ZαZ_\alpha | |:------- |:--------- | | 0.10 | 1.282 | | 0.05 | 1.645 | | 0.01 | 2.326 |
  • Decision:
  • If Z≤ZαZ \le Z_\alpha, fail to reject H0H_0.
  • If Z>ZαZ > Z_\alpha, reject H0H_0.

Left-Tailed Z-Test.

  • Hypotheses: H0:μ=μ0H_0: \mu = \mu_0, H1:μ<μ0H_1: \mu < \mu_0
  • Rejection Region: Reject H0H_0 if Z<−ZαZ < -Z_\alpha
  • Critical Values: | α\alpha | −Zα-Z_\alpha | |:------- |:---------- | | 0.10 | -1.282 | | 0.05 | -1.645 | | 0.01 | -2.326 |
  • Decision:
  • If Z≤−ZαZ \le -Z_\alpha, reject H0H_0.
  • If Z>−ZαZ > -Z_\alpha, fail to reject H0H_0.

3.5 Examples

3.5.1 Two-tailed Z-test example

A company claims its employees' mean monthly salary is 5000 dollars. A sample of 64 employees shows a mean salary of 5200 dollars with a population standard deviation of 800 dollars.

Test the claim at α=0.05\alpha = 0.05.

  • Hypotheses: H0:μ=5000H_0: \mu = 5000, H1:μ≠5000H_1: \mu \ne 5000
  • Test Statistic: Z=5200−5000800/64=200100=2.00Z = \frac{5200 - 5000}{800 / \sqrt{64}} = \frac{200}{100} = 2.00
  • Critical Values: For α=0.05\alpha = 0.05 (two-tailed), Zα/2=1.96Z_{\alpha/2} = 1.96. Rejection region: Z<−1.96Z < -1.96 or Z>1.96Z > 1.96.
  • Decision: Since Z=2.00>1.96Z = 2.00 > 1.96, reject H0H_0.
  • Conclusion: There is sufficient evidence at the 5% significance level to conclude the mean monthly salary is not 5000 dollars 47.

3.5.2 Left-tailed Z-test example

A factory claims its product mean weight is 50 kg. A sample of 36 items has a mean weight of 47 kg with a population standard deviation of 12 kg.

Test if the true mean weight is less than 50 kg at α=0.05\alpha = 0.05.

  • Hypotheses: H0:μ=50H_0: \mu = 50, H1:μ<50H_1: \mu < 50
  • Test Statistic: Z=47−5012/36=−32=−1.50Z = \frac{47 - 50}{12 / \sqrt{36}} = \frac{-3}{2} = -1.50
  • Critical Value: For α=0.05\alpha = 0.05 (left-tailed), −Zα=−1.645-Z_\alpha = -1.645. Reject H0H_0 if Z<−1.645Z < -1.645.
  • Decision: Since −1.50>−1.645-1.50 > -1.645, fail to reject H0H_0.
  • Conclusion: At α=0.05\alpha = 0.05, there is not enough evidence to reject the claim 48.

3.5.3 Right-tailed Z-test example

A company claims its average daily production is 100 units. A sample of 64 units has a mean of 104 units with a population standard deviation of 16 units.

Test if the mean production is greater than 100 units at α=0.01\alpha = 0.01 49.

  • Hypotheses: H0:μ=100H_0: \mu = 100, H1:μ>100H_1: \mu > 100
  • Test Statistic: Z=104−10016/64=42=2.00Z = \frac{104 - 100}{16 / \sqrt{64}} = \frac{4}{2} = 2.00
  • Critical Value: For α=0.01\alpha = 0.01 (right-tailed), Zα=2.326Z_\alpha = 2.326. Reject H0H_0 if Z>2.326Z > 2.326.
  • Decision: Since 2.00<2.3262.00 < 2.326, do not reject H0H_0.
  • Conclusion: There is not sufficient evidence at α=0.01\alpha = 0.01 to conclude that the mean is greater than 100 50.

🔑 Important: The core of hypothesis testing involves comparing a calculated test statistic to a critical value (or region) determined by the significance level and the alternative hypothesis 41 44 45 46.

© 2026 Maeve. All rights reserved. This content is protected by copyright.

See also