# 1/2/2014 (c) 2001, Ron S. Kenett, Ph.D.1 Parametric Statistical Inference Instructor: Ron S. Kenett Course Website:

## Presentation on theme: "1/2/2014 (c) 2001, Ron S. Kenett, Ph.D.1 Parametric Statistical Inference Instructor: Ron S. Kenett Course Website:"— Presentation transcript:

1/2/2014 (c) 2001, Ron S. Kenett, Ph.D.1 Parametric Statistical Inference Instructor: Ron S. Kenett Email: ron@kpa.co.ilron@kpa.co.il Course Website: www.kpa.co.il/biostatwww.kpa.co.il/biostat Course textbook: MODERN INDUSTRIAL STATISTICS, Kenett and Zacks, Duxbury Press, 1998

1/2/2014 (c) 2001, Ron S. Kenett, Ph.D.2 Course Syllabus Understanding Variability Variability in Several Dimensions Basic Models of Probability Sampling for Estimation of Population Quantities Parametric Statistical Inference Computer Intensive Techniques Multiple Linear Regression Statistical Process Control Design of Experiments

1/2/2014 (c) 2001, Ron S. Kenett, Ph.D.3 Null Hypotheses H 0 : Put here what is typical of the population, a term that characterizes business as usual where nothing out of the ordinary occurs. Alternative Hypotheses H 1 : Put here what is the challenge, the view of some characteristic of the population that, if it were true, would trigger some new action, some change in procedures that had previously defined business as usual. Definitions

1/2/2014 (c) 2001, Ron S. Kenett, Ph.D.4 Step 1. A claim is made. A new claim is asserted that challenges existing thoughts about a population characteristic. Suggestion: Form the alternative hypothesis first, since it embodies the challenge. The Logic of Hypothesis Testing

1/2/2014 (c) 2001, Ron S. Kenett, Ph.D.5 The Logic of Hypothesis Testing Step 2. How much error are you willing to accept? Select the maximum acceptable error,. The decision maker must elect how much error he/she is willing to accept in making an inference about the population. The significance level of the test is the maximum probability that the null hypothesis will be rejected incorrectly, a Type I error.

1/2/2014 (c) 2001, Ron S. Kenett, Ph.D.6 The Logic of Hypothesis Testing Step 3. If the null hypothesis were true, what would you expect to see? Assume the null hypothesis is true. This is a very powerful statement. The test is always referenced to the null hypothesis. Form the rejection region, the areas in which the decision maker is willing to reject the presumption of the null hypothesis.

1/2/2014 (c) 2001, Ron S. Kenett, Ph.D.7 The Logic of Hypothesis Testing Step 4. What did you actually see? Compute the sample statistic. The sample provides a set of data that serves as a window to the population. The decision maker computes the sample statistic and calculates how far the sample statistic differs from the presumed distribution that is established by the null hypothesis.

1/2/2014 (c) 2001, Ron S. Kenett, Ph.D.8 The Logic of Hypothesis Testing Step 5. Make the decision. The decision is a conclusion supported by evidence. The decision maker will: reject the null hypothesis if the sample evidence is so strong, the sample statistic so unlikely, that the decision maker is convinced H 1 must be true. fail to reject the null hypothesis if the sample statistic falls in the nonrejection region. In this case, the decision maker is not concluding the null hypothesis is true, only that there is insufficient evidence to dispute it based on this sample.

1/2/2014 (c) 2001, Ron S. Kenett, Ph.D.9 The Logic of Hypothesis Testing Step 6. What are the implications of the decision for future actions? State what the decision means in terms of the research program. The decision maker must draw out the implications of the decision. Is there some action triggered, some change implied? What recommendations might be extended for future attempts to test similar hypotheses?

1/2/2014 (c) 2001, Ron S. Kenett, Ph.D.10 Type I Error: Saying you reject H 0 when it really is true. Rejecting a true H 0. Type II Error: Saying you do not reject H 0 when it really is false. Failing to reject a false H 0. Two Types of Errors

1/2/2014 (c) 2001, Ron S. Kenett, Ph.D.11 What are acceptable error levels? Decision makers frequently use a 5% significance level. Use = 0.05. An -error means that we will decide to adjust the machine when it does not need adjustment. This means, in the case of the robot welder, if the machine is running properly, there is only a 0.05 probability of our making the mistake of concluding that the robot requires adjustment when it really does not.

1/2/2014 (c) 2001, Ron S. Kenett, Ph.D.12 Three Types of Tests Nondirectional, two-tail test: H 1 : pop parameter n.e. value Directional, right-tail test: H 1 : pop parameter value Directional, left-tail test: H 1 : pop parameter value Always put hypotheses in terms of population parameters and have H 0 : pop parameter = value

1/2/2014 (c) 2001, Ron S. Kenett, Ph.D.13 Two tailed test H 0 : pop parameter = value H 1 : pop parameter n.e. value

1/2/2014 (c) 2001, Ron S. Kenett, Ph.D.14 Right tailed test H 0 : pop parameter value H 1 : pop parameter > value

1/2/2014 (c) 2001, Ron S. Kenett, Ph.D.15 Left tailed test H 0 : pop parameter value H 1 : pop parameter < value

1/2/2014 (c) 2001, Ron S. Kenett, Ph.D.16 H1 Ho H1 OK OK Type I Error Type II Error

1/2/2014 (c) 2001, Ron S. Kenett, Ph.D.17 What Test to Apply? Ask the following questions: Are the data the result of a measurement (a continuous variable) or a count (a discrete variable)? Is known? What shape is the distribution of the population parameter? What is the sample size?

1/2/2014 (c) 2001, Ron S. Kenett, Ph.D.18 Test of µ, Known, Population Normally Distributed Test Statistic: where is the sample statistic. µ 0 is the value identified in the null hypothesis. is known. n is the sample size. n x z 0 –

1/2/2014 (c) 2001, Ron S. Kenett, Ph.D.19 Test of µ, Known, Population Not Normally Distributed If n 30, Test Statistic: If n < 30, use a distribution-free test. n x z 0 –

1/2/2014 (c) 2001, Ron S. Kenett, Ph.D.20 Test of µ, Unknown, Population Normally Distributed Test Statistic: where is the sample statistic. µ 0 is the value identified in the null hypothesis. is unknown. n is the sample size degrees of freedom on t are n – 1. x x– n s t 0

1/2/2014 (c) 2001, Ron S. Kenett, Ph.D.21 Test of µ, Unknown, Population Not Normally Distributed If n 30, Test Statistic: If n < 30, use a distribution-free test.

1/2/2014 (c) 2001, Ron S. Kenett, Ph.D.22 If both n 5 and n(1 – ) 5, Test Statistic: where p = sample proportion 0 is the value identified in the null hypothesis. n is the sample size. Test of, Sample Sufficiently Large

1/2/2014 (c) 2001, Ron S. Kenett, Ph.D.23 Test of, Sample Not Sufficiently Large If either n < 5 or n(1 – ) < 5, convert the proportion to the underlying binomial distribution. + Note there is no t-test on a population proportion.

1/2/2014 (c) 2001, Ron S. Kenett, Ph.D.24 Observed Significance Levels A p-Value is: the exact level of significance of the test statistic. the smallest value can be and still allow us to reject the null hypothesis. the amount of area left in the tail beyond the test statistic for a one-tailed hypothesis test or twice the amount of area left in the tail beyond the test statistic for a two-tailed test. the probability of getting a test statistic from another sample that is at least as far from the hypothesized mean as this sample statistic is.

1/2/2014 (c) 2001, Ron S. Kenett, Ph.D.25 Observed Significance Levels A p-Value is: the exact level of significance of the test statistic. the smallest value can be and still allow us to reject the null hypothesis. the amount of area left in the tail beyond the test statistic for a one-tailed hypothesis test or twice the amount of area left in the tail beyond the test statistic for a two-tailed test. the probability of getting a test statistic from another sample that is at least as far from the hypothesized mean as this sample statistic is.

1/2/2014 (c) 2001, Ron S. Kenett, Ph.D.26 Several Samples Independent Samples: Testing a company s claim that its peanut butter contains less fat than that produced by a competitor. Dependent Samples: Testing the relative fuel efficiency of 10 trucks that run the same route twice, once with the current air filter installed and once with the new filter.

1/2/2014 (c) 2001, Ron S. Kenett, Ph.D.27 Test of ( µ 1 – µ 2 ), 1 = 2, Populations Normal Test Statistic where degrees of freedom on t = n 1 + n 2 – 2 2– 21 2 2 )1– 2 ( 2 1 )1– 1 ( 2 where 2 1 1 1 2 ] 2 – 1 [– ] 2 – 1 [ nn snsn p s nn p s xx t

1/2/2014 (c) 2001, Ron S. Kenett, Ph.D.28 The mean of population 1 is equal to the mean of population 2 (1) Both distributions are normal 1 = 2 Hypothesis Assumption Test Statistic t distribution with df = n 1 + n 2 -2 H 0 : pop1 = pop2 H 1 : pop1 n.e. pop2 Example: Comparing Two populations

1/2/2014 (c) 2001, Ron S. Kenett, Ph.D.29 t distribution with df = n 1 + n 2 -2 RejectionRegion RejectionRegion Example: Comparing Two populations

1/2/2014 (c) 2001, Ron S. Kenett, Ph.D.30 Test of ( µ 1 – µ 2 ), 1 n.e. 2, Populations Normal, large n Test Statistic with s 1 2 and s 2 2 as estimates for 1 2 and 2 2 z [x 1 –x 2 ]–[ 1 – 2 ] 0 s 1 2 n 1 s 2 2 n 2

1/2/2014 (c) 2001, Ron S. Kenett, Ph.D.31 Test of Dependent Samples ( µ 1 – µ 2 ) = µ d Test Statistic whered = (x 1 – x 2 ) = d/n, the average difference n = the number of pairs of observations s d = the standard deviation of d df = n – 1 n d s d t

1/2/2014 (c) 2001, Ron S. Kenett, Ph.D.32 Test of ( 1 – 2 ), where n 1 p 1 5, n 1 (1 – p 1 ) 5, n 2 p 2 5, and n 2 (1 – p 2 ) Test Statistic wherep 1 = observed proportion, sample 1 p 2 = observed proportion, sample 2 n 1 = sample size, sample 1 n 2 = sample size, sample 2 p n 1 p 1 n 2 p 2 n 1 n 2

1/2/2014 (c) 2001, Ron S. Kenett, Ph.D.33 Test of Equal Variances Pooled-variances t-test assumes the two population variances are equal. The F-test can be used to test that assumption. The F-distribution is the sampling distribution of s 1 2 /s 2 2 that would result if two samples were repeatedly drawn from a single normally distributed population.

1/2/2014 (c) 2001, Ron S. Kenett, Ph.D.34 Test of 1 2 = 2 2 If 1 2 = 2 2, then 1 2 / 2 2 = 1. So the hypotheses can be worded either way. Test Statistic: whichever is larger The critical value of the F will be F( /2, 1, 2 ) where = the specified level of significance 1 = (n – 1), where n is the size of the sample with the larger variance 2 = (n – 1), where n is the size of the sample with the smaller variance 2 1 2 2 or 2 2 2 1 s s s s F

1/2/2014 (c) 2001, Ron S. Kenett, Ph.D.35 Confidence Interval for ( µ 1 – µ 2 ) The (1 – )% confidence interval for the difference in two means: Equal variances, populations normal Unequal variances, large samples ׳ 2 1 1 1 2 2 ) 2 – 1 ( nn p stxx 2 2 2 1 2 1 2 ) 2 – 1 ( n s n s zxx ׳

1/2/2014 (c) 2001, Ron S. Kenett, Ph.D.36 Confidence Interval for ( 1 – 2 ) The (1 – )% confidence interval for the difference in two proportions: when sample sizes are sufficiently large. (p 1 –p 2 ) z 2 ׳ p 1 (1–p 1 ) n 1 p 2 (1–p 2 ) n 2

1/2/2014 (c) 2001, Ron S. Kenett, Ph.D.37 The mean of population 1 is equal to the mean of population 2 (1) Both distributions are normal 1 = 2 Hypothesis Assumption Test Statistic The standard deviation of population 1 is equal to the standard deviation of population 2 Both distributions are normal The proportion of error in population 1 is equal to the proportion of errors in population 2 n 1 p 1 and n 2 p 2 > 5 (approximation by normal distribution) F distribution with df 2 = n 1 -1 and df 2 = n 2 -1 t distribution with df = n 1 + n 2 -2Z - Normal distribution Summary

Download ppt "1/2/2014 (c) 2001, Ron S. Kenett, Ph.D.1 Parametric Statistical Inference Instructor: Ron S. Kenett Course Website:"

Similar presentations