T-test - unpaired Testing for a difference. What does it do? Tests for a difference in means Compares two cases (eg areas of lichen found in two locations)

Slides:



Advertisements
Similar presentations
Inferential Statistics and t - tests
Advertisements

9.4 t test and u test Hypothesis testing for population mean Example : Hemoglobin of 280 healthy male adults in a region: Question: Whether the population.
Chapter 9 Introduction to the t-statistic
Mann-Whitney U-test Testing for a difference U 1 = n 1 n 2 + ½ n 1 (n 1 + 1) – R 1.
“Students” t-test.
Hypothesis Testing. To define a statistical Test we 1.Choose a statistic (called the test statistic) 2.Divide the range of possible values for the test.
© 2010 Pearson Prentice Hall. All rights reserved Least Squares Regression Models.
PSY 307 – Statistics for the Behavioral Sciences
Statistics Are Fun! Analysis of Variance
T-Tests Lecture: Nov. 6, 2002.
Chapter 9 Hypothesis Testing.
Chapter 9: Introduction to the t statistic
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.
McGraw-Hill/IrwinCopyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Chapter 9 Hypothesis Testing.
Statistical Analysis Statistical Analysis
Chapter Eleven McGraw-Hill/Irwin © 2006 The McGraw-Hill Companies, Inc., All Rights Reserved. Two-Sample Tests of Hypothesis Pages &
Aim: How do we test a comparison group? Exam Tomorrow.
1 Tests with two+ groups We have examined tests of means for a single group, and for a difference if we have a matched sample (as in husbands and wives)
Chi-squared Testing for a difference. What does it do? Compares numbers of people/plants/species… in different categories (eg different pollution levels,
Chi-squared Goodness of fit. What does it do? Tests whether data you’ve collected are in line with national or regional statistics.  Are there similar.
Copyright © 2013, 2010 and 2007 Pearson Education, Inc. Chapter Inference on the Least-Squares Regression Model and Multiple Regression 14.
Section 9.5 Testing the Difference Between Two Variances Bluman, Chapter 91.
1 Power and Sample Size in Testing One Mean. 2 Type I & Type II Error Type I Error: reject the null hypothesis when it is true. The probability of a Type.
Statistical Analysis Mean, Standard deviation, Standard deviation of the sample means, t-test.
Correlation – Pearson’s. What does it do? Measures straight-line correlation – how close plotted points are to a straight line Takes values between –1.
Between-Groups ANOVA Chapter 12. >When to use an F distribution Working with more than two samples >ANOVA Used with two or more nominal independent variables.
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?
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 8 Hypothesis Testing.
Two-Sample Hypothesis Testing. Suppose you want to know if two populations have the same mean or, equivalently, if the difference between the population.
Chapter 13 - ANOVA. ANOVA Be able to explain in general terms and using an example what a one-way ANOVA is (370). Know the purpose of the one-way ANOVA.
T-test - paired Testing for a difference. What does it do? Tests for a difference in means Compares two cases (eg soil moisture content north & south.
9.2 Testing the Difference Between Two Means: Using the t Test
11.5 Testing the Difference Between Two Variances
Ex St 801 Statistical Methods Inference about a Single Population Mean.
Chapter 9: Testing Hypotheses Overview Research and null hypotheses One and two-tailed tests Type I and II Errors Testing the difference between two means.
Copyright © Cengage Learning. All rights reserved. 12 Analysis of Variance.
- 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.
_ z = X -  XX - Wow! We can use the z-distribution to test a hypothesis.
366_7. T-distribution T-test vs. Z-test Z assumes we know, or can calculate the standard error of the distribution of something in a population We never.
Correlation. u Definition u Formula Positive Correlation r =
Environmental Modeling Basic Testing Methods - Statistics II.
Chapter 10 Section 5 Chi-squared Test for a Variance or Standard Deviation.
Wilcoxon Signed Rank Testing for a difference R+ RR
Chi-squared Association Index. What does it do? Looks for “links” between two factors  Do dandelions and plantains tend to grow together?  Does the.
Correlation – Spearman’s. What does it do? Measures rank correlation – whether highest value in the 1 st data set corresponds to highest in the 2 nd set.
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 10.5.
 List the characteristics of the F distribution.  Conduct a test of hypothesis to determine whether the variances of two populations are equal.  Discuss.
Chapter 10 One-Sample Test of Hypothesis. Example The Jamestown steel company manufactures and assembles desks and other office equipment at several plants.
Testing for a difference
Chapter 9 Hypothesis Testing.
Testing the Difference Between Two Means
Testing the Difference between Means and Variances
Hypothesis Testing for Means (Small Samples)
Testing for a difference
Chapter 8 Hypothesis Testing with Two Samples.
Testing for a difference
Introduction to Inferential Statistics
Chapter 9 Hypothesis Testing.
Hypothesis tests for the difference between two means: Independent samples Section 11.1.
Testing the Difference Between Two Variances
Hypothesis Testing.
Comparing two Rates Farrokh Alemi Ph.D.
Chi-squared Association Index
Hypothesis Tests for a Standard Deviation
Doing t-tests by hand.
Chapter 8 Hypothesis Tests
Hypothesis Testing: The Difference Between Two Population Means
Statistical Inference for the Mean: t-test
Presentation transcript:

t-test - unpaired Testing for a difference

What does it do? Tests for a difference in means Compares two cases (eg areas of lichen found in two locations) Your two samples do not have to be the same size

If your data are not normal, use Mann-Whitney If your data are also paired, use paired t-test You have five or more values in each sample Your data are normally distributed  Only continuous data (lengths, weights etc) can be normally distributed  You can do a check by seeing if your data look roughly like this: Planning to use it? Make sure that…

How does it work? You assume (null hypothesis) there is no difference between the two means The test works by calculating the means and standard deviations of the two samples, and substituting into a formula.

Doing the test These are the stages in doing the test: 1.Write down your hypotheseshypotheses 2.Finding the means & standard deviationmeans & standard deviation 3.Use the formula to calculate the t-valueformula 4.Write down the degrees of freedomdegrees of freedom 5.Look at the tablestables 6.Make a decisiondecision Click here Click here for an example

Hypotheses H 0: mean1 = mean2 For H 1, you have a choice, depending on what alternative you were looking for. H 1: mean1 > mean2 eg: Area of lichen in unpolluted location is greater than area of lichen in polluted location orH 1: mean1  mean2 eg: Area of lichen in unpolluted location is different to area of lichen in polluted location Unless you have a good scientific reason for expecting one to be larger, you should choose “different” for H 1

Means & Standard Deviation For each sample, find the mean by adding up all the values and dividing by how many there are Find the estimate of the standard deviation s for the two samples, using the formula n 1 and n 2 = sizes of the two samples  and = means of the two samples  x 1 2 and  x 2 2 = sums of squares of sample values

Formula Substitute your values into the formula n 1 and n 2 = sizes of the two samples  and = means of the two samples s = estimate of standard deviation

Degrees of freedom The formula here for degrees of freedom is degrees of freedom = n 1 + n 2 – 2 Where n 1, n 2 are the sample sizes You do not need to worry about what this means –just make sure you know the formula! But in case you’re interested – the fewer values you have, the more likely you are to get a large t-value by chance – so the higher your value has to be to be significant.

Tables This is a t table Degrees of freedom Significance levels - note different values for 1 and 2-tailed

Make a decision If your value is bigger than the tables value then you can reject the null hypothesis. Otherwise you must accept it. Make sure you choose the right tables value – it depends whether your test is 1 or 2 tailed:  If you are using H 1 : mean1 > mean 2, you are doing a 1-tailed test  If you are using H 1: mean1  mean 2, you are doing a 2-tailed test

Example: Lichen areas in polluted & unpolluted locations A student obtained the following data on areas of lichen at a polluted and an unpolluted location Polluted: Unpolluted Hypotheses: H 0: Mean area at polluted location = mean area at unpolluted location. H 1 Mean area at polluted location  mean area at unpolluted location

Means & Standard Deviation Polluted sample (sample 1): = ( )  5 = 360  x 1 2 = = n 1 = 5 Similarly, for unpolluted sample (sample 2): =  x 2 2 = n 2 = 7

The test Degrees of freedom =  2 = 10 We are doing a 2-tailed test Tables value (5%) = Since our value is smaller than the tables value, we accept H 0 – there’s no significant difference in lichen area content