11 Comparison of Two Means Tests involving two samples – comparing variances, F distribution TOH - x A = x B ? Step 1 - F-test  s A 2 = s B 2 ? Step.

Slides:



Advertisements
Similar presentations
Statistical Techniques I
Advertisements

Chapter 14, part D Statistical Significance. IV. Model Assumptions The error term is a normally distributed random variable and The variance of  is constant.
BHS Methods in Behavioral Sciences I April 25, 2003 Chapter 6 (Ray) The Logic of Hypothesis Testing.
Testing means, part III The two-sample t-test. Sample Null hypothesis The population mean is equal to  o One-sample t-test Test statistic Null distribution.
10 Hypothesis Testing. 10 Hypothesis Testing Statistical hypothesis testing The expression level of a gene in a given condition is measured several.
BCOR 1020 Business Statistics
Overview of Lecture Parametric Analysis is used for
Statistical Methods in Computer Science Hypothesis Testing I: Treatment experiment designs Ido Dagan.
Statistics 101 Class 9. Overview Last class Last class Our FAVORATE 3 distributions Our FAVORATE 3 distributions The one sample Z-test The one sample.
T-Tests Lecture: Nov. 6, 2002.
Two Population Means Hypothesis Testing and Confidence Intervals With Unknown Standard Deviations.
S519: Evaluation of Information Systems
Chapter 9 Hypothesis Testing.
Statistical Methods in Computer Science Hypothesis Testing I: Treatment experiment designs Ido Dagan.
Chapter 10, sections 1 and 4 Two-sample Hypothesis Testing Test hypotheses for the difference between two independent population means ( standard deviations.
5-3 Inference on the Means of Two Populations, Variances Unknown
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.
Probability Distributions and Test of Hypothesis Ka-Lok Ng Dept. of Bioinformatics Asia University.
Two Sample Tests Ho Ho Ha Ha TEST FOR EQUAL VARIANCES
Chapter 8 Inferences Based on a Single Sample: Tests of Hypothesis.
Statistical Analysis Statistical 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.
Inference about Two Population Standard Deviations.
Copyright © Cengage Learning. All rights reserved. 10 Inferences Involving Two Populations.
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.
Review of Statistics Group Results. Which type of statistics? When comparing two group scores-Use the t-test. When comparing more than two scores: Use.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Statistical Inferences Based on Two Samples Chapter 9.
The Hypothesis of Difference Chapter 10. Sampling Distribution of Differences Use a Sampling Distribution of Differences when we want to examine a hypothesis.
Chapter 9 Hypothesis Testing and Estimation for Two Population Parameters.
Hypothesis Testing CSCE 587.
1 Objective Compare of two matched-paired means using two samples from each population. Hypothesis Tests and Confidence Intervals of two dependent means.
ANOVA (Analysis of Variance) by Aziza Munir
Comparing Two Variances
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Section Inference about Two Means: Independent Samples 11.3.
Last Time Today we will learn how to do t-tests using excel, and we will review for Monday’s exam.
Introduction to Inferential Statistics Statistical analyses are initially divided into: Descriptive Statistics or Inferential Statistics. Descriptive Statistics.
Essential Question:  How do scientists use statistical analyses to draw meaningful conclusions from experimental results?
Chapter 7 Inferences Based on a Single Sample: Tests of Hypotheses.
5.1 Chapter 5 Inference in the Simple Regression Model In this chapter we study how to construct confidence intervals and how to conduct hypothesis tests.
Testing Differences in Population Variances
Two-Sample Hypothesis Testing. Suppose you want to know if two populations have the same mean or, equivalently, if the difference between the population.
Statistical Inference for the Mean Objectives: (Chapter 9, DeCoursey) -To understand the terms: Null Hypothesis, Rejection Region, and Type I and II errors.
Copyright © 2013, 2009, and 2007, Pearson Education, Inc. Chapter 14 Comparing Groups: Analysis of Variance Methods Section 14.1 One-Way ANOVA: Comparing.
1 Objective Compare of two population variances using two samples from each population. Hypothesis Tests and Confidence Intervals of two variances use.
9.2 Testing the Difference Between Two Means: Using the t Test
Chapter 8 Parameter Estimates and Hypothesis Testing.
Copyright © Cengage Learning. All rights reserved. 12 Analysis of Variance.
Logic and Vocabulary of Hypothesis Tests Chapter 13.
Copyright (C) 2002 Houghton Mifflin Company. All rights reserved. 1 Understandable Statistics S eventh Edition By Brase and Brase Prepared by: Lynn Smith.
- 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.
The Chi-Square Distribution. Preliminary Idea Sum of n values of a random variable.
Inferences Concerning Variances
Other Types of t-tests Recapitulation Recapitulation 1. Still dealing with random samples. 2. However, they are partitioned into two subsamples. 3. Interest.
Statistical Inference Statistical inference is concerned with the use of sample data to make inferences about unknown population parameters. For example,
Copyright © Cengage Learning. All rights reserved. 9 Inferences Based on Two Samples.
Chapter 9 Inferences Based on Two Samples: Confidence Intervals and Tests of Hypothesis.
Tests of Significance: The Basics ESS chapter 15 © 2013 W.H. Freeman and Company.
The p-value approach to Hypothesis Testing
Copyright © Cengage Learning. All rights reserved. 12 Analysis of Variance.
Testing Differences in Means (t-tests) Dr. Richard Jackson © Mercer University 2005 All Rights Reserved.
Statistical Inference for the Mean Objectives: (Chapter 8&9, DeCoursey) -To understand the terms variance and standard error of a sample mean, Null Hypothesis,
Statistical Inferences for Variance Objectives: Learn to compare variance of a sample with variance of a population Learn to compare variance of a sample.
S519: Evaluation of Information Systems Social Statistics Inferential Statistics Chapter 9: t test.
By Mai Fukata AAH Help me!. The meaning of probability is… A way to measure the chances that something will occur in relation to the possible alternatives.
The 2 nd to last topic this year!!.  ANOVA Testing is similar to a “two sample t- test except” that it compares more than two samples to one another.
When the means of two groups are to be compared (where each group consists of subjects that are not related) then the excel two-sample t-test procedure.
Two-Sample Hypothesis Testing
Hypothesis Tests for Two Population Standard Deviations
Presentation transcript:

11 Comparison of Two Means

Tests involving two samples – comparing variances, F distribution TOH - x A = x B ? Step 1 - F-test  s A 2 = s B 2 ? Step 2 - t-test  use different formula for (i) s A 2 = s B 2. (ii) s A 2 ≠s B 2 Goal – whether a given gene is expressed differently between patients and healthy subjects This involves comparing the mean of the two samples To answer this question one must first know whether the two samples have the same variance The method used to compare variances of two samples – F distribution Then we use t-test to test whether the mean of the gene is expressed differently between patients and healthy subjects

Tests involving two samples – comparing variances, F distribution The values measured in controls are: 10, 11, 11, 12, 15, 13, 12 The values measured in patients are: 12, 13, 13, 15, 12, 18, 17, 16, 16, 12, 15, 10, 12. Is the variance different between the controls and the patients at a 5% significant level ? H 0 : s A 2 = s B 2, H 1 : s A 2 ≠s B 2 Need to find a new test statistics, Two-tail test Notation: assume A = controls, B = patients in the following calculation Controls sample A has d.o.f and variance = 6 and 2.66 Patients sample B has d.o.f and variance = 12 and 5.74 Consider the ratio F = 2.66/5.74 = , Significant level for two-tail test = 5%/2 = 2.5% F-distribution (right tail) F 0.025(6,12) = (from Excel) F 0.975(6,12) = (from Excel) F- distribution (right tail)

F distribution – right tail see next page

Tests involving two samples – comparing variances, F distribution F 0.025(6,12) = F 0.975(6,12) =

Tests involving two samples – comparing variances, F-distribution Usually we have F-distribution table for 0.01, 0.025, 0.05 but not !! Given F 0.025(6,12) = , how to find F 0.975(6,12) ??? The F distribution has the interesting property that : left tail for an F with 1 and 2 d.o.f. is = the reciprocal of the right tail for an F with the d.o.f reversed: F[Left tail( A, B )]  = 1/F[right tail( B, A )]  F 0.975(6,12) = 1/ F ( )(12,6) F 0.975(6,12) = 1/ F 0.025(12,6) = 1/ = back to our null hypothesis test Since < < Since the F-statistics is in between and , we will accept the null hypothesis  there is no difference between controls and patients

Tests involving two samples – comparing variances, F-distribution Now, let us consider the ratio The two different choices should lead to same conclusion, since the conclusion should not depend which variance we put on the numerator or denominator Controls sample A has d.o.f and variance = 6 and 2.66 Patients sample B has d.o.f and variance = 12 and 5.74 F = 5.74/2.66 = F-distribution (right tail) F 0.025(12,6) = (from Excel) F 0.975(12,6) = (from Excel) Since < < Since the F-statistics is in between and 5.366, we will accept the null hypothesis  there is no difference between controls and patients REMARK The two F-tests are reciprocal to each other That is < < Reciprocal  1/ > 1/ >1/  > >

Tests involving two samples – comparing means The gene expression level of the gene AC is measured for the patients, P and controls, C are given in the following: geneIDP1P2P3P4P5P6 AC geneIDC1C2C3C4C5C6 AC F-test: H 0 : s P 2 = s C 2, H 1 : s P 2 ≠s C 2 T-test: H 0 : x P = x C, H 1 : x P ≠ x C Mean of gene expression level of patients, X P = Mean of gene expression level of controls, X C = s P 2 = 0.059, s C 2 = To test whether the two samples have the same variance or not, we perform the F-test at a 5% level F = 0.059/0.097 = 0.60, d.o.f. = 10 F 0.025(5,5) = 7.146, F 0.975(5,5) = In between and  accept the null hypothesis  the patients and controls have the same variances

Tests involving two samples – comparing means t-statistic of two independent samples with equal variances The t-score is where the p-value, or the probability of having such a value by chance is This value is smaller than the significant level 0.05, and therefore we reject the null hypothesis, the gene AC is expressed differently between cancer patients and healthy subjects.

Tests involving two samples – comparing means t-statistic of two independent samples with unequal variances The modified t-score is The degree of freedom need to be adjusted as This value is not an integer and needs to be rounded down

Chapter11 p259

Chapter11 p264

Chapter11 p2268