We first write the R program
rm(list=ls(all=TRUE))
set.seed(1234)
A=rnorm(20,20,5)
B=rnorm(20,20,5)
set.seed(7767)
C=rnorm(20,30,5)
TAB=t.test(A, B, alternative = "two.sided", var.equal = TRUE)
TAB
Two Sample t-test
data: A and B
t = 1.1349, df = 38, p-value = 0.2635
alternative hypothesis: true difference in means is not equal to
0
95 percent confidence interval:
-1.279120 4.543179
sample estimates:
mean of x mean of y
18.74668 17.11465
TAC=t.test(A, C, alternative = "two.sided", var.equal =
TRUE)
TAC
Two Sample t-test
data: A and C
t = -5.8991, df = 38, p-value = 7.829e-07
alternative hypothesis: true difference in means is not equal to
0
95 percent confidence interval:
-14.444723 -7.063713
sample estimates:
mean of x mean of y
18.74668 29.50090
13. The two P-values are : One smaller than 1% and one larger than
1%
14. The Statistical interpretation for these two t-test is says that in one case we have a conclusive answer while for other we do not.
15. The conclusion is that statistical interpretation agrees with the intuition: the data in Column C is created with the mean of 30 which is different from 20, and one of the t-tests detected this difference.
Use Random number generator (under Data Analysis) to create THREE columns of data each 20 points...
Use Random number generator (under Data Analysis) to create two sets of data each 20 points long. Use the following parameters: number of variables (2), number of data point (20), Distribution (Normal), Mean (20), Standard Deviation (5), Random seed (4565). Perform t-test on these two data sets. And answer the questions for Assessment. (Pick the closest answer) 1. What is the range P-value? a. Between 0% and 1% b. Between 1% and 2% c. Between 2% and 3% d. None...
Use Random number generator (under Data Analysis) to simulate the following data set. Create 10 columns, each 20 points long and use the following parameters: Number of variables (10), number of data point (20), Distribution (Normal), Mean (40), Standard Deviation (10), Random seed (1234). The data should be in columns: A,B,C,….,I,J. Randomly pick two columns (say Column B and Column H) and perform 2-sided t-test on these two data columns. Record the P-value and repeat this procedure several times (at...
Use Random number generator (under Data Analysis) to simulate the following data set. Create 10 columns, each 20 points long and use the following parameters: Number of variables (10), number of data point (20), Distribution (Normal), Mean (40), Standard Deviation (10), Random seed (1234). The data should be in columns: A,B,C,….,I,J. Randomly pick two columns (say Column B and Column H) and perform 2-sided t-test on these two data columns. Record the P-value and repeat this procedure several times (at...
1. Doctors obtained the data below on the number of recovery days in the hospital using the new and old appendix surgery procedures. Using the new and old surgery procedures, do the data provide sufficient evidence to conclude that the mean number of recovery days in the hospital is smaller with the new surgery procedure than with the old procedure? Use the appropriate statistical test to determine if the using new surgery procedure results in a smaller mean number of...
1. Doctors obtained the data below on the number of recovery days in the hospital using the new and old gastric bypass surgery procedures. Using the new and old surgery procedures, do the data provide sufficient evidence to conclude that the mean number of recovery days in the hospital is smaller with the new surgery procedure than with the old procedure? Use the appropriate statistical test to determine if using new surgery procedure results in a smaller mean number of...
A random sample of five observations from three normally distributed populations produced the following data: (You may find it useful to reference the F table.) Treatments A C 20 1 9 25 25 22 27 21 24 24 26 2.1 22 23 19 XR - 23 SR6.5 S 4.5 S 4.5 Click here for the Excel Data File f. At the 5% significance level, what is the conclusion to the test? Reject Ho since the p-value is less than significance...
Test if there is a significant difference in house prices for houses with 4 or more bedrooms, if compared to houses with 3 or less bedrooms. Answer the questions for Assessment. (Pick the closest answer) 1. What is the P-value? a. 0.074081031 b. 1.85525E-07 c. 0.002738669 d. 0.000144083 2. What is the Statistical interpretation? a. The P-value is too small to have a conclusive answer. b. The P-value is much smaller than 5% thus we are very certain that house...
For a random sample of 36 data pairs, the sample mean of the differences was 0.72. The sample standard deviation of the differences was 2. At the 5% level of significance, test the claim that the population mean of the differences is different from 0. (a) Is it appropriate to use a Student's t distribution for the sample test statistic? Explain. No, the sample size is not larger than 30. Yes, the sample size is larger than 30. No, the...
Based on the question what is the answer to number one In what follows use any of the following tests/procedures: Regression, confidence intervals, one-sided t-test, or two-sided t-test. All the procedures should be done with 5% P-value or 95% confidence interval The empirical literature suggests that class absenteeism undermines students' academic performance and that an enforced mandatory attendance policy may be beneficial Open Attendance data. Using data on 90 second-year students enrolled in a Statistics course, test students who are...
4. Suppose a random number generator generates 20 numbers per second, where each number is drawn uniformly from the interval 9,10), independently of all other numbers. We are interested in the event that one of the drawn numbers is very close to Usain Bolt's 100m sprint world record, that is, that this number belongs to the interval (9.575, 9.585). (a) Suppose that the random number generator runs for 10 seconds. Use the Poisson approximation to estimate the probability that it...