Question

How do I do this in R Studio   1. You are testing a hypothesis Ho: μ...

How do I do this in R Studio  

1. You are testing a hypothesis Ho: μ = 10 against Ha: μ < 10 based on a SRS of 20 observations from a Normal population. The data give sample mean of 8 and a sample standard deviation of 4. Find the value of t. (use correct formula, plug numerical values into formula, crunch numbers using R, report value of t)

2. What is the area to the left of the t value obtained in question 1?

3. Use R to compare the p-value obtained in question 2 to a significance level of 0.05 (hint: Ask R if one value is greater than (>) the other. The answer should be TRUE or FALSE.).

Homework Answers

Answer #1

The R code and its output are given below

#### Part (1)
mu=10
n=20 # sample size
xbar=8 #sample mean
s=4 # sample standrad deviation
t=(xbar-mu)/(s/sqrt(n));t ## value of test statistic

## [1] -2.236068

#### Part (2)
##The area to the left of the t value is p-value
p_value=pt(t,n-1);p_value

## [1] 0.01877027 # P-value

#### Part (3)
print(p_value<0.05)

## [1] TRUE

## Since p-value is less than level of significance so we would fail to reject the null hypothesis at \alpha=0.05

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
You are testing H0: μ = 0 against Ha: μ ≠ 0 based on an SRS...
You are testing H0: μ = 0 against Ha: μ ≠ 0 based on an SRS of four observations from a Normal population. What values of the t statistic are statistically significant at the α = 0.005 level? a. t > 7.453 b. t <−7.453 or t > 7.453 c. t<−5.598 or t > 5.598
You are testing H_o: μ = 0 versus H_a: μ ≠ 0 based on a SRS...
You are testing H_o: μ = 0 versus H_a: μ ≠ 0 based on a SRS of 11 observations from a Normal population. What values of the t* statistic are statistically significant at the α = .005 level? A. t* > 3.169 B. t* < -3.169 C. t* > 3.581 D. t* < -3.169 or t* > 3.169 E. t* < -3.581 F. t* < -3.581 or t* > 3.581 You are testing H_o: μ= 12 versus H_a: μ<12 based...
When testing a null hypothesis that the population correlation is 0, do you use a 1...
When testing a null hypothesis that the population correlation is 0, do you use a 1 or 2 tailed critical value if the sample r is -0.19. Update - Determining if there is a statistically significant correlation between parental behaviour and self-esteem          N= 713       r = -0.19 X variable – parental control Y variable – student’s self esteem T statistic for testing Ho: ρ = 0 T= r √n-2 / √1-r2 = -0.19 √711 / √1-(-0.19) 2 = -...
1. Consider the following hypothesis test: Ho : μ = 15 H1 : μ ≠ 15...
1. Consider the following hypothesis test: Ho : μ = 15 H1 : μ ≠ 15 A sample of 50 provided a sample mean of 15.15. The population standard deviation is 3. a. Compute the value of the test statistic. b. What is the p value? c. At α = 0.05, what is the rejection rule using the critical value? What is your conclusion? 2. Consider the following hypothesis test: Ho: μ ≤ 51 H1: μ > 51 A sample...
The one-sample t statistic for testing H0: μ = 10 Ha: μ > 10 from a...
The one-sample t statistic for testing H0: μ = 10 Ha: μ > 10 from a sample of n = 17 observations has the value t = 2.32. (a) What are the degrees of freedom for this statistic? (b) Give the two critical values t* from the t distribution critical values table that bracket ? < t < ? e) If you have software available, find the exact P-value. (Round your answer to four decimal places.)
1) The one-sample t statistic for testing H0: μ = 10 Ha: μ > 10 from...
1) The one-sample t statistic for testing H0: μ = 10 Ha: μ > 10 from a sample of n = 19 observations has the value t = 1.83. (a) What are the degrees of freedom for this statistic? (b) Give the two critical values t* from the t distribution critical values table that bracket t. < t <   (c) Between what two values does the P-value of the test fall? 0.005 < P < 0.010.01 < P < 0.02    0.02...
Using R or R-studio. 3. A fair coin is tossed until the first head occurs. Do...
Using R or R-studio. 3. A fair coin is tossed until the first head occurs. Do this experiment T = 10; 100; 1,000; 10,000 times in R, and plot the relative frequencies of this occurring at the ith toss, for suitable values of i. Compare this plot to the pmf that should govern such an experiment. Show that they converge as T increases. What is the expected number of tosses required? For each value of T, what is the sample...
Part 1: Find the standardized test statistic for testing a claim H0: μ ≤ 26.8 at...
Part 1: Find the standardized test statistic for testing a claim H0: μ ≤ 26.8 at significance α = 0.05 given a sample with n = 36 and  = 28.7, if the population is normally distributed and σ = 10.30. Round your answer to three decimal places. Part 2:To complete the hypothesis test from the previous question, we need to compare the calculated test statistic against the critical value _______ Select one: t = 1.690 z = −1.645 z = 1.645...
Read eText and review Resource Materials. Then post your solution to this problem: Given Hypothesis: Ho:...
Read eText and review Resource Materials. Then post your solution to this problem: Given Hypothesis: Ho: population mean μo = 200 Ha: population mean μo < 200 This is Left-Tailed test. Population Standard Deviation σ = 50. Given Significance Level is 0.10 (10%). Critical z-value for 0.10 significance level and Left-Tailed test is (-1.28). Rejection Region will be to the left of z= - 1.28. -3…………..-2………….-1…………0……….1 Choose your sample mean, x̅ (any integer between 180 and 195) and your sample...
Question 1 The p-value of a test H0: μ= 20 against the alternative Ha: μ >20,...
Question 1 The p-value of a test H0: μ= 20 against the alternative Ha: μ >20, using a sample of size 25 is found to be 0.3215. What conclusion can be made about the test at 5% level of significance? Group of answer choices Accept the null hypothesis and the test is insignificant. Reject the null hypothesis and the test is insignificant. Reject the null hypothesis and the test is significant Question 2 As reported on the package of seeds,...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT