Statistics Review – Part II Topics: – Hypothesis Testing – Paired Tests – Tests of variability 1.

Slides:



Advertisements
Similar presentations
Tests of Hypotheses Based on a Single Sample
Advertisements

Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 9 Inferences Based on Two Samples.
Topics Today: Case I: t-test single mean: Does a particular sample belong to a hypothesized population? Thursday: Case II: t-test independent means: Are.
1 1 Slide © 2008 Thomson South-Western. All Rights Reserved Chapter 9 Hypothesis Testing Developing Null and Alternative Hypotheses Developing Null and.
© 2010 Pearson Prentice Hall. All rights reserved Least Squares Regression Models.
Hypothesis Testing Using a Single Sample
© 2010 Pearson Prentice Hall. All rights reserved Two Sample Hypothesis Testing for Means from Independent Groups.
1 Matched Samples The paired t test. 2 Sometimes in a statistical setting we will have information about the same person at different points in time.
1 Difference Between the Means of Two Populations.
PSY 307 – Statistics for the Behavioral Sciences
Chapter 2 Simple Comparative Experiments
Chapter 11: Inference for Distributions
Inferences About Process Quality
Chapter 9 Hypothesis Testing.
5-3 Inference on the Means of Two Populations, Variances Unknown
Hypothesis Testing and T-Tests. Hypothesis Tests Related to Differences Copyright © 2009 Pearson Education, Inc. Chapter Tests of Differences One.
AM Recitation 2/10/11.
McGraw-Hill/IrwinCopyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Chapter 9 Hypothesis Testing.
Hypothesis Testing II The Two-Sample Case.
1/2555 สมศักดิ์ ศิวดำรงพงศ์
Copyright © Cengage Learning. All rights reserved. 13 Linear Correlation and Regression Analysis.
Chapter 9.3 (323) A Test of the Mean of a Normal Distribution: Population Variance Unknown Given a random sample of n observations from a normal population.
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Chapter Inference on the Least-Squares Regression Model and Multiple Regression 14.
Inference about Two Population Standard Deviations.
Sullivan – Fundamentals of Statistics – 2 nd Edition – Chapter 11 Section 2 – Slide 1 of 25 Chapter 11 Section 2 Inference about Two Means: Independent.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Statistical Inferences Based on Two Samples Chapter 9.
Topics: Statistics & Experimental Design The Human Visual System Color Science Light Sources: Radiometry/Photometry Geometric Optics Tone-transfer Function.
Chapter 9 Hypothesis Testing and Estimation for Two Population Parameters.
1 Objective Compare of two matched-paired means using two samples from each population. Hypothesis Tests and Confidence Intervals of two dependent means.
Copyright © Cengage Learning. All rights reserved. 10 Inferences Involving Two Populations.
1 Section 9-4 Two Means: Matched Pairs In this section we deal with dependent samples. In other words, there is some relationship between the two samples.
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Section Inference about Two Means: Independent Samples 11.3.
Statistical Hypotheses & Hypothesis Testing. Statistical Hypotheses There are two types of statistical hypotheses. Null Hypothesis The null hypothesis,
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 8 Hypothesis Testing.
© Copyright McGraw-Hill 2000
1 ANALYSIS OF VARIANCE (ANOVA) Heibatollah Baghi, and Mastee Badii.
1 Objective Compare of two population variances using two samples from each population. Hypothesis Tests and Confidence Intervals of two variances use.
11.5 Testing the Difference Between Two Variances
Ex St 801 Statistical Methods Inference about a Single Population Mean.
Hypothesis Testing Errors. Hypothesis Testing Suppose we believe the average systolic blood pressure of healthy adults is normally distributed with mean.
© Copyright McGraw-Hill 2004
Inferences Concerning Variances
Applied Quantitative Analysis and Practices LECTURE#14 By Dr. Osman Sadiq Paracha.
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
© 2010 Pearson Prentice Hall. All rights reserved Chapter Hypothesis Tests Regarding a Parameter 10.
T tests comparing two means t tests comparing two means.
© 2010 Pearson Prentice Hall. All rights reserved Chapter Hypothesis Tests Regarding a Parameter 10.
Hypothesis Testing – Two Means(Small, Independent Samples)
9.3 Hypothesis Tests for Population Proportions
Lecture Nine - Twelve Tests of Significance.
Math 4030 – 10b Inferences Concerning Variances: Hypothesis Testing
Business Statistics Topic 7
Chapter 2 Simple Comparative Experiments
John Loucks St. Edward’s University . SLIDES . BY.
Testing a Claim About a Mean:  Known
Two-sided p-values (1.4) and Theory-based approaches (1.5)
Chapter 9 Hypothesis Testing.
Chapter 11 Inferences About Population Variances
Chapter 9 Hypothesis Testing
Chapter 9 Hypothesis Testing.
Elementary Statistics
STATISTICS INFORMED DECISIONS USING DATA
Inference about Two Means: Independent Samples
Reasoning in Psychology Using Statistics
Reasoning in Psychology Using Statistics
Hypothesis Tests for Two Population Standard Deviations
Basic Practice of Statistics - 3rd Edition Two-Sample Problems
Hypothesis Tests for a Standard Deviation
Essential Statistics Two-Sample Problems - Two-sample t procedures -
What are their purposes? What kinds?
Presentation transcript:

Statistics Review – Part II Topics: – Hypothesis Testing – Paired Tests – Tests of variability 1

2 Sampling and the Normal Distribution inference population sample Now that we have a good sampling plan, how do we monitor the population?

3 Sampling and the Normal Distribution

Suppose the standard of care for diabetics in the ICU is to have HbA1c level  0 = 9.5 You want to see whether your ICU diabetic patients in the ICU meet the standard of care What do you do next? 4 Tests of Means

Sample your diabetic patients in the ICU Randomization…. Sample all diabetic patients every day? – Independence between measurements Time of day? – Controlling for external factors 5 Tests of Means

Randomization – Control for all known factors – Then, randomize the rest – Uncontrollable factors will randomly affect your diabetic patients’ measurements Uncontrollable factors will ‘average out’ 6 Tests of Means

Develop a sampling plan…. What are the controllable elements? How do we randomize and collect our blood sugar measurements? 7 Tests of Means

Suppose we collect A1c data on 20 diabetic patients in the ICU – Mean 7.5 – Standard deviation 4.0 How do we proceed? 8 Tests of Means

Identify the null and alternative hypothesis – What is it we’re testing? Equal versus greater than (left-tailed test) – Ho: mean A1c = 9.5 – H1: mean A1c < Tests of Means

10 Compute the test statistic which follows Student’s t-distribution with n – 1 degrees of freedom. Tests of Means

Our hypothesis test expressed on the normal distribution Tests of Means

Calculate the t-statistic – 19 degrees of freedom T = = – sqrt(20) Tests of Means

Compare to the critical value of the t-statistic with 19 degrees of freedom – What do you conclude? Do your conclusions match you graphical interpretation? 13 Tests of Means

Instead, say that you sampled 80 diabetic patients in the ICU Mean = 7.6 Standard deviation = 4.0 What do you conclude now? 14 Tests of Means

T = = 2.46 How much area is in the ‘curve’ now? What are we basing our assumptions on? – How do we validate our assumptions? – sqrt(80) Tests of Means

16 A P-value is the probability of observing a sample statistic as extreme or more extreme than the one observed under the assumption the null hypothesis is true. Tests of Means

P-value of 2.46 is of 100 experiments will have a t value greater than 2.46 due to ‘random chance’ 1% chance that 2.46 occurred due to chance – more likely that there is a difference between the mean A1c values If p-value < 0.05, we often say we reject the null hypothesis in favor of the alternative (there is strong evidence to reject the null hypothesis). 17 Tests of Means

18 Lastly, we have to validate the assumptions under which we based our test. Here, we use a normal probability plot. Fat pencil test to detect normality Tests of Means

Example: – Is the turn-around time in the lab less than 120 minutes? – Null Hypothesis: – Alternative Hypothesis: 19 Tests of Means

20 Is the turn-around time in the lab less than 120 minutes? 100 samples Mean = Standard deviation = 25.8 t=6.98 df=99 p-value Tests of Means

What is the ‘strength’ of the evidence against the null hypothesis? What do you conclude relative to the null hypothesis? 21 Tests of Means

End: Z-statistics, T-statistics Start: Independent samples t-test 22 Tests of Means

Objective: – Determine whether there are statistically significant differences between means of independently-drawn samples Example: – Mean LOS is the same for 2 physicians – Mean registration time is the same on Fridays as it is on Tuesdays 23 Tests of Means

24 Tests of Means

25 Tests of Means

Claim: – Physician A avg LOS = Physician B avg LOS Alternative Hypothesis: – Physician A avg LOS not equal to Physician B avg LOS 26 Tests of Means

27 Compare the average LOS for visual differences: Tests of Means

Graphically, we have a distribution for the distribution of the difference of avg LOS 28 Tests of Means

Hypothesis: Physician A and B have the same average LOS – Sample 12 Physician A and B patients – A: Mean LOS is 5.8 Standard deviation is 4.0 – B: Mean LOS is 8.5 Standard deviation is Tests of Means

Calculate the test statistic 30 Tests of Means

31 The degrees of freedom used to determine the critical value(s) presented in the last example are conservative. Results that are more accurate can be obtained by using the following degrees of freedom: Tests of Means

What is the t-statistic? What is the p-value associated with the two-sided test? What do you conclude? 32 Tests of Means

Say, now that you sample 25 patients from each physician: – Physician A and B patients: – A: Mean LOS is 6.8 Standard deviation is 4.3 – B: Mean LOS is 8.1 Standard deviation is Tests of Means

What is the t-statistic? What is the p-value associated with the two-sided test? What do you conclude? 34 Tests of Means

35 Lower Bound = Upper Bound = Tests of Means

End: Independent Samples Test Start: Tests of Variability – F-Tests 36 Tests of Means

When might you want to know whether the variability in 2 populations is the same? – Time series - whether a process is ‘in control’; or – Comparison between two populations 37 Tests of Variances

38 Tests of Variances

39 Tests of Variances

40 Comparing variability is based on the ratio of sample variances The ratio of sample variances is called the F-statistic and follows the F-distribution Tests of Variances

Since, If is large relative to, then F is very large and suggests the sample variances are different. If is large relative to, then F is very small and suggests the sample variances are different. 41 Tests of Variances

How ‘large’ or how ‘small’ does F have to be to be ‘significant’? – That depends on the F-distribution which takes into account the sample sizes for both sample variances – Recall, the larger the sample size, the more precisely we can characterize the sample variance (and test for differences between the sample variances) 42 Tests of Variances

43 Tests of Variances

44 Testing Claims Regarding Two Population Standard Deviations 1.The samples are independent simple random samples from both populations. Drawing observations in one population does not affect the drawing of observations in the second population 2.The populations from which the samples are drawn are normally distributed. If the populations from which the samples are drawn are not normally distributed, do not use the F-test for equality of variances Tests of Variances

45 Tests of Variances

46 Tests of Variances

47 Testing hypotheses about equality of variances: Is the critical F with n 1 – 1 degrees of freedom in the numerator and n 2 – 1 degrees of freedom in the denominator and an area of α to the right of the critical F. Tests of Variances

48 Tests of Variances

49 Tests of Variances

50 Tests of Variances

Example: – Change process in lab. 51 Tests of Variances

Summary: – Pre-change Minimum: 51Maximum: 236 Mean: 128 minutes Standard deviation: 40 minutes – Post-change Minimum: 105Maximum: 143 Mean: 121 minutes Standard deviation: 10 minutes 52 Tests of Variances

50 weeks pre- and post- Calculate the F-test F = 40/10 = 4 Look it up! P-value! – Less than critical value? 53 Tests of Variances

What do you conclude about the equality of the variability of the distributions? Do this ‘intuitively’ makes sense when compared to the graph? 54 Tests of Variances

Conclusions Review: – Paired t-tests – Independent samples t-test – F-test for equality of variances – Hypothesis testing – P-values – Confidence intervals 55