Probability Statistics

Cover

Lecture 8 Large-Sample Estimation.pdf

1. Introduction to large-sample estimation and point estimation

This section introduces the foundational concepts of estimating population parameters using sample data, focusing on point estimation and its desirable characteristics, particularly in the context of large samples.

1.1 The role of sampling distributions in estimation

In statistical inference, we often aim to estimate an unknown population parameter. When multiple statistics can be used as potential point estimators for a parameter, the sampling distribution of these estimators provides critical information for selecting the "best" one. A good point estimator should have a sampling distribution centered around the true value of the parameter it aims to estimate 3.

1.2 Point estimation and unbiasedness

Point estimation involves using a single statistic, calculated from sample data, to estimate a population parameter.

1.2.1 Definition of an unbiased estimator

An estimator is considered unbiased if the mean of its sampling distribution is precisely equal to the true value of the population parameter being estimated. Formally, if u(X1,X2,…,Xn)=θu(X_1, X_2, \dots, X_n) = \theta, where θ\theta is the population parameter and uu is the statistic (estimator), then uu is an unbiased estimator of θ\theta. If the mean of the sampling distribution does not equal the true parameter value, the estimator is considered biased.

Note: The sampling distribution of an unbiased estimator is centered over the true parameter value, while a biased estimator's distribution is systematically shifted away from it. 4 5.

1.2.2 Desirable characteristics of a point estimator

Beyond unbiasedness, other characteristics are crucial for a good point estimator.

  • Low Variance: The variance of an estimator's sampling distribution should be as small as possible. A low variance ensures that individual estimates are likely to fall close to the true parameter value, leading to more precise estimations.
  • Error of Estimation: The difference between an estimate obtained from a sample and the true value of the population parameter is known as the error of estimation 7.
  • Margin of Error: A practical measure of the error of estimation is the margin of error, often expressed in terms of the standard error. A 95% margin of error provides an upper bound for the error of estimation and is commonly calculated as 1.961.96 times the standard error of the estimator. 8 9.

Important: Both unbiasedness and low variance are important. An estimator can be unbiased but have a large variance, making its estimates highly variable and less reliable. Conversely, a biased estimator with very low variance might consistently miss the true parameter but with small errors. In practice, statisticians often seek estimators that are either unbiased with minimum variance or have a small bias and small variance 6.

1.3 Estimating population means and proportions

The principles of point estimation are applied to estimate common population parameters like the mean and proportion.

1.3.1 Estimating a population mean (μ\mu)

For a quantitative population, the sample mean (xˉ\bar{x}) serves as an unbiased point estimator for the population mean (μ\mu). The standard error of the sample mean is estimated as sn\frac{s}{\sqrt{n}}, where ss is the sample standard deviation and nn is the sample size. For large samples (n≥30n \ge 30), the 95% margin of error for estimating μ\mu is estimated as 1.96×sn1.96 \times \frac{s}{\sqrt{n}} 10.

  • Formula for estimated standard error of xˉ\bar{x}: SE(xˉ)=s2nSE(\bar{x}) = \sqrt{\frac{s^2}{n}}
  • Formula for 95% margin of error for μ\mu (when n≥30n \ge 30): ME=1.96×SE(xˉ)=1.96×snME = 1.96 \times SE(\bar{x}) = 1.96 \times \frac{s}{\sqrt{n}}

Example: A random sample of 50 polar bears yielded an average weight of 980 pounds with a standard deviation of 105 pounds. The point estimate for the average weight of all Arctic polar bears is xˉ=980\bar{x} = 980 pounds. The 95% margin of error is calculated as 1.96×10550≈29.11.96 \times \frac{105}{\sqrt{50}} \approx 29.1 pounds. Thus, we can be fairly confident that the sample estimate is within approximately ±29.1\pm 29.1 pounds of the population mean. 13 14.

1.3.2 Estimating a population proportion (pp)

For a binomial population, the sample proportion (p^=x/n\hat{p} = x/n, where xx is the number of successes and nn is the sample size) is an unbiased point estimator for the population proportion (pp). The standard error of the sample proportion is estimated as p^(1−p^)n\sqrt{\frac{\hat{p}(1-\hat{p})}{n}}. The 95% margin of error for estimating pp is estimated as 1.96×p^(1−p^)n1.96 \times \sqrt{\frac{\hat{p}(1-\hat{p})}{n}} 11.

  • Formula for estimated standard error of p^\hat{p}: SE(p^)=p^(1−p^)nSE(\hat{p}) = \sqrt{\frac{\hat{p}(1-\hat{p})}{n}}
  • Formula for 95% margin of error for pp:
Cover

Lecture 8 Large-Sample Estimation.pdf

1. Introduction to large-sample estimation

This section introduces the fundamental concepts of point estimation, focusing on key properties of estimators and measures of estimation error, particularly within the context of large sample sizes.

1.1 Point estimation

Point estimation involves using a statistic, calculated from sample data, to provide a single value as an estimate for an unknown population parameter. The choice of the best point estimator is guided by its statistical properties, primarily its unbiasedness and the variability of its sampling distribution.

1.1.1 Unbiasedness

An estimator is considered unbiased if the mean of its sampling distribution is equal to the true value of the population parameter it aims to estimate. Formally, if u(X1,X2,…,Xn)u(X_1, X_2, \dots, X_n) is a statistic used to estimate a parameter θ\theta, it is unbiased if E[u(X1,X2,…,Xn)]=θE[u(X_1, X_2, \dots, X_n)] = \theta. If this condition does not hold, the estimator is biased.

Note: An unbiased estimator's sampling distribution is centered around the true parameter value, suggesting that on average, the estimates will be accurate 4.

1.1.2 Variance of an estimator

Beyond unbiasedness, a crucial characteristic of a good point estimator is the variance of its sampling distribution. A smaller variance indicates that individual estimates are more likely to fall close to the true parameter value. While two estimators might be unbiased, the one with a smaller variance is preferred because it offers greater precision.

Important: Even with unbiased estimators, variability exists. A smaller variance in the sampling distribution leads to more consistent and reliable estimates 6.

1.2 Error of estimation

The error of estimation quantifies the difference between an obtained estimate and the true value of the population parameter. This error is typically measured in terms of standard errors.

Remember: The error of estimation highlights how far a particular sample estimate is from the actual population parameter 7.

1.2.1 Margin of error

The margin of error provides a practical upper bound for the error of estimation. For a 95% confidence level, it is commonly calculated as 1.96 times the standard error of the estimator. This value indicates the range within which the true parameter is likely to lie, given the sample data.

Example: For a 95% margin of error, the calculation is 1.96×Standard Error of the Estimator1.96 \times \text{Standard Error of the Estimator} 9.

1.3 Estimating population mean and proportion with large samples

In large-sample scenarios, specific formulas are used to estimate population means and proportions along with their respective margins of error. These methods rely on the sample statistics as point estimators and the Central Limit Theorem's implications for large sample sizes.

1.3.1 Estimating a population mean (μ\mu)

To estimate the population mean (μ\mu) of a quantitative variable, the sample mean (xˉ\bar{x}) serves as an unbiased point estimator. For large samples (typically n≥30n \geq 30), the standard error of the sample mean is estimated as sn\frac{s}{\sqrt{n}}, where ss is the sample standard deviation. The 95% margin of error for estimating μ\mu is then calculated as:

95% Margin of Error=1.96×sn\text{95\% Margin of Error} = 1.96 \times \frac{s}{\sqrt{n}}

Example: A sample of 50 polar bears yielded an average weight of 980 pounds with a standard deviation of 105 pounds. The point estimate for the average weight of all Arctic polar bears is 980 pounds. The 95% margin of error is calculated as 1.96×10550≈±291.96 \times \frac{105}{\sqrt{50}} \approx \pm 29 pounds. This suggests the true average weight is likely within 29 pounds of 980 pounds 13.

1.3.2 Estimating a population proportion (pp)

For a binomial population, the population proportion (pp) is estimated using the sample proportion (p^\hat{p}). The sample proportion is calculated as p^=xn\hat{p} = \frac{x}{n}, where xx is the number of successes in the sample and nn is the sample size. This estimator is unbiased. For large samples, the standard error of the sample proportion is estimated as p^(1−p^)n\sqrt{\frac{\hat{p}(1-\hat{p})}{n}}. The 95% margin of error for estimating pp is:

95% Margin of Error=1.96×p^(1−p^)n\text{95\% Margin of Error} = 1.96 \times \sqrt{\frac{\hat{p}(1-\hat{p})}{n}}

Example: A sample of 100 adults found that 73% believe global warming is a serious problem. The point estimate for the population proportion is p^=0.73\hat{p} = 0.73. The 95% margin of error is calculated as 1.96×0.73(1−0.73)100≈±0.091.96 \times \sqrt{\frac{0.73(1-0.73)}{100}} \approx \pm 0.09. This implies the true proportion is likely between 0.73−0.09=0.640.73 - 0.09 = 0.64 and 0.73+0.09=0.820.73 + 0.09 = 0.82 15.

Cover

Lecture 8 Large-Sample Estimation.pdf

1. Introduction to large-sample estimation

This section introduces the fundamental concepts of point estimation, focusing on the characteristics of desirable estimators and the notion of estimation error.

1.1 Point estimation: The core idea

Point estimation involves using a statistic calculated from sample data to provide a single numerical value as an estimate for an unknown population parameter. The goal is to find a statistic whose sampling distribution is centered over the true parameter value and has minimal variability.

1.2 Properties of point estimators

1.2.1 Unbiased estimators

An estimator is considered unbiased if the mean of its sampling distribution is precisely equal to the true value of the parameter it is estimating. This means that, on average, the estimator will hit the true parameter value.

Formally, if u(X1,X2,…,Xn)u(X_1, X_2, \dots, X_n) is a statistic used to estimate a parameter θ\theta, it is unbiased if: E[u(X1,X2,…,Xn)]=θE[u(X_1, X_2, \dots, X_n)] = \theta If this condition is not met, the estimator is biased. A biased estimator systematically overestimates or underestimates the true parameter.

Note: The sampling distribution of an unbiased estimator is centered on the true parameter value, whereas a biased estimator's distribution is shifted away from it 4.

1.2.2 Minimizing variability

Beyond being unbiased, an ideal point estimator should also have a sampling distribution with the smallest possible variance. Low variance ensures that individual estimates are likely to fall close to the true parameter value, increasing the reliability of the estimate.

Important: While two estimators might both be unbiased, the one with the smaller variance is generally preferred because it provides estimates that are more consistently close to the true parameter 6.

Estimator TypeMean of Sampling DistributionVariance of Sampling DistributionDesirability
Unbiased, High VarianceEqual to θ\thetaLargeLess desirable
Unbiased, Low VarianceEqual to θ\thetaSmallMost desirable
BiasedNot equal to θ\thetaVariesLess desirable

1.3 Error of estimation

The error of estimation is defined as the absolute difference between a specific estimate (the value of a statistic from a particular sample) and the true value of the population parameter.

Error of Estimation=∣Estimate−True Parameter∣\text{Error of Estimation} = |\text{Estimate} - \text{True Parameter}|

This error is typically measured in terms of standard errors, which quantify the typical deviation of the estimator's sampling distribution.

1.3.1 Margin of error

A practical measure of the maximum expected error is the margin of error. For a 95% confidence level, this is commonly calculated as 1.96 times the standard error of the estimator. This value provides an upper bound within which the true parameter is likely to lie, given the sample data.

Example: The 95% margin of error is calculated as 1.96×Standard Error of the Estimator1.96 \times \text{Standard Error of the Estimator} 9.

1.4 Estimating population means and proportions

1.4.1 Estimating a population mean (μ\mu)

For a quantitative population, the sample mean, denoted by xˉ\bar{x}, is a commonly used unbiased point estimator for the population mean μ\mu. Its standard error is estimated as:

SE(xˉ)=σn\text{SE}(\bar{x}) = \frac{\sigma}{\sqrt{n}}

where σ\sigma is the population standard deviation and nn is the sample size. When the population standard deviation σ\sigma is unknown, it can be estimated from the sample standard deviation ss.

For large sample sizes (n≥30n \geq 30), the 95% margin of error for estimating μ\mu is approximated by:

1.96×SE(xˉ)=1.96×sn1.96 \times \text{SE}(\bar{x}) = 1.96 \times \frac{s}{\sqrt{n}}

1.4.2 Estimating a population proportion (pp)

For a binomial population, the sample proportion, denoted by p^=x/n\hat{p} = x/n (where xx is the number of successes in the sample and nn is the sample size), is an unbiased point estimator for the population proportion pp. The standard error of p^\hat{p} is estimated as:

SE(p^)=p(1−p)n\text{SE}(\hat{p}) = \sqrt{\frac{p(1-p)}{n}}

Since pp is unknown, it is often approximated by p^\hat{p} in the standard error calculation for large samples:

SE(p^)≈p^(1−p^)n\text{SE}(\hat{p}) \approx \sqrt{\frac{\hat{p}(1-\hat{p})}{n}}

The 95% margin of error for estimating pp is estimated as:

1.96×SE(p^)≈1.96p^(1−p^)n1.96 \times \text{SE}(\hat{p}) \approx 1.96 \sqrt{\frac{\hat{p}(1-\hat{p})}{n}}

Cover

Lecture 8 Large-Sample Estimation.pdf

1. Introduction to large-sample estimation and point estimation

This section introduces the fundamental concepts of estimating population parameters using sample data, focusing specifically on point estimation and its desirable properties in large-sample scenarios.

1.1 Introduction to point estimation

Point estimation involves using a single numerical value, calculated from sample data, to estimate an unknown population parameter. In practical situations, multiple statistics might be available as potential point estimators for a given parameter. The selection of the "best" estimator is guided by characteristics derived from its sampling distribution.

Note: The primary goal is to find an estimator whose sampling distribution is well-behaved, meaning it is centered around the true parameter value and has minimal variability 3.

1.2 Characteristics of desirable estimators

Two key characteristics are crucial for a good point estimator: unbiasedness and minimal variance.

1.2.1 Unbiasedness

An estimator is considered unbiased if the mean of its sampling distribution is exactly equal to the true value of the population parameter it is estimating. Mathematically, if X1,X2,…,XnX_1, X_2, \dots, X_n are sample observations, and θ^=u(X1,X2,…,Xn)\hat{\theta} = u(X_1, X_2, \dots, X_n) is a statistic used as an estimator for a parameter θ\theta, then θ^\hat{\theta} is unbiased if E[θ^]=θE[\hat{\theta}] = \theta. If the expected value does not equal the true parameter, the estimator is biased 4.

Example: A biased estimator might consistently overestimate or underestimate the true parameter, meaning its sampling distribution is not centered on the true parameter value 5.

1.2.2 Minimum variance

Beyond being centered correctly, a desirable estimator should also have the smallest possible variance in its sampling distribution. A smaller variance implies that individual estimates are more likely to fall close to the true parameter value, leading to more precise estimations.

Important: When comparing two unbiased estimators, the one with the smaller variance is preferred because it provides more reliable estimates 6.

1.3 Error of estimation and margin of error

The error of estimation is defined as the absolute difference between an estimated value and the true value of the population parameter. While this error can vary with each sample, it is often quantified in terms of the standard error of the estimator 7.

The 95% margin of error provides a practical upper bound for the error of estimation. For a large sample, it is commonly calculated as 1.961.96 times the standard error of the estimator This value indicates that, with 95% probability, the true parameter value will lie within the estimated value plus or minus the margin of error 8 9.

1.4 Point estimation for population mean and proportion

Specific formulas exist for estimating population means and proportions using large samples.

1.4.1 Estimating a population mean (μ\mu)

For a quantitative population, the sample mean xˉ\bar{x} is an unbiased point estimator for the population mean μ\mu. Its standard error is typically estimated as: SE(xˉ)=snSE(\bar{x}) = \frac{s}{\sqrt{n}} where ss is the sample standard deviation and nn is the sample size 10.

For large samples (typically n≥30n \ge 30), the 95% margin of error for estimating μ\mu is estimated as: ME=1.96×snME = 1.96 \times \frac{s}{\sqrt{n}}

1.4.2 Estimating a population proportion (pp)

For a binomial population, the sample proportion p^=x/n\hat{p} = x/n (where xx is the number of successes and nn is the sample size) is an unbiased point estimator for the population proportion pp. Its standard error is estimated as 11: SE(p^)=p^(1−p^)nSE(\hat{p}) = \sqrt{\frac{\hat{p}(1-\hat{p})}{n}}

The 95% margin of error for estimating pp is estimated as: ME=1.96×p^(1−p^)nME = 1.96 \times \sqrt{\frac{\hat{p}(1-\hat{p})}{n}}

2. Examples of point estimation for population mean and proportion

This section illustrates point estimation for population parameters using practical examples, detailing the calculation of margins of error and introducing the fundamental concepts of interval estimation.

2.1 Point estimation for population mean

Point estimation involves using a single value from a sample to estimate an unknown population parameter. For the population mean (μ\mu), the sample mean (xˉ\bar{x}) serves as the point estimate. The margin of error quantifies the potential difference between the sample statistic and the population parameter.

Example: Estimating the average weight of polar bears. A sample of n=50n = 50 polar bears yielded an average weight of xˉ=980\bar{x} = 980 pounds, with a sample standard deviation of s=105s = 105 pounds. The point estimate for the average weight of all Arctic polar bears is xˉ=980\bar{x} = 980 pounds.

Cover

Lecture 9 Large-Sample Tests of Hypotheses_Part_1 (2).pdf

This study guide provides an in-depth overview of large-sample hypothesis tests and associated concepts in statistical testing.

full document summary

introduction to large-sample hypothesis tests

The document introduces large-sample tests of hypotheses with an emphasis on statistical reasoning and decision making based on sample data 1.

Important: The content covers both the theoretical framework and practical examples to illustrate hypothesis testing.

structure of a statistical test of hypothesis

A statistical test of hypothesis is composed of five primary parts 3:

  1. Null hypothesis (H0H_0): The starting assumption, e.g., H0:μ=21H_0 : μ = 21, as seen in multiple examples.
  2. Alternative hypothesis (HaH_a): Represents the claim or effect the researcher wishes to support, e.g., Ha:μ≠21H_a : μ ≠ 21 or Ha:p<0.03H_a : p < 0.03 3 4.
  3. Test statistic and p-value: A computed value from sample data (often based on a normal or t-distribution) that is used to evaluate evidence against H0H_0 10.
  4. Significance level and rejection region: The threshold α\alpha (e.g., 0.05 or 0.01) determines the rejection region in the sampling distribution of the test statistic 16.
  5. Conclusion: Deciding whether to reject H0H_0 or not based on the computed test statistic and p-value 3 5.

examples of hypothesis tests

example 1: testing average hourly wage

  • Scenario: The hypothesis test examines whether the average hourly wage of California electricians differs from twenty-one (dollars) 6.
  • Hypotheses formulation:
    • H0:μ=21H_0: μ = 21
    • Ha:μ≠21H_a: μ ≠ 21
  • Decision making: If the test statistic reveals a value that is five standard deviations above the mean (e.g., sample mean xˉ=22x̄=22, standard deviation s=2s=2, and sample size 100100), then H0H_0 is rejected because such an event is extremely unlikely under H0H_0 6 13 14.

Tip: Remember that a two-tailed test requires computing probabilities for both extremes (above and below the hypothesized mean).

example 2: die cutting process

  • Scenario: A manufacturing process produces a three percent (3%) defective rate; the test investigates whether a machine adjustment decreases this proportion 7 8.
  • Hypotheses formulation:
    • H0:p=0.03H_0: p = 0.03
    • Ha:p<0.03H_a: p < 0.03
  • Conclusion: If the sample data indicate a lower defective rate, H0H_0 is rejected in favor of the alternative 7.

example 3: average weekly earnings for male social workers

  • Scenario: The hypothesis test compares the average weekly earnings of male social workers with the average earnings of female social workers (recorded as six hundred seventy, but note that all currency amounts must be written in full letters, e.g., "six hundred seventy") 25.
  • Hypotheses formulation:
    • H0:μ=670H_0: μ = 670
    • Ha:μ>670H_a: μ > 670
  • Mechanics:
    • Calculate the test statistic using the sample mean, standard deviation, and sample size 25.
    • The rejection region is determined by the critical value corresponding to the significance level α=0.01\alpha = 0.01, e.g., if z>2.33z > 2.33, then H0H_0 is rejected 27.
    • In the example, a calculated zz value of 3.413.41 exceeds the critical value, leading to the rejection of H0H_0 27 29.

Example: This demonstrates a right-tailed test since the alternative hypothesis is directional (μ>670μ > 670).

essentials of large-sample t-tests

Large-sample t-tests are used when the sample size is large (typically n≥30n \ge 30), allowing the application of the central limit theorem 21 23.

  • Assumptions:
    • The sample observations are randomly selected.
    • The sample size is sufficiently large so that xˉx̄ is approximately normally distributed 32.

steps in conducting the test

  1. State the hypotheses: Identify H0H_0 and HaH_a. 30
  2. Compute the test statistic: Use the formula
    z=xˉ−μ0s/nz = \frac{x̄ - μ_0}{s / \sqrt{n}}
    where xˉx̄ is the sample mean, μ0μ_0 is the hypothesized mean, ss is the standard deviation, and nn is the sample size 31 33.
  3. Determine the rejection region: Based on the critical value(s) corresponding to the significance level α\alpha 24 31.
  4. Draw a conclusion: Reject H0H_0 if the test statistic falls in the rejection region; otherwise, do not reject H0H_0 10.

calculating the p-value

The p-value quantifies the probability of observing a test statistic as extreme as the sample value under the assumption that H0H_0 is true:

  • For a two-tailed test, the p-value is calculated as:
Cover

Lecture 9 Large-Sample Tests of Hypotheses_Part_1.pdf

1. Introduction to statistical hypothesis testing

Statistical hypothesis testing provides a formal framework for making decisions about population parameters based on sample data, involving a set of structured components to evaluate evidence against a claim.

1.1 Components of a statistical test of hypothesis

A statistical test of hypothesis is built upon five fundamental components that guide the decision-making process:

  • The null hypothesis (H0H_0): This is the default or status quo assumption about a population parameter. It typically represents a statement of no effect, no difference, or a specific value.
  • The alternative hypothesis (HaH_a): This is the hypothesis that the researcher aims to support. It contradicts the null hypothesis and usually reflects a specific effect, difference, or relationship of interest.
  • The test statistic and its p-value: The test statistic is a single numerical value computed from sample data, used to measure how far the sample result deviates from what is expected under the null hypothesis. The p-value is the probability of observing a test statistic as extreme as, or more extreme than, the one calculated from the sample, assuming the null hypothesis is true.
  • The significance level (α\alpha) and the rejection region: The significance level (α\alpha) is a predetermined probability threshold representing the maximum risk of incorrectly rejecting the null hypothesis when it is actually true. The rejection region is a set of values for the test statistic that would lead to the rejection of the null hypothesis.
  • The conclusion: Based on the comparison of the test statistic to the rejection region or the p-value to the significance level, a decision is made to either reject H0H_0 or not reject H0H_0.

3.

1.2 Null and alternative hypotheses

The core of any hypothesis test lies in the formulation of two competing hypotheses: the null hypothesis (H0H_0) and the alternative hypothesis (HaH_a). The researcher's goal is to determine if there is sufficient evidence in the sample data to reject H0H_0 in favor of HaH_a. The process begins by assuming H0H_0 is true. [ 5] 4.

Example: Suppose a researcher wants to demonstrate that the average hourly wage of electricians in California is different from the national average of EUR 21.

  • Alternative Hypothesis (HaH_a): μ≠21\mu \neq 21 (The average hourly wage is not equal to EUR 21).
  • Null Hypothesis (H0H_0): μ=21\mu = 21 (The average hourly wage is equal to EUR 21).

If H0H_0 is rejected, the conclusion is that the average hourly wage is indeed different from EUR 21. 6.

Example: A manufacturing process currently produces an average of 3% defectives. A researcher wants to show that an adjustment to the machine will decrease this proportion.

  • Alternative Hypothesis (HaH_a): p<0.03p < 0.03 (The proportion of defectives is less than 3%).
  • Null Hypothesis (H0H_0): p=0.03p = 0.03 (The proportion of defectives is equal to 3%).

Rejecting H0H_0 would support the claim that the adjusted process yields fewer than 3% defectives. [ 8] 7.

1.2.1 Types of alternative hypotheses

Alternative hypotheses can be directional or non-directional, leading to different types of statistical tests:

  • Two-tailed test: Used when the alternative hypothesis states that a parameter is simply not equal to a specific value. The rejection region is split between the two tails of the distribution.
    • Example: Ha:μ≠21H_a: \mu \neq 21 .
  • One-tailed test: Used when the alternative hypothesis specifies a direction of difference (greater than or less than).
    • Left-tailed test: The rejection region is in the left tail of the distribution.
      • Example: Ha:p<0.03H_a: p < 0.03 [ 15] 9.
    • Right-tailed test: The rejection region is in the right tail of the distribution.
      • Example: Ha:μ>21H_a: \mu > 21 15.

1.3 Test statistic and p-value

To decide whether to reject H0H_0, sample data is used to calculate two key pieces of information: the test statistic and its corresponding p-value. .

1.3.1 The test statistic

The test statistic is a single number derived from the sample data. It is typically based on the best estimator for the population parameter being tested. By converting sample statistics into a standardized test statistic (like a z-score), we can compare our sample result to known probability distributions under the assumption that H0H_0 is true. [ 13]

Example: For the hypothesis H0:μ=21H_0: \mu = 21 versus Ha:μ≠21H_a: \mu \neq 21, with a sample of n=100n=100 electricians yielding a sample mean xˉ=22\bar{x} = 22 and sample standard deviation s=2s=2, the test statistic zz is calculated as: z=xˉ−μ0s/nz = \frac{\bar{x} - \mu_0}{s/\sqrt{n}} Where μ0\mu_0 is the hypothesized mean under H0H_0. Given xˉ=22\bar{x}=22, μ0=21\mu_0=21, s=2s=2, and n=100n=100:

Cover

Lecture 9 Large-Sample Tests of Hypotheses_Part_1.pdf

1. Introduction to statistical hypothesis testing

Statistical hypothesis testing is a formal procedure used to make decisions about population parameters based on sample data, involving a structured approach to evaluate evidence against a default assumption.

1.1 The fundamental components of a hypothesis test

A statistical test of hypothesis is comprised of five core elements that guide the decision-making process. These elements work together to systematically assess sample evidence against a proposed statement about a population.

  • Null Hypothesis (H0H_0): This is the default assumption or statement about a population parameter that is considered true until evidence suggests otherwise. It often represents a status quo or a specific value.
  • Alternative Hypothesis (HaH_a): This is the competing hypothesis that the researcher aims to support. It contradicts the null hypothesis and is what the researcher hopes to find evidence for.
  • Test Statistic and its p-value: These are calculated from sample data to quantify how far the sample results deviate from what would be expected if the null hypothesis were true.
  • Significance Level and Rejection Region: These define the criteria for making a decision. The significance level sets the threshold for rejecting the null hypothesis, and the rejection region specifies the range of test statistic values that lead to rejection.
  • Conclusion: Based on the comparison of the test statistic and p-value to the rejection region and significance level, a decision is made to either reject or not reject the null hypothesis.

Note: The process begins by assuming the null hypothesis (H0H_0) is true. The goal is to determine if the sample data provides sufficient evidence to reject H0H_0 in favor of the alternative hypothesis (HaH_a).

1.2 Formulating null and alternative hypotheses

Hypotheses are statements that compete with each other. The alternative hypothesis (HaH_a) is typically the claim the researcher wishes to support, while the null hypothesis (H0H_0) is its contradiction. The outcome of a hypothesis test leads to one of two conclusions: either reject H0H_0 and conclude HaH_a is true, or fail to reject H0H_0 4 5.

1.2.1 Examples of hypothesis formulation

  • Example 9.1: A researcher wants to show that the average hourly wage of electricians in California is different from EUR 21, the national average.

    • Alternative Hypothesis (HaH_a): μ≠21\mu \neq 21
    • Null Hypothesis (H0H_0): μ=21\mu = 21 If H0H_0 is rejected, the conclusion is that the average hourly wage is not equal to EUR 21 6.
  • Example 9.2: A die-cutting process produces an average of 3% defectives. A researcher wants to show that a machine adjustment will decrease the proportion of defectives (pp).

    • Alternative Hypothesis (HaH_a): p<0.03p < 0.03
    • Null Hypothesis (H0H_0): p=0.03p = 0.03 If H0H_0 is rejected, the conclusion is that the adjusted process produces fewer than 3% defectives 7 8.

1.3 Types of hypothesis tests

Hypothesis tests are classified based on the direction of the alternative hypothesis, which dictates where the rejection region lies in the distribution of the test statistic.

  • Two-tailed test: Used when the alternative hypothesis suggests that a parameter is simply different from a specific value. The rejection region is split between both tails of the distribution. Example 9.1, with Ha:μ≠21H_a: \mu \neq 21, is a two-tailed test 9.

  • One-tailed test: Used when the alternative hypothesis suggests a specific direction of difference.

    • Left-tailed test: Used when HaH_a suggests the parameter is less than a specific value (e.g., Ha:p<0.03H_a: p < 0.03). The rejection region is in the left tail of the distribution. Example 9.2 illustrates a left-tailed test.
    • Right-tailed test: Used when HaH_a suggests the parameter is greater than a specific value (e.g., $H_a: \mu >
Cover

Lecture 9 Large-Sample Tests of Hypotheses_Part_1.pdf

1. Introduction to statistical tests of hypothesis

Statistical tests of hypothesis provide a structured framework for making decisions about population parameters based on sample data, by systematically evaluating evidence against a pre-defined null hypothesis.

1.1 Components of a statistical test of hypothesis

A statistical test of hypothesis is built upon five fundamental components that guide the decision-making process:

  • Null hypothesis (H0H_0): This is a statement of no effect or no difference, representing the status quo or a claim to be tested. It is generally the hypothesis that the researcher wishes to disprove 3.
  • Alternative hypothesis (HaH_a): This is a statement that contradicts the null hypothesis and typically represents the hypothesis the researcher aims to support. It is the focus of the investigation.
  • Test statistic and its p-value: These are calculated from the sample data to quantify the evidence against the null hypothesis. The test statistic is a single number derived from sample data, usually based on the best estimator for the parameter of interest, while the p-value is the probability of observing a test statistic as extreme as, or more extreme than, the one computed from the sample, assuming the null hypothesis is true.
  • Significance level and the rejection region: The significance level (α\alpha) is a pre-determined probability of incorrectly rejecting a true null hypothesis, setting a threshold for decision-making. The rejection region encompasses the values of the test statistic for which the null hypothesis is rejected.
  • Conclusion: Based on the comparison of the test statistic or p-value with the rejection region or significance level, a decision is made to either reject the null hypothesis (concluding that the alternative hypothesis is supported) or fail to reject the null hypothesis.

Note: The process begins by assuming the null hypothesis (H0H_0) is true. The sample data is then used to determine if there is sufficient evidence to reject H0H_0 in favor of the alternative hypothesis (HaH_a).

1.2 Null and alternative hypotheses

The null and alternative hypotheses are competing statements about a population parameter. The alternative hypothesis is typically what the researcher wants to demonstrate, while the null hypothesis is its direct contradiction 4.

  • Null Hypothesis (H0H_0): This is the statement of no effect or no difference. It is assumed to be true at the outset of the test.
  • Alternative Hypothesis (HaH_a): This is the statement that the researcher wishes to find evidence for.

1.2.1 Types of alternative hypotheses

Alternative hypotheses can be directional or non-directional, leading to different types of hypothesis tests:

  • Two-tailed test: Used when the alternative hypothesis states that the parameter is simply different from a specific value. For example, Ha:μ≠21H_a: \mu \neq 21 indicates that the researcher is interested in detecting if the mean is either greater than or less than 21.
  • One-tailed test: Used when the alternative hypothesis specifies a direction of the difference.
    • Left-tailed test: Used when the alternative hypothesis suggests the parameter is less than a specific value. For example, Ha:p<0.03H_a: p < 0.03 indicates the researcher wants to show that the proportion of defectives is lower than 0.03 9.
    • Right-tailed test: Used when the alternative hypothesis suggests the parameter is greater than a specific value. For example, Ha:μ>21H_a: \mu > 21 would be used if the researcher wanted to show that the average hourly wage is higher than 21 dollars.

Example 1: Testing if the average hourly wage of electricians in California is different from the national average of 21 dollars.

  • H0:μ=21H_0: \mu = 21
  • Ha:μ≠21H_a: \mu \neq 21 (This is a two-tailed test) 6.

Example 2: Investigating if a machine adjustment decreases the proportion of defectives from the current 3%.

  • H0:p=0.03H_0: p = 0.03
  • Ha:p<0.03H_a: p < 0.03 (This is a left-tailed test) 7.

1.3 Test statistic and p-value

To decide whether to reject or accept the null hypothesis, information from a sample is used, primarily the test statistic and its corresponding p-value 10.

1.3.1 Test statistic

The test statistic is a single numerical value computed from the sample data. It measures how far the sample result deviates from what is expected under the null hypothesis. It is typically calculated using the best available estimator for the population parameter being tested.

Example: In testing the mean wage of electricians, if the population mean is hypothesized to be μ=21\mu = 21, and a sample yields a mean of xˉ=22\bar{x} = 22 with a standard deviation s=2s = 2 from n=100n=100 electricians, the test statistic is calculated by standardizing the sample mean. Assuming the Central Limit Theorem applies (xˉ\bar{x} follows a normal distribution for $n>

Cover

Lecture 9 Large-Sample Tests of Hypotheses_Part_2 (1).pdf

This document provides an in-depth exploration of large-sample hypothesis tests, covering tests for the difference between means and proportions, confidence intervals, and the distinction between statistical significance and practical importance.

Large-sample tests of hypotheses

This study guide reviews large-sample tests for hypothesis testing, focusing on differences between two population means and binomial proportions, along with an assessment of statistical versus practical importance.

large-sample test for the difference between two population means

A large-sample test for the difference between two population means utilizes the central limit theorem to approximate the distribution of the difference (xˉ1−xˉ2)(\bar{x}_1 - \bar{x}_2) as normal. 3

core assumptions and procedure

  1. Assumptions:

    • Samples are selected randomly and independently.
    • Sample sizes are sufficiently large (n1≥30n_1 \geq 30 and n2≥30n_2 \geq 30). 7
  2. Hypotheses:

    • Null hypothesis: H0:(μ1−μ2)=D0H_0: (\mu_1 - \mu_2) = D_0, often with D0=0D_0 = 0 4
    • Alternative hypothesis: This can be either one-tailed (e.g., HA:(μ1−μ2)>D0H_A: (\mu_1 - \mu_2) > D_0 or <D0< D_0) or two-tailed (HA:(μ1−μ2)≠D0H_A: (\mu_1 - \mu_2) \neq D_0) 5
  3. Test statistic and rejection regions:

    • The test statistic is formulated as a zz value based on the difference in sample means and its standard error.
    • For a one-tailed test, reject H0H_0 if:
      z>zαorz<−zαz > z_\alpha \quad \text{or} \quad z < -z_\alpha (depending on the direction)
    • For a two-tailed test, reject H0H_0 if:
      z>zα/2orz<−zα/2z > z_{\alpha/2} \quad \text{or} \quad z < -z_{\alpha/2}
    • Alternatively, one may compare the pp-value directly to α\alpha. 6

Tip: Always check that the sample sizes meet the large-sample requirements to ensure the validity of the normal approximation.

example: car ownership and academic achievement

An example (Example 9.9) tests whether car ownership affects a student’s academic achievement. 8

  • Data provided:
    • Nonowners (n1=100n_1 = 100) have xˉ1=2.70\bar{x}_1 = 2.70 with variance s12=0.36.s_1^2 = 0.36.
    • Car owners (n2=100n_2 = 100) have xˉ2=2.54\bar{x}_2 = 2.54 with variance s22=0.40.s_2^2 = 0.40.
  • Hypotheses:
    H0:(μ1−μ2)=0versusHA:(μ1−μ2)≠0.H_0: (\mu_1 - \mu_2) = 0 \quad \text{versus} \quad H_A: (\mu_1 - \mu_2) \neq 0. 9
  • Approach:
    • Using a two-tailed test with a significance level of 0.05, the critical values are z=1.96z = 1.96 and z=−1.96z = -1.96. 10
    • In the solution, the calculated test statistic is z=1.84z = 1.84, which lies within the acceptance region since −1.96<1.84<1.96-1.96 < 1.84 < 1.96. 11
    • The pp-value is computed as: p-value=P(z>1.84)+P(z<−1.84)=(1−0.9671)+0.0329=0.0658p\text{-value} = P(z > 1.84) + P(z < -1.84) = (1 - 0.9671) + 0.0329 = 0.0658 Since 0.0658>0.050.0658 > 0.05, the null hypothesis is not rejected. 12 13

Note: When the pp-value is slightly above the chosen significance level, the data do not provide sufficient evidence to reject H0H_0.

hypothesis testing and confidence intervals

A related concept is to use confidence intervals in hypothesis testing. 14

testing via confidence intervals

  • Procedure:
    • Construct a confidence interval for the difference between the two population means.
    • If the hypothesized difference (often 0) lies outside this interval, then the null hypothesis is rejected at the corresponding significance level. 15

example: confidence interval for academic achievement

Example 9.10 constructs a 95% confidence interval for the difference in mean academic achievements between car owners and nonowners. 16

  • The computed interval is approximately:
    0.16±0.170.16 \pm 0.17
    This gives an interval of −0.01<(μ1−μ2)<0.33-0.01 < (\mu_1-\mu_2) < 0.33. 17 18
  • Since zero is within the interval, there is insufficient evidence to conclude a difference in population means. 19

Reminder: Confidence intervals not only test hypotheses but also provide an estimate of the magnitude and direction of the effect.

large-sample test for a binomial proportion

When dealing with a binomial proportion, the sample proportion p^\hat{p} is approximately normally distributed when nn is large. 21

testing procedures and assumptions

  1. Testing for a single proportion:
    • Null hypothesis: H0:p=p0H_0: p = p_0
    • Alternative hypothesis: Can be set as one-tailed (e.g., HA:p<p0H_A: p < p_0) or two-tailed (e.g., HA:p≠p0H_A: p \neq p_0) 22
    • Test statistic: z=p^−p0p0(1−p0)nz = \frac{\hat{p} - p_0}{\sqrt{\frac{p_0(1-p_0)}{n}}} with rejection regions defined similarly to those for means. 23
    • Assumptions:
      The sample must satisfy binomial experiment conditions, and the sample size must be large enough such that np0>5np_0 > 5 and $$nq_0 >
Cover

Lecture 9 Large-Sample Tests of Hypotheses_Part_2.pdf

1. Large-sample tests of hypotheses for the difference between two population means

This section details the methodology for conducting hypothesis tests on the difference between two population means when sample sizes are sufficiently large, relying on the Central Limit Theorem (CLT).

1.1 Introduction to large-sample tests for the difference between means

When dealing with large independent samples, the sampling distribution of the difference between two sample means, xˉ1−xˉ2\bar{x}_1 - \bar{x}_2, approximates a normal distribution. This property allows for the construction of test statistics to evaluate hypotheses about the difference between the true population means, μ1−μ2\mu_1 - \mu_2 3.

1.2 Core components of the hypothesis test

The formal procedure for conducting a large-sample statistical test for the difference between two population means involves several key steps:

  • Null Hypothesis (H0H_0): This hypothesis proposes a specific value for the difference between the population means. It is typically stated as H0:(μ1−μ2)=D0H_0: (\mu_1 - \mu_2) = D_0, where D0D_0 is the hypothesized difference. A common scenario is testing for no difference, in which case D0=0D_0 = 0 4.
  • Alternative Hypothesis (HAH_A): This hypothesis contradicts the null hypothesis and can be directional (one-tailed) or non-directional (two-tailed) 5.
    • One-tailed test: HA:(μ1−μ2)>D0H_A: (\mu_1 - \mu_2) > D_0 or HA:(μ1−μ2)<D0H_A: (\mu_1 - \mu_2) < D_0.
    • Two-tailed test: HA:(μ1−μ2)≠D0H_A: (\mu_1 - \mu_2) \neq D_0.
  • Test Statistic: For large samples, the test statistic is a z-score calculated using the sample means, sample standard deviations, and the hypothesized difference. The formula is: z=(xˉ1−xˉ2)−D0s12n1+s22n2z = \frac{(\bar{x}_1 - \bar{x}_2) - D_0}{\sqrt{\frac{s_1^2}{n_1} + \frac{s_2^2}{n_2}}} where:
    • xˉ1\bar{x}_1 and xˉ2\bar{x}_2 are the sample means.
    • s12s_1^2 and s22s_2^2 are the sample variances.
    • n1n_1 and n2n_2 are the sample sizes.
  • Rejection Region: This is the set of values for the test statistic that lead to the rejection of the null hypothesis. The determination of the rejection region depends on the type of alternative hypothesis and the chosen significance level (α\alpha).
    • One-tailed test: Reject H0H_0 if z>zαz > z_\alpha (for HA:(μ1−μ2)>D0H_A: (\mu_1 - \mu_2) > D_0) or if z<−zαz < -z_\alpha (for HA:(μ1−μ2)<D0H_A: (\mu_1 - \mu_2) < D_0).
    • Two-tailed test: Reject H0H_0 if z>zα/2z > z_{\alpha/2} or z<−zα/2z < -z_{\alpha/2}. The rejection region can also be defined using the p-value: reject H0H_0 if p-value<αp\text{-value} < \alpha 6.

1.3 Assumptions for large-sample tests

The validity of these large-sample tests relies on specific assumptions 7:

  • The samples are selected randomly and independently from their respective populations.
  • The sample sizes are large, typically n1≥30n_1 \geq 30 and n2≥30n_2 \geq 30. This ensures that the Central Limit Theorem is applicable.

1.4 Example application: Academic achievement and car ownership

Consider a study investigating whether car ownership affects student academic achievement. Random samples of 100 non-owners (n1=100n_1=100) and 100 car owners (n2=100n_2=100) were taken. The sample mean GPA for non-owners was xˉ1=2.70\bar{x}_1 = 2.70 with a variance s12=0.36s_1^2 = 0.36, and for car owners, xˉ2=2.54\bar{x}_2 = 2.54 with s22=0.40s_2^2 = 0.40. We want to test if there is a difference in mean achievements between the two groups at a significance level α=0.05\alpha = 0.05 8.

1.4.1 Hypothesis formulation

The null hypothesis is that there is no difference in mean academic achievement: H0:(μ1−μ2)=D0=0H_0: (\mu_1 - \mu_2) = D_0 = 0

The alternative hypothesis is that there is a difference: HA:(μ1−μ2)≠0H_A: (\mu_1 - \mu_2) \neq 0 9.

1.4.2 Calculating the test statistic

Using the provided data and the formula for the z-statistic: z=(2.70−2.54)−00.36100+0.40100=0.160.0036+0.0040=0.160.0076≈0.160.0872≈1.84z = \frac{(2.70 - 2.54) - 0}{\sqrt{\frac{0.36}{100} + \frac{0.40}{100}}} = \frac{0.16}{\sqrt{0.0036 + 0.0040}} = \frac{0.16}{\sqrt{0.0076}} \approx \frac{0.16}{0.0872} \approx 1.84

1.4.3 Critical value approach

For a two-tailed test with α=0.05\alpha = 0.05, the critical values are z=±1.96z = \pm 1.96. Since the calculated test statistic z=1.84z = 1.84 falls within the range −1.96<1.84<1.96-1.96 < 1.84 < 1.96, we do not reject H0H_0. 10.

Note: The calculated z-statistic (1.84) is not in the rejection region (z > 1.96 or z < -1.96) 11.

1.4.4 p-value approach

The p-value is the probability of observing a test statistic as extreme as, or more extreme than, the one calculated, assuming H0H_0 is true. For z=1.84z=1.84: p-value=P(z>1.84)+P(z<−1.84)p\text{-value} = P(z > 1.84) + P(z < -1.84) p-value=(1−0.9671)+0.0329=0.0329+0.0329=0.0658p\text{-value} = (1 - 0.9671) + 0.0329 = 0.0329 + 0.0329 = 0.0658.

Since the p-value (0.06580.0658) is greater than the significance level (α=0.05\alpha = 0.05), H0H_0 is not rejected.