Go to index Two Sample Inference for Means Farrokh Alemi Ph.D Kashif Haqqi M.D.

Slides:



Advertisements
Similar presentations
1 Chapter 20: Statistical Tests for Ordinal Data.
Advertisements

Hypothesis: It is an assumption of population parameter ( mean, proportion, variance) There are two types of hypothesis : 1) Simple hypothesis :A statistical.
Chapter 12 ANALYSIS OF VARIANCE.
Section 9.3 Inferences About Two Means (Independent)
PSY 307 – Statistics for the Behavioral Sciences Chapter 20 – Tests for Ranked Data, Choosing Statistical Tests.
Hypothesis Testing IV Chi Square.
1 Analysis of Variance This technique is designed to test the null hypothesis that three or more group means are equal.
PSY 307 – Statistics for the Behavioral Sciences
Independent Sample T-test Formula
Analysis of Variance: Inferences about 2 or More Means
Statistics Are Fun! Analysis of Variance
Inferential Stats for Two-Group Designs. Inferential Statistics Used to infer conclusions about the population based on data collected from sample Do.
PSY 307 – Statistics for the Behavioral Sciences
Topic 2: Statistical Concepts and Market Returns
Ch 15 - Chi-square Nonparametric Methods: Chi-Square Applications
Testing the Difference Between Means (Small Independent Samples)
Chapter 11: Inference for Distributions
Chapter 9 Hypothesis Testing II. Chapter Outline  Introduction  Hypothesis Testing with Sample Means (Large Samples)  Hypothesis Testing with Sample.
Statistical Analysis. Purpose of Statistical Analysis Determines whether the results found in an experiment are meaningful. Answers the question: –Does.
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.
Statistical Analysis Statistical Analysis
T-test Mechanics. Z-score If we know the population mean and standard deviation, for any value of X we can compute a z-score Z-score tells us how far.
Aim: How do we test a comparison group? Exam Tomorrow.
Education 793 Class Notes T-tests 29 October 2003.
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.
1 Level of Significance α is a predetermined value by convention usually 0.05 α = 0.05 corresponds to the 95% confidence level We are accepting the risk.
Section 9.5 Testing the Difference Between Two Variances Bluman, Chapter 91.
Go to Index Analysis of Means Farrokh Alemi, Ph.D. Kashif Haqqi M.D.
Chapter 9 Hypothesis Testing and Estimation for Two Population Parameters.
One Sample Inf-1 If sample came from a normal distribution, t has a t-distribution with n-1 degrees of freedom. 1)Symmetric about 0. 2)Looks like a standard.
1 Objective Compare of two matched-paired means using two samples from each population. Hypothesis Tests and Confidence Intervals of two dependent means.
PSY 307 – Statistics for the Behavioral Sciences Chapter 16 – One-Factor Analysis of Variance (ANOVA)
Essential Question:  How do scientists use statistical analyses to draw meaningful conclusions from experimental results?
© Copyright McGraw-Hill 2000
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
- We have samples for each of two conditions. We provide an answer for “Are the two sample means significantly different from each other, or could both.
T Test for Two Independent Samples. t test for two independent samples Basic Assumptions Independent samples are not paired with other observations Null.
Sec 8.5 Test for a Variance or a Standard Deviation Bluman, Chapter 81.
Sullivan – Fundamentals of Statistics – 2 nd Edition – Chapter 11 Section 1 – Slide 1 of 26 Chapter 11 Section 1 Inference about Two Means: Dependent Samples.
CHAPTER 12 ANALYSIS OF VARIANCE Prem Mann, Introductory Statistics, 7/E Copyright © 2010 John Wiley & Sons. All right reserved.
Aim: How do we test the difference between two means? HW#14: complete slide.
Lecture 8 Estimation and Hypothesis Testing for Two Population Parameters.
Chapter 10 Section 5 Chi-squared Test for a Variance or Standard Deviation.
Chapter 7 Inference Concerning Populations (Numeric Responses)
Today’s lesson (Chapter 12) Paired experimental designs Paired t-test Confidence interval for E(W-Y)
 List the characteristics of the F distribution.  Conduct a test of hypothesis to determine whether the variances of two populations are equal.  Discuss.
Statistical Inferences for Population Variances
Unit 8 Section 7.5.
Testing the Difference Between Two Means
Inference about Two Means - Independent Samples
Statistics A First Course Donald H. Sanders Robert K. Smidt
Math 4030 – 10b Inferences Concerning Variances: Hypothesis Testing
Statistics PSY302 Quiz Chapters 16 & 17
Testing a Claim About a Mean:  Not Known
Chapter 8 Hypothesis Testing with Two Samples.
Review of Chapter 11 Comparison of Two Populations
Elementary Statistics
Inferences on Two Samples Summary
Sections 6-4 & 7-5 Estimation and Inferences Variation
Elementary Statistics
Testing the Difference Between Two Variances
Chapter 4 One-Group t-Test for the Mean
Comparing two Rates Farrokh Alemi Ph.D.
One way ANALYSIS OF VARIANCE (ANOVA)
Hypothesis Testing: The Difference Between Two Population Means
Statistics PSY302 Quiz Chapters 16 & 17
Chapter 9 Testing the Difference Between Two Means, Two Proportions, and Two Variances Copyright © 2012 The McGraw-Hill Companies, Inc. Permission required.
Presentation transcript:

Go to index Two Sample Inference for Means Farrokh Alemi Ph.D Kashif Haqqi M.D.

Go to index Summary Slide Review F test Test of two means –Small sample, equal varianceSmall sample, equal variance –Small sample, unequal varianceSmall sample, unequal variance –Small dependent sampleSmall dependent sample

Go to index Review Frequency distributions and descriptive statistics. Comparing an observation to a distribution. Comparing two distributions.

Go to index Objectives To learn how to compare two distributions. No need to know the formulas, focus on assumptions and interpretations. Be able to do the calculations using excel functions.

Go to index Which Test Is Right?

Go to index F Test Used to test if two population variances are equal. Assumes independent, random samples from populations with normal distributions. Test is conducted by taking the ratio of the variances (square of standard deviations). If the two variances are equal the ratio will be one. The larger value is always on top. Critical test values are determined using number of observations minus one for each sample.

Go to index Example Are nurses in government owned hospitals paid less than privately owned hospitals? From Bluman A. Elementary statistics. McGraw Hill, 1998.

Go to index Solution Hypothesis: variances are equal. Alternative hypothesis: variance are unequal. Critical value for two tailed F test at 9 and 7 degrees of freedom is The F statistic is equal to 600*600/450*450 = 1.7. The null hypothesis is not rejected. Do this in Excel

Go to index Which Test Is Right?

Go to index Test of Two Means Small Sample, Equal Variance Normal population. Independent sample observations. Random sample. Unknown variance. Two distributions have same variance, as per F test.

Go to index Test of Two Means (Cont.) Small Sample, Equal Variance Test value is always calculated as: (observed value minus expected value) / standard deviation. In this case the observed value is the difference between two means. The expected value is zero as the two means are expected to be equal. What is the standard deviation of the difference?

Go to index Standard Deviation of Difference Equal Variance S d = square root {[(n 1 -1)s 1 * s 1 + (n 2 -1)s 2 * s 2 )] / n 1 +n 2 -2)]} * square root (1/ n 1 +1/ n 2 ). S d is standard deviation of the difference of means. n 1 is sample size and s 1 is standard deviation in 1 st distribution. n 2 is sample size and s 2 is standard deviation in 2 nd distribution.

Go to index Test of Two Means (Cont.) Small Sample, Equal Variance Decide if one tail or two tailed test. Critical values depend on sample sizes and are calculated at n 1 +n 2 -2 degrees of freedom. The hypothesis is rejected if the test value is larger than positive critical value or smaller than negative critical value. Do this in Excel

Go to index Which Test Is Right?

Go to index Test of Two Means Small Sample, Unequal Variance Normal population. Independent sample observations. Random sample. Unknown variance. Two distributions have different variance, as per F test.

Go to index Test of Two Means (Cont.) Small Sample, Unequal Variance Test value is always calculated as: (observed value minus expected value) / standard deviation. In this case the observed value is the difference between two means. The expected value is zero as the two means are expected to be equal. What is the standard deviation of the difference?

Go to index Standard Deviation of Difference Unequal Variance S d = square root (s 1 * s 1 /n 1 + s 2 * s 2 /n 2 ). S d is standard deviation of the difference of means. n 1 is sample size and s 1 is standard deviation in 1 st distribution. n 2 is sample size and s 2 is standard deviation in 2 nd distribution.

Go to index Test of Two Means (Cont.) Small Sample, Unequal Variance Decide if one tail or two tailed test. Critical values depend on the smaller sample size minus one. The hypothesis is rejected if the test value is larger than positive critical value or smaller than negative critical value.

Go to index Example Are nurses in government owned hospitals paid less than privately owned hospitals? From Bluman A. Elementary statistics. McGraw Hill, Do this in Excel

Go to index Solution Hypothesis:  1  2. Alternative hypothesis:  1   2. Critical value for  =0.01, one tailed test, with equal variances with degrees of freedom is Standard deviation of difference = 256. Test value = Null hypothesis is rejected. Private hospitals do not pay nurses less than or equal to government hospitals.

Go to index Which Test Is Right?

Go to index Test of Two Means Small Dependent Sample Normal population. Dependent sample observations on same or matched case, before and after. Random selection of cases. Unknown variance. By definition, distributions before and after have same variance.

Go to index Test of Two Means (Cont.) Small Dependent Sample Test value is always calculated as: (observed value minus expected value) / standard deviation. The observed value is the mean of paired differences. The expected value is zero as the mean of the paired differences is zero when the two means are the same. What is the standard deviation of the difference?

Go to index Standard Deviation of Difference Small Dependent Sample S d = square root [  d 2 – (  d) 2 /n] /(n-1). S d = standard deviation of differences. d = paired difference for one case. n = number of paired differences. SE d = standard error of differences. SE d = S d /  n.

Go to index Test of Two Means (Cont.) Small Dependent Sample Decide if one tail or two tailed test. Critical values depend on the sample size minus one. The hypothesis is rejected if the test value is larger than positive critical value or smaller than negative critical value.

Go to index Example Did clinician improve risk score for his patient after switching their medication (Higher scores are better scores)?

Go to index Solution Hypothesis: mean  1 -  2 is greater than or equal to zero. Alternative hypothesis mean of difference is less than zero. Critical value for a one tailed t-distribution at 8-1=7 degrees of freedom is –1.895.

Go to index Solution: Compute Test Value Calculate sum of pair wise difference Calculate sum of squared pair wise differences

Go to index Solution: Computing Test Value Continued Compute mean as (  d)/n. Compute standard deviation as S d = square root [  d 2 – (  d) 2 /n] /(n-1). Compute standard error as SE d = S d /  n. Computer test statistic as mean (minus expected mean of zero) divided by standard error. Do this in Excel Hypothesis is not rejected.