1 SPSS on two independent samples. Two sample test with proportions. Paired t-test (with more SPSS)
2 State of the course address: The Final exam is Aug 9, 3:30pm 6:30pm in B9201 in the Burnaby Campus. (One or two hallways off from AQ on the north side) After this chapter, there are two must-cover topics: Analysis of Variance (ANOVA, Ch. 8), and Correlation/Regression (Ch ). Unless there are objections, I d like to do Ch first to give people time to master Ch.7 before continuing that stream.
3 SPSS and two samples, Part 1: Red cars go the fastest. We have a sample of 42 blue cars are 26 red cars going down Burnaby mountain in the afternoon, and we re trying to see the red cars do, in fact, go faster than the blue cars. We re comparing two means, so this is a two-sample test. We re interested in one particular side (greater), this is a onetailed test. We have the data set red cars, we ll use that to determine the rest.
4 Independent t-test data needs to be all in a single column (speed). A second column is used as a grouping variable to tell SPSS which sample each car belongs to.
5 To do a two-sample t-test, go to Analyze Compare Means Independent Samples T-Test
6 Put the response (speed) into the Test Variable(s) section. Put the grouping variable (colour) into the Grouping Variable spot, and click Define Groups.
7 Type Red into one group, and Blue into the other. Be very careful of speling and capitalization. It has to be exactly the same as the names in the grouping variable. Then click Continue and click OK
8 SPSS outputs a large table. The first part is the results from testing the assumption of equal variance. This is what tells us if pooled standard deviation S P is reasonable. The null assumption is equal variance holds. The significance is.137, more than.050, so we ll use S P, the top row results.
9 The middle part is the actual hypothesis test results. The p-value is.207/2 =.1035, which is greater than.050, so we fail to reject the null hypothesis. There is no evidence against the idea that blue cars go just as fast as red ones.
10 The top row uses the assumption of equal variances. Note that this row has more degrees of freedom. The rest of the values like standard error could be affected either way, but df will always be bigger with pooled variance.
11 The last part is the confidence interval approach to the same problem. We re interested in the difference, and a difference of zero is in this confidence interval, again we fail to reject to null hypothesis that the difference is zero.
12 Computers: Wizardous or Lizardous?
13 SPSS and two samples, Part 2: Red cars are for girls. If we have data in a 0-1 format, we can do two-sample t-tests on proportions as well. The last variable in the Red Cars dataset is Gender, meaning the gender of the driver, it s coded 0 for male and 1 for female. We want to know if there if the proportion of red car drivers that are female is different than the proportion of blue car drivers that are female. (Two-tailed, two-sample t-test)
14 Basically, we want to know if two proportions are the same. 1 is how many of the red car drivers were female. 2 is how many of the blue car drivers were female.
15 Use the same grouping variable, but move the variable gender into the Test Variable(s). Click OK.
16 Can we assume equal variance? Significance =.812, which is larger than.050, so yes. Use the top row again.
17 Is there a significant difference? NOTE THE CORRECTION FROM REJECT TO FAIL TO REJECT The p-value (significance) is.908. If there was no difference in gender proportion between red and blue cars, we d see this.908 of the time. It s more than.050, so we fail to reject H 0
18 Uff, stats so much work.
19 Paired tests. In every example so far of two samples, the individuals in sample 1 have nothing do with those in sample 2.
20 A given red car isn t matched up to a given blue car for comparison. We call these independent samples.
21 Sometimes there s a natural link between observations in one group and observations in another. Observations form pairs, so we call these paired samples.
22 Often we re looking at the before and after responses of subjects. Each pair of observations comes from the same person or object, but at different times.
23 Twin or sibling studies are popular in nature vs. nurture debates. Each pair of observations comes from the same family, but a different sibling.
24 SPSS and two sample tests Part 3. Is there an historical difference in gas prices across Vancouver? We have the monthly average gas prices for 62 months in Burnaby, Coquitlam, and Delta. We want to know, is there a difference betweeen Burnaby and Coquitlam prices. (Two-tailed test)
25 Each pair of observations has a link: They come from the same month. A common link means a paired t-test is appropriate. Some of the variation is going to be due to factors beyond Vancouver, like the season and global economics and politics, that could affect gas prices. Since many of the effects happen at the same time, we roll them into a time variable (month). Using the time variable like this is a common practice.
26 Gas Prices Burnaby Coquitlam Difference Mean Standard Devation 13.7 Sample Size In a paired test, we only care about the difference between the raw scores. Then we do a one-sample t-test on the differences against the null hypothesis that the mean difference is zero.
27 D is just stands for difference. There s nothing else on the top because it s D 0. This formula is exactly the same as the one-sample t-test, against a null hypothesis of zero.
28 D could also be written 1-2. Plugging in values gives us t-score
29 Since we used a sample of 62 differences, the degrees of freedom is 62 2 =61. For the textbook, 61 is rounded down to 60. The two-tailed critical values in the textbook at df=60 are df Against t= -2.59, we find.010 < p <.020.
30 In SPSS, paired t-tests can only be done on data that s in two side-by-side columns.
31 To get a paired t-test, go to Analyze Compare Means Paired-Samples T Test
32 Then drag the paired variables into the same pair. (Order doesn t matter for getting significance) Click OK.
33 If you want to change the confidence interval, press the options button, change it, then click Continue. When you re ready, click OK on the main pop-up. (Same as with the other t-test interfaces)
34 The table we want is the Paired Samples Test
35 The results agree with our by-hand results (up to rounding error). t = (similar to -2.59) p =.011, which is between.010 and.020, as we found. Assuming alpha =.05, we would reject the null hypothesis (using either t vs. t* or p-value vs..05)
36 If there s a link between observations in two groups, it s important to acknowledge them. We control for some of the confounding variables this way.
37 There is a numerical relationship between the gas prices in one part of the city and gas prices in other places at the same time. An independent samples t-test assumes that there is no relationship.
38 Comparing Coquitlam and Burnaby prices as if they were independent samples, we lose significance. Month-to-month effects like the seasons and global pressures become extra noise / extra variation, so we lose significance.
39 Next class: Type I and Type II Errors Chapter 7 Wrap-Up, extra examples.
T-test in SPSS Hypothesis tests of proportions Confidence Intervals (End of chapter 6 material) Definition of p-value: The probability of getting evidence as strong as you did assuming that the null hypothesis
Two-sample t-tests. - Independent samples - Pooled standard devation - The equal variance assumption Last time, we used the mean of one sample to test against the hypothesis that the true mean was a particular
Two Related Samples t Test In this example 1 students saw five pictures of attractive people and five pictures of unattractive people. For each picture, the students rated the friendliness of the person
LAB 4 INSTRUCTIONS CONFIDENCE INTERVALS AND HYPOTHESIS TESTING In this lab you will explore the concept of a confidence interval and hypothesis testing through a simulation problem in engineering setting.
THERE ARE TWO WAYS TO DO HYPOTHESIS TESTING WITH STATCRUNCH: WITH SUMMARY DATA (AS IN EXAMPLE 7.17, PAGE 236, IN ROSNER); WITH THE ORIGINAL DATA (AS IN EXAMPLE 8.5, PAGE 301 IN ROSNER THAT USES DATA FROM
Is the mean hourly rate of male workers $2.00? T-Test One-Sample Statistics Std. Error N Mean Std. Deviation Mean 2997 2.0522 6.6282.2 One-Sample Test Test Value = 2 95% Confidence Interval Mean of the
Independent t- Test (Comparing Two Means) The objectives of this lesson are to learn: the definition/purpose of independent t-test when to use the independent t-test the use of SPSS to complete an independent
Opgaven Onderzoeksmethoden, Onderdeel Statistiek 1. What is the measurement scale of the following variables? a Shoe size b Religion c Car brand d Score in a tennis game e Number of work hours per week
The Islamic University of Gaza Faculty of Commerce Department of Economics and Political Sciences An Introduction to Statistics Course (ECOE 130) Spring Semester 011 Chapter 10- TWO-SAMPLE TESTS Practice
Hypothesis Testing For the next few lectures, we re going to look at various test statistics that are formulated to allow us to test hypotheses in a variety of contexts: In all cases, the hypothesis testing
An SPSS companion book to Basic Practice of Statistics SPSS is owned by IBM. 6 th Edition. Basic Practice of Statistics 6 th Edition by David S. Moore, William I. Notz, Michael A. Flinger. Published by
General Method: Difference of Means 1. Calculate x 1, x 2, SE 1, SE 2. 2. Combined SE = SE1 2 + SE2 2. ASSUMES INDEPENDENT SAMPLES. 3. Calculate df: either Welch-Satterthwaite formula or simpler df = min(n
Difference of Means and Problems Dr. Tom Ilvento FREC 408 Accounting Firm Study An accounting firm specializes in auditing the financial records of large firm It is interested in evaluating its fee structure,particularly
CHAPTER 9 HYPOTHESIS TESTING The TI-83 Plus and TI-84 Plus fully support hypothesis testing. Use the key, then highlight TESTS. The options used in Chapter 9 are given on the two screens. TESTING A SINGLE
Chapter 2 Probability Topics SPSS T tests Data file used: gss.sav In the lecture about chapter 2, only the One-Sample T test has been explained. In this handout, we also give the SPSS methods to perform
Chapter 7 Appendix Inference for Distributions with Excel, JMP, Minitab, SPSS, CrunchIt!, R, and TI-83/-84 Calculators Inference for the Mean of a Population Excel t Confidence Interval for Mean Confidence
EXCEL Analysis TookPak [Statistical Analysis] 1 First of all, check to make sure that the Analysis ToolPak is installed. Here is how you do it: a. From the Tools menu, choose Add-Ins b. Make sure Analysis
Hypothesis Testing Below is a sample data set that we will be using for today s exercise. It lists the heights for 10 men and 1 women collected at Truman State University. The data will be entered in the
Testing Group Differences using T-tests, ANOVA, and Nonparametric Measures Jamie DeCoster Department of Psychology University of Alabama 348 Gordon Palmer Hall Box 870348 Tuscaloosa, AL 35487-0348 Phone:
Introduction to Hypothesis Testing 9-1 Learning Outcomes Outcome 1. Formulate null and alternative hypotheses for applications involving a single population mean or proportion. Outcome 2. Know what Type
Chapter 5 Analysis of variance SPSS Analysis of variance Data file used: gss.sav How to get there: Analyze Compare Means One-way ANOVA To test the null hypothesis that several population means are equal,
3.4 Statistical inference for 2 populations based on two samples Tests for a difference between two population means The first sample will be denoted as X 1, X 2,..., X m. The second sample will be denoted
CRJ 716 Using Computers in Social Research Comparing Two or more than Two Groups Comparing Means, Conducting T-Tests and ANOVA Agron Kaci John Jay College Chapter 9/1: Comparing Two or more than Two Groups
Descriptive Statistics Primer Descriptive statistics Central tendency Variation Relative position Relationships Calculating descriptive statistics Descriptive Statistics Purpose to describe or summarize
Odds ratio, Odds ratio test for independence, chi-squared statistic. Announcements: Assignment 5 is live on webpage. Due Wed Aug 1 at 4:30pm. (9 days, 1 hour, 58.5 minutes ) Final exam is Aug 9. Review
SPSS: Expected frequencies, chi-squared test. In-depth example: Age groups and radio choices. Dealing with small frequencies. Quick Example: Handedness and Careers Last time we tested whether one nominal
Using Microsoft Excel to Analyze Data from the Disk Diffusion Assay Entering and Formatting Data Open Excel. Set up the spreadsheet page (Sheet 1) so that anyone who reads it will understand the page (Figure
Five types of statistical analysis General Procedure for Hypothesis Test Descriptive Inferential Differences Associative Predictive What are the characteristics of the respondents? What are the characteristics
t-tests in Excel By Mark Harmon Copyright 2011 Mark Harmon No part of this publication may be reproduced or distributed without the express permission of the author. firstname.lastname@example.org www.excelmasterseries.com
Simple Linear Regression Does sex influence mean GCSE score? In order to answer the question posed above, we want to run a linear regression of sgcseptsnew against sgender, which is a binary categorical
1 Final Review 2 Review 2.1 CI 1-propZint Scenario 1 A TV manufacturer claims in its warranty brochure that in the past not more than 10 percent of its TV sets needed any repair during the first two years
STAT503 Lecture Notes: Chapter 9 1 Chapter 9: Comparison of Paired Samples November 2, 2009 9.1 Introduction Observations occur in pairs such as: as identical twins, two observations on the same individual
Mind on Statistics Chapter 13 Sections 13.1-13.2 1. Which statement is not true about hypothesis tests? A. Hypothesis tests are only valid when the sample is representative of the population for the question
Psyc 250 Statistics & Experimental Design Single & Paired Samples t-tests Part 1 Data Entry For any statistical analysis with any computer program, it is always important that data are entered correctly
TIPS FOR DOING STATISTICS IN EXCEL Before you begin, make sure that you have the DATA ANALYSIS pack running on your machine. It comes with Excel. Here s how to check if you have it, and what to do if you
EXST700X Lab Spring 014 EXST SAS Lab Lab #9: Two-sample t-tests Objectives 1. Input a CSV file (data set #1) and do a one-tailed two-sample t-test. Input a TXT file (data set #) and do a two-tailed two-sample
Chapter 9 Two-Sample Tests Paired t Test (Correlated Groups t Test) Effect Sizes and Power Paired t Test Calculation Summary Independent t Test Chapter 9 Homework Power and Two-Sample Tests: Paired Versus
One-Way Analysis of Variance (ANOVA) Example Problem Introduction Analysis of Variance (ANOVA) is a hypothesis-testing technique used to test the equality of two or more population (or treatment) means
SPSS/Excel Workshop 3 Summer Semester, 2010 In Assignment 3 of STATS 10x you may want to use Excel to perform some calculations in Questions 1 and 2 such as: finding P-values finding t-multipliers and/or
SPSS Guide: Tests of Differences I put this together to give you a step-by-step guide for replicating what we did in the computer lab. It should help you run the tests we covered. The best way to get familiar
Using CrunchIt (http://bcs.whfreeman.com/crunchit/bps4e) or StatCrunch (www.calvin.edu/go/statcrunch) 1. In general, this package is far easier to use than many statistical packages. Every so often, however,
SMAM 314 Computer Assignment 4 1. An experiment was performed to determine the effect of curing time on the comprehensive strength of concrete blocks. Two independent random samples of 14 blocks were prepared
Chapter 302 Point-Biserial and Biserial Correlations Introduction This procedure calculates estimates, confidence intervals, and hypothesis tests for both the point-biserial and the biserial correlations.
Two-sample hypothesis testing, I 9.07 3/09/2004 But first, from last time More on the tradeoff between Type I and Type II errors The null and the alternative: Sampling distribution of the mean, m, given
How To Run Statistical Tests in Excel Microsoft Excel is your best tool for storing and manipulating data, calculating basic descriptive statistics such as means and standard deviations, and conducting
Data Analysis Tools This section of the notes is meant to introduce you to many of the tools that are provided by Excel under the Tools/Data Analysis menu item. If your computer does not have that tool
Module 5 Hypotheses Tests: Comparing Two Groups Objective: In medical research, we often compare the outcomes between two groups of patients, namely exposed and unexposed groups. At the completion of this
Chi Square Analysis When do we use chi square? More often than not in psychological research, we find ourselves collecting scores from participants. These data are usually continuous measures, and might
Chapter 7 Section 7.1: Inference for the Mean of a Population Now let s look at a similar situation Take an SRS of size n Normal Population : N(, ). Both and are unknown parameters. Unlike what we used
1 Statistical Inference and t-tests Objectives Evaluate the difference between a sample mean and a target value using a one-sample t-test. Evaluate the difference between a sample mean and a target value
Variations of the t-test: Sample tail Sample t-test (unequal sample sizes and unequal variances) Like the last example, below we have ceramic sherd thickness measurements (in cm) of two samples representing
Sections 4.5-4.7: Two-Sample Problems Paired t-test (Section 4.6) Examples of Paired Differences studies: Similar subjects are paired off and one of two treatments is given to each subject in the pair.
STAT E-150 Statistical Methods Multiple Regression Three percent of a man's body is essential fat, which is necessary for a healthy body. However, too much body fat can be dangerous. For men between the
STAT E-150 - Statistical Methods Assignment 9 Solutions Exercises 12.8, 12.13, 12.75 For each test: Include appropriate graphs to see that the conditions are met. Use Tukey's Honestly Significant Difference
Chapter 4 Two-Sample T-Tests Assuming Equal Variance (Enter Means) Introduction This procedure provides sample size and power calculations for one- or two-sided two-sample t-tests when the variances of
Chapter 23 Inferences About Means Chapter 23 - Inferences About Means 391 Chapter 23 Solutions to Class Examples 1. See Class Example 1. 2. We want to know if the mean battery lifespan exceeds the 300-minute
Analyzing Quantitative Assessment Data with Excel October 2, 2014 Jeremy Penn, Ph.D. Director When to use Excel You want to quickly summarize or analyze your assessment data You want to create basic visual
1: Analysis of Variance Introduction EDA Hypothesis Test Introduction In Chapter 8 and again in Chapter 11 we compared means from two independent groups. In this chapter we extend the procedure to consider
UNDERSTANDING THE DEPENDENT-SAMPLES t TEST A dependent-samples t test (a.k.a. matched or paired-samples, matched-pairs, samples, or subjects, simple repeated-measures or within-groups, or correlated groups)
HYPOTHESIS TESTING: CONFIDENCE INTERVALS, T-TESTS, ANOVAS, AND REGRESSION HOD 2990 10 November 2010 Lecture Background This is a lightning speed summary of introductory statistical methods for senior undergraduate
Sample Multiple Choice Questions for the material since Midterm 2. Sample questions from Midterms and 2 are also representative of questions that may appear on the final exam.. A randomly selected sample
UAS Conference Series 2013/14 Is it statistically significant? The chi-square test Dr Gosia Turner Student Data Management and Analysis 14 September 2010 Page 1 Why chi-square? Tests whether two categorical
Glo bal Leadership M BA BUSINESS STATISTICS FINAL EXAM Name: INSTRUCTIONS 1. Do not open this exam until instructed to do so. 2. Be sure to fill in your name before starting the exam. 3. You have two hours
Chapter 07 Two-Sample T-Test from Means and SD s Introduction This procedure computes the two-sample t-test and several other two-sample tests directly from the mean, standard deviation, and sample size.
Hypothesis testing: Examples AMS7, Spring 2012 Example 1: Testing a Claim about a Proportion Sect. 7.3, # 2: Survey of Drinking: In a Gallup survey, 1087 randomly selected adults were asked whether they
FACT SHEET Using Excel for inferential statistics Introduction When you collect data, you expect a certain amount of variation, just caused by chance. A wide variety of statistical tests can be applied
STAT -50 Introduction to Statistics The Chi-Square Test The Chi-square test is a nonparametric test that is used to compare experimental results with theoretical models. That is, we will be comparing observed
Module 9: Nonparametric Tests The Applied Research Center Module 9 Overview } Nonparametric Tests } Parametric vs. Nonparametric Tests } Restrictions of Nonparametric Tests } One-Sample Chi-Square Test
SPSS Tests for Versions 9 to 13 Chapter 2 Descriptive Statistic (including median) Choose Analyze Descriptive statistics Frequencies... Click on variable(s) then press to move to into Variable(s): list
1 One-Way ANOVA using SPSS 11.0 This section covers steps for testing the difference between three or more group means using the SPSS ANOVA procedures found in the Compare Means analyses. Specifically,
NST 1B Experimental Psychology Statistics practical 5 Statistics: revision Rudolf Cardinal & Mike Aitken 3 / 4 May 2005 Department of Experimental Psychology University of Cambridge Slides at pobox.com/~rudolf/psychology
Hypothesis Testing CS 700 1 Hypothesis Testing! Purpose: make inferences about a population parameter by analyzing differences between observed sample statistics and the results one expects to obtain if
SPSS Guide: Regression Analysis I put this together to give you a step-by-step guide for replicating what we did in the computer lab. It should help you run the tests we covered. The best way to get familiar
Comparing means! Tests with one categorical and one numerical variable Paired vs. sample comparisons! Goal: to compare the mean of a numerical variable for different groups. Paired comparisons allow us
Chapter 45 Two-Sample T-Tests Allowing Unequal Variance (Enter Difference) Introduction This procedure provides sample size and power calculations for one- or two-sided two-sample t-tests when no assumption
MATH 1342. Chapter 23 April 15 and 17, 2013 page 1 of 8 CHAPTER 23: COMPARING TWO CATEGORICAL VARIABLES THE CHI-SQUARE TEST Relationships: Categorical Variables Chapter 21: compare proportions of successes
CHAPTER 8 Learning Objectives C H A P T E R E I G H T Hypothesis Testing 1 Outline 8-1 Steps in Traditional Method 8-2 z Test for a Mean 8-3 t Test for a Mean 8-4 z Test for a Proportion 8-5 2 Test for
CHAPTER 11 CHI-SQUARE: NON-PARAMETRIC COMPARISONS OF FREQUENCY The hypothesis testing statistics detailed thus far in this text have all been designed to allow comparison of the means of two or more samples
DEPARTMENT OF HEALTH AND HUMAN SCIENCES HS900 RESEARCH METHODS Using SPSS Session 2 Topics addressed today: 1. Recoding data missing values, collapsing categories 2. Making a simple scale 3. Standardisation