1. LON-CAPA Logo
  2. Help
  3. Log In
 

Browsing resource, all submissions are temporary.


Two-Sample t-Tests

The csv file of Stat 200's Spring 2016 political survey result was uploaded to our website here. After downloading the file to your R's work space, you can load it to R using the command

stat200 <- read.csv("Stat200_Spring2016_Fireman_Survey02.csv")

The variable in each column is described on this webpage. Take some time to explore the data.

In one survey question, students were asked to rate how important they thought ending racism was on a scale of 0-10 (with 0 meaning not at all important and 10 meaning extremely important).

a. Perform a two-sample t-test to determine if there is any difference between males and females on the issue of ending racism. Note: Be sure to always use the option var.equal=TRUE in the t.test() function. Enter the p-value to 3 significant figures.

(Two-sided) p-value of the t-test =

 Tries [_1]

What do you conclude?


 Tries [_1]

b. Look at the column labelled 'voteMar'. How many students are not eligible to vote?

 Tries [_1]

c. Perform a two-sample t-test to determine if there is any difference between students who are eligible to vote and those who are not eligible to vote on the issue of ending racism. Enter the p-value to 3 significant figures.

(Two-sided) p-value of the t-test =

 Tries [_1]

What do you conclude?


 Tries [_1]


A very similar survey was conducted in the Stat 100 classes. The csv file of the result can be downloaded here and then loaded to R using the command

stat100 <- read.csv("Stat100_Spring2016_Laska_Survey03x.csv")

The variable in each column is described on this webpage. Take some time to explore the data.

d. Perform a two-sample t-test to determine if there is any difference between the Stat 200 and Stat 100 students on the issue of ending racism. Enter the p-value to 3 significant figures.

(Two-sided) p-value of the t-test =

 Tries [_1]

What do you conclude?


 Tries [_1]

e. Calculate the percentages of male and female students taking the surveys in Stat 100 and Stat 200 classes. Give your answer to one decimal place. (Note: the two percentages may not add up to 100%).

Percentage of female students in Stat 100 = %           percentage of male students in Stat 100 = %

 Tries [_1]

Percentage of female students in Stat 200 = %           percentage of male students in Stat 200 = %

 Tries [_1]

f. Perform a two-sample t-test to determine if there is any difference between the Stat 200 female students and Stat 100 female students on the issue of ending racism. Enter the p-value to 3 significant figures.

(Two-sided) p-value of the t-test =

 Tries [_1]

g. Perform a two-sample t-test to determine if there is any difference between the Stat 200 male students and Stat 100 male students on the issue of ending racism. Enter the p-value to 3 significant figures.

(Two-sided) p-value of the t-test =

 Tries [_1]