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.

Slides:



Advertisements
Similar presentations
Mann-Whitney U-test Testing for a difference U 1 = n 1 n 2 + ½ n 1 (n 1 + 1) – R 1.
Advertisements

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)
Statistical Techniques I
Chapter 16 Introduction to Nonparametric Statistics
Irwin/McGraw-Hill © Andrew F. Siegel, 1997 and l Chapter 16 l Nonparametrics: Testing with Ordinal Data or Nonnormal Distributions.
PSY 307 – Statistics for the Behavioral Sciences
Fundamentals of Hypothesis Testing. Identify the Population Assume the population mean TV sets is 3. (Null Hypothesis) REJECT Compute the Sample Mean.
Chapter 14 Conducting & Reading Research Baumgartner et al Chapter 14 Inferential Data Analysis.
Statistics Are Fun! Analysis of Variance
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.
T-Tests Lecture: Nov. 6, 2002.
Two Population Means Hypothesis Testing and Confidence Intervals With Unknown Standard Deviations.
Chapter 9 Hypothesis Testing.
PSY 307 – Statistics for the Behavioral Sciences
PSY 307 – Statistics for the Behavioral Sciences
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
Aim: How do we test a comparison group? Exam Tomorrow.
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.
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.
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.
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.
Statistical Analysis Mean, Standard deviation, Standard deviation of the sample means, t-test.
Inferential Statistics 2 Maarten Buis January 11, 2006.
Correlation – Pearson’s. What does it do? Measures straight-line correlation – how close plotted points are to a straight line Takes values between –1.
Test for Significant Differences T- Tests. T- Test T-test – is a statistical test that compares two data sets, and determines if there is a significant.
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.
Statistical Inference for the Mean Objectives: (Chapter 9, DeCoursey) -To understand the terms: Null Hypothesis, Rejection Region, and Type I and II errors.
Chapter 8 Parameter Estimates and Hypothesis Testing.
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.
CD-ROM Chap 16-1 A Course In Business Statistics, 4th © 2006 Prentice-Hall, Inc. A Course In Business Statistics 4 th Edition CD-ROM Chapter 16 Introduction.
- 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.
Sec 8.5 Test for a Variance or a Standard Deviation Bluman, Chapter 81.
Comparing Systems Using Sample Data Andy Wang CIS Computer Systems Performance Analysis.
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.
Lecture 19 Dustin Lueker.  The p-value for testing H 1 : µ≠100 is p=.001. This indicates that… 1.There is strong evidence that μ=100 2.There is strong.
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.
Chapter 7 Inference Concerning Populations (Numeric Responses)
Statistical Inference for the Mean Objectives: (Chapter 8&9, DeCoursey) -To understand the terms variance and standard error of a sample mean, Null Hypothesis,
 List the characteristics of the F distribution.  Conduct a test of hypothesis to determine whether the variances of two populations are equal.  Discuss.
A.P. STATISTICS EXAM REVIEW TOPIC #2 Tests of Significance and Confidence Intervals for Means and Proportions Chapters
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.
Testing for a difference
Testing the Difference Between Two Means
Testing for a difference
Testing for a difference
Hypothesis Testing: Hypotheses
Chapter 9 Hypothesis Testing.
Hypothesis Testing.
Comparing two Rates Farrokh Alemi Ph.D.
Chi-squared Association Index
Hypothesis Tests for a Standard Deviation
Chapter 8 Hypothesis Tests
Hypothesis Testing: The Difference Between Two Population Means
Section 11.1: Significance Tests: Basics
Presentation transcript:

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 of a hedge) Data must occur in natural pairs  Measurements at matched points on either side of a hedge  Measurements at corresponding points on two shores  Two measurements on the same person

If your data are not normal, but are paired, use Wilcoxon If your data are normal, but are not paired, use unpaired t-test Your data occur in natural pairs You have five or more pairs of values 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 with the differences of the pairs of values. If, for example, the values in the first sample were all much bigger, then all the differences would be positive The mean and standard deviation of the differences is calculated, and put into a formula.

Doing the test These are the stages in doing the test: 1.Write down your hypotheseshypotheses 2.Finding the differencesdifferences 3.Finding the mean & standard deviationmean & standard deviation 4.Use the formula to calculate the t-valueformula 5.Write down the degrees of freedomdegrees of freedom 6.Look at the tablestables 7.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: Soil moisture content is higher on the north of the hedge than the south of the hedge orH 1: mean1  mean2 eg: Soil moisture content is different on the north and south sides of the hedge. Unless you have a good scientific reason for expecting one to be larger, you should choose “different” for H 1

Differences Work out the differences between the pairs of values, including signs Always do sample 1 – sample 2 not the other way round, where sample 1 is the one you expect to have larger values

Mean & Standard Deviation To find the mean of your differences, add them all up and divide by how many there are To find the standard deviation s, use the formula n = number of values  x 2 = total of the squares of the differences These calculations can be done on a spreadsheet or graphic calculator

Formula Substitute your values into the formula = mean of the differences s = standard deviation of the differences n = number of values

Degrees of freedom The formula here for degrees of freedom is degrees of freedom = n – 1 Where n is the number of values 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: Soil Moisture North & South of Hedge Data were obtained for soil moisture content at seven matched points north and south of a hedge. Hypotheses: H 0: Mean moisture content on north = mean moisture content on south. H 1 Mean moisture content on north > mean moisture content on south

The data Site North South

Differences We are expecting the North side to have a higher moisture content. So we do North - South N S N – S

Mean & Standard Deviation Our data (the differences) are:  x 2 = (-0.56) 2 + (-3.07) 2 + … =

The test Degrees of freedom = 7 – 1 = 6 We are doing a 1-tailed test Tables value (5%) = Since our value is smaller than the tables value, we accept H 0 – the moisture content on the north is not significantly higher.