1 The One-Sample t-Test Adapted from publically available slides attributed to Matthew Rockloff.

Slides:



Advertisements
Similar presentations
1 COMM 301: Empirical Research in Communication Lecture 15 – Hypothesis Testing Kwan M Lee.
Advertisements

Chapter 12: Testing hypotheses about single means (z and t) Example: Suppose you have the hypothesis that UW undergrads have higher than the average IQ.
5/15/2015Slide 1 SOLVING THE PROBLEM The one sample t-test compares two values for the population mean of a single variable. The two-sample test of a population.
Don’t spam class lists!!!. Farshad has prepared a suggested format for you final project. It will be on the web
T-Tests Lecture: Nov. 6, 2002.
Chapter 9 Hypothesis Testing.
1 Confidence Interval for Population Mean The case when the population standard deviation is unknown (the more common case).
1 The One-Sample t-Test Advanced Research Methods in Psychology - lecture - Matthew Rockloff.
Hypothesis Testing Using The One-Sample t-Test
Getting Started with Hypothesis Testing The Single Sample.
Chapter 9: Introduction to the t statistic
1 Advanced Research Methods in Psychology - lecture - Matthew Rockloff Scheffé Post-Hoc Comparisons.
8/15/2015Slide 1 The only legitimate mathematical operation that we can use with a variable that we treat as categorical is to count the number of cases.
Chapter 5For Explaining Psychological Statistics, 4th ed. by B. Cohen 1 Suppose we wish to know whether children who grow up in homes without access to.
Advanced Research Methods in Psychology - lecture - Matthew Rockloff
Psy B07 Chapter 1Slide 1 ANALYSIS OF VARIANCE. Psy B07 Chapter 1Slide 2 t-test refresher  In chapter 7 we talked about analyses that could be conducted.
Statistics 11 Hypothesis Testing Discover the relationships that exist between events/things Accomplished by: Asking questions Getting answers In accord.
Hypothesis Testing:.
McGraw-Hill/IrwinCopyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Chapter 9 Hypothesis Testing.
© 2008 McGraw-Hill Higher Education The Statistical Imagination Chapter 9. Hypothesis Testing I: The Six Steps of Statistical Inference.
Confidence Intervals and Hypothesis Testing
Copyright © Cengage Learning. All rights reserved. 13 Linear Correlation and Regression Analysis.
Section 10.1 ~ t Distribution for Inferences about a Mean Introduction to Probability and Statistics Ms. Young.
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.
1-1 Copyright © 2015, 2010, 2007 Pearson Education, Inc. Chapter 23, Slide 1 Chapter 23 Comparing Means.
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 10.3.
Comparing Two Population Means
F OUNDATIONS OF S TATISTICAL I NFERENCE. D EFINITIONS Statistical inference is the process of reaching conclusions about characteristics of an entire.
Single Sample Inferences
Comparing Means: t-tests Wednesday 22 February 2012/ Thursday 23 February 2012.
1 CSI5388: Functional Elements of Statistics for Machine Learning Part I.
Week 8 Chapter 8 - Hypothesis Testing I: The One-Sample Case.
Independent Samples t-Test (or 2-Sample t-Test)
PARAMETRIC STATISTICAL INFERENCE
Chi-square (χ 2 ) Fenster Chi-Square Chi-Square χ 2 Chi-Square χ 2 Tests of Statistical Significance for Nominal Level Data (Note: can also be used for.
© 2008 McGraw-Hill Higher Education The Statistical Imagination Chapter 10. Hypothesis Testing II: Single-Sample Hypothesis Tests: Establishing the Representativeness.
Basic concept Measures of central tendency Measures of central tendency Measures of dispersion & variability.
Psy B07 Chapter 4Slide 1 SAMPLING DISTRIBUTIONS AND HYPOTHESIS TESTING.
10.2 Tests of Significance Use confidence intervals when the goal is to estimate the population parameter If the goal is to.
INTRODUCTION TO ANALYSIS OF VARIANCE (ANOVA). COURSE CONTENT WHAT IS ANOVA DIFFERENT TYPES OF ANOVA ANOVA THEORY WORKED EXAMPLE IN EXCEL –GENERATING THE.
Introduction Scientists, mathematicians, and other professionals sometimes spend years conducting research and gathering data in order to determine whether.
1 Psych 5500/6500 The t Test for a Single Group Mean (Part 1): Two-tail Tests & Confidence Intervals Fall, 2008.
6/2/2016Slide 1 To extend the comparison of population means beyond the two groups tested by the independent samples t-test, we use a one-way analysis.
6/4/2016Slide 1 The one sample t-test compares two values for the population mean of a single variable. The two-sample t-test of population means (aka.
Analysis of Variance 1 Dr. Mohammed Alahmed Ph.D. in BioStatistics (011)
11/16/2015Slide 1 We will use a two-sample test of proportions to test whether or not there are group differences in the proportions of cases that have.
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 8 Parameter Estimates and Hypothesis Testing.
Example 10.2 Measuring Student Reaction to a New Textbook Hypothesis Tests for a Population Mean.
KNR 445 Statistics t-tests Slide 1 Introduction to Hypothesis Testing The z-test.
4 normal probability plots at once par(mfrow=c(2,2)) for(i in 1:4) { qqnorm(dataframe[,1] [dataframe[,2]==i],ylab=“Data quantiles”) title(paste(“yourchoice”,i,sep=“”))}
Introduction to the t Test Part 1: One-sample t test
Welcome to MM570 Psychological Statistics
Chapter Eight: Using Statistics to Answer Questions.
Chapter 15 The Chi-Square Statistic: Tests for Goodness of Fit and Independence PowerPoint Lecture Slides Essentials of Statistics for the Behavioral.
Hypothesis test flow chart frequency data Measurement scale number of variables 1 basic χ 2 test (19.5) Table I χ 2 test for independence (19.9) Table.
1-Sample t-test Amir Hossein Habibi.
Other Types of t-tests Recapitulation Recapitulation 1. Still dealing with random samples. 2. However, they are partitioned into two subsamples. 3. Interest.
Copyright © Cengage Learning. All rights reserved. 9 Inferences Based on Two Samples.
PART 2 SPSS (the Statistical Package for the Social Sciences)
1 Testing Statistical Hypothesis The One Sample t-Test Heibatollah Baghi, and Mastee Badii.
Chapter 9: Introduction to the t statistic. The t Statistic The t statistic allows researchers to use sample data to test hypotheses about an unknown.
Welcome to MM570 Psychological Statistics Unit 5 Introduction to Hypothesis Testing Dr. Ami M. Gates.
Copyright © 2009 Pearson Education, Inc t LEARNING GOAL Understand when it is appropriate to use the Student t distribution rather than the normal.
Statistical hypothesis Statistical hypothesis is a method for testing a claim or hypothesis about a parameter in a papulation The statement H 0 is called.
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.
T-tests A.K.A Student t-test
Presentation transcript:

1 The One-Sample t-Test Adapted from publically available slides attributed to Matthew Rockloff

2 When to use the one-sample t-test  One of the most difficult aspects of statistics is determining which procedure to use in what situation.  Mostly this is a matter of practice.  There are many different rules of thumb which may be of some help.  In practice, however, the more you understand the meaning behind each of the techniques, the more the choice will become obvious.

3 Example problem  Example illustrates the calculation of the one-sample t-test.  This test is used to compare a list of values to a set standard. What is this standard? The standard is any number we choose.  As illustrated next, the standard is usually chosen for its theoretical or practical importance.

4 Example (cont.)  Intelligence tests are constructed such that the average score among adults is 100 points.  In this example, we take a small sample of undergraduate students at Thorndike University (N = 6), and try to determine if the average of intelligence scores for all students at the university is higher than 100.  In simple terms, are the university students smarter than average?

5 Example (cont.)  The scores obtained from the 6 students were as follows: X Person 1: 110 Person 2: 118 Person 3: 110 Person 4: 122 Person 5: 110 Person 6: 150

6 Example (cont.) Research Question On average, do the population of undergraduates at Thorndike University have higher than average intelligence scores ( IQ  100 )?

7 Example (cont.)  First, we must compute the mean (or average) of this sample: =

8 Example (cont.)  Notice, these 6 people have higher than average intelligence scores (IQ  100). =

9 Example (cont.)  However, is this finding likely to hold true in repeated samples?  What if we drew 6 different people from Thorndike University?  A one-sample t-test will help answer this question.  It will tell us if our findings are ‘significant’, or in other words, likely to be repeated if we took another sample.

Example (cont.) Computing the sample variance

Example (cont.) Computing the sample variance

12 Example (cont.) Computing the sample variance  To get the third column we take each individual ‘X’ and subtract it from the mean (120).  We square each result to get the fourth column.  Next, we simply add up the entire fourth column and divide by our original sample size (n = 6).  The resulting figure, 201.3, is the sample variance.

13 Example (cont.) Computing the sample variance Important: All sample variances are computed this way! We always take the mean; subtract each score from the mean; square the result; sum the squares; and divide by the sample size (how many numbers, or rows we have).

14  Now that we have the mean (X = 120) and the variance ( ) of our sample, we have everything needed to compute whether the sample mean is ‘significantly’ above the average intelligence.  In the formula that follows, we use a new symbol mu (  ) to indicate the population standard value (  = 100 ) against which we compare our obtained score (X = 120). Example (cont.) Computing the sample variance

15 Example (cont.) Computing the sample variance Our sample has ‘ n = 6’ people, so the degrees of freedom for this t-test are: dn = n – 1 = 5 This degrees of freedom figure will be used later in our test of significance.

16 And now for something completely different …  Let’s take a break from computations, and talk about ‘the big picture’ Now comes the conceptually tricky part.  Remember that a normal bell-curve distribution is a chart that shows frequencies (or counts).  If we measured the weight of four male adults, for example, we might find the following:  Person 1 = 70 kg, Person 2 = 75 kg, Person 3 = 70 kg, Person 4 = 65 kg

17 The ‘big picture’  Person 1 = 70 kg, Person 2 = 75 kg, Person 3 = 70 kg, Person 4 = 65 kg  Plotting a count of these ‘weight’ data, we find a normal distribution: Count 2 X 1 X X X kg

18 The ‘big picture’ (cont.)  As it turns out, the ‘t’ statistic has its own distribution, just like any other variable.  Let’s assume, for the moment, that the mean IQ of the population in our example is exactly 100.  If we repeatedly sampled 6 people and calculated a ‘t’ statistic each time, what would we find?  If we did this 4 times, for example, we might find: Count 2 X 1 X X X t - statistic

19 The ‘t’ statistic (cont.)  Most often our computed ‘t’ should be around 0. Why? Because the numerator, or top part of the formula for t is:.  If our first sample of 6 people is truly representative of the population, then our sample mean should also be 100, and therefore our computed t should be  (see next slide)

20 The ‘t’ statistic (cont.)

21 The ‘t’ statistic (cont.)  Of course, our repeated samples of 6 people will not always have exactly the same mean as the population.  Sometimes it will be a little higher, and sometimes a little lower.  The frequency with which we find a t larger than 0 (or smaller than 0) is exactly what the t-distribution is meant to represent  (see next slide)

22 The ‘t’ statistic (cont.)

23 The ‘t’ statistic (cont.)  How do we know when our computed ‘t’ is very large in magnitude?  Fortunately, we can calculate how often a computed sample ‘t’ will be far from the population mean of t = 0 based on knowledge of the distribution.

24 The ‘t’ statistic (cont.)  The critical values of the t-distribution show exactly how often we should find computed ‘t’s of large magnitude.  In a slight wrinkle, we need the degrees of freedom (df = 5) to help us make this determination.  Why? If we sample only a few people our computed ‘t’s are more likely to be very large, only because they are less representative of the whole population.

25 And now, back to the computation…  We need to find the ‘critical value’ of our t-test.  Looking in the back of any statistics textbook, you can find a table for critical values of the t-distribution.  Next, we need to determine whether we are conducting a 1-tailed or 2-tailed t-test.  Let’s refer back to the research question:

26 Example (again) Research Question On average, do the population of undergraduates at Thorndike University have higher than average intelligence scores ( IQ  100 )?

27 Example (cont.)  This is a 1-tailed test, because we are asking if the population mean is ‘greater’ than 100.  If we had only asked whether the intelligence of students were ‘different’ from average (either higher or lower) then the test would be 2-tailed.  In the appendixes of your textbook, look at the table titled, ‘critical values of the t- distribution’.  Under a 1-tailed test with an Alfa-level of and degrees of freedom df = 5, and you should find a critical value (C.V.) of t = 2.02.

28 Example (cont.) Is our computed t = greater than the C.V. = 2.02? Yes! Thus we reject the null hypothesis and live happily ever after. Right? Not so fast. What does this really mean?

29 Example (still)  We assume the null hypothesis when making this test.  We assume that the population mean is 100, and therefore we will most often compute a t = 0.  Sometimes the computed ‘t’ might be a bit higher and sometimes a bit lower.

30 What does the ‘critical value’ tell us?  Based on knowledge of the distribution table we know that 95% of the time, in repeated samples, the computed ‘t’ statistics should be less than  That’s what the critical value tells us.  It says that when we are sampling 6 persons from a population with mean intelligence scores of 100, we should rarely compute a ‘t’ higher than 2.02.

31 What happens if we do calculate a ‘t’ greater than 2.02?  Well, we can be pretty confident that our sample does not come from a population with a mean of 100!  In fact, we can conclude that the population mean intelligence must be higher than 100.  How often will we be wrong in this conclusion?  If we do these t-tests a lot, we’ll be wrong 5% of the time. That’s the Alpha level (or 5%).

32 Conclusions in APA Style How would we state our conclusions in APA style? The mean intelligence score of undergraduates at Thorndike University (M = 120) was significantly higher than the standard intelligence score (M = 100), t(5) = 3.15, p <.05 (one-tailed).

33 Statistical inference  You should notice that the conclusion makes an inference about the population of students from Thorndike University based on a small sample.  This is why we call this type of a test ‘statistical inference.’  We are inferring something about the population based on only a sample of members.

34 Example Using SPSS  First, variables must be setup in the variable view of the SPSS Data Editor as detailed in the previous chapter:

35 Example Using SPSS (cont.)  Next, the data must be entered in the data view of the SPSS Data Editor:

36 Instructions for the Student Version of SPSS  If you have the student version of SPSS, you must run all procedures from the pull-down menus.  Fortunately, this is easy for the one- sample t-test.  First select the correct procedure from the ‘analyze’ menu  see next slide 

37 The ‘analyze’ menu

38 The ‘test variable’  Next, you must move the ‘test variable’, in this case IQ, into the right-hand pane by pressing the arrow button and change the ‘test-value’ to 100 (our standard for comparison).  Lastly, click ‘OK’ to view the results:

39 Instructions for Full Version of SPSS (Syntax Method)  An alternate method for obtaining the same results is available to users of the full- version of SPSS.  This method, known as ‘syntax’, is described here, because many common and useful procedures in statistics are only available using the syntax method.  Users of the student version may wish to skip ahead to ‘Results from the SPSS Viewer.’  To use syntax, first you must open the syntax window from the ‘file’ menu: 

40 The ‘file’ menu

41 SPSS syntax  The following is generic syntax for the one-sample t-test: t-test testval=TestValue /variables=TestVariable.  The SPSS syntax above requires that you substitute two values.  First, you need the ‘TestValue’ against which you are judging your sample.  In example 2.1, this standard is ‘100.’

42 TestVariable  Next, you must substitute the ‘TestVariable,’ as shown below:

43 Results from SPSS Viewer  After selecting ‘Run – All’ from the menu, the results will appear in the SPSS output window:

44 SPSS calculations  When using SPSS, we no longer have a critical value to compare our calculated t-value.  Instead, SPSS calculates an exact probability value associated with the ‘t.’  As a consequence, when writing the results we simply substitute this exact value, rather than using the less precise ‘p <.05’ (per our hand-calculations above).  Notice that SPSS calls p-values ‘Sig.,’ which stands for significance.

45 SPSS calculations  NOTE: SPSS only gives us the p-value for a 2-tailed t-test.  In order to convert this value into a one- tailed test, per our example, we need to divide this ‘sig (2-tailed)’ value in half (e.g.,.033/2=.02, rounded).  Why?  In short, one-tailed t-tests are twice as powerful, because we simply assume that the results cannot be different in the direction opposite to our expectations.

46 Conclusions in APA Style Focusing attention on the bold portion of the output, we can re-write our conclusion in APA style: The mean intelligence score of undergraduates at Thorndike University (M = 120) was significantly higher than the standard intelligence score (M = 100), t(5) = 3.15, p =.02 (one-tailed).

47 Big t  Little p ?  Remember from a previous session that every t-value that we might calculate is associated with a unique p-value.  In general, t-values which are large in absolute magnitude are desirable, because they help us to demonstrate differences between our computed mean value and the standard.  Values of t that are large in absolute magnitude are always associated with small p-values.

48 Significance  According to tradition in psychology, p-values which are lower than.05 are significant, meaning that we will likely still find differences if we collected another sample of participants.  When using SPSS we are no longer confronted with a ‘critical value.’ Instead, we can simply observe that the p-value is less than ‘.05.’