Statistical Tests (Hypothesis Testing)

Outlines Statistical Tests (Hypothesis Testing) Gautam Chandekar December 2, 2004 Gautam Chandekar Statistical Tests (Hypothesis Testing) Outline...
Author: Noreen Scott
40 downloads 0 Views 553KB Size
Outlines

Statistical Tests (Hypothesis Testing) Gautam Chandekar December 2, 2004

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Outlines

Statistical Tests (Hypothesis Testing)

Statistical Tests (Hypothesis Testing) Introduction Steps for Hypothesis Testing Define a Population State Hypotheses and Significance Level Perform calculations, reach a conclusion.

Statistical Tests (Normal Distribution) Introduction Examples Homework Much of this material is from Allan Bluman’s Elementary Statistics: A Brief Version, Second Edition. Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Part I Statistical Tests (Hypothesis Testing)

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Example A medical researcher is interested in finding out whether a new medication will have any undesirable side effects, particularly with respect to heart rate. Will a patient’s pulse rate, increase, decrease, or remain unchanged after taking this medication?

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Example A medical researcher is interested in finding out whether a new medication will have any undesirable side effects, particularly with respect to heart rate. Will a patient’s pulse rate, increase, decrease, or remain unchanged after taking this medication? After conducting controlled tests on a sample of patients, the researcher finds that the mean pulse rate of the group taking the new medicine is higher than average. But is this increase significant, or simply due to random chance?

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Example A medical researcher is interested in finding out whether a new medication will have any undesirable side effects, particularly with respect to heart rate. Will a patient’s pulse rate, increase, decrease, or remain unchanged after taking this medication? After conducting controlled tests on a sample of patients, the researcher finds that the mean pulse rate of the group taking the new medicine is higher than average. But is this increase significant, or simply due to random chance? Statistical tests (or hypothesis testing) can be used to answer that question and give the conclusion some certainty.

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Define a Population State Hypotheses and Significance Level Perform calculations, reach a conclusion.

Steps for Hypothesis Testing

Define a population under study.

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Define a Population State Hypotheses and Significance Level Perform calculations, reach a conclusion.

Steps for Hypothesis Testing

Define a population under study. State the particular hypotheses that will be investigated, and give the significance level.

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Define a Population State Hypotheses and Significance Level Perform calculations, reach a conclusion.

Steps for Hypothesis Testing

Define a population under study. State the particular hypotheses that will be investigated, and give the significance level. Select a sample from the population, and collect data.

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Define a Population State Hypotheses and Significance Level Perform calculations, reach a conclusion.

Steps for Hypothesis Testing

Define a population under study. State the particular hypotheses that will be investigated, and give the significance level. Select a sample from the population, and collect data. Perform calculations for the statistical test, and reach a conclusion.

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Define a Population State Hypotheses and Significance Level Perform calculations, reach a conclusion.

Define a population under study

Recall that a population is the collection of all possible objects that have a common measurable or otherwise observable feature or characteristic.

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Define a Population State Hypotheses and Significance Level Perform calculations, reach a conclusion.

Define a population under study

Recall that a population is the collection of all possible objects that have a common measurable or otherwise observable feature or characteristic. For the purposes of hypothesis testing, we’re often concerned with knowing the population’s mean and standard deviation.

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Define a Population State Hypotheses and Significance Level Perform calculations, reach a conclusion.

Define a population under study

Recall that a population is the collection of all possible objects that have a common measurable or otherwise observable feature or characteristic. For the purposes of hypothesis testing, we’re often concerned with knowing the population’s mean and standard deviation. In the case of the medical researcher, the population is all adult men, and the mean pulse rate was 70 beats per minute (bpm), with a standard deviation of 8 bpm.

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Define a Population State Hypotheses and Significance Level Perform calculations, reach a conclusion.

State the hypotheses to be investigated A statistical hypothesis is a conjecture about a population parameter. The conjecture may or may not be true.

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Define a Population State Hypotheses and Significance Level Perform calculations, reach a conclusion.

State the hypotheses to be investigated A statistical hypothesis is a conjecture about a population parameter. The conjecture may or may not be true. There are two types of statistical hypotheses in each test: the null hypothesis and the alternative hypothesis.

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Define a Population State Hypotheses and Significance Level Perform calculations, reach a conclusion.

State the hypotheses to be investigated A statistical hypothesis is a conjecture about a population parameter. The conjecture may or may not be true. There are two types of statistical hypotheses in each test: the null hypothesis and the alternative hypothesis. The null hypothesis (H0 ), is a hypothesis that states there is no difference between a parameter and a specific value, or that there is no difference between two parameters.

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Define a Population State Hypotheses and Significance Level Perform calculations, reach a conclusion.

State the hypotheses to be investigated A statistical hypothesis is a conjecture about a population parameter. The conjecture may or may not be true. There are two types of statistical hypotheses in each test: the null hypothesis and the alternative hypothesis. The null hypothesis (H0 ), is a hypothesis that states there is no difference between a parameter and a specific value, or that there is no difference between two parameters. The alternative hypothesis (H1 ) is a hypothesis that states the existance of difference between a parameter and a specific value, or states that there is a difference between two parameters.

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Define a Population State Hypotheses and Significance Level Perform calculations, reach a conclusion.

Hypothesis examples

H0 : “There is no difference in pulse between these patients and the nationwide population (µ = 70).” H1 : “The pulse of patients taking this medication is substantially different than the nationwide population (µ 6= 70).”

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Define a Population State Hypotheses and Significance Level Perform calculations, reach a conclusion.

Hypothesis examples

H0 : “There is no difference in pulse between these patients and the nationwide population (µ = 70).” H1 : “The pulse of patients taking this medication is substantially different than the nationwide population (µ 6= 70).” H0 : “This new additive does nothing to increase the life of automobile batteries (µ ≤ 36).” H1 : “This additive significantly increases battery life (µ > 36).”

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Define a Population State Hypotheses and Significance Level Perform calculations, reach a conclusion.

Hypothesis examples

H0 : “There is no difference in pulse between these patients and the nationwide population (µ = 70).” H1 : “The pulse of patients taking this medication is substantially different than the nationwide population (µ 6= 70).” H0 : “This new additive does nothing to increase the life of automobile batteries (µ ≤ 36).” H1 : “This additive significantly increases battery life (µ > 36).” H0 : “A new type of insulation does not help decrease monthly heating costs (µ ≥ 78).” H1 : “This new insulation reduces monthly heating costs (µ < 78).”

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Define a Population State Hypotheses and Significance Level Perform calculations, reach a conclusion.

Types of Statistical Tests and Hypotheses The null and alternative hypotheses are always stated together.

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Define a Population State Hypotheses and Significance Level Perform calculations, reach a conclusion.

Types of Statistical Tests and Hypotheses The null and alternative hypotheses are always stated together. Written mathematically, the null hypothesis always contains an equal sign.

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Define a Population State Hypotheses and Significance Level Perform calculations, reach a conclusion.

Types of Statistical Tests and Hypotheses The null and alternative hypotheses are always stated together. Written mathematically, the null hypothesis always contains an equal sign. The mathematical form of the null and alternative hypotheses for different types of tests are as follows:

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Define a Population State Hypotheses and Significance Level Perform calculations, reach a conclusion.

Types of Statistical Tests and Hypotheses The null and alternative hypotheses are always stated together. Written mathematically, the null hypothesis always contains an equal sign. The mathematical form of the null and alternative hypotheses for different types of tests are as follows: Two-tailed test H0 : µ = k H1 : µ 6= k

Right-tailed test H0 : µ ≤ k H1 : µ > k

Gautam Chandekar

Left-tailed test H0 : µ ≥ k H1 : µ < k

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Define a Population State Hypotheses and Significance Level Perform calculations, reach a conclusion.

Designing the study, defining the significance level The simplest design of the medication study would be to give the drug to a sample of patients, wait long enough for the drug to be absorbed, and measure the patients’ heart rates.

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Define a Population State Hypotheses and Significance Level Perform calculations, reach a conclusion.

Designing the study, defining the significance level The simplest design of the medication study would be to give the drug to a sample of patients, wait long enough for the drug to be absorbed, and measure the patients’ heart rates. However, regardless of the medication or the sampling, the mean heart rate of the sampled patients will almost never be exactly 70 bpm.

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Define a Population State Hypotheses and Significance Level Perform calculations, reach a conclusion.

Designing the study, defining the significance level The simplest design of the medication study would be to give the drug to a sample of patients, wait long enough for the drug to be absorbed, and measure the patients’ heart rates. However, regardless of the medication or the sampling, the mean heart rate of the sampled patients will almost never be exactly 70 bpm. Two possibilities exist:

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Define a Population State Hypotheses and Significance Level Perform calculations, reach a conclusion.

Designing the study, defining the significance level The simplest design of the medication study would be to give the drug to a sample of patients, wait long enough for the drug to be absorbed, and measure the patients’ heart rates. However, regardless of the medication or the sampling, the mean heart rate of the sampled patients will almost never be exactly 70 bpm. Two possibilities exist: Either the null hypothesis is true and any differences between sample mean and population mean are purely due to chance,

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Define a Population State Hypotheses and Significance Level Perform calculations, reach a conclusion.

Designing the study, defining the significance level The simplest design of the medication study would be to give the drug to a sample of patients, wait long enough for the drug to be absorbed, and measure the patients’ heart rates. However, regardless of the medication or the sampling, the mean heart rate of the sampled patients will almost never be exactly 70 bpm. Two possibilities exist: Either the null hypothesis is true and any differences between sample mean and population mean are purely due to chance, or the null hypothesis is false and the observed difference in heart rate is due to side effects of the medication.

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Define a Population State Hypotheses and Significance Level Perform calculations, reach a conclusion.

Designing the study, defining the significance level

Qualitatively, we would expect that if the sample mean pulse rate is 71 or 72 bpm, that the difference is due to random chance.

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Define a Population State Hypotheses and Significance Level Perform calculations, reach a conclusion.

Designing the study, defining the significance level

Qualitatively, we would expect that if the sample mean pulse rate is 71 or 72 bpm, that the difference is due to random chance. Similarly, we would expect that if the sample mean pulse rate is 80 or 85 bpm, that the difference is due to the medicine.

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Define a Population State Hypotheses and Significance Level Perform calculations, reach a conclusion.

Designing the study, defining the significance level

Qualitatively, we would expect that if the sample mean pulse rate is 71 or 72 bpm, that the difference is due to random chance. Similarly, we would expect that if the sample mean pulse rate is 80 or 85 bpm, that the difference is due to the medicine. But these decisions cannot be made qualitatively, there must be a quantifiable standard limits the probability that differences are due to chance.

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Define a Population State Hypotheses and Significance Level Perform calculations, reach a conclusion.

Designing the study, defining the significance level

Qualitatively, we would expect that if the sample mean pulse rate is 71 or 72 bpm, that the difference is due to random chance. Similarly, we would expect that if the sample mean pulse rate is 80 or 85 bpm, that the difference is due to the medicine. But these decisions cannot be made qualitatively, there must be a quantifiable standard limits the probability that differences are due to chance. That is where the level of significance appears.

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Define a Population State Hypotheses and Significance Level Perform calculations, reach a conclusion.

Types of Errors There are four possible outcomes from a hypothesis test: The null hypothesis is actually true, but the sample data does not support it and we decide to reject the null hypothesis.

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Define a Population State Hypotheses and Significance Level Perform calculations, reach a conclusion.

Types of Errors There are four possible outcomes from a hypothesis test: The null hypothesis is actually true, but the sample data does not support it and we decide to reject the null hypothesis. The null hypothesis is actually false, but the sample data leads us to believe that we should not reject the null hypothesis.

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Define a Population State Hypotheses and Significance Level Perform calculations, reach a conclusion.

Types of Errors There are four possible outcomes from a hypothesis test: The null hypothesis is actually true, but the sample data does not support it and we decide to reject the null hypothesis. The null hypothesis is actually false, but the sample data leads us to believe that we should not reject the null hypothesis. The null hypothesis is actually true, and the sample data supports this fact.

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Define a Population State Hypotheses and Significance Level Perform calculations, reach a conclusion.

Types of Errors There are four possible outcomes from a hypothesis test: The null hypothesis is actually true, but the sample data does not support it and we decide to reject the null hypothesis. The null hypothesis is actually false, but the sample data leads us to believe that we should not reject the null hypothesis. The null hypothesis is actually true, and the sample data supports this fact. The null hypothesis is actually false, and the sample data helps us reject it.

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Define a Population State Hypotheses and Significance Level Perform calculations, reach a conclusion.

Types of Errors There are four possible outcomes from a hypothesis test: The null hypothesis is actually true, but the sample data does not support it and we decide to reject the null hypothesis. The null hypothesis is actually false, but the sample data leads us to believe that we should not reject the null hypothesis. The null hypothesis is actually true, and the sample data supports this fact. The null hypothesis is actually false, and the sample data helps us reject it. Two of these situations result in a correct decision, and two of them result in an incorrect decision. Reject H0 Do not reject H0

H0 True Type I Error Correct decision

Gautam Chandekar

H0 False Correct decision Type II Error

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Define a Population State Hypotheses and Significance Level Perform calculations, reach a conclusion.

Level of Significance (finally)

The level of significance is defined as the maximum probability of committing a type I error, and is normally shown as α. For example, if α = 0.05, there is a 5% chance that we will reject a true null hypothesis. If α = 0.01, there is a 1% chance that we will reject a true null hypothesis. (The probability of committing a type II error is normally shown as β, and is normally not easily computed. However, for a given testing situation, lowering α increases β, and raising α lowers β.)

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Define a Population State Hypotheses and Significance Level Perform calculations, reach a conclusion.

Perform calculations for a statistical test The significance level α and the type of test (two-tailed, left-tailed, right-tailed) lead to the selection of a critical value from statistical tables. The critical value(s) separates the critical region of the probability distribution curve from the noncritical region.

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Define a Population State Hypotheses and Significance Level Perform calculations, reach a conclusion.

Perform calculations for a statistical test The significance level α and the type of test (two-tailed, left-tailed, right-tailed) lead to the selection of a critical value from statistical tables. The critical value(s) separates the critical region of the probability distribution curve from the noncritical region. The critical region is the range of values of the test value that indicate a significant difference from the population and that the null hypothesis should be rejected.

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Define a Population State Hypotheses and Significance Level Perform calculations, reach a conclusion.

Perform calculations for a statistical test The significance level α and the type of test (two-tailed, left-tailed, right-tailed) lead to the selection of a critical value from statistical tables. The critical value(s) separates the critical region of the probability distribution curve from the noncritical region. The critical region is the range of values of the test value that indicate a significant difference from the population and that the null hypothesis should be rejected. The noncritical region is the range of values of the test value that indicate any differences from the population are probably due to chance, and that the null hypothesis should not be rejected.

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Define a Population State Hypotheses and Significance Level Perform calculations, reach a conclusion.

Example Critical Values: Right-Tailed Test For a right-tailed test on a normal distribution, the critical value is the z value that gives Φ(z > zcrit ) = α. 0.4 *

z =2.33 * α=Φ(z>z )=0.01 0.35

0.3

fZ(z)

0.25

0.2

0.15

0.1

0.05

0 −3

−2

−1

Gautam Chandekar

0 z

1

2

3

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Define a Population State Hypotheses and Significance Level Perform calculations, reach a conclusion.

Example Critical Values: Left-Tailed Test For a left-tailed test on a normal distribution, the critical value is the z value that gives Φ(z < zcrit ) = α. 0.4 *

z =−2.33 * α=Φ(z zcrit ) + Φ(z < −zcrit ) = α. 0.4 *

z =±2.58 α=Φ(zz*)=0.005

0.35

0.3

fZ(z)

0.25

0.2

0.15

0.1

0.05

0 −3

−2

−1

Gautam Chandekar

0 z

1

2

3

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Introduction Examples Homework

Statistical Tests (Normal Distribution) The z test is a statistical test for the mean of a population. It can be used whenever: the sample size n ≥ 30, or

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Introduction Examples Homework

Statistical Tests (Normal Distribution) The z test is a statistical test for the mean of a population. It can be used whenever: the sample size n ≥ 30, or if the population is known to be normally distributed and the population standard deviation σ is known (regardless of n).

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Introduction Examples Homework

Statistical Tests (Normal Distribution) The z test is a statistical test for the mean of a population. It can be used whenever: the sample size n ≥ 30, or if the population is known to be normally distributed and the population standard deviation σ is known (regardless of n). The formula for the z test is z=

Gautam Chandekar

¯ −µ X √ σ/ n

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Introduction Examples Homework

Statistical Tests (Normal Distribution) The z test is a statistical test for the mean of a population. It can be used whenever: the sample size n ≥ 30, or if the population is known to be normally distributed and the population standard deviation σ is known (regardless of n). The formula for the z test is z=

¯ −µ X √ σ/ n

If this z value falls into the critical region, we reject the null hypothesis, and conclude that there is not enough evidence to support the idea that there is a significant difference between the sample and the overall population. Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Introduction Examples Homework

Example 1

Let’s revisit our medical researcher. The mean pulse rate of the entire population of adult men is 70 beats per minute (bpm), with a standard deviation of 8 bpm. A sample of 10 adult male patients is given a new drug, and after several minutes, their mean pulse rate is measured at 75 bpm. With a level of significance of α = 0.01, is this change in pulse rate due to random chance?

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Introduction Examples Homework

Example 1 Solution (1)

State the null hypothesis: “There is no significant difference in pulse between these patients and the population as a whole.” (H0 : µ = 70)

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Introduction Examples Homework

Example 1 Solution (1)

State the null hypothesis: “There is no significant difference in pulse between these patients and the population as a whole.” (H0 : µ = 70) State the alternative hypothesis: “There is a significant difference in pulse between these patients and the population as a whole.” (H1 : µ 6= 70).

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Introduction Examples Homework

Example 1 Solution (1)

State the null hypothesis: “There is no significant difference in pulse between these patients and the population as a whole.” (H0 : µ = 70) State the alternative hypothesis: “There is a significant difference in pulse between these patients and the population as a whole.” (H1 : µ 6= 70). The null hypothesis is given in the form corresponding to a two-tailed test (H0 : µ = k, H1 : µ 6= k), and for α = 0.01, the critical z values are z = ±2.58.

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Introduction Examples Homework

Example 1 Solution (2) Calculate the test z value: z=

¯ −µ X √ σ/ n

¯ = 75, µ = 70, σ = 8, n = 10. with X

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Introduction Examples Homework

Example 1 Solution (2) Calculate the test z value: z=

¯ −µ X √ σ/ n

¯ = 75, µ = 70, σ = 8, n = 10. with X In this case, z = 1.98. Since z falls within the noncritical region, our conclusion is to not reject the null hypothesis.

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Introduction Examples Homework

Example 1 Solution (2) Calculate the test z value: z=

¯ −µ X √ σ/ n

¯ = 75, µ = 70, σ = 8, n = 10. with X In this case, z = 1.98. Since z falls within the noncritical region, our conclusion is to not reject the null hypothesis. We conclude that there is not sufficient evidence to indicate that the change in pulse rate is due to anything other than random chance.

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Introduction Examples Homework

Example 2

Our medical researcher continues with the pulse tests. A larger sample of 50 adult male patients has been tested identically to the first group, and their mean pulse rate is also measured at 75 bpm. With a level of significance of α = 0.01, is this change in pulse rate due to random chance?

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Introduction Examples Homework

Example 2 Solution (1)

State the null hypothesis: “There is no significant difference in pulse between these patients and the population as a whole.” (H0 : µ = 70)

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Introduction Examples Homework

Example 2 Solution (1)

State the null hypothesis: “There is no significant difference in pulse between these patients and the population as a whole.” (H0 : µ = 70) State the alternative hypothesis: “There is a significant difference in pulse between these patients and the population as a whole.” (H1 : µ 6= 70).

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Introduction Examples Homework

Example 2 Solution (1)

State the null hypothesis: “There is no significant difference in pulse between these patients and the population as a whole.” (H0 : µ = 70) State the alternative hypothesis: “There is a significant difference in pulse between these patients and the population as a whole.” (H1 : µ 6= 70). The null hypothesis is given in the form corresponding to a two-tailed test (H0 : µ = k, H1 : µ 6= k), and for α = 0.01, the critical z values are z = ±2.58.

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Introduction Examples Homework

Example 2 Solution (2) Calculate the test z value: z=

¯ −µ X √ σ/ n

¯ = 75, µ = 70, σ = 8, n = 50. with X

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Introduction Examples Homework

Example 2 Solution (2) Calculate the test z value: z=

¯ −µ X √ σ/ n

¯ = 75, µ = 70, σ = 8, n = 50. with X In this case, z = 4.42. Since z falls within the critical region, our conclusion is to reject the null hypothesis.

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Introduction Examples Homework

Example 2 Solution (2) Calculate the test z value: z=

¯ −µ X √ σ/ n

¯ = 75, µ = 70, σ = 8, n = 50. with X In this case, z = 4.42. Since z falls within the critical region, our conclusion is to reject the null hypothesis. We conclude that there is sufficient evidence to indicate that the change in pulse rate is due to something other than random chance.

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Introduction Steps for Hypothesis Testing Statistical Tests (Normal Distribution)

Introduction Examples Homework

Homework (hand in at final exam time)

A manufacturer states that the average lifetime of its lightbulbs is 36 months, with a standard deviation of 10 months. Thirty bulbs are selected, and their average lifetime is found to be 32 months. Should the manufacturer’s statement be rejected at α = 0.01? Should it be rejected if you tested 50 bulbs and found an average lifetime of 32 months?

Gautam Chandekar

Statistical Tests (Hypothesis Testing)

Suggest Documents