Exercise 1: Open the file ‘Birthweight_reduced’

Slides:



Advertisements
Similar presentations
Hypothesis testing 5th - 9th December 2011, Rome.
Advertisements

2013/12/10.  The Kendall’s tau correlation is another non- parametric correlation coefficient  Let x 1, …, x n be a sample for random variable x and.
Inference for Regression
© 2010 Pearson Prentice Hall. All rights reserved The Chi-Square Test of Independence.
Stat 301- Day 32 More on two-sample t- procedures.
Section 7.4 Table summarizes hypothesis tests about one variance (standard deviation). (These tests assume that the sample is taken from a normal.
Total Population of Age (Years) of People that Smoke
1 Doing Statistics for Business Doing Statistics for Business Data, Inference, and Decision Making Marilyn K. Pelosi Theresa M. Sandifer Chapter 15 The.
1 Copyright © 2005 Brooks/Cole, a division of Thomson Learning, Inc. Analysis of Categorical Data Test of Independence.
Inferential Statistics: SPSS
Statistics for Managers Using Microsoft Excel, 5e © 2008 Prentice-Hall, Inc.Chap 12-1 Statistics for Managers Using Microsoft® Excel 5th Edition Chapter.
Social Science Research Design and Statistics, 2/e Alfred P. Rovai, Jason D. Baker, and Michael K. Ponton Kolmogorov-Smirnov Test PowerPoint Prepared by.
LEARNING PROGRAMME Hypothesis testing Intermediate Training in Quantitative Analysis Bangkok November 2007.
Hypothesis testing – mean differences between populations
SW388R7 Data Analysis & Computers II Slide 1 Assumption of Homoscedasticity Homoscedasticity (aka homogeneity or uniformity of variance) Transformations.
Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap 11-1 Chapter 11 Chi-Square Tests Business Statistics, A First Course 4 th Edition.
HAWKES LEARNING SYSTEMS Students Matter. Success Counts. Copyright © 2013 by Hawkes Learning Systems/Quant Systems, Inc. All rights reserved. Section 10.7.
T-TEST Statistics The t test is used to compare to groups to answer the differential research questions. Its values determines the difference by comparing.
Hypothesis testing Intermediate Food Security Analysis Training Rome, July 2010.
MGT-491 QUANTITATIVE ANALYSIS AND RESEARCH FOR MANAGEMENT OSMAN BIN SAIF Session 26.
Business Statistics: A First Course, 5e © 2009 Prentice-Hall, Inc. Chap 11-1 Chapter 11 Chi-Square Tests Business Statistics: A First Course Fifth Edition.
Section 10.2 Independence. Section 10.2 Objectives Use a chi-square distribution to test whether two variables are independent Use a contingency table.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 11-1 Chapter 11 Chi-Square Tests and Nonparametric Tests Statistics for.
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=“”))}
Section 12.2: Tests for Homogeneity and Independence in a Two-Way Table.
Chapter 10 Section 5 Chi-squared Test for a Variance or Standard Deviation.
Lecture 7: Bivariate Statistics. 2 Properties of Standard Deviation Variance is just the square of the S.D. If a constant is added to all scores, it has.
AP Statistics Chapter 11 Section 2. TestConfidence IntervalFormulasAssumptions 1-sample z-test mean SRS Normal pop. Or large n (n>40) Know 1-sample t-test.
Chapter 11: Categorical Data n Chi-square goodness of fit test allows us to examine a single distribution of a categorical variable in a population. n.
Irwin/McGraw-Hill © Andrew F. Siegel, 1997 and l Chapter 7 l Hypothesis Tests 7.1 Developing Null and Alternative Hypotheses 7.2 Type I & Type.
Inference for Linear Regression
Two Sample Statistical Inferences
Hypothesis Tests l Chapter 7 l 7.1 Developing Null and Alternative
Independent-Samples T-Test
Practice As part of a program to reducing smoking, a national organization ran an advertising campaign to convince people to quit or reduce their smoking.
Chapter 12 Chi-Square Tests and Nonparametric Tests
Warm up The mean salt content of a certain type of potato chips is supposed to be 2.0mg. The salt content of these chips varies normally with standard.
Testing the Difference Between Two Means
Testing the Difference between Means and Variances
5.1 INTRODUCTORY CHI-SQUARE TEST
Dr. Siti Nor Binti Yaacob
Random Variables and Probability Distribution (2)
Chapter 11 Chi-Square Tests.
Regression Inferential Methods
Social Science Research Design and Statistics, 2/e Alfred P
Types of T-tests Independent T-tests Paired or correlated t-tests
StatCrunch Workshop Hector Facundo.
Determining the distribution of Sample statistics
Theme 5 Standard Deviations and Distributions
Consider this table: The Χ2 Test of Independence
Day 67 Agenda: Submit THQ #6 Answers.
Day 21 – 1 and 2 sample proportions
Testing the Difference Between Two Variances
Hypothesis testing. Chi-square test
Chapter 11 Chi-Square Tests.
Inference on Categorical Data
Part 2 - Compare average in different groups
Program This course will be dived into 3 parts: Part 1 Descriptive statistics and introduction to continuous outcome variables Part 2 Continuous outcome.
Hypothesis Tests for a Standard Deviation
Practice As part of a program to reducing smoking, a national organization ran an advertising campaign to convince people to quit or reduce their smoking.
Simple tests in SPSS.
Exercise 1: Open the file ‘Birthweight_reduced’
Exercise 1: Entering data into SPSS
Exercise 1 Use Transform  Compute variable to calculate weight lost by each person Calculate the overall mean weight lost Calculate the means and standard.
Exercise 1: Gestational age and birthweight
Chapter 11 Chi-Square Tests.
Chapter 9 Testing the Difference Between Two Means, Two Proportions, and Two Variances Copyright © 2012 The McGraw-Hill Companies, Inc. Permission required.
Exercise 1 (a): producing individual tables, using the cross-tabs menu
Exercise 1: Gestational age and birthweight
Chapter 22 – Comparing Two Proportions
Presentation transcript:

Exercise 1: Open the file ‘Birthweight_reduced’ Recode mnocig ‘Number of cigarettes smoked per day’ into smoker/non-smoker (tip: use ‘Transform  Recode into different variable’ and create a new variable ‘Smoker’ with codes 0: non-smoker; 1: smoker) Conduct an independent samples t-test to examine whether birthweight differed between women who smoked and women who did not smoke. Don’t forget to look at the assumptions and see if they are met What do you conclude?

Exercise 2: Open the file ‘Commute times paired’ This file contains data on my journey to and from work. These data are paired by day as each to/from combination represents a particular day Conduct a paired t-test to examine whether it takes me longer to cycle home than it does to cycle to work. Don’t forget to check the assumption that the paired differences are approximately normally distributed (you will need to calculate the differences to do this: (tip: use ‘Transform  Compute variable’ and create a new variable of the differences) What do you conclude?

Exercise 3: Open the file ‘Titanic’ Conduct a Chi-squared test to examine whether there is a relationship between gender and survival. Remember to check the assumption that no more than 20% of the expected frequencies are < 5 and none are < 1 What do you conclude?

Exercise 1:

Exercise 1: Assumption 1: Data in the groups are approximately normally distributed Graphs  Legacy Dialogs  Histogram Add ‘Smoker’ to the Rows Box Don’t need to be perfect, just approximately symmetrical

Exercise 1: Assumption 2: Variances are the same Two options: Look at the standard deviations in the Group Statistics table. These look similar enough (don’t expect them to be exactly the same) Look at Levene’s test in the main output table: should be not significant, i.e. p > 0.05, then can assume the variances do not differ from each other

Exercise 1: Output

Exercise 1: Reporting the results An independent samples t-test was carried out to examine whether the birthweight of baies differed between mothers who smoked and those who did not. There is evidence (p = 0.043) to suggest that the birthweight of babies whose mothers smoke is different from the birthweight of babies with non-smoking mothers What is the difference? On average women who smoke give birth to babies who are 0.38kg lighter than women who don’t smoke (95% CI: 0.01kg to 0.74kg)

Exercise 2: Calculating the difference

Exercise 2: Assumption 1: Differences are approximately normally distributed Graphs  Legacy Dialogs  Histogram Doesn’t need to be perfect, just approximately symmetrical

Exercise 2: Output

Exercise 2: Reporting the results A paired t-test was conducted to examine whether the time to travel to work differed from the time to travel home. There is strong evidence to suggest that the journey times to and from work differ (p = 0.009) What is the difference? On average it takes 3.2 minutes longer to cycle home than it takes to cylce to work (95% CI: 0.85 to 5.55 minutes) (Note: the journey to work is mainly downhill, the journey home is mainly uphill!)

Exercise 3: Output

Exercise 3: Reporting the results A chi-squared test was conducted to examine whether there was a relationship between gender and survival for passengers on board the Titanic. There is very strong evidence (p < 0.001) to suggest that gender and survival were linked What is the difference? 81% of male passengers died (682/843) compared to only 27% of female passengers (127/466)