Business Statistics II: Hypothesis Testing I Study Notes

Learning Objectives for Hypothesis Testing

  • Conceptual Understanding: Develop a thorough understanding of what is meant by hypothesis testing.
  • Statistical Elements: Identify and utilize the core elements of a statistical test.
  • Single Population Mean: Conduct inference about a single population mean.
  • Single Binomial Proportion: Conduct inference about a single binomial proportion.
  • Single Population Variance: Conduct inference about a single population variance.

Introduction to Hypothesis Testing

  • Definition: Hypothesis testing (also referred to as significance testing) is a formal method for testing a claim or hypothesis regarding a parameter in a population by utilizing data measured in a sample.
  • Estimation vs. Hypotheses: Generally, the true values of population parameters are unknown and must be estimated. However, researchers often have hypotheses concerning what those true values are.
  • The Method: In this process, a hypothesis is tested by determining the likelihood that a specific sample statistic could have been selected, assuming the hypothesis regarding the population parameter were true.
  • Primary Purpose: The major purpose of hypothesis testing is to choose between two competing hypotheses about the value of a population parameter.     * Example: One hypothesis might claim that the wages of men and women are equal, while an alternative hypothesis might claim that men earn more than women.

The Null and Alternative Hypotheses

  • Null Hypothesis (H0H_0): The specific hypothesis to be tested. It is commonly referred to as the null hypothesis and is symbolized by H0H_0.
  • Alternative Hypothesis (HaH_a or H1H_1): The other hypothesis, which is assumed to be true only if the null hypothesis is found to be false. This is symbolized by HaH_a or H1H_1.

Errors in Hypothesis Testing

  • When making a decision about H0H_0 and H1H_1 using sample data, two distinct types of errors can occur:     1. Type I Error: This occurs when H0H_0 is rejected even though it is actually true.     2. Type II Error: This occurs when H0H_0 is accepted (or not rejected) even though it is actually false.
  • Severity: Although both errors are undesirable, rejecting a true null hypothesis (Type I) is typically regarded as the more serious error.

Probabilities Associated with Errors and Test Quality

  • α\alpha (Alpha): Equal to P(Type I error)P(\text{Type I error}). It is the probability of rejecting H0H_0 when H0H_0 is true. It can also be interpreted as the probability of accepting H1H_1 when H0H_0 is true.
  • β\beta (Beta): Equal to P(Type II error)P(\text{Type II error}). It is the probability of not rejecting H0H_0 when H0H_0 is false. It can also be interpreted as the probability of accepting H0H_0 when H1H_1 is true.
  • Relationship Between Alpha and Beta:     * α\alpha and β\beta are not independent.     * When the probability of one type of error is kept small, the probability of the other type of error will increase.     * The only way to reduce both α\alpha and β\beta simultaneously is to increase the sample size (nn).
  • Key Statistical Levels:     * Significance Level: This is represented by α\alpha.     * Confidence Level: This is represented by 1−α1 - \alpha.     * Power of the Test: This is represented by 1−β1 - \beta.

Elements of a Statistical Test

  • The formal procedure for a statistical test involves five key steps:     1. Formulate Hypotheses: State the null and alternative hypotheses to be tested.     2. Test Statistic: Determine the appropriate test statistic and calculate it using the sample data.     3. Rejection Region: Determine the rejection region (critical region) based on the significance level.     4. Comparison: Compare the calculated test statistic to the critical region to draw initial statistical conclusions.     5. Conclusion: Write the final conclusion in terms of the original problem context.

Inference About a Single Population Mean: Large Sample Case

  • Conditions: The sample size must be large (n≥30n \ge 30).
  • Assumptions:     * A random sample of size nn is selected from a population with mean μ\mu (unknown) and variance σ2\sigma^2 (known or unknown).     * Let X1,X2,...,XnX_1, X_2, ..., X_n be the sample observations.     * The restriction n≥30n \ge 30 can be ignored if the population is normal and if σ2\sigma^2 is known.
  • Parameter of Interest: The population mean μ\mu.
  • Point Estimator: Xˉ=1n∑i=1nXi\bar{X} = \frac{1}{n} \sum_{i=1}^n X_i
  • Test Statistic: Z=Xˉ−μ0σ/nZ = \frac{\bar{X} - \mu_0}{\sigma / \sqrt{n}}. (Note: If σ\sigma is unknown, it can be estimated by the sample standard deviation SS).
  • Sampling Distribution: Z-distribution (Standard Normal).
  • Summary of Hypotheses and Rejection Regions (R.R.):     1. Upper-Tail Test: H0:μ≤μ0H_0: \mu \le \mu_0 (or H0:μ=μ0H_0: \mu = \mu_0) vs. H1:μ>μ0H_1: \mu > \mu_0. Reject H0H_0 if Z>ZαZ > Z_{\alpha}.     2. Lower-Tail Test: H0:μ≥μ0H_0: \mu \ge \mu_0 (or H0:μ=μ0H_0: \mu = \mu_0) vs. H1:μ<μ0H_1: \mu < \mu_0. Reject H0H_0 if Z<−ZαZ < -Z_{\alpha}.     3. Two-Tail Test: H0:μ=μ0H_0: \mu = \mu_0 vs. H1:μ≠μ0H_1: \mu \neq \mu_0. Reject H0H_0 if ∣Z∣>Zα/2|Z| > Z_{\alpha/2}.

Inference About a Single Population Mean: Small Sample Case

  • Conditions: The sample size is small (n<30n < 30).
  • Assumptions:     * The population from which the sample is drawn is normal.     * The mean and variance of the population are unknown.
  • Point Estimator: Xˉ=∑i=1nXin\bar{X} = \frac{\sum_{i=1}^n X_i}{n}
  • Test Statistic: T=Xˉ−μ0S/nT = \frac{\bar{X} - \mu_0}{S / \sqrt{n}}
  • Sampling Distribution: t-distribution with n−1n - 1 degrees of freedom.
  • Summary of Hypotheses and Rejection Regions (R.R.):     1. Upper-Tail Test: H0:μ≤μ0H_0: \mu \le \mu_0 vs. H1:μ>μ0H_1: \mu > \mu_0. Reject H0H_0 if T>tα,(n−1)T > t_{\alpha, (n-1)}.     2. Lower-Tail Test: H0:μ≥μ0H_0: \mu \ge \mu_0 vs. H1:μ<μ0H_1: \mu < \mu_0. Reject H0H_0 if T<−tα,(n−1)T < -t_{\alpha, (n-1)}.     3. Two-Tail Test: H0:μ=μ0H_0: \mu = \mu_0 vs. H1:μ≠μ0H_1: \mu \neq \mu_0. Reject H0H_0 if ∣T∣>tα/2,(n−1)|T| > t_{\alpha/2, (n-1)}.

Inference About a Single Binomial Proportion

  • Assumptions:     * The population of interest is a binomial population.     * π\pi represents the probability of success (population proportion of successes).     * A random sample of size nn is selected.
  • Parameter of Interest: The population proportion of successes π\pi.
  • Point Estimation: p=Xnp = \frac{X}{n}, where XX is the number of successes in the sample (X1+X2+...+XnX_1 + X_2 + ... + X_n).
  • Test Statistic: Z=p−π0π0(1−π0)nZ = \frac{p - \pi_0}{\sqrt{\frac{\pi_0(1 - \pi_0)}{n}}}
  • Sampling Distribution: Z-distribution.
  • Summary of Hypotheses and Rejection Regions (R.R.):     1. Upper-Tail Test: H0:π≤π0H_0: \pi \le \pi_0 vs. H1:π>π0H_1: \pi > \pi_0. Reject H0H_0 if Z>ZαZ > Z_{\alpha}.     2. Lower-Tail Test: H0:π≥π0H_0: \pi \ge \pi_0 vs. H1:π<π0H_1: \pi < \pi_0. Reject H0H_0 if Z<−ZαZ < -Z_{\alpha}.     3. Two-Tail Test: H0:π=π0H_0: \pi = \pi_0 vs. H1:π≠π0H_1: \pi \neq \pi_0. Reject H0H_0 if ∣Z∣>Zα/2|Z| > Z_{\alpha/2}.

Inference About a Single Population Variance

  • Assumptions:     * The population from which the sample is drawn is normal or approximately normal.     * X1,X2,...,XnX_1, X_2, ..., X_n is a random sample from a N(μ,σ2)N(\mu, \sigma^2) population.     * The mean μ\mu and the variance σ2\sigma^2 are unknown.
  • Parameter of Interest: The population variance σ2\sigma^2.
  • Point Estimation: S2S^2
  • Test Statistic: χ2=(n−1)S2σ02\chi^2 = \frac{(n - 1)S^2}{\sigma_0^2} or ∑i=1n(Xi−Xˉ)2σ02\sum_{i=1}^n \frac{(X_i - \bar{X})^2}{\sigma_0^2}
  • Sampling Distribution: Chi-square distribution (\chi^2) with n−1n - 1 degrees of freedom.
  • Summary of Hypotheses and Rejection Regions (R.R.):     1. Upper-Tail Test: H0:σ2≤σ02H_0: \sigma^2 \le \sigma_0^2 vs. H1:σ2>σ02H_1: \sigma^2 > \sigma_0^2. Reject H0H_0 if χ2>χα,(n−1)2\chi^2 > \chi^2_{\alpha, (n-1)}.     2. Lower-Tail Test: H0:σ2≥σ02H_0: \sigma^2 \ge \sigma_0^2 vs. H1:σ2<σ02H_1: \sigma^2 < \sigma_0^2. Reject H0H_0 if χ2<χ1−α,(n−1)2\chi^2 < \chi^2_{1-\alpha, (n-1)}.     3. Two-Tail Test: H0:σ2=σ02H_0: \sigma^2 = \sigma_0^2 vs. H1:σ2≠σ02H_1: \sigma^2 \neq \sigma_0^2. Reject H0H_0 if χ2>χα/2,(n−1)2\chi^2 > \chi^2_{\alpha/2, (n-1)} or χ2<χ1−α/2,(n−1)2\chi^2 < \chi^2_{1-\alpha/2, (n-1)}.

Examples and Exercise Questions

  • Question 1 (Aptitude Test Scores):     * Context: A personnel manager finds mean scores on aptitude tests for entry-level positions are at most 160160 points.     * Data: Sample size n=41n = 41, sample mean Xˉ=187.9\bar{X} = 187.9 points, sample standard deviation s=25s = 25 points.     * Task: Test at 5%5\% significance level that the population mean is at most 160160 points.

  • Question 2 (Chemical Plant Production):     * Context: A plant produced an average of 11001100 pounds of chemical per day historically.     * Data: Based on 260260 operating days, mean = 10601060 pounds/day, standard deviation = 340340 pounds/day.     * Task: Do the data provide sufficient evidence at α=5%\alpha = 5\% to indicate that the average daily production has dropped significantly?

  • Question 3 (Study Time Statistics):     * Context: Sample of 2121 students regarding study hours in the week before finals.     * Data: Sample mean = 4545 hours, sample variance = 111111. Assume normal distribution.     * Task (a): Test at 5%5\% significance level H0:μ=40H_0: \mu = 40 against H1:μ>40H_1: \mu > 40.     * Task (b): Test at 5%5\% significance level H0:σ=10H_0: \sigma = 10 hours.

  • Question 4 (Job Dissatisfaction Survey):     * Context: Survey of 20002000 secondary school teachers regarding job dissatisfaction.     * Data: 16001600 teachers indicated they strongly dislike their current work.     * Task (a): Calculate the point estimate of the proportion π\pi of teachers who dislike their work.     * Task (b): At α=0.05\alpha = 0.05, can we conclude that the population proportion π\pi is at least 0.60.6?

  • Question 5 (Variance Testing Reiteration):     * Context: Using the same data from Question 3 (Sample of 2121 students, sample mean = 4545 hours, sample variance = 111111).     * Task: Test at the 5%5\% significance level the null hypothesis that the standard deviation is 1010 hours (equivalent to σ2=100\sigma^2 = 100).