Stat200.PracticeExam2 - No Normal

📚 Stat200.PracticeExam2 - No Normal.pdf

Brief overview

This document summarizes key concepts in statistical inference, focusing on hypothesis testing and confidence intervals for population means and proportions. Mastery of these topics is essential for analyzing data and drawing reliable conclusions in various scientific and research contexts.

Key points

  • Overview of normal distribution and sample means with IQ score examples.
  • Constructing and interpreting confidence intervals for population means.
  • Determining required sample sizes for a specified margin of error.
  • Hypothesis testing procedures for population means, including p-value interpretation.
  • Hypothesis testing for population proportions, including rejection region determination.

1. Normal distribution and sample means

1.1 The normal distribution

  • Population characteristics:
    • Mean: μ=100\mu = 100 dollars
    • Standard deviation: σ=16\sigma = 16 dollars
  • IQ scores follow a normal distribution.

1.1.1 Probability for an individual score

  • Find the probability of a randomly selected person's IQ being over 105.
  • This uses the Z-score formula for a single observation: Z=x−μσZ = \frac{x - \mu}{\sigma}.
  • Calculate the Z-score: Z=105−10016=516=0.3125Z = \frac{105 - 100}{16} = \frac{5}{16} = 0.3125.
  • The probability P(X>105)P(X > 105) is found using the Z-score. Looking up Z=0.3125Z=0.3125 in a standard normal table or calculator gives a cumulative probability of approximately 0.6217.
  • Therefore, P(X>105)=1−P(Z≤0.3125)=1−0.6217=0.3783P(X > 105) = 1 - P(Z \le 0.3125) = 1 - 0.6217 = 0.3783.

📝 Example: The probability that a randomly selected person's IQ is more than 105 is 0.3783.

1.2 Sample means

  • When we take a sample of nn individuals, the average of that sample (Xˉ\bar{X}) also has a distribution.
  • This distribution of sample means is called the sampling distribution of the mean.

1.2.1 Mean and standard deviation of sample means

  • Consider a sample of n=100n = 100 persons.
  • Let Xˉ\bar{X} be the average IQ of these 100 persons.

🎯 Core Concept: The sampling distribution of the mean is centered around the population mean and its spread depends on the population standard deviation and the sample size.

  • Mean of sample means: μXˉ=μ\mu_{\bar{X}} = \mu
  • Standard deviation of sample means (standard error\text{standard error}): σXˉ=σn\sigma_{\bar{X}} = \frac{\sigma}{\sqrt{n}}

📝 Example: For a sample of 100 persons, the mean IQ of the sample (Xˉ\bar{X}) has a mean of μXˉ=100\mu_{\bar{X}} = 100 and a standard deviation of σXˉ=16100=1610=1.60\sigma_{\bar{X}} = \frac{16}{\sqrt{100}} = \frac{16}{10} = 1.60 dollars.

1.3 Confidence intervals for the population mean

  • A confidence interval (CI) provides a range of plausible values for the population mean (μ\mu).
  • It is constructed from sample data.

1.3.1 Constructing a confidence interval

  • Sample data:

    • Sample size: n=15n = 15 members
    • Sample mean: xˉ=6.5\bar{x} = 6.5 dollars
    • Sample standard deviation: s=0.90s = 0.90 dollars
  • Confidence level: 95%

  • When the population standard deviation (σ\sigma) is unknown and the population is normally distributed (or the sample size is large), we use the t-distribution.

  • The formula for a CI for μ\mu is: xˉ±tα/2,n−1(sn)\bar{x} \pm t_{\alpha/2, n-1} \left(\frac{s}{\sqrt{n}}\right).

    • tα/2,n−1t_{\alpha/2, n-1} is the critical t-value for the desired confidence level and degrees of freedom (n−1n-1).
  • For a 95% CI, α=0.05\alpha = 0.05, so α/2=0.025\alpha/2 = 0.025.

  • Degrees of freedom: df=n−1=15−1=14df = n - 1 = 15 - 1 = 14.

  • The critical t-value t0.025,14t_{0.025, 14} is approximately 2.145.

  • The standard error of the mean is sn=0.9015≈0.903.873≈0.232\frac{s}{\sqrt{n}} = \frac{0.90}{\sqrt{15}} \approx \frac{0.90}{3.873} \approx 0.232.

  • The margin of error is tα/2,n−1(sn)≈2.145×0.232≈0.498t_{\alpha/2, n-1} \left(\frac{s}{\sqrt{n}}\right) \approx 2.145 \times 0.232 \approx 0.498.

  • The 95% confidence interval is 6.5±0.4986.5 \pm 0.498 dollars.

📝 Example: A 95% confidence interval for the mean hourly wage is approximately (5.99, 7.00) dollars.

1.3.2 Assumptions for confidence intervals

  • The following assumptions are needed for valid CI results when using the t-distribution:
    • A: The random sample is selected from a normal population.
    • B: The sample standard deviation (ss) is used because the population standard deviation (σ\sigma) is unknown.

🔑 Important: Independence of observations is also crucial.

1.3.3 Interpretation of confidence intervals

  • A 95% confidence interval (5.5,6.5)(5.5, 6.5) dollars means we are 95% confident that the true population mean hourly wage (μ\mu) falls within this range.
  • It does not mean there is a 95% probability that μ\mu is in the interval; the population mean is a fixed value.
  • It also does not mean that 95% of the data falls in this range; that refers to the sample data (xx).

🔑 Important: We are 95% confident that the true population mean is within the calculated interval.

1.4 Determining sample size

  • The required sample size (nn) can be determined to achieve a specific margin of error (MEME) at a given confidence level.
  • The formula is derived from the margin of error formula: ME=zα/2σnME = z_{\alpha/2} \frac{\sigma}{\sqrt{n}}.
  • Rearranging for nn: n=(zα/2σME)2n = \left( \frac{z_{\alpha/2} \sigma}{ME} \right)^2.

1.4.1 Sample size calculation

  • Goal: Estimate μ\mu within 0.5 hours with 95% confidence.
  • Population standard deviation: σ=1.5\sigma = 1.5 hours.
  • Margin of error: ME=0.5ME = 0.5 hours.
  • Confidence level: 95%, so zα/2=1.96z_{\alpha/2} = 1.96.

📝 Example: To estimate the mean hours of TV watched within 0.5 hours with 95% confidence, the required sample size is: n=(1.96×1.50.5)2=(2.940.5)2=(5.88)2≈34.57n = \left( \frac{1.96 \times 1.5}{0.5} \right)^2 = \left( \frac{2.94}{0.5} \right)^2 = (5.88)^2 \approx 34.57. Since sample size must be a whole number, we round up to n=35n = 35.

1.5 Hypothesis testing for a population mean

  • Hypothesis testing allows us to make decisions about a population mean based on sample data.

1.5.1 Stating hypotheses

  • Brochure claim: Participants are expected to lose over 22 pounds in five weeks.
  • Sample data: n=56n=56 participants, sample mean xˉ=23.5\bar{x} = 23.5 pounds, population standard deviation σ=10.2\sigma = 10.2 pounds.
  • We want to test if the average weight loss (μ\mu) is greater than 22 pounds.
  • Null hypothesis (H0H_0): The population mean weight loss is equal to 22 pounds. H0:μ=22H_0: \mu = 22.
  • Alternative hypothesis (HAH_A): The population mean weight loss is greater than 22 pounds. HA:μ>22H_A: \mu > 22.

🎯 Core Concept: The null hypothesis represents the status quo or no effect, while the alternative hypothesis represents the claim we are trying to find evidence for.

1.5.2 Calculating the test statistic

  • Since the population standard deviation (σ\sigma) is known, we use the Z-test.
  • The test statistic is calculated as: Z=xˉ−μ0σ/nZ = \frac{\bar{x} - \mu_0}{\sigma / \sqrt{n}}.
    • μ0\mu_0 is the value of the population mean under the null hypothesis.
  • Z=23.5−2210.2/56=1.510.2/7.483≈1.51.363≈1.1Z = \frac{23.5 - 22}{10.2 / \sqrt{56}} = \frac{1.5}{10.2 / 7.483} \approx \frac{1.5}{1.363} \approx 1.1.

📝 Example: The calculated Z-test statistic is approximately 1.1.

1.5.3 Computing the p-value

  • The p-value is the probability of observing a test statistic as extreme as, or more extreme than, the one calculated, assuming the null hypothesis is true.
  • For a one-tailed test (HA:μ>22H_A: \mu > 22), we need to find P(Z>1.43)P(Z > 1.43).
  • Looking up Z=1.43Z=1.43 in a standard normal table gives a cumulative probability of approximately 0.9236.
  • The p-value is 1−0.9236=0.07641 - 0.9236 = 0.0764.

📝 Example: The p-value for a test statistic of 1.43 is 0.0764.

🔑 Important: If the p-value is less than the significance level (e.g., 0.05), we reject the null hypothesis. In this case, 0.0764 is greater than 0.05, so we would not reject H0H_0 at the 5% significance level.

🔑 Important: The normal distribution and the properties of sample means are fundamental for statistical inference, allowing us to estimate population parameters and test hypotheses using sample data. </document_content>

2. Hypothesis testing for means

2.1 Stating hypotheses

When testing hypotheses about a population mean (μ\mu), you define two competing statements. The null hypothesis (H0H_0) represents a claim of no effect or no difference, often stating that the population mean equals a specific value.

The alternative hypothesis (HAH_A) is what you want to find evidence for. It contradicts the null hypothesis.

Hypotheses can be one-sided or two-sided. A one-sided test looks for evidence in a specific direction (greater than or less than), while a two-sided test looks for evidence in either direction (not equal to).

🔑 Important: The null hypothesis (H0H_0) always contains an equality sign (=, ≤, or ≥). The alternative hypothesis (HAH_A) uses the opposite sign (<, >, or ≠).

2.1.1 Examples of hypothesis statements

Here are examples of how to state hypotheses for different scenarios:

ScenarioNull Hypothesis (H0H_0)Alternative Hypothesis (HAH_A)Type
Diet program claims average loss > 22 poundsμ=22\mu = 22μ>22\mu > 22One-sided
Bacteria count within safety level of 200μ=200\mu = 200μ<200\mu < 200One-sided
Cream improves skin for > 60% of womenp=0.60p = 0.60p>0.60p > 0.60One-sided
Is the average weight loss exactly 22 pounds?μ=22\mu = 22μ≠22\mu \neq 22Two-sided
Is the average bacteria count different from 200?μ=200\mu = 200μ≠200\mu \neq 200Two-sided

2.2 Test statistics

The test statistic measures how far your sample result is from the null hypothesis claim. The type of test statistic depends on whether the population standard deviation (σ\sigma) is known and the sample size.

  • If σ\sigma is known or the sample size is large (n≥30n \ge 30), use a z-test. z=xˉ−μ0σ/nz = \frac{\bar{x} - \mu_0}{\sigma/\sqrt{n}} Here, xˉ\bar{x} is the sample mean, μ0\mu_0 is the hypothesized population mean, σ\sigma is the population standard deviation, and nn is the sample size.

  • If σ\sigma is unknown and the sample size is small (n<30n < 30), use a t-test. t=xˉ−μ0s/nt = \frac{\bar{x} - \mu_0}{s/\sqrt{n}} Here, ss is the sample standard deviation, and the test statistic follows a t-distribution with n−1n-1 degrees of freedom (df).

📝 Example: For a sample mean of 23.5 pounds, a hypothesized mean of 22 pounds, a population standard deviation of 10.2 pounds, and a sample size of 56 participants, the z-test statistic is calculated as: z=23.5−2210.2/56≈1.1z = \frac{23.5 - 22}{10.2/\sqrt{56}} \approx 1.1

2.3 P-values and conclusions

The p-value is the probability of observing a test statistic as extreme as, or more extreme than, the one calculated from your sample, assuming the null hypothesis is true.

  • A small p-value (typically ≤α\le \alpha) suggests that your sample result is unlikely under the null hypothesis.
  • A large p-value (typically >α> \alpha) suggests that your sample result is plausible under the null hypothesis.

The significance level (α\alpha) is the threshold for rejecting the null hypothesis. Common values are 0.05 or 0.01.

🔑 Important:

  • If p-value ≤α\le \alpha: Reject H0H_0. Conclude there is sufficient evidence for HAH_A.
  • If p-value >α> \alpha: Do not reject H0H_0. Conclude there is not sufficient evidence for HAH_A.

2.3.1 Decision making based on p-value

p-value comparisonDecision regarding H0H_0Conclusion about HAH_A
p-value ≤α\le \alphaReject H0H_0Sufficient evidence to support the alternative hypothesis.
p-value >α> \alphaDo not reject H0H_0Not enough evidence to support the alternative hypothesis.

📝 Example: If the p-value is 0.0764 and the significance level α\alpha is 0.05, you do not reject H0H_0 because 0.0764>0.050.0764 > 0.05.

2.4 Rejection regions

The rejection region is a range of test statistic values that would lead you to reject the null hypothesis. This region is defined by the significance level (α\alpha).

  • For a one-sided upper-tail test (HA:μ>μ0H_A: \mu > \mu_0), you reject H0H_0 if the test statistic is greater than a critical value.
  • For a one-sided lower-tail test (HA:μ<μ0H_A: \mu < \mu_0), you reject H0H_0 if the test statistic is less than a critical value.
  • For a two-sided test (HA:μ≠μ0H_A: \mu \neq \mu_0), you reject H0H_0 if the test statistic falls in either tail (is extremely large or extremely small).

📝 Example: For a one-sided test with α=0.01\alpha = 0.01 and a t-distribution with 9 degrees of freedom, you would reject H0H_0 if the t-statistic is less than or equal to -2.821.

2.4.1 Critical values for common tests

Test TypeSignificance Level (α\alpha)Critical Value (z)Critical Value (t, df=9)Rejection Region (Example)
One-sided0.051.6451.833z≥1.645z \ge 1.645 or t≥1.833t \ge 1.833
One-sided0.012.332.821z≥2.33z \ge 2.33 or t≥2.821t \ge 2.821
Two-sided0.05±1.96\pm 1.96±2.262\pm 2.262$
Two-sided0.01±2.576\pm 2.576±3.250\pm 3.250$

2.5 Sample size determination

You can determine the required sample size (nn) to estimate a population mean (μ\mu) within a specified margin of error (EE) with a given confidence level.

n=(zα/2⋅σE)2n = \left( \frac{z_{\alpha/2} \cdot \sigma}{E} \right)^2

  • zα/2z_{\alpha/2} is the z-score corresponding to the desired confidence level. For 95% confidence, zα/2=1.96z_{\alpha/2} = 1.96.
  • σ\sigma is the population standard deviation. If unknown, use an estimate from prior studies or the sample standard deviation.
  • EE is the maximum allowable error (margin of error).

📝 Example: To estimate μ\mu within 0.5 hours with 95% confidence, assuming σ=1.5\sigma = 1.5 hours: n=(1.96⋅1.50.5)2=(5.88)2≈34.57n = \left( \frac{1.96 \cdot 1.5}{0.5} \right)^2 = (5.88)^2 \approx 34.57 You would round up to 35 for the sample size.

2.6 Type I error

A Type I error occurs when you reject the null hypothesis (H0H_0) when it is actually true. The probability of making a Type I error is denoted by α\alpha, which is the significance level of the test.

🔑 Important: Minimizing Type I errors means setting a lower significance level (α\alpha), but this increases the chance of a Type II error (failing to reject H0H_0 when it is false).

🔑 Important: Hypothesis testing for means involves setting up H0H_0 and HAH_A, calculating a test statistic (z or t), and comparing the p-value or test statistic to a rejection region at a chosen significance level (α\alpha) to make a decision.

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

See also