Question

In: Statistics and Probability

x=c(4,4,12,8,3,17,15) mean(x) [1] 9 t.test(x,mu=6) #[t(7)=1.92, p=.097]    One Sample t-test data: x t = 1.3887,...

x=c(4,4,12,8,3,17,15)

mean(x)

[1] 9

t.test(x,mu=6) #[t(7)=1.92, p=.097]

   One Sample t-test

data: x

t = 1.3887, df = 6, p-value = 0.2143

alternative hypothesis: true mean is not equal to 6

95 percent confidence interval:

3.714066 14.285934

sample estimates:

mean of x

       9

> t.test(x,mu=6,alt='g') #note the p-value is half

   One Sample t-test

data: x

t = 1.3887, df = 6, p-value = 0.1071

alternative hypothesis: true mean is greater than 6

95 percent confidence interval:

4.802251      Inf

sample estimates:

mean of x

       9

What does u represent in one of the sample t-tests?

What does ‘g’ stand for in the second t-test?

What should u be set to given 2 (instead of 4)choices per item?

Solutions

Expert Solution

For the first one sample t test for two tailed;

Null hypothesis: There is no difference in means,

Alternate hypothesis: There is a significant difference in means,

From the result summary of t test,

The P-value = 0.2143 is greater than 0.05 at 5% significance level hence the null hypothesis can not be rejected at 5% significance level. Now we can state that there is no statistically significant difference in means at 5% significance level.

For the second one sample t test for one tailed;

Null hypothesis: There is no difference in means,

Alternate hypothesis: There is a significant difference in means,

From the result summary of t test,

The P-value = 0.1071 is greater than 0.05 at 5% significance level hence the null hypothesis can not be rejected at 5% significance level. Now we can state that there is not statistically significant greater mean at 5% significance level.

Each step for R code is explain below,

Data Array => x=c(4,4,12,8,3,17,15)

Mean of Data Array => mean(x)

Output for mean => [1] 9

One sample t test for two tailed (where 'x' is the data array and 'mu' is the hypothesized mean comparing with the mean of array 'x' =>

t.test(x,mu=6) #[t(7)=1.92, p=.097]

Output of One Sample t test =>

One Sample t-test

data: x

t = 1.3887, df = 6, p-value = 0.2143

alternative hypothesis: true mean is not equal to 6

95 percent confidence interval: 3.714066 14.285934

sample estimates:

mean of x

9

One sample t test for one tailed (where 'x' is the data array and 'mu' is the hypothesized mean comparing with the mean of array 'x' and alt='g' means the alternative hypothesis is greater than hypothesized mean 'mu' =>

   t.test(x,mu=6,alt='g')

Output => One Sample t-test

data: x

t = 1.3887, df = 6, p-value = 0.1071

alternative hypothesis: true mean is greater than 6

95 percent confidence interval: 4.802251      Inf

sample estimates:

mean of x

9


Related Solutions

The one-sample z-test and the one-sample t-test both test if a sample mean is representative of...
The one-sample z-test and the one-sample t-test both test if a sample mean is representative of a population. What is the difference between these two tests?
Question: Test the mean of population X for equality to zero (mu=0) using the sample x...
Question: Test the mean of population X for equality to zero (mu=0) using the sample x and t-test at a significance level 0.05 set.seed(88) x <- rt(150,df=2)
Test whether p 1 greater than p 2. The sample data are x 1 equals 124​,...
Test whether p 1 greater than p 2. The sample data are x 1 equals 124​, n 1 equals 259​, x 2 equals 139​, and n 2 equals 305. Determine test statistic and P value
A sample mean, sample standard deviation, and sample size are given. Use the one mean t-test...
A sample mean, sample standard deviation, and sample size are given. Use the one mean t-test to perform the required hypothesis test about the mean M of the population from which the sample was drawn. Use the P- value approach. Also asses the strength of the evidence against the null hypothesis. Mean of the sample= 226,450 ; S= 11,500 ; n= 23 ; mean of the population = 220, 000 ; Ha : M>220,000 ; alpha = 0.01 . 2)....
A sample​ mean, sample​ size, and sample standard deviation are provided below. Use the​ one-mean t-test...
A sample​ mean, sample​ size, and sample standard deviation are provided below. Use the​ one-mean t-test to perform the required hypothesis test at the 1​% significance level. x=29​, s=6​, n=15​, H0​: μ=27​, Ha​: μ≠27 The test statistic is t=_______ ​(Round to two decimal places as​ needed.) The​ P-value is ______ ​(Round to three decimal places as​ needed.) ▼ ______ the null hypothesis. The data _____ sufficient evidence to conclude that the mean is ______ ▼
Find each probability P(X; λ) using Table C in Appendix A. a. P(10; 7) b. P(9; 8) c. P(3; 4) Data from in Table C Appendix A
Find each probability P(X; λ) using Table C in Appendix A.a. P(10; 7)b. P(9; 8)c. P(3; 4) Data from in Table C Appendix A 
1. You are conducting a one-sample mean t-test. Sample size = 33. How many degrees of...
1. You are conducting a one-sample mean t-test. Sample size = 33. How many degrees of freedom (df) would you need when using the t-table? 2. For your sample, n = 25. You are running a two-tailed test and your alpha level (α) is 0.10. Using a t-table from your book or online with Canvas, what would be your critical value? 3. For your sample, n = 5. You are running a one-tailed test and your alpha level (α) is...
Do the following for the specified​ one-mean t-test. a. Use a​ t-table to estimate the​ P-value....
Do the following for the specified​ one-mean t-test. a. Use a​ t-table to estimate the​ P-value. b. Based on your estimate in part​ (a), state at which significance levels the null hypothesis can be​ rejected, at which significance levels it cannot be​ rejected, and at which significance levels it is not possible to decide. ​Right-tailed test, nequals25​, and tequals2.094 Click here to view page 1 of the t-table.LOADING... Click here to view page 2 of the t-table.LOADING... a. The​ P-value...
What is a z-test? Pre-test Post-test 4 1 6 9 7 2 8 3 1 6
What is a z-test? Pre-test Post-test 4 1 6 9 7 2 8 3 1 6
what are the differences between: 1. one sample z-test 2. one sample t-test 3. independent sample...
what are the differences between: 1. one sample z-test 2. one sample t-test 3. independent sample t-test 4. dependent sample t-test 5. what type of information comes from a known population vs. your sample data
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT