Question

In: Statistics and Probability

How do I do this in R Studio? 1 Students who performed poorly on a City...

How do I do this in R Studio?

1 Students who performed poorly on a City of New York Skills Assessment Test were enrolled in a summer math program. Scores of 10 students before and after the summer program were recorded.

They were:

Before = 18,18,21,18,18,20,23,23,21,17

After = 24,25,33,29,33,36,34,36,34,27

(Scores for individual students are in the same order in each list.) Did the NYC summer math program improve student performance significantly?

8. How many points did student scores improve on average? (hint: consult the output from question 1; it’s OK to simply write this answer – it did come from R output.)

9. What is the 95% confidence interval for the parameter of average score improvement? (hint: consult the output from question 1; it’s OK to simply write this answer – it did come from R output.)

Solutions

Expert Solution


R-Script:

> rm(list=ls())
> Before <- c( 18,18,21,18,18,20,23,23,21,17 )
> After <- c( 24,25,33,29,33,36,34,36,34,27 )
> paired.t.test <- t.test(After,Before, mu = 0, alternative = "greater", paired = T)
> paired.t.test

Paired t-test

data: After and Before
t = 11.375, df = 9, p-value = 6.065e-07
alternative hypothesis: true difference in means is greater than 0
95 percent confidence interval:
9.562818 Inf
sample estimates:
mean of the differences
11.4

Answer (i)

Null Hypothesis, Ho: There is no significant effect of NYC summer Math Program on average scores of students i.e.

Alternative Hypothesis, Ha: The NYC summer math program improve student performance significantly

Since p-value = 6.065e-07 < 0.05 so we Reject the null hypothesis and conclude that the NYC summer math program improve student performance significantly

Answer (ii)

11.4 Points

Answer (iiI) 95% Confidence Interval is given as: (9.5628, Inf)


Related Solutions

How do I input this in R studio 1. Combine the following lists into a matrix...
How do I input this in R studio 1. Combine the following lists into a matrix called animals, where each list becomes a row: Cats = 2,2,4 Dogs = 1,2,1 Cows = 30,35,41 2. Add column names of “Farm A”, Farm B”, and “Farm C”. 3. Transpose the rows and columns in animals and store the result to a matrix called farms. 4. Display the contents of farms.
1. Use R Studio: Include R Code A survey is taken of 250 students, and a...
1. Use R Studio: Include R Code A survey is taken of 250 students, and a phat of 0.48 is found. The same survey is repeated with 1000 students, and the same phat value is found. Compare the two 95% confidence intervals. What is the relationship between them? Is the margin of error for the second one four times smaller? If not, how much smaller is it?
How is this done in R-studio? I have been trying to figure it out but I...
How is this done in R-studio? I have been trying to figure it out but I am getting more and more confused. While imprisoned by the Germans during World War II, the English mathematician John Kerrich tossed a coin 10,000 times and obtained 5067 heads. Let p be the probability of a head on a single toss. We wish to check if the data are consistent with the hypothesis that the coin was fair. a) Set up the hypotheses. Why...
How do you graph integers in r studio. I made new data frames for specific parts...
How do you graph integers in r studio. I made new data frames for specific parts of the data I wanted to use and then got the sum of a column and saved it as a variable under values. My goal is to know how to graph these integer values in a barplot comparing all the values.
How do you plot continuous versus category in r studio
How do you plot continuous versus category in r studio
how do you test for regression in R studio with variables x and y
how do you test for regression in R studio with variables x and y
Hey anyone good with R studio? How do you create a square shape with R code...
Hey anyone good with R studio? How do you create a square shape with R code by using plot() and lines() please show your code !
I want this to be solved using R studio or R software, please. Here is the...
I want this to be solved using R studio or R software, please. Here is the example: The data in stat4_prob5 present the performance of a chemical process as a function of sever controllable process variables. (a) Fit a multiple regression modelrelating CO2product (y) to total solvent (x1) and hydrogen consumption (x2) and report the fitted regression line. (b) Find a point estimatefor the variance term σ2. (c) Construct the ANOVA tableand test for the significance of the regression using...
Do students in early morning classes do more poorly than students in later classes? During one...
Do students in early morning classes do more poorly than students in later classes? During one semester of Quan 2010, exam scores were averaged for one section of 28 students who met at 8:00am, and for another section of 37 students who met at 10:50am. The earlier section had a mean score of 80.6 with a variance of 103, while the later section had a mean score of 81.5 with a variance of 138.    At a significance level of...
In R/ R Studio, what code would I enter to find the answers to these questions?...
In R/ R Studio, what code would I enter to find the answers to these questions? What is the code to find the descriptive/ summary statistics of all variables in a data set and how do i find the mean values? What is the code to measure the skewness measure of delta time for all of all the values in the data set? What is the code to draw a histogram and q-q plot of the natural log of a...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT