Review A.Null hypothesis, critical value, alpha, test statistic B.Alternative hypothesis, critical region, p-value, independent variable C.Null hypothesis,

Slides:



Advertisements
Similar presentations
The two-sample t-test Expanding t to two groups. t-tests used for population mean diffs With 1-sample t, we have a single sample and a population value.
Advertisements

Review You run a t-test and get a result of t = 0.5. What is your conclusion? Reject the null hypothesis because t is bigger than expected by chance Reject.
Review Find the mean square (MS) based on these two samples. A.26.1 B.32.7 C.43.6 D.65.3 E M A = 14 M B = Flood.
Confidence Interval and Hypothesis Testing for:
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.
PSY 307 – Statistics for the Behavioral Sciences
Independent Sample T-test Formula
BCOR 1020 Business Statistics Lecture 22 – April 10, 2008.
Independent Samples and Paired Samples t-tests PSY440 June 24, 2008.
BCOR 1020 Business Statistics
T-Tests Lecture: Nov. 6, 2002.
Chapter 11: Inference for Distributions
Statistics for the Social Sciences
PY 427 Statistics 1Fall 2006 Kin Ching Kong, Ph.D Lecture 6 Chicago School of Professional Psychology.
The Kruskal-Wallis Test The Kruskal-Wallis test is a nonparametric test that can be used to determine whether three or more independent samples were.
Hypothesis Testing Using The One-Sample t-Test
Inferential Statistics
Review As sample size increases, the distribution of sample means A.Becomes wider and more normally shaped B.Becomes narrower and more normally shaped.
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.
Hypothesis Testing:.
Experimental Statistics - week 2
Overview of Statistical Hypothesis Testing: The z-Test
Week 9 Chapter 9 - Hypothesis Testing II: The Two-Sample Case.
Tuesday, September 10, 2013 Introduction to hypothesis testing.
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)
Education 793 Class Notes T-tests 29 October 2003.
T-distribution & comparison of means Z as test statistic Use a Z-statistic only if you know the population standard deviation (σ). Z-statistic converts.
Stats 95 t-Tests Single Sample Paired Samples Independent Samples
RMTD 404 Lecture 8. 2 Power Recall what you learned about statistical errors in Chapter 4: Type I Error: Finding a difference when there is no true difference.
Chapter 9: Testing Hypotheses
Overview Two paired samples: Within-Subject Designs
January 31 and February 3,  Some formulae are presented in this lecture to provide the general mathematical background to the topic or to demonstrate.
User Study Evaluation Human-Computer Interaction.
Hypothesis Testing Using the Two-Sample t-Test
Testing Hypotheses about Differences among Several Means.
Review Nine men and nine women are tested for their memory of a list of abstract nouns. The mean scores are M male = 15 and M female = 17. The mean square.
DIRECTIONAL HYPOTHESIS The 1-tailed test: –Instead of dividing alpha by 2, you are looking for unlikely outcomes on only 1 side of the distribution –No.
Independent t-Test CJ 526 Statistical Analysis in Criminal Justice.
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 14 – 1 Chapter 14: Analysis of Variance Understanding Analysis of Variance The Structure of Hypothesis Testing with ANOVA Decomposition of SST.
Reasoning in Psychology Using Statistics Psychology
Introduction to the t Test Part 1: One-sample t test
Chapter 10 The t Test for Two Independent Samples
Business Statistics: A First Course (3rd Edition)
Statistical Inference Drawing conclusions (“to infer”) about a population based upon data from a sample. Drawing conclusions (“to infer”) about a population.
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.
Tuesday, September 24, 2013 Independent samples t-test.
Stats 95 t-Tests Single Sample Paired Samples Independent Samples.
Sampling Distribution of Differences Between Means.
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.
Chapter 10 Section 5 Chi-squared Test for a Variance or Standard Deviation.
HYPOTHESIS TESTING FOR DIFFERENCES BETWEEN MEANS AND BETWEEN PROPORTIONS.
Chapter 7 Inference Concerning Populations (Numeric Responses)
CHAPTER 10: ANALYSIS OF VARIANCE(ANOVA) Leon-Guerrero and Frankfort-Nachmias, Essentials of Statistics for a Diverse Society.
Inferential Statistics Psych 231: Research Methods in Psychology.
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.
CHAPTER 15: THE NUTS AND BOLTS OF USING STATISTICS.
Dependent-Samples t-Test
Two-sample t-tests 10/16.
Independent-Samples t-test
Independent-Samples t-test
Independent-Samples t-test
Basic t-test 10/6.
Two-sample t-tests.
Statistics for the Social Sciences
Reasoning in Psychology Using Statistics
Reasoning in Psychology Using Statistics
What are their purposes? What kinds?
Reasoning in Psychology Using Statistics
Presentation transcript:

Review A.Null hypothesis, critical value, alpha, test statistic B.Alternative hypothesis, critical region, p-value, independent variable C.Null hypothesis, critical region, p-value, test statistic D.Alternative hypothesis, critical value, alpha, independent variable Sampling Distribution under

Review The average person can hold his or her breath for 47 seconds. Curious how you compare to this value, you time yourself ten times, calculate your mean, and do a t-test. Which of these would be a 2-tailed alternative hypothesis? A.Your mean time is 47 seconds B.Your mean time is different from 47 seconds C.Your mean time is greater than 47 seconds D.Your mean time is less than 47 seconds

Review A pharmaceutical company regularly runs experiments to test whether candidate drugs do what they’re supposed to. Their experiments use an alpha level of.01. Of all the drugs that really do work, 20% are mistakenly abandoned because the experiment fails to find evidence that they work. What is the power of the company’s experiments? A.1% B.20% C.80% D.99%

Two-sample t-tests 10/14

+14 M = 14 M = Flood

Independent-samples t-test Often interested in whether two groups have same mean – Experimental vs. control conditions – Comparing learning procedures, with vs. without drug, lesions, etc. – Men vs. women, depressed vs. not Comparison of two separate populations – Population A, sample A of size n A, mean M A estimates  A – Population B, sample B of size n B, mean M B estimates  B –  A =  B ? Example: maze times – Rats without hippocampus: Sample A = [37, 31, 27, 46, 33] – With hippocampus: Sample B = [43, 26, 35, 31, 28] – M A = 34.8, M B = 32.6 – Is difference reliable?  A >  B ? Null hypothesis:  A =  B – No assumptions of what each is (e.g.,  A = 10,  B = 10) Alternative Hypothesis:  A ≠  B

Finding a Test Statistic Goal: Define a test statistic for deciding  A =  B vs.  A ≠  B Constraints (apply to all hypothesis testing): – Must be function of data (both samples) – Sampling distribution must be fully determined by H 0 Can only assume  A =  B Can’t depend on  A or  B separately, or on  – Alternative hypothesis should predict extreme values Statistic should measure deviation from  A =  B so that if  A ≠  B, we’ll be able to reject H 0 Answer (preview): – Based on M A – M B (just like M –  0 for one-sample t-test) –.–. – (M A – M B ) has Normal distribution – Standard error has (modified) chi-square distribution – Ratio has t distribution

Likelihood Function for M A – M B Central Limit Theorem Distribution of M A – M B – Subtract the means: E(M A – M B ) = E(M A ) – E(M B ) =  –  = 0 – Add the variances: –.–. Just divide by standard error? –.–. – Same problem as before: We don’t know  – Need to estimate from data

Estimating  Already know best estimator for one sample Could just use one sample or the other – s A or s B – Works, but not best use of the data Combining s A and s B – Both come from averages of (X – M) 2 – Average them all together: Degrees of freedom – (n A – 1) + (n B – 1) = n A + n B – 2

Independent-Samples t Statistic Difference between sample means Typical difference expected by chance Estimate of   Degrees of freedom Sum of squared deviations Variance from M A Variance from M B Variance of M A – M B Mean Square; estimates  

Steps of Independent Samples t-test 1.State clearly the two hypotheses 2.Determine null and alternative hypotheses H 0 :  A =  B H 1 :  A ≠  B 3.Compute the test statistic t from the data. Difference between sample means, divided by standard error 4.Determine likelihood function for test statistic according to H 0 t distribution with n A + n B – 2 degrees of freedom 5.Choose alpha level 6.Find critical value 7a.t beyond t crit : Reject null hypothesis,  A ≠  B 7b.t within t crit : Retain null hypothesis,  A =  B

XX-MAX-MA (X-MA)2(X-MA)  A (X-M A ) 2 = XX-MBX-MB (X-MB)2(X-MB)  B (X-M B ) 2 = Example – Rats without hippocampus: Sample A = [37, 31, 27, 46, 33] – With hippocampus: Sample B = [43, 26, 35, 31, 28] – M A = 34.8, M B = 32.6, M A – M B = 2.2 – df = n A + n B – 2 = – 2 = 8 t8t8 t crit = 1.86

Mean Squares Average of squared deviations Used for estimating variance Population Sample Population variance,  2 Also estimates  2 Two samples Sample variance, s 2 Estimates  2

Degrees of Freedom Applies to any sum-of-squares type formula Tells how many numbers are really being added – n = 2: only one number – In general: one number determined by the rest Every statistic in formula that’s based on X removes 1 df – M, M A, M B – Algebraically rewriting formula in terms of only X results in fewer summands I will always tell you the rule for df for each formula To get Mean Square, divide sum of squares by df Sampling distribution of a statistic depends on its degrees of freedom –  2, t, F XX – M(X – M)

Independent vs. Paired Samples Independent-samples t-test assumes no relation between Sample A and Sample B – Unrelated subjects, randomly assigned – Necessary for standard error of (M A – M B ) to be correct Sometimes samples are paired – Each score in Sample A goes with a score in Sample B – Before vs. after, husband vs. wife, matched controls – Paired-samples t-test

Paired-samples t-test Data are pairs of scores, (X A, X B ) – Form two samples, X A and X B – Samples are not independent Same null hypothesis as with independent samples –  A =  B – Equivalent to mean(X A – X B ) = 0 Approach – Compute difference scores, X diff = X A – X B – One-sample t-test on difference scores, with  0 = 0

Example Breath holding underwater vs. on land – 8 subjects – Water: X A = [54, 98, 67, 143, 82, 91, 129, 112] – Land:X B = [52, 94, 69, 139, 79, 86, 130, 110] Difference: X diff = [2, 4, -2, 4, 3, 5, -1, 2] Critical value > qt(.025,7,lower.tail=FALSE) [1] Reliably longer underwater Mean: Standard Error: Mean Square:Test Statistic:

Comparison of t-tests SamplesDatatStandard ErrorMean Squaredf One Xn Indep. X A, X B n A + n B – 2 2-Paired X diff = X A - X B n - 1

Review A study of adult and infant speech observes brief interactions between 10 two- year-olds and their mothers. For each dyad, we record the number of words spoken by the parent and by the child. The question is who speaks more on average. What type of t-test should be used to analyze the data? A.One-sample t-test B.Independent-samples t-test C.Paired-samples t-test D.Depends on your choice of null hypothesis

Review Find the mean difference score, M diff, from the data below. A.1.8 B.4.4 C.36.1 D.72.2 Dyad Parent Child

Review Now calculate t. A.0.12 B.0.37 C.1.16 D.2.72 Dyad Parent Child Diff M diff = 1.8 s diff = 4.9