Question

In: Statistics and Probability

Please solve in R studio. Thanks in advance! **Below are two samples of test scores from...

Please solve in R studio. Thanks in advance!


**Below are two samples of test scores from two different calculus classes. It is believed that class 1 performed better than class two. From previous tests it is known that the test scores for both classes are normally distributed and the population standard deviation of class 1 is 10 points and the population standard deviation of class 2 is 8 points. Do the data support that class 1 performed better.**


```{r}
class1<-c(100, 86, 98, 72, 66, 95, 93, 82)
class2<-c(98, 82, 99, 99, 70, 71, 94, 79)
```

Solutions

Expert Solution

> class1<-c(100, 86, 98, 72, 66, 95, 93, 82)
> class2<-c(98, 82, 99, 99, 70, 71, 94, 79)

#Calculating the 5 Number Summary and Standard deviation for both
> summary(class1)
Min. 1st Qu. Median Mean 3rd Qu. Max.
66.00 79.50 89.50 86.50 95.75 100.00
> sd(class1)
[1] 12.42118


> summary(class2)
Min. 1st Qu. Median Mean 3rd Qu. Max.
70.00 77.00 88.00 86.50 98.25 99.00
> sd(class2)
[1] 12.47855

#Performing the normal T-test
> t.test(class1,class2)

   Welch Two Sample t-test

data: class1 and class2
t = 0, df = 14, p-value = 1
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
-13.35122 13.35122
sample estimates:
mean of x mean of y
86.5 86.5

Conclusion:

The results below show a p-value = .01 supporting the null hypothesis that “true difference in means is equal to 0”; essentially it states there is No statistical difference between the two means. Hence both classes performed the same.However the median score for Class-1 is better.


Related Solutions

#4 **Below are two samples of test scores from two different calculus classes. It is believed...
#4 **Below are two samples of test scores from two different calculus classes. It is believed that class 1 performed better than class two. From previous tests, it is known that the test scores for both classes are normally distributed and the population standard deviation of class 1 is 10 points and the population standard deviation of class 2 is 8 points. Do the data support that class 1 performed better.** ```{r} class1<-c(100, 86, 98, 72, 66, 95, 93, 82)...
Hello, please answer with either formula or preferably with TI-84 ONLY. (No r studio, etc) thanks!...
Hello, please answer with either formula or preferably with TI-84 ONLY. (No r studio, etc) thanks! For problems #13 to #18, test the given claim. Identify the null hypothesis, alternative hypothesis, test statistic, P-value, then state the conclusion about the null hypothesis, and finalconclusion that addresses the original claim.If you are using graphing calculators, show all commands. 15. In a random sample of males, it was found that 23 write with their left hands and 217 do not. In a...
Hello, please answer with either formula or preferably with TI-84 ONLY. (No r studio, etc) thanks!...
Hello, please answer with either formula or preferably with TI-84 ONLY. (No r studio, etc) thanks! 19. The data below are annual high values of Dow Jones Industrial Average and annual mean sunspot numbers for eight recent years. A sunspot number is a measure of sunspots or groups of sunspots on the surface of the sun. The Dow Jones Industrial Average is a commonly used index that is a weighted mean calculated from different stock values. (a) Use a 0.05...
Use R-Studio to plot this PAIRED SAMPLES T-TEST To motivate citizens to conserve gasoline, the government...
Use R-Studio to plot this PAIRED SAMPLES T-TEST To motivate citizens to conserve gasoline, the government is considering mounting a nationwide conservation campaign. However, before doing so on a national level, it decides to conduct an experiment to evaluate the effectiveness of the campaign. For the experiment, the conservation campaign is conducted in a small but representative geographical area. Twelve families are randomly selected from the area, and the amount of gasoline they use is monitored for 1 month before...
Using R Studio Use the two iid samples. (You can copy and paste the code into...
Using R Studio Use the two iid samples. (You can copy and paste the code into R). They both come from the same normal distribution. X = c(-0.06, 1.930, 0.608 -0.133,0.657, -1.284, 0.166, 0.963, 0.719, -0.896) Y = c(0.396, 0.687, 0.809, 0.939, -0.381, -0.042, -1.529, -0.543, 0.758, -2.574, -0.160, -0.713, 0.311, -0.515, -2.332, -0.844, -0.942, 0.053, 0.066, 0.942, -0.861, -0.186, -0.947, -0.110, 0.634, 2.357, 0.201, -0.428, -1.661, 0.395) (a) Report 95% confidence interval for the mean of X. Should we...
****MUST BE FAMILIAR WITH R STUDIO PROGRAMMING***** Random samples of resting heart rates are taken from...
****MUST BE FAMILIAR WITH R STUDIO PROGRAMMING***** Random samples of resting heart rates are taken from two groups. Population 1 exercises regularly, and population 2 does not. The data from these two samples (in beats per minute) are given below: Exercise group (sample from population 1): 62.4, 64.1, 66.8, 60.7, 68.2, 69.2, 64.9, 70.9, 67.7, 68, 58.5, 58.9, 64.7 No exercise group (sample from population 2): 79.3, 73.8, 75.3, 74.7, 76.9, 74.9, 73.2, 75.7, 75.2, 76.7, 78.7 Estimate the difference...
Assume that the two samples are from a normal population. Please perform a t test for...
Assume that the two samples are from a normal population. Please perform a t test for the differences in sample averages, indicating whether it is significant to 95% confidence (0.05 significance) using one and/or two sided. Assume that the population standard deviation is unknown but presumed equal. Show one-sided and two-sided actual Probability and Critical values using hand calculations and Excel A 25 24 15 20 21 23 25 28 35 34 B 15 11 14 23 24 20 22...
1. Basic use of R/R Studio. Solve the following problem in R and print out the...
1. Basic use of R/R Studio. Solve the following problem in R and print out the commands and outputs. (a) Create a vector of the positive odd integers less than 100; Remove the values greater than 60 and less than 80; Find the variance of the remaining set of values (b) What’s the difference in output between the commands 2*1:5 and (2*1):5? Why is there a difference? (c) If you wanted to enter the odd numbers from 1 to 19...
Use R Studio to solve this problem. A simple electronic device consists of two components which...
Use R Studio to solve this problem. A simple electronic device consists of two components which have failure times which may be modeled as independent exponential random variables. The first component has a mean time to failure of 3 months, and the second has a mean time to failure of 6 months. (a) If the electronic device will fail when either of the components fails, use 1000 random samples of the simulated electronic device to estimate the mean and variance...
Please answer the questions as soon as possible. Thanks in advance. Please explain in brief in...
Please answer the questions as soon as possible. Thanks in advance. Please explain in brief in one to two paragraphs and provide graphs. 1. In two paragraphs, describe the sources of the gains from trade and why countries use import tariffs. 2b In two paragraphs, describe how the COVID-19 pandemic has impacted the global macroeconomy and multiple ways it has impacted a specific agricultural commodity market (e.g. corn, beef, wheat).
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT