Hypothesis Testing GTECH 201 Lecture 16 Overview of

  • Slides: 22
Download presentation
Hypothesis Testing GTECH 201 Lecture 16

Hypothesis Testing GTECH 201 Lecture 16

Overview of Today’s Topic n Formulation n Evaluation n Refining and Restating n Statistical

Overview of Today’s Topic n Formulation n Evaluation n Refining and Restating n Statistical Tests

What is a Hypothesis? n n n Unproven or unsubstantiated statement You need to

What is a Hypothesis? n n n Unproven or unsubstantiated statement You need to know the literature before you can formulate a hypothesis statement Data collection should support hypothesis testing and evaluation If hypothesis is tested and found to be correct, then results can be refined (different scenarios can be tested) If partially correct, then hypothesis statement needs to be refined (reworded)

Hypothesis Testing n n Multi-step procedure that leads the researcher from the hypothesis statement

Hypothesis Testing n n Multi-step procedure that leads the researcher from the hypothesis statement to the decision regarding the hypothesis 6 - step process 1. 2. 3. 4. State null and alternate hypotheses Select appropriate statistical test Select level of significance Delineate regions of rejection and nonrejection of hypotheses 5. Calculate test statistic 6. Make regarding null hypothesis

Step 1 n n State null and alternate hypotheses Null hypothesis n n n

Step 1 n n State null and alternate hypotheses Null hypothesis n n n A hypothesis to be tested Usually represented as Alternative hypothesis n n A hypothesis considered as an alternate to the null hypothesis Usually represented as

Guidelines for Setting up H 0, HA n Hypothesis tests concerning one parameter n

Guidelines for Setting up H 0, HA n Hypothesis tests concerning one parameter n Population mean, m n A null hypothesis for a hypothesis test concerning a population mean should always specify a single value for that parameter n n n (= ) sign must appear in the null hypothesis Therefore:

Guidelines, part 2 n Alternative hypothesis n n n The choice of the alternative

Guidelines, part 2 n Alternative hypothesis n n n The choice of the alternative hypothesis depends on and should reveal the purpose of the hypothesis test Null hypothesis and alternative hypothesis are mutually exclusive Three choices are possible n

Guidelines, part 3 n n n An alternate hypothesis with a sign is called

Guidelines, part 3 n n n An alternate hypothesis with a sign is called a two-tailed test The population mean, is different from a specified value, When a < sign appears in the alternate hypothesis, the test is called a left-tailed test When a > sign appears in the alternate hypothesis, the test is called a right-tailed test

Setting up Hypotheses n n A snack food company produces 454 gms bags of

Setting up Hypotheses n n A snack food company produces 454 gms bags of pretzels. Although the actual weights deviate slightly from the 454 gms, and vary from one bag to another, the quality control team insists that the mean net weight of bags be maintained at 454 gms. If the mean net weight of the bags is lower or higher, it is likely to cause problems. If you work for the quality control team and you want to decide whether the packaging machine is working properly, how would you set up a hypothesis test?

Stating Hypotheses n The packaging machine IS working properly The packaging machine IS NOT

Stating Hypotheses n The packaging machine IS working properly The packaging machine IS NOT working properly

Select Appropriate Test n n One sample difference of means t test Objective n

Select Appropriate Test n n One sample difference of means t test Objective n n Requirements and assumptions n n n Compare a random sample mean to a population mean for difference Random sample Normally distributed population Variable is measured at interval or ratio scale Hypotheses Test Statistic

Test Statistic n n n sample mean population mean standard error of the mean

Test Statistic n n n sample mean population mean standard error of the mean population standard deviation

Level of Significance n n = 0. 10 (90%); 0. 05 (95%); 0. 01

Level of Significance n n = 0. 10 (90%); 0. 05 (95%); 0. 01 (99. 7%) Errors n n Type I error: Rejecting the null hypothesis when it is in fact true Type II error: Not rejecting the null hypothesis when it is in fact false

Identify Regions of Rejection n Of null hypothesis n n n Two-tailed Left tailed

Identify Regions of Rejection n Of null hypothesis n n n Two-tailed Left tailed (directional) Right tailed (directional) Calculate test statistic Make decision regarding null or alternate hypothesis

To Work in Class n n n n We want to investigate demographic change

To Work in Class n n n n We want to investigate demographic change in an area 3500 households (HH) You take a sample of 250 HH Sample mean = 2. 68; sample variance =4. 3 = 0. 10 (90%) Now, we want to find out if the mean HH size in this one area is typical or representative of the national mean household size (2. 61) Use the six step process to compare how closely the samples that you have taken compare with the national average HH size of 2. 61

Limits of Hypothesis Testing n Pre-selecting level of significance n n Lacks a theoretical

Limits of Hypothesis Testing n Pre-selecting level of significance n n Lacks a theoretical basis Used for convenience Binary nature of null and alternative hypothesis P-value or Probability value n n Accepted approach The exact significance level associated with the calculated test statistic is determined

More About P-Value n We can define P-value as: n n The exact probability

More About P-Value n We can define P-value as: n n The exact probability of getting a test statistic value of a given magnitude, IF the null hypothesis is true What is the probability of making a Type I error n Type I error occurs when the null hypothesis is rejected using the hypothesis testing procedure, even though in reality the null hypothesis is true

Comparing Classical and P Value Approaches n Classical n n n State hypotheses Decide

Comparing Classical and P Value Approaches n Classical n n n State hypotheses Decide on significance level Select test Delineate regions of rejection/nonrejection Calculate the test statistic State your conclusion in words n P- Value n n n State hypotheses Decide on significance level Compute the value of the test statistic Determine P-value P reject null hypothesis; otherwise do not reject State your conclusion in words

Guidelines for Using P-Value Evidence against H 0 n Weak or none n Moderate

Guidelines for Using P-Value Evidence against H 0 n Weak or none n Moderate n Strong n Very strong

Example n n A random sample of 18 people with income below the poverty

Example n n A random sample of 18 people with income below the poverty level reveals their daily intake of calcium n mean 747. 4 mg n standard deviation 188 mg Use the P-value approach to determine whether the data provides sufficient evidence at the 5% significance level to conclude that the mean calcium intake of all Americans with income below the poverty level is less than the required daily allowance of 800 mg

Parametric and Nonparametric Tests n Parametric tests n n Require knowledge about population parameters

Parametric and Nonparametric Tests n Parametric tests n n Require knowledge about population parameters Assumptions made about population distribution n E. g. , population is normally distributed Sample data measured on Interval/Ratio scale Non-parametric tests n n n Requires no knowledge about population parameters Distribution-free Some non-parametric tests are designed to be applied for nominal, ordinal data ( ) – we will talk about these in the next lecture

Choices/Options n n Run only a parametric test Run only a non-parametric test Run

Choices/Options n n Run only a parametric test Run only a non-parametric test Run both tests Goal n n State the problem Decide what inferential technique will be useful Identify formulae associated with the technique Interpret the results