Question

In: Statistics and Probability

Within a school district, students were randomly assigned to one of two Math teachers - Mrs....

  1. Within a school district, students were randomly assigned to one of two Math teachers - Mrs. Smith and Mrs. Jones. After the assignment, Mrs. Smith had 30 students, and Mrs. Jones had 25 students. At the end of the year, each class took the same standardized test. Mrs. Smith's students had an average test score of 78, with a standard deviation of 10; and Mrs. Jones' students had an average test score of 85, with a standard deviation of 15. Assume the variances are equal. At the significance level 0.10, can we conclude that Mrs. Jones is a more effective teacher than Mrs. Smith?

     a). Calculate the test statistic. (R code and R result).

     b). Find the p-value (R code and R result).

     c). Make your decision.

Solutions

Expert Solution

We want to test that Mrs. Jones is a more effective teacher than Mrs. Smith.

U1:- Mrs. Smith's students average test score

U2:-  Mrs. Jones' students average test score

We want to test Mrs. Jones is a more effective teacher than Mrs. Smith. ie. Mr.Jones have higher average scores.

The null & alternative Hypothesis:

Ho: U1 =U2

VS

Ha: U1<U2

a)

> # m1, m2: the sample means
> # s1, s2: the sample standard deviations
> # n1, n2: the same sizes
>
>
> n1<-30;n2<-25
> m1<-78;m2<-85
> s1<-10;s2<-15
> alpha=0.10
>
>
> # pooled standard deviation, scaled by the sample sizes
> se <- sqrt( ((1/n1) + (1/n2)) * (((n1-1)*s1^2) + ((n2-1)*s2^2))/(n1+n2-2) )
> df <- n1+n2-2
>
> # The test statistic:
>
> t <- (m1-m2)/se
>
> t
[1] -2.0656
>
>

b)
> # p-value
> pt(t,df)
[1] 0.02188548

c)

P-value = 0.02 < 0.10(level of significance)

So we reject Ho.

we may conclude that the data provide suficient evidence to connclude that the Mrs. Jones is a more effective teacher than Mrs. Smith.

***********R code ************

# m1, m2: the sample means
# s1, s2: the sample standard deviations
# n1, n2: the same sizes


n1<-30;n2<-25
m1<-78;m2<-85
s1<-10;s2<-15
alpha=0.10


# pooled standard deviation, scaled by the sample sizes
se <- sqrt( ((1/n1) + (1/n2)) * (((n1-1)*s1^2) + ((n2-1)*s2^2))/(n1+n2-2) )
df <- n1+n2-2

# The test statistic:

t <- (m1-m2)/se

t


# p-value
pt(t,df)

********* using a Function *********

# R code for left tailed test#

# m1, m2: the sample means
# s1, s2: the sample standard deviations
# n1, n2: the same sizes

# m0: the null value for the difference in means to be tested for. Default is 0.
# Alternative is
# equal.variance: whether or not to assume equal variance. Default is FALSE.
t.test2 <- function(m1,m2,s1,s2,n1,n2,m0=0,equal.variance=FALSE)
{
if( equal.variance==FALSE )
{
se <- sqrt( (s1^2/n1) + (s2^2/n2) )
# welch-satterthwaite df
df <- ( (s1^2/n1 + s2^2/n2)^2 )/( (s1^2/n1)^2/(n1-1) + (s2^2/n2)^2/(n2-1) )
} else
{
# pooled standard deviation, scaled by the sample sizes
se <- sqrt( (1/n1 + 1/n2) * ((n1-1)*s1^2 + (n2-1)*s2^2)/(n1+n2-2) )
df <- n1+n2-2
}
t <- (m1-m2-m0)/se
dat <- c(m1-m2, se, t, pt(t,df))
names(dat) <- c("Difference of means", "Std Error", "t", "p-value")
return(dat)
}

# you'll find this output agrees with that of t.test when you input x1,x2
t.test2( m1, m2, s1, s2, n1, n2,equal.variance=TRUE)


Related Solutions

The state of California conducted an experiment with college students. Teachers and students were randomly assigned...
The state of California conducted an experiment with college students. Teachers and students were randomly assigned to be in a regular sized class or a small sized class. The dependent variable is the student’s score on a math test (MATHSCORE). Let SMALL = 1 if the student is in a small class and SMALL = 0 otherwise. The other variable of interest is the number of years of teacher experience, given by TCHEXPER. Let BOY = 1 if the stu-...
A school district developed an after-school math tutoring program for high school students. To assess the...
A school district developed an after-school math tutoring program for high school students. To assess the effectiveness of the program, struggling students were randomly selected into treatment and control groups. A pre-test was given to both groups before the start of the program. A post-test assessing the same skills was given after the end of the program. The study team determined the effectiveness of the program by comparing the average change in pre- and post-test scores between the two groups....
12.16.  Randomly selected groups of 120 parents and 150 teachers from one school district are surveyed about...
12.16.  Randomly selected groups of 120 parents and 150 teachers from one school district are surveyed about their attitudes toward inclusion. One of the questions asks them whether they oppose or support inclusions and their responses to this question are recorded in the following table. The data were analyzed using a chi square test. The obtained chi square value is 5.65, significant at the .02 level (p=.02). GROUP SUPPORT OPPOSE Parent 75 45 Teachers 72 78 a.             Which chi square test should...
A school is considering two different videos for a class. Students have been randomly assigned to...
A school is considering two different videos for a class. Students have been randomly assigned to two groups, and they all take the same written assignment after viewing the video. The scores are summarized below: Video 1: sample mean = 75, sample standard deviation = 7.7, sample size = 26 Video 2: sample mean = 79, sample standard deviation = 6.4, sample size = 26 Conduct an analysis to determine whether there is a difference in the test scores for...
Question 1: A school is considering two videos for a class. Students have been randomly assigned...
Question 1: A school is considering two videos for a class. Students have been randomly assigned to 2 groups, and they all take the same written test after watching the video. The scores are summarized below: Video 1: sample mean = 77, sample standard deviation = 6.3, sample size = 29 Video 2: sample mean = 78, sample standard deviation = 6.8, sample size = 28 Conduct an analysis to determine whether there is a difference in the test scores...
Students in a biology class have been randomly assigned to one of the two mentors for...
Students in a biology class have been randomly assigned to one of the two mentors for the laboratory portion of the class. A random sample of final examination scores has been selected from students supervised by each mentor, with the following results: Mentor A: 78, 78, 71, 89, 80, 93, 73, 76 Mentor B: 74, 81, 65, 73, 80, 63, 71, 64, 50, 80 At the 0.05 significance level, is there a difference in the mean scores?
We consider a randomized experiment, the Tennessee STAR experiment, where students and teachers are randomly assigned...
We consider a randomized experiment, the Tennessee STAR experiment, where students and teachers are randomly assigned to either a small class (15 students) and a regular class (24 students). We want to estimate the effect of smaller class in primary school and use the following linear model: Score = β0 + β1ClassSize + Controls + u, where Score is student’s academic score, Class Size is dummy for small class, and controls includes free lunch status, race, gender, teacher characteristics and...
In one school district, there are 89 elementary school (K-5) teachers, of which 18 are male (or male-identifying).
In one school district, there are 89 elementary school (K-5) teachers, of which 18 are male (or male-identifying). In a neighboring school district, there are 102 elementary teachers, of which 17 are male. A policy researcher would like to calculate the 99% confidence interval for the difference in proportions of male teachers.To keep the signs consistent for this problem, we will calculate all differences as p1−p2. That is, start with the percentage from the first school district and then subtract...
Fremont High School has 2100 students. One of the statistics teachers at the school is interested...
Fremont High School has 2100 students. One of the statistics teachers at the school is interested in whether an intervention program based on self-management improves attendance. They randomly choose 80 students and randomly assign half of them to either an experimental condition (self- management class) or a control condition (distractor class on popular culture). At the end of the semester, they measure the number of days missed for each student. The teacher expects that the students in the self-management class...
Forty-eight participants were randomly assigned to do math tasks under one of three conditions: 16 while...
Forty-eight participants were randomly assigned to do math tasks under one of three conditions: 16 while listening to soft gentle music, 16 while listening to loud intense music, and 16 while in silence. The means and estimated population variances for the three groups were: Soft-gentle: M = 33, S2 = 25; Loud-intense: M = 42, S2 = 36; Silence M = 42, S2 = 16. Do these results suggest that there is a difference in performance on this kind of...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT