Example 1 We wanted to know if the American League or National League had better pitching – many people believe the NL has stronger pitching (which means.

Slides:



Advertisements
Similar presentations
Ch 5: Hypothesis Tests With Means of Samples Pt 3: Sept. 17, 2013.
Advertisements

Topics Today: Case I: t-test single mean: Does a particular sample belong to a hypothesized population? Thursday: Case II: t-test independent means: Are.
PTP 560 Research Methods Week 9 Thomas Ruediger, PT.
One sample T Interval Example: speeding 90% confidence interval n=23 Check conditions Model: t n-1 Confidence interval: 31.0±1.52 = (29.48, 32.52) STAT.
Confidence Interval and Hypothesis Testing for:
Comparing Two Population Means The Two-Sample T-Test and T-Interval.
Single Sample t-test Purpose: Compare a sample mean to a hypothesized population mean. Design: One group.
Chapter 8 The t Test for Independent Means Part 1: March 6, 2008.
PSY 307 – Statistics for the Behavioral Sciences
The Normal Distribution. n = 20,290  =  = Population.
The z-Test What is the Purpose of a z-Test? What are the Assumptions for a z- Test? How Does a z-Test Work?
Comparing Means: Independent-samples t-test Lesson 14 Population APopulation B Sample 1Sample 2 OR.
Mean for sample of n=10 n = 10: t = 1.361df = 9Critical value = Conclusion: accept the null hypothesis; no difference between this sample.
Independent t-Test CJ 526 Statistical Analysis in Criminal Justice.
Lecture 9: One Way ANOVA Between Subjects
Hypothesis Tests for Means The context “Statistical significance” Hypothesis tests and confidence intervals The steps Hypothesis Test statistic Distribution.
Independent Sample T-test Often used with experimental designs N subjects are randomly assigned to two groups (Control * Treatment). After treatment, the.
Chapter 10, sections 1 and 4 Two-sample Hypothesis Testing Test hypotheses for the difference between two independent population means ( standard deviations.
Independent Sample T-test Classical design used in psychology/medicine N subjects are randomly assigned to two groups (Control * Treatment). After treatment,
Hypothesis Testing Using The One-Sample t-Test
Hypothesis Testing: Two Sample Test for Means and Proportions
The t-test Inferences about Population Means when population SD is unknown.
Chapter 7 For Explaining Psychological Statistics, 4th ed. by B. Cohen 1 Chapter 7: The t Test for Two Independent Sample Means To conduct a t test for.
Power and Sample Size IF IF the null hypothesis H 0 : μ = μ 0 is true, then we should expect a random sample mean to lie in its “acceptance region” with.
Statistical Inference Dr. Mona Hassan Ahmed Prof. of Biostatistics HIPH, Alexandria University.
Hypothesis Testing:.
Lab 5 Hypothesis testing and Confidence Interval.
Overview of Statistical Hypothesis Testing: The z-Test
Testing Hypotheses I Lesson 9. Descriptive vs. Inferential Statistics n Descriptive l quantitative descriptions of characteristics n Inferential Statistics.
Overview Definition Hypothesis
Means Tests Hypothesis Testing Assumptions Testing (Normality)
Education 793 Class Notes T-tests 29 October 2003.
Chapter 5. Exercise 1 Fail to reject Ho Exercise 2 Fail to reject Ho.
T tests comparing two means t tests comparing two means.
One Sample Inf-1 If sample came from a normal distribution, t has a t-distribution with n-1 degrees of freedom. 1)Symmetric about 0. 2)Looks like a standard.
COURSE: JUST 3900 TIPS FOR APLIA Developed By: Ethan Cooper (Lead Tutor) John Lohman Michael Mattocks Aubrey Urwick Chapter : 10 Independent Samples t.
Chapter 10 Inferences from Two Samples
Large sample CI for μ Small sample CI for μ Large sample CI for p
Introduction to Hypothesis Testing MARE 250 Dr. Jason Turner.
S-012 Testing statistical hypotheses The CI approach The NHST approach.
Independent t-Test CJ 526 Statistical Analysis in Criminal Justice.
ANOVA Assumptions 1.Normality (sampling distribution of the mean) 2.Homogeneity of Variance 3.Independence of Observations - reason for random assignment.
Chapter 8 Parameter Estimates and Hypothesis Testing.
Introduction to Statistical Inference Jianan Hui 10/22/2014.
Illustrations using R B. Jones Dept. of Political Science UC-Davis.
Review - Confidence Interval Most variables used in social science research (e.g., age, officer cynicism) are normally distributed, meaning that their.
Chapter 10 The t Test for Two Independent Samples
Hypothesis Testing Errors. Hypothesis Testing Suppose we believe the average systolic blood pressure of healthy adults is normally distributed with mean.
Statistical Inference Drawing conclusions (“to infer”) about a population based upon data from a sample. Drawing conclusions (“to infer”) about a population.
Handout Seven: Independent-Samples t Test Instructor: Dr. Amery Wu
Comparing Two Proportions. AP Statistics Chap 13-2 Two Population Proportions The point estimate for the difference is p 1 – p 2 Population proportions.
Inference for Proportions Section Starter Do dogs who are house pets have higher cholesterol than dogs who live in a research clinic? A.
Sampling Distribution of Differences Between Means.
1 Probability and Statistics Confidence Intervals.
Sampling Distribution (a.k.a. “Distribution of Sample Outcomes”) – Based on the laws of probability – “OUTCOMES” = proportions, means, test statistics.
T tests comparing two means t tests comparing two means.
Comparing 2 populations. Placebo go to see a doctor.
The Paired-Samples t Test Chapter 10. Research Design Issues >So far, everything we’ve worked with has been one sample One person = Z score One sample.
The Single-Sample t Test Chapter 9. t distributions >Sometimes, we do not have the population standard deviation, σ. Very common! >So what can we do?
Lecture Nine - Twelve Tests of Significance.
Hypothesis Testing I The One-sample Case
Math 4030 – 10b Inferences Concerning Variances: Hypothesis Testing
Math 4030 – 10a Tests for Population Mean(s)
STAT 312 Chapter 7 - Statistical Intervals Based on a Single Sample
Hypothesis Testing: Two Sample Test for Means and Proportions
What are their purposes? What kinds?
Confidence Interval.
Hypothesis Tests for a Population Proportion
Inferences from Matched Pairs
Presentation transcript:

Example 1 We wanted to know if the American League or National League had better pitching – many people believe the NL has stronger pitching (which means lower scores). Are they correct at the p <.01 criterion? Data is part of the R file, run the first two lines of code to get it set up.

Step 1 Assumptions: – DV scale? Yes – ratio – Randomly select – yes, random assign – no – Normal? Unlikely don’t know, N < 30 – Homogeneity – SD they are roughly equal

Step 2 R: AL > NL N: AL <= NL

Step 3 Group 1 ALGroup 2 NL Mean SD N67 df56 Spooled1.23 Sdifference0.69

Formulas spooled = sqrt( ((n1-1)*sd1^2 + (n2-1)*sd2^2) / (n1+n2 - 2)) sdifference = sqrt((spooled^2/n1 + spooled^2/n2))

Step 4 qt(.01, 11, lower.tail = F) P <.01 Df total = Lower.tail = F because greater than test Critical t is 2.72

Step 5 Two Sample t-testdata: data$al and data$nl t = , df = 11, p-value = alternative hypothesis: true difference in means is greater than 099 percent confidence interval: Inf sample estimates: mean of x mean of y

Step 6 NOPE Fail to reject

Confidence Interval Confidence interval of mean difference – Most CI are two tailed – Using t.test() – 99 percent confidence interval:

Effect Size d =.81

Example 2 A while back, MSU considering changing their mascot to be more ferocious. Students rated their preference of mascot on a 1 to 5 scale. Did they prefer the new mascot? Use the p <.05 criterion. Data is built into the R code.

Step 1 Assumptions: – DV scale – yes, interval – Normal - I don’t know N < 30 – Random selection – nope, random assign - yes – Homogeneity – yes

Step 2 R: old < new N: old > = new

Step 3 Group 1 oldGroup 2 new Mean SD.971 N99 df88 Spooled.99 Sdifference,46

Step 4 Less than test P <.05 Df total = = 16 qt(.05, 16, lower.tail = T) T critical = -1.75

Step 5 Two Sample t-testdata: dataexp2$old and dataexp2$new t = , df = 16, p-value = alternative hypothesis: true difference in means is less than 0 95 percent confidence interval: -Inf sample estimates: mean of x mean of y

Step 6 Reject the null!

Confidence Interval Confidence interval of the mean difference 95 percent confidence interval:

Effect Size M1 = 2.78, SD = 0.97, SE = 0.32, 95%CI[ ] M2 = 3.67, SD = 1.00, SE = 0.33, 95%CI[ ] t(16) = -1.91, p = 0.07, d = -0.90, 95%CI[ ]