Wiki Page, Math 13 - Perez Sandbox : Unit 9 - Inference for Means Review

Wiki Page
2026-01-17T21:16:14-08:00

This concludes the lessons for Unit 9 (Modules 22, 23, 24, and 25).

Let's Summarize

The focus of this module, Inference for Means, is inference for a population mean or a difference between two populations means. We began this module with a discussion of the sampling distribution of sample means. We then developed a probability model based on this sampling distribution. We used the probability model with an actual sample mean to test a claim about population mean in a hypothesis test or to estimate a population mean with a confidence interval. We then moved to inference for a difference in two population means (or a treatment effect.)

Sampling Distribution of Means

If we have a quantitative data set from a population with mean and standard deviation , the model for the theoretical sampling distribution of means of all random samples of size n has the following properties:

The mean of the sampling distribution of means is .

The standard deviation of the sampling distribution of means is .

Notice that as n grows, the standard error of the sampling distribution of means shrinks. That means that larger samples give more accurate estimates of a population mean.

For large enough sample size, the sampling distribution of means is approximately normal (even if population is not normal). This is called the central limit theorem.

If a variable has a skewed distribution for individuals in the population, a larger sample size is needed to ensure that the sampling distribution has a normal shape.

The general rule is that if n is at least 30, then the sampling distribution of means will be approximately normal. However, if the population is already normal, then any sample size will produce a normal sampling distribution.

We practiced finding a probability associated with a range of sample means, which is similar to finding a P-value in hypothesis testing. The process is as follows.

Convert a sample mean into a z-score:

Use technology to find a probability associated with a given range of z-scores.

Confidence Intervals

The Form

A confidence interval approximates a population mean by giving us a range of values that likely contains the population mean . The general form of the confidence interval is

.

We covered three different types of confidence intervals:

One-sample Z-interval: , where is the population standard deviation (when it is known).

One-sample T-interval: , where s is the sample standard deviation.

Two-sample T-interval: , where we use the sample statistics from two independent samples.

The T-Model

When the standard deviation of the population is unknown, which is often the case, we use the T-model to find the critical values. When using the T-model to find critical values, we need to select an appropriate number of degrees of freedom.

In the one-sample case, the number of degrees of freedom is 1 less than the sample size (df = n − 1).

In the two-independent-sample case, the degrees of freedom come from a complicated formula, and we often use technology to find df.

Conclusions

To say we are 95% confident that the population mean falls within our confidence interval really means that about 95% of all confidence intervals computed in this way will capture the true population mean.

Conditions

The population must be normally distributed, or the sample size must be large enough (larger than 30). In the case of the two-sample T-interval, both populations/samples must meet these conditions. In practice, we use T-procedures with smaller samples if the distribution of the variable in the sample(s) is not heavily skewed and is without outliers. We take this as an indication that the variable has a fairly normal distribution in the population(s).

Observations about Confidence Interval Structure

As we saw with other confidence intervals, the width of a confidence interval is twice the margin of error. The smaller the margin of error, the narrower the confidence interval and the more precise the estimate of the population parameter.

Increasing the confidence level decreases the precision (larger margin of error, so wider interval). Decreasing the confidence level increases the precision (smaller margin of error, so narrower interval).

Confidence intervals are useful estimates only when they provide a good balance of confidence level and precision. In order to increase precision without losing confidence, we must increase the sample size. In other words, larger samples provide more precise estimates without sacrificing confidence.

Hypothesis Testing (Tests for Statistical Significance)

The process of any hypothesis test consists of four basic steps:

1. Define the hypotheses

2. Collect the data: We need random samples that are representative of the population. For the two-sample T-test, the samples must be independent.

3. Assess the evidence: Assessment includes checking appropriate conditions, computing test statistics, and finding corresponding P-values.

4. State the conclusion: We compare the P-value to α, decide whether or not to reject H₀, then state conclusion in context.

Hypotheses

The null hypothesis ( ): The null hypothesis gives the value of the parameter we use to create the sampling distribution. In this way, the null hypothesis states what we assume to be true about the population.

The alternative hypothesis ( ): The alternative hypothesis usually reflects the claim in the research question about the value of the parameter. The alternative hypothesis says the parameter is greater than or less than or not equal to the value we assume to be true in the null hypothesis.

When is or , the test is called a one-tailed test.

For the paired T-test, would look like or in the case of a one-tailed test.

For the two-sample T-test, would look like or in the case of a one-tailed test.

When is , the test is called a two-tailed test.

For the paired T-test, would look like in the case of a two-tailed test.

For the two-sample T-test, would look like in the case of a two-tailed test.

Conditions

The conditions that must be satisfied in order to carry out T-procedures are as follows:

The population is normally distributed, or the sample is large (at least 30). This applies to both populations for the two-sample T-test.

The samples must be random in order to avoid bias.

The samples must be independent in the case of the two-sample T-test.

Test Statistic

The test T-statistic is given by

We’ve learned about three different types of T-tests:

One-sample T-test:

Paired T-test: We calculate the differences, then find the mean and standard deviation.

Two-sample T-test:

P-values

The P-value is the probability of finding a random sample with a test statistic at least as extreme as ours, assuming that the null hypothesis is true. We find P-values by using the T-distribution.

To come to a conclusion about H₀, we compare the P-value to the significance level, .

If P , we reject and conclude there is significant evidence in favor of .

If P , we fail to reject and conclude the sample does not provide significant evidence in favor of .

Error Types

Hypothesis tests are based on random samples, so the conclusions are really statements about probabilities, and it is possible for the conclusions to be wrong.

If our test results in rejecting a null hypothesis that is actually true, it is called a Type I error.

If our test results in failing to reject a null hypothesis that is actually false, it is called a Type II error.

You are now ready to put it all together and practice what you learned in this unit by working through a StatCrunch lab.