Confidence Intervals, Sample Size Determination, and Hypothesis Testing

Foundations of Inferential Statistics and Estimation

  • Core Terminology:

    • Population (Universe): Consists of all subjects (human or otherwise) that are being studied.

    • Sample: A group of subjects or subsets selected from a population.

    • Parameter: A numerical summary of a population (e.g., population mean μ\mu, population variance σ2\sigma^2, population standard deviation σ\sigma).

    • Statistic: A numerical summary of a sample (e.g., sample mean Xˉ\bar{X}, sample variance s2s^2, sample standard deviation ss).

    • Inferential Statistics: A branch of statistics that uses methods that take a result from a sample, make decisions, and draw conclusions about a population.

  • Fundamental Assumptions of Inferential Statistics:

    • Samples must be randomly selected.

    • Either the sample size must be greater than or equal to 3030 (n≥30n \ge 30), or the population must be normally or approximately normally distributed if the sample size is less than 3030 (n<30n < 30).

  • Estimation Concepts:

    • Estimation: The process of estimating the value of a parameter from information obtained from a sample.

    • Point Estimate: A specific numerical value estimate of a parameter. The best point estimate of the population mean μ\mu is the sample mean Xˉ\bar{X}.

    • Limitation of Point Estimates: Due to sampling error, the sample mean Xˉ\bar{X} will generally differ from the population mean μ\mu. There is no way of knowing how close a particular point estimate is to the population mean, creating uncertainty regarding its accuracy.

    • Interval Estimate: An interval or range of values used to estimate a parameter. An interval estimate may or may not contain the true value of the parameter being estimated.

  • Confidence Intervals and Confidence Levels:

    • Confidence Level: The probability that the interval estimate will contain the parameter. Denoted by (1−α)×100%(1 - \alpha) \times 100\%.

    • Confidence Interval: A specific interval estimate of a parameter determined by using data obtained from a sample and by using the specific confidence level of the estimate.

    • Interpretation of the Level of Confidence: Represents the expected proportion of intervals that will contain the true parameter if a large number of different samples are obtained under identical conditions.

    • Common Confidence Levels: The three most frequently used confidence intervals are 90%90\%, 95%95\%, and 99%99\%.

Repeated confidence intervals capturing the population mean mu

Confidence Intervals for the Mean When Population Standard Deviation Is Known

  • Mathematical Framework:

    • Alpha (α\alpha): The Greek letter α\alpha represents the total area in both tails of the standard normal distribution curve.

    • Tail Area (α2\frac{\alpha}{2}): Represents the area in each individual tail of the standard normal curve.

    • Relationship Between α\alpha and Confidence Level:

    • The stated confidence level is the percentage equivalent to the decimal value of 1−α1 - \alpha, and vice versa.

    • For a 95%95\% confidence interval: α=0.05\alpha = 0.05, because 1−0.05=0.951 - 0.05 = 0.95 (95%95\%).

    • For a 99%99\% confidence interval: α=0.01\alpha = 0.01, because 1−0.01=0.991 - 0.01 = 0.99 (99%99\%).

    • For a 90%90\% confidence interval: α=0.10\alpha = 0.10, because 1−0.10=0.901 - 0.10 = 0.90 (90%90\%).

    • Critical Values (zα/2z_{\alpha/2}): The critical value zα/2z_{\alpha/2} (read "zee sub alpha over two") is the boundary value on the standard normal distribution obtained from Table E:

    • For a 90%90\% confidence interval (α=0.10\alpha = 0.10, α2=0.05\frac{\alpha}{2} = 0.05): zα/2=1.65z_{\alpha/2} = 1.65 (or 1.6451.645).

    • For a 95%95\% confidence interval (α=0.05\alpha = 0.05, α2=0.025\frac{\alpha}{2} = 0.025): zα/2=1.96z_{\alpha/2} = 1.96 (or 1.9601.960).

    • For a 99%99\% confidence interval (α=0.01\alpha = 0.01, α2=0.005\frac{\alpha}{2} = 0.005): zα/2=2.58z_{\alpha/2} = 2.58 (or 2.5762.576).

  • Confidence Interval Formula (σ\sigma Known):

    • Expressed as an inequality:     Xˉ−zα/2(σn)<μ<Xˉ+zα/2(σn)\bar{X} - z_{\alpha/2}\left(\frac{\sigma}{\sqrt{n}}\right) < \mu < \bar{X} + z_{\alpha/2}\left(\frac{\sigma}{\sqrt{n}}\right)

    • Expressed in interval notation:     [Xˉ−zα/2(σn), Xˉ+zα/2(σn)]\left[\bar{X} - z_{\alpha/2}\left(\frac{\sigma}{\sqrt{n}}\right),\, \bar{X} + z_{\alpha/2}\left(\frac{\sigma}{\sqrt{n}}\right)\right]

  • Margin of Error (EE):

    • Also called the maximum error of the estimate.

    • Defined as the maximum likely difference between the point estimate of a parameter and the actual value of the parameter.

    • Formula:     E=zα/2(σn)E = z_{\alpha/2}\left(\frac{\sigma}{\sqrt{n}}\right)

    • For a specified value such as α=0.05\alpha = 0.05, 95%95\% of sample means will fall within this error value on either side of the population mean μ\mu.

Sampling distribution of sample means showing margin of error around the population mean
  • Worked Example 1: Cell Phone Battery Lifetime (99%99\% Confidence Interval):

    • Context: A cell phone manufacturer estimates the population mean of battery lifetimes for all phones of their latest model by measuring the continuous video streaming lifetime.

    • Sample Data:

    • Sample size: n=45n = 45

    • Sample mean (point estimate): Xˉ=5.45 hours\bar{X} = 5.45\,\text{hours}

    • Sample standard deviation: s=1.96 hourss = 1.96\,\text{hours}

    • Known population standard deviation: σ=2.42 hours\sigma = 2.42\,\text{hours}

    • Critical Value: For a 99%99\% confidence level, z0.005=2.576z_{0.005} = 2.576.

    • Standard Error Calculation:     Standard error=σn=2.4245≈0.36\text{Standard error} = \frac{\sigma}{\sqrt{n}} = \frac{2.42}{\sqrt{45}} \approx 0.36

    • Margin of Error Calculation:     Margin of error=zα/2×Standard error=2.576×0.36≈0.93\text{Margin of error} = z_{\alpha/2} \times \text{Standard error} = 2.576 \times 0.36 \approx 0.93

    • Interval Bounds:     Confidence interval=5.45±0.93\text{Confidence interval} = 5.45 \pm 0.93     Lower limit=5.45−0.93=4.52 hours\text{Lower limit} = 5.45 - 0.93 = 4.52\,\text{hours}     Upper limit=5.45+0.93=6.38 hours\text{Upper limit} = 5.45 + 0.93 = 6.38\,\text{hours}

  • Worked Example 2: Cable Breaking Strength (90%90\% Confidence Interval):

    • Context: A manufacturer measures the breaking strength of newly manufactured cables.

    • Sample Data:

    • Sample size: n=100n = 100

    • Sample mean: Xˉ=1950 pounds\bar{X} = 1950\,\text{pounds}

    • Known population standard deviation: σ=81 pounds\sigma = 81\,\text{pounds}

    • Critical Value: For a 90%90\% confidence level (α=0.10\alpha = 0.10, α2=0.050\frac{\alpha}{2} = 0.050), z0.050=1.645z_{0.050} = 1.645.

    • Confidence Interval Calculation:     [1950−(1.645)(81100), 1950+(1.645)(81100)]\left[1950 - (1.645)\left(\frac{81}{\sqrt{100}}\right),\, 1950 + (1.645)\left(\frac{81}{\sqrt{100}}\right)\right]     [1950−(1.645)(8.1), 1950+(1.645)(8.1)]\left[1950 - (1.645)(8.1),\, 1950 + (1.645)(8.1)\right]     [1950−13.3245, 1950+13.3245]≈[1936.7, 1963.3][1950 - 13.3245,\, 1950 + 13.3245] \approx [1936.7,\, 1963.3]

    • Limits:

    • Lower Confidence Limit (LCL): 1936.7 pounds1936.7\,\text{pounds}

    • Upper Confidence Limit (UCL): 1963.3 pounds1963.3\,\text{pounds}

Determining Minimum Sample Size for Estimating the Population Mean

  • Mathematical Derivation and Formula:

    • Derived by solving the margin of error formula E=zα/2(σn)E = z_{\alpha/2}\left(\frac{\sigma}{\sqrt{n}}\right) for nn:     n=zα/2⋅σE\sqrt{n} = \frac{z_{\alpha/2} \cdot \sigma}{E}     n=(zα/2⋅σE)2n = \left(\frac{z_{\alpha/2} \cdot \sigma}{E}\right)^2     where EE is the margin of error, σ\sigma is the population standard deviation, and zα/2z_{\alpha/2} is the critical value corresponding to the specified confidence level.

  • Rounding Rule for Sample Size:

    • If there is any fraction or decimal portion in the resulting answer, round nn up to the next higher whole number.

    • Example: If the calculated value is n=31.2n = 31.2, round up to n=32n = 32.

  • Worked Example 3: River Depth Estimation:

    • Context: A scientist wishes to estimate the average depth of a river with 99%99\% confidence such that the estimate is accurate within 2 feet2\,\text{feet}.

    • Known Parameters:

    • Margin of error: E=2 feetE = 2\,\text{feet}

    • Population standard deviation (from previous study): σ=4.38 feet\sigma = 4.38\,\text{feet}

    • Confidence level: 99%99\% (α=0.01\alpha = 0.01, zα/2=2.58z_{\alpha/2} = 2.58)

    • Calculation:     n=[(2.58)(4.38)2]2=(11.30042)2=(5.6502)2=31.92n = \left[\frac{(2.58)(4.38)}{2}\right]^2 = \left(\frac{11.3004}{2}\right)^2 = (5.6502)^2 = 31.92

    • Decision: Rounding 31.9231.92 up to the next whole number yields n=32n = 32.

    • Conclusion: The scientist needs a sample of at least 3232 measurements to be 99%99\% confident that the estimate is within 2 feet2\,\text{feet} of the true mean depth.

Confidence Intervals for the Mean When Population Standard Deviation Is Unknown (Student's t Distribution)

  • Rationale and Conditions:

    • When σ\sigma is unknown, it must be estimated using the sample standard deviation ss.

    • Using ss introduces additional variability, particularly when the sample size is small (n<30n < 30).

    • To maintain the true confidence level at the specified value (such as 95%95\%), critical values larger than those from the standard normal (zz) distribution are required.

    • These values are derived from the Student's tt distribution (often called the tt distribution).

    • Requirements: Samples must be simple random samples, and the population must be normally or approximately normally distributed (or n≥30n \ge 30).

  • Characteristics of the Student's tt Distribution:

    • Similarities to the Standard Normal Distribution:

    • Bell-shaped.

    • Symmetric about the mean.

    • The mean, median, and mode are equal to 00 and are located at the center of the distribution.

    • The curve approaches but never touches the horizontal (xx) axis.

    • Differences from the Standard Normal Distribution:

    • The variance of the tt distribution is greater than 11.

    • The tt distribution is a family of curves determined by the degrees of freedom (abbreviated d.f.\text{d.f.} or df\text{df}), where d.f.=n−1\text{d.f.} = n - 1.

    • As sample size increases (n→∞n \rightarrow \infty), the degrees of freedom increase, and the tt distribution approaches the standard normal distribution.

  • Confidence Interval Formula (σ\sigma Unknown):

    • Expressed as an inequality:     Xˉ−tα/2(sn)<μ<Xˉ+tα/2(sn)\bar{X} - t_{\alpha/2}\left(\frac{s}{\sqrt{n}}\right) < \mu < \bar{X} + t_{\alpha/2}\left(\frac{s}{\sqrt{n}}\right)

    • Expressed in interval notation:     [Xˉ−tα/2(sn), Xˉ+tα/2(sn)]\left[\bar{X} - t_{\alpha/2}\left(\frac{s}{\sqrt{n}}\right),\, \bar{X} + t_{\alpha/2}\left(\frac{s}{\sqrt{n}}\right)\right]

    • Degrees of freedom: d.f.=n−1\text{d.f.} = n - 1.

    • Table F (Appendix C) lookup procedure:

    • Top row: Locate the specified confidence level under the row labeled "Confidence Intervals".

    • Left column: Locate the row corresponding to d.f.=n−1\text{d.f.} = n - 1.

    • Intersection: Identifies the required critical value tα/2t_{\alpha/2}.

Table F critical value lookup for Student t distribution
  • Worked Example: Finding Critical tt Value from Table F:

    • Find tα/2t_{\alpha/2} for a 95%95\% confidence interval when sample size is n=22n = 22.

    • Degrees of freedom: d.f.=22−1=21\text{d.f.} = 22 - 1 = 21.

    • In Table F, locate d.f.=21\text{d.f.} = 21 in the left column and 95%95\% under "Confidence Intervals". The intersection gives tα/2=2.080t_{\alpha/2} = 2.080.

  • Probability and Area Computations in the tt Distribution:

    • Finding Area Given a tt Value:

    • For df=9\text{df} = 9, area to the right of t=−1t = -1:       P(t>−1 with df=9)=0.8282⋯≈0.828P(t > -1 \text{ with df} = 9) = 0.8282\dots \approx 0.828

    • For df=9\text{df} = 9, area to the right of t=2t = 2:       P(t>2 with df=9)=0.0382⋯≈0.038P(t > 2 \text{ with df} = 9) = 0.0382\dots \approx 0.038

    • For df=22\text{df} = 22, symmetric interval probability between t=−1.28t = -1.28 and t=1.28t = 1.28:       P(−1.28<t<1.28)=P(t>−1.28)−P(t>1.28)P(-1.28 < t < 1.28) = P(t > -1.28) - P(t > 1.28)       P(−1.28<t<1.28)=0.89306082−0.10693918=0.78612164≈0.786P(-1.28 < t < 1.28) = 0.89306082 - 0.10693918 = 0.78612164 \approx 0.786

    • For df=20\text{df} = 20, area to the right of t=−1.87t = -1.87:       P(t≥−1.87)=P(t>−1.87 with df=20)=0.9619029≈0.962P(t \ge -1.87) = P(t > -1.87 \text{ with df} = 20) = 0.9619029 \approx 0.962

    • Finding a Critical Cutoff Value Given an Area:

    • For df=6\text{df} = 6, finding t0.85t_{0.85} such that P(t>t0.85)=0.85P(t > t_{0.85}) = 0.85:       t0.85; df=6=−1.1341⋯≈−1.134t_{0.85;\,\text{df}=6} = -1.1341\dots \approx -1.134

    • For df=8\text{df} = 8, finding t0.03t_{0.03} such that P(t>t0.03)=0.03P(t > t_{0.03}) = 0.03:       t0.03; df=8=2.1891⋯≈2.189t_{0.03;\,\text{df}=8} = 2.1891\dots \approx 2.189

    • For df=11\text{df} = 11, finding cc such that P(t≥c)=0.10P(t \ge c) = 0.10:       c=t0.10≈1.363c = t_{0.10} \approx 1.363

    • For df=3\text{df} = 3, finding cc such that P(−c<t<c)=0.95P(-c < t < c) = 0.95:

      • Unshaded total area: 1−0.95=0.051 - 0.95 = 0.05.

      • Area in each tail: 0.052=0.025\frac{0.05}{2} = 0.025.

      • Right-tail critical value:         c=t0.025; df=3≈3.182c = t_{0.025;\,\text{df}=3} \approx 3.182

  • Worked Example: Daily Stock Return Percentages (95%95\% Confidence Interval):

    • Context: A brokerage house records daily return percentages for a stock over a random sample of n=17 daysn = 17\,\text{days}.

    • Dataset (1717 observations):     −2.59, −0.61, −1.79, −1.62, 0.68, 2.58, −1.04, 1.76, 2.16, 0.71, −2.47, 1.51, 0.23, 2.97, −0.68, −0.18, −2.17-2.59,\, -0.61,\, -1.79,\, -1.62,\, 0.68,\, 2.58,\, -1.04,\, 1.76,\, 2.16,\, 0.71,\, -2.47,\, 1.51,\, 0.23,\, 2.97,\, -0.68,\, -0.18,\, -2.17

    • Summary Statistics:

    • Sample mean: xˉ=−0.032\bar{x} = -0.032

    • Sample standard deviation: s≈1.8s \approx 1.8

    • Degrees of freedom: d.f.=17−1=16\text{d.f.} = 17 - 1 = 16

    • Critical value for 95%95\% confidence: tα/2=2.120t_{\alpha/2} = 2.120

    • Confidence Interval Construction:     [−0.032−(2.120)1.817, −0.032+(2.120)1.817]\left[-0.032 - (2.120)\frac{1.8}{\sqrt{17}},\, -0.032 + (2.120)\frac{1.8}{\sqrt{17}}\right]     [−0.9575, 0.8935… ]≈[−1.0, 0.9][-0.9575,\, 0.8935\dots] \approx [-1.0,\, 0.9]

    • Reported Limits: Lower limit is −1.0-1.0 (or −1-1); Upper limit is 0.90.9.

Foundations of Hypothesis Testing

  • Core Definitions:

    • Hypothesis: A premise or claim to be tested.

    • Null Hypothesis (H0H_0): The value currently accepted for a parameter. It states that there is no difference between a parameter and a specific value.

    • Alternative Hypothesis (H1H_1): Also called the research hypothesis; involves the claim to be tested. It states that there is a difference between a parameter and a specific value.

    • Mathematical property: H0H_0 and H1H_1 are mathematical opposites.

  • Three Hypothesis Testing Configurations:

    • Two-Tailed Test (Equal vs. Not Equal):     H0:parameter=kH_0: \text{parameter} = k     H1:parameter≠kH_1: \text{parameter} \ne k

    • Left-Tailed Test (Equal vs. Less Than):     H0:parameter=k(or ≥k)H_0: \text{parameter} = k \quad (\text{or } \ge k)     H1:parameter<kH_1: \text{parameter} < k

    • Right-Tailed Test (Equal vs. Greater Than):     H0:parameter=k(or ≤k)H_0: \text{parameter} = k \quad (\text{or } \le k)     H1:parameter>kH_1: \text{parameter} > k

  • Hypothesis Formulation Examples:

    • Drink Machine: Coffee machine designed to discharge a mean of 8 ounces8\,\text{ounces} per cup; testing if true mean differs from 88:     H0:μ=8H_0: \mu = 8     H1:μ≠8H_1: \mu \ne 8

    • Toy Attention Span: Historical mean attention span is 25 minutes25\,\text{minutes}; testing if modern children have a mean less than 25 minutes25\,\text{minutes}.     H0:μ=25H_0: \mu = 25     H1:μ<25H_1: \mu < 25

    • Clerical Wage: Previous year's mean wage was $8.25\$8.25; administrator believes this year's mean is greater than last year's mean:     H0:μ=8.25H_0: \mu = 8.25     H1:μ>8.25H_1: \mu > 8.25

  • Statistical Testing Decisions and Philosophical Guardrail:

    • Possible Outcomes:

    • Reject the null hypothesis (H0H_0).

    • Fail to reject (do not reject) the null hypothesis (H0H_0).

    • The Acceptance Fallacy: We never "accept" the null hypothesis. Without inspecting the entire population, the true exact parameter value remains unknown. We only state that we do not reject H0H_0, directly analogous to the legal presumption where a defendant is found "not guilty" rather than proven "innocent".

    • Statistical Significance: When sample results are improbable under the null hypothesis, the difference is statistically significant, leading to rejection of H0H_0.

  • Critical Regions and Critical Values:

    • Test Value (Test Statistic): Numerical value obtained from a statistical test summarizing sample data relative to the hypothesized parameter:     Test value=(observed value)−(expected value)standard error\text{Test value} = \frac{(\text{observed value}) - (\text{expected value})}{\text{standard error}}

    • Critical (Rejection) Region: The set of test values indicating that a significant difference exists and that H0H_0 should be rejected.

    • Noncritical (Nonrejection) Region: The set of test values indicating that the observed difference was likely due to chance and that H0H_0 should not be rejected.

    • Critical Value (C.V.\text{C.V.}): The cutoff number separating the critical region from the noncritical region.

  • Type I and Type II Errors:

    • Type I Error: Rejecting the null hypothesis H0H_0 when H0H_0 is true.     α=P(Type I Error)=P(rejecting H0 when H0 is true)\alpha = P(\text{Type I Error}) = P(\text{rejecting } H_0 \text{ when } H_0 \text{ is true})

    • The level of significance α\alpha (α=1−C\alpha = 1 - C) is chosen directly by the researcher.

    • Type II Error: Not rejecting the null hypothesis H0H_0 when the alternative hypothesis H1H_1 is true (H0H_0 is false).     β=P(Type II Error)=P(not rejecting H0 when H1 is true)\beta = P(\text{Type II Error}) = P(\text{not rejecting } H_0 \text{ when } H_1 \text{ is true})

    • Decision Matrix:

    • H0H_0 is True and Conclusion is "Do not Reject H0H_0": Correct Conclusion.

    • H0H_0 is True and Conclusion is "Reject H0H_0": Type I Error (α\alpha).

    • H1H_1 is True and Conclusion is "Do not Reject H0H_0": Type II Error (β\beta).

    • H1H_1 is True and Conclusion is "Reject H0H_0": Correct Conclusion.

  • Worked Example: Identifying Hypotheses and Errors in Birth Weights:

    • Historical mean birth weight is 7.4 pounds7.4\,\text{pounds}. A scientist tests whether the true mean μ\mu differs from 7.4 pounds7.4\,\text{pounds} (nn sampled, Xˉ=7.7 pounds\bar{X} = 7.7\,\text{pounds}, s=1.6 poundss = 1.6\,\text{pounds}):     H0:μ=7.4H_0: \mu = 7.4     H1:μ≠7.4H_1: \mu \ne 7.4

  • If the scientist rejects H0H_0, she risks committing a Type I error.

  • If the true mean birth weight is actually 7.9 pounds7.9\,\text{pounds}, a Type II error would be failing to reject the hypothesis that μ\mu is equal to 7.47.4 when, in fact, μ\mu is not equal to 7.47.4.

Hypothesis Testing for the Mean Using the Critical Value Method (Z Test)

  • Assumptions and Criteria for the zz Test:

    • The zz test is applied when n≥30n \ge 30, or when the population is normally distributed and σ\sigma is known.

    • Formula for the test statistic:     z=Xˉ−μσ/nz = \frac{\bar{X} - \mu}{\sigma / \sqrt{n}}     where Xˉ\bar{X} is the sample mean, μ\mu is the hypothesized population mean, σ\sigma is the population standard deviation, and nn is the sample size.

  • Standard Normal Critical Values (C.V.\text{C.V.}):

    • Left-Tailed Test (H1:μ<kH_1: \mu < k):

    • For α=0.10\alpha = 0.10: C.V.=−1.28\text{C.V.} = -1.28

    • For α=0.05\alpha = 0.05: C.V.=−1.65\text{C.V.} = -1.65

    • For α=0.01\alpha = 0.01: C.V.=−2.33\text{C.V.} = -2.33

    • Right-Tailed Test (H1:μ>kH_1: \mu > k):

    • For α=0.10\alpha = 0.10: C.V.=+1.28\text{C.V.} = +1.28

    • For α=0.05\alpha = 0.05: C.V.=+1.65\text{C.V.} = +1.65

    • For α=0.01\alpha = 0.01: C.V.=+2.33\text{C.V.} = +2.33

    • Two-Tailed Test (H1:μ≠kH_1: \mu \ne k):

  • For α=0.10\alpha = 0.10: C.V.=±1.65\text{C.V.} = \pm 1.65

  • For α=0.05\alpha = 0.05: C.V.=±1.96\text{C.V.} = \pm 1.96

  • For α=0.01\alpha = 0.01: C.V.=±2.58\text{C.V.} = \pm 2.58

Critical values and rejection regions for left-tailed and right-tailed hypothesis tests
  • The Five Steps of the Traditional (Critical Value) Method:

    • Step 1: State the hypotheses and identify the claim.

    • Step 2: Find the critical value(s) from the appropriate statistical table.

    • Step 3: Compute the test value (test statistic).

    • Step 4: Make the decision to reject or not reject the null hypothesis.

    • Step 5: Summarize the results in the context of the problem.

  • Worked Example: Critical Value Comparison (Right-Tailed):

    • Hypotheses: H0:μ=7H_0: \mu = 7, H1:μ>7H_1: \mu > 7 at α=0.10\alpha = 0.10.

    • Given critical value: zα=1.282z_{\alpha} = 1.282.

    • Given test statistic: z=2.195z = 2.195.

    • Evaluation: Since 2.195>1.2822.195 > 1.282, the test statistic lies within the rejection region.

    • Decision: Reject the null hypothesis.

  • Worked Example: Restaurant Wait Times (zz Test, Critical Value Method):

    • Context: Historical mean wait time is 9 minutes9\,\text{minutes}. Following menu changes, a manager suspects wait times increased. Random sample of n=44n = 44 customers yields Xˉ=10.4 minutes\bar{X} = 10.4\,\text{minutes}. Known σ=3.3 minutes\sigma = 3.3\,\text{minutes}; α=0.05\alpha = 0.05.

    • Step 1: State hypotheses:     H0:μ=9H_0: \mu = 9     H1:μ>9(Claim)H_1: \mu > 9 \quad (\text{Claim})

    • Step 2: Critical value for right-tailed test at α=0.05\alpha = 0.05 is z0.05≈1.645z_{0.05} \approx 1.645.

    • Step 3: Compute test value:     z=10.4−93.3/44=1.43.3/6.6332≈2.814z = \frac{10.4 - 9}{3.3 / \sqrt{44}} = \frac{1.4}{3.3 / 6.6332} \approx 2.814

    • Step 4: Make decision: Since z=2.814>1.645z = 2.814 > 1.645, the test statistic lies in the rejection region. Reject H0H_0.

    • Step 5: Conclusion: There is enough evidence to conclude that the mean wait time is now greater than 9 minutes9\,\text{minutes}.

  • Worked Example: Light Bulb Lifetimes (zz Test, Two-Tailed Critical Value Method):

    • Context: S & J Power reports mean light bulb lifetime of 55 months55\,\text{months}. A consumer advocate tests n=70n = 70 bulbs, finding Xˉ=58 months\bar{X} = 58\,\text{months}. Known σ=8 months\sigma = 8\,\text{months}. Test at α=0.01\alpha = 0.01.

    • Step 1: State hypotheses:     H0:μ=55H_0: \mu = 55     H1:μ≠55(Claim)H_1: \mu \ne 55 \quad (\text{Claim})

  • Step 2: Critical values for two-tailed test with α=0.01\alpha = 0.01 (α2=0.005\frac{\alpha}{2} = 0.005):   −z0.005≈−2.576andz0.005≈2.576-z_{0.005} \approx -2.576 \quad \text{and} \quad z_{0.005} \approx 2.576

  • Step 3: Compute test statistic:   z=58−558/70=30.95618≈3.137z = \frac{58 - 55}{8 / \sqrt{70}} = \frac{3}{0.95618} \approx 3.137

  • Step 4: Decision: Since z=3.137>2.576z = 3.137 > 2.576, the test statistic falls in the upper rejection region. Reject H0H_0.

  • Step 5: Conclusion: Yes, there is sufficient evidence at the 0.010.01 level of significance to conclude that the population mean lifetime differs from 55 months55\,\text{months}.

Hypothesis Testing for the Mean Using the P-Value Method

  • Definition and Interpretation of PP-Value:

    • A PP-value is the probability of obtaining a sample statistic at least as extreme as the one observed in the data, assuming that the null hypothesis is true.

    • A smaller PP-value provides stronger evidence in favor of the alternative hypothesis.

  • The Decision Rule When Using a PP-Value:

    • If P-value≤αP\text{-value} \le \alpha, reject the null hypothesis.

    • If P-value>αP\text{-value} > \alpha, do not reject the null hypothesis.

  • The Five Steps of the PP-Value Method:

    • Step 1: State the hypotheses and identify the claim.

    • Step 2: Compute the test value (test statistic).

    • Step 3: Find the PP-value corresponding to the test statistic.

    • Step 4: Make the decision by comparing the PP-value with α\alpha.

    • Step 5: Summarize the results.

  • Worked Example: Abstract PP-Value Decision:

    • Hypotheses: H0:μ=5H_0: \mu = 5, H1:μ≠5H_1: \mu \ne 5 at α=0.05\alpha = 0.05.

    • Given test statistic: z=−2.024z = -2.024.

    • Given PP-value: 0.0430.043 (split as 0.02150.0215 in each tail).

    • Evaluation: Since the PP-value (0.0430.043) is less than the level of significance (α=0.05\alpha = 0.05), reject the null hypothesis.

  • Worked Example: Restaurant Wait Times (zz Test, PP-Value Method):

    • Context: Mean wait time historical baseline μ=9 minutes\mu = 9\,\text{minutes}. Sample of n=44n = 44 customers yields Xˉ=10.4 minutes\bar{X} = 10.4\,\text{minutes}. Population standard deviation is σ=4.1 minutes\sigma = 4.1\,\text{minutes}. Tested at α=0.05\alpha = 0.05.

    • Step 1: State hypotheses:     H0:μ=9H_0: \mu = 9     H1:μ>9H_1: \mu > 9

    • Step 2: Calculate test statistic:     z=10.4−94.1/44≈2.265z = \frac{10.4 - 9}{4.1 / \sqrt{44}} \approx 2.265

    • Step 3: Calculate PP-value for a right-tailed test:     P-value=P(Z≥2.265)=1−P(Z<2.265)≈0.012P\text{-value} = P(Z \ge 2.265) = 1 - P(Z < 2.265) \approx 0.012

    • Step 4: Compare PP-value to α\alpha:     0.012≤0.05  ⟹  Reject H00.012 \le 0.05 \implies \text{Reject } H_0

    • Step 5: Conclusion: Since the PP-value is less than or equal to α\alpha, the null hypothesis is rejected. There is enough evidence to conclude that the mean wait time is now greater than 9 minutes9\,\text{minutes}.

  • Worked Example: Adult Blood Sodium Levels (zz Test, Two-Tailed PP-Value Method):

    • Context: Textbook states mean sodium level is 142 mEq142\,\text{mEq} per liter of blood. A medical researcher suspects modern diets alter this level. A sample of n=31n = 31 adults has Xˉ=149 mEq\bar{X} = 149\,\text{mEq}. Known σ=14 mEq\sigma = 14\,\text{mEq}. Test at α=0.05\alpha = 0.05.

    • Step 1: State hypotheses:     H0:μ=142H_0: \mu = 142     H1:μ≠142H_1: \mu \ne 142

  • Step 2: Compute test statistic:   z=149−14214/31=72.5146≈2.784z = \frac{149 - 142}{14 / \sqrt{31}} = \frac{7}{2.5146} \approx 2.784

  • Step 3: Compute two-tailed PP-value:   P-value=P(Z≤−2.784)+P(Z≥2.784)P\text{-value} = P(Z \le -2.784) + P(Z \ge 2.784)   P-value=P(Z≤−2.784)+[1−P(Z<2.784)]≈0.005P\text{-value} = P(Z \le -2.784) + [1 - P(Z < 2.784)] \approx 0.005

  • Step 4: Evaluate against α=0.05\alpha = 0.05:   0.005≤0.05  ⟹  Reject H00.005 \le 0.05 \implies \text{Reject } H_0

  • Step 5: Conclusion: Yes, there is sufficient evidence to conclude that the population mean adult sodium level differs from that given in the textbook.

Hypothesis Testing for the Mean When Population Standard Deviation Is Unknown (t Test)

  • Conditions and Formula for the tt Test:

    • Employed when σ\sigma is unknown and the population is normally or approximately normally distributed.

    • Formula for the test value:     t=Xˉ−μs/nt = \frac{\bar{X} - \mu}{s / \sqrt{n}}     with degrees of freedom d.f.=n−1\text{d.f.} = n - 1.

  • Worked Example: Godwit Migration Distance (Critical Value Method):

    • Context: Literature states godwits migrate between Alaska and New Zealand with mean distance μ=11,475 km\mu = 11{,}475\,\text{km}. A researcher claims breeding farther south reduces this distance. A sample of n=23n = 23 godwits yields Xˉ=11,325 km\bar{X} = 11{,}325\,\text{km} with s=325 kms = 325\,\text{km}. Tested at α=0.10\alpha = 0.10.

    • Hypotheses:     H0:μ=11,475H_0: \mu = 11{,}475     H1:μ<11,475(Claim)H_1: \mu < 11{,}475 \quad (\text{Claim})

    • Degrees of Freedom: d.f.=23−1=22\text{d.f.} = 23 - 1 = 22.

    • Critical Value: For a left-tailed test at α=0.10\alpha = 0.10 with df=22\text{df} = 22:     −t0.10≈−1.321-t_{0.10} \approx -1.321

    • Test Statistic:     t=11,325−11,475325/23=−15067.766≈−2.213t = \frac{11{,}325 - 11{,}475}{325 / \sqrt{23}} = \frac{-150}{67.766} \approx -2.213

    • Decision: Since t=−2.213<−1.321t = -2.213 < -1.321, the test statistic falls in the rejection region. Reject H0H_0.

    • Conclusion: There is enough evidence to support the claim that the mean distance traveled non-stop by godwits is now less than 11,475 km11{,}475\,\text{km}.

  • Worked Example: Corporate Email Handling Time (Two-Tailed PP-Value Method):

    • Context: Historical baseline indicates employees spend μ=163 minutes\mu = 163\,\text{minutes} dealing with email. An independent consultant samples n=29n = 29 employees, finding Xˉ=177 minutes\bar{X} = 177\,\text{minutes} and s=43 minutess = 43\,\text{minutes}. Test at α=0.10\alpha = 0.10.

    • Hypotheses:     H0:μ=163H_0: \mu = 163     H1:μ≠163H_1: \mu \ne 163

    • Degrees of Freedom: d.f.=29−1=28\text{d.f.} = 29 - 1 = 28.

    • Test Statistic:     t=177−16343/29=147.9849≈1.753t = \frac{177 - 163}{43 / \sqrt{29}} = \frac{14}{7.9849} \approx 1.753

    • PP-Value Computation: Since the test is two-tailed and the observed tt is positive, the PP-value is twice the upper tail area:     P-value=2⋅P(t≥1.753)≈0.090P\text{-value} = 2 \cdot P(t \ge 1.753) \approx 0.090

    • Decision: Since 0.090≤0.100.090 \le 0.10, reject H0H_0.

    • Conclusion: There is enough evidence to reject the claim that the mean number of minutes employees spend dealing with email is equal to 163163.

  • Worked Example: Electronics Manufacturing Completion Time (Left-Tailed PP-Value Method):

    • Context: Historic completion time is 75 minutes75\,\text{minutes}. Improvements are claimed to reduce time to less than 75 minutes75\,\text{minutes}. A random sample of n=14n = 14 runs yields Xˉ=72 minutes\bar{X} = 72\,\text{minutes} and s=9 minutess = 9\,\text{minutes}. Test at α=0.05\alpha = 0.05.

    • Hypotheses and Parameters:     H0:μ=75H_0: \mu = 75     H1:μ<75H_1: \mu < 75     d.f.=14−1=13\text{d.f.} = 14 - 1 = 13

    • Test Statistic:     t=72−759/14=−32.40535≈−1.247t = \frac{72 - 75}{9 / \sqrt{14}} = \frac{-3}{2.40535} \approx -1.247

    • PP-Value Calculation:     P-value=P(t≤−1.247)=1−P(t>−1.247)≈0.117P\text{-value} = P(t \le -1.247) = 1 - P(t > -1.247) \approx 0.117

    • Decision: Since the PP-value (0.1170.117) is greater than α=0.05\alpha = 0.05, do not reject H0H_0.

    • Conclusion: No, it cannot be concluded that the mean completion time using the new process is less than 75 minutes75\,\text{minutes}.

  • Worked Example: Coffee Machine Discharge Volume (Two-Tailed PP-Value Method):

    • Context: A coin-operated machine is designed to discharge a mean of 8 fluid ounces8\,\text{fluid ounces} per cup. A sample of n=17n = 17 cups yields Xˉ=8.02 fluid ounces\bar{X} = 8.02\,\text{fluid ounces} with s=0.18 fluid ouncess = 0.18\,\text{fluid ounces}. Test at α=0.05\alpha = 0.05.

    • Hypotheses and Parameters:     H0:μ=8H_0: \mu = 8     H1:μ≠8H_1: \mu \ne 8     d.f.=17−1=16\text{d.f.} = 17 - 1 = 16

  • Test Statistic:   t=8.02−80.18/17=0.020.043656≈0.458t = \frac{8.02 - 8}{0.18 / \sqrt{17}} = \frac{0.02}{0.043656} \approx 0.458

  • PP-Value Calculation:   P-value=P(t≤−0.458)+P(t≥0.458)P\text{-value} = P(t \le -0.458) + P(t \ge 0.458)   P-value=[1−P(t>−0.458)]+P(t≥0.458)≈0.653P\text{-value} = [1 - P(t > -0.458)] + P(t \ge 0.458) \approx 0.653

  • Decision: Since P-value=0.653>0.05P\text{-value} = 0.653 > 0.05, fail to reject H0H_0.

  • Conclusion: No, there is not enough evidence to conclude that the mean discharge differs from 8 fluid ounces8\,\text{fluid ounces}.