# Hypothesis testing for means and proportions

Hypothesis testing and confidence intervals with two samples Video transcript In the last couple of videos we were trying to figure out whether there was a meaningful difference between the proportion of men likely to vote for a candidate and the proportion of women. What I want to do in this video is just to ask the question more directly. Or just do a straight up hypothesis test to see is there a difference? So we're going to make our null hypothesis. Most investigators are very comfortable with this and are confident when rejecting H0 that the research hypothesis is true as it is the more likely scenario when we reject H0. When we run a test of hypothesis and decide not to reject H0 e.

When we do not reject H0, it may be very likely that we are committing a Type II error i. Therefore, when tests are run and the null hypothesis is not rejected we often make a weak concluding statement allowing for the Hypothesis testing for means and proportions that we might be committing a Type II error.

If we do not reject H0, we conclude that we do not have significant evidence to show that H1 is true. We do not conclude that H0 is true. The most common reason for a Type II error is a small sample size. Tests with One Sample, Continuous Outcome Hypothesis testing applications with a continuous outcome variable in a single population are performed according to the five-step procedure outlined above.

A key component is setting up the null and research hypotheses. The known value is generally derived from another study or report, for example a study in a similar, but not identical, population or a study performed some years ago.

The latter is called a historical control. It is important in setting up the hypotheses in a one sample test that the mean specified in the null hypothesis is a fair and reasonable comparator.

This will be discussed in the examples that follow. In one sample tests for a continuous outcome, we set up our hypotheses against an appropriate comparator. We select a sample and compute descriptive statistics on the sample data - including the sample size nthe sample mean and the sample standard deviation s.

We then determine the appropriate test statistic Step 2 for the hypothesis test. The formulas for test statistics depend on the sample size and are given below. Test Statistics for Testing H0: Data are provided for the US population as a whole and for specific ages, sexes and races. An investigator hypothesizes that in expenditures have decreased primarily due to the availability of generic drugs. To test the hypothesis, a sample of Americans are selected and their expenditures on health care and prescription drugs in are measured.

The sample data are summarized as follows: Is there statistical evidence of a reduction in expenditures on health care and prescription drugs in ? We will run the test using the five-step approach. Set up hypotheses and determine level of significance H0: Select the appropriate test statistic.

Set up decision rule. Compute the test statistic. We now substitute the sample data into the formula for the test statistic identified in Step 2.

We do not reject H0 because In summarizing this test, we conclude that we do not have sufficient evidence to reject H0. We do not conclude that H0 is true, because there may be a moderate to high probability that we committed a Type II error. It is possible that the sample size is not large enough to detect a difference in mean expenditures.

The NCHS reported that the mean total cholesterol level in for all adults was Total cholesterol levels in participants who attended the seventh examination of the Offspring in the Framingham Heart Study are summarized as follows: Is there statistical evidence of a difference in mean cholesterol levels in the Framingham Offspring?

Here we want to assess whether the sample mean of We reject H0 because Because we reject H0, we also approximate a p-value.

Statistical Significance versus Clinical Practical Significance This example raises an important concept of statistical versus clinical or practical significance.

However, the sample mean in the Framingham Offspring study is The reason that the data are so highly statistically significant is due to the very large sample size.

## Comparing two proportions

It is always important to assess both statistical and clinical significance of data. This is particularly relevant when the sample size is large. Is a 3 unit difference in total cholesterol a meaningful difference?Hypothesis Testing: Two Means, Paired Data, Two Proportions Hypothesis Testing: Two Population Means and Two Population Proportions1 Student Learning Objectives By the end of this chapter, the student should be able to: Classify hypothesis tests by type.

One departure we will take from our prior lesson on hypothesis testing is how we will treat the null value. In the previous lesson the null value could vary. In this lesson when comparing two proportions or two means, we will use a null value of 0 (i.e.

"no difference"). Hypothesis (Significance) Tests About a Proportion hypothesis that is one-tailed (like this one) you must adjust the confidence level so that the appropriate probability recognize this to mean significance level in testing applications) a . Chapter 8: Hypothesis Testing for Population Proportions.

Testing a claim (, ) A 95% confidence interval of 26% to 44% means that The test statistic used for hypothesis testing for proportions is a z-score. And all that means, and we've done this multiple times, is we're going to assume the null hypothesis. And then assuming the null hypothesis is true, we're going to figure out the probability of getting the actual difference of our sample proportions.

CHAPTER HYPOTHESIS TESTING: TWO MEANS, PAIRED DATA, TWO PROPORTIONS To compare two averages or two proportions, you .

Lesson 8 - Comparing Two Population Means, Two Proportions or Two Variances | STAT