Question

In: Statistics and Probability

Using the R package to answer the following two questions. You MUST submit your R code...

Using the R package to answer the following two questions. You MUST submit your R code for analysis.

2. Below are heights for a simple random sample of n = 15 young trees (in cm). (50 pts) 27, 33, 33, 34, 36, 37, 39, 40, 40, 41, 41, 42, 44, 46, 47.
(a) Test the hypothesis that the mean tree height is equal to 38 cm.
(b) Calculate the 95% confidence interval for the population mean of young trees.

(c) Test the null hypothesis that the mean tree height is not greater than 36.5 cm.

Solutions

Expert Solution

R code

hts=c(27,33,33,34,36,37,39,40,40,41,41,42,44,46,47)
a=t.test(hts,mu=38)
c=t.test(hts,mu=36.5,alternative = "less")

---------------------------------Output

hts=c(27,33,33,34,36,37,39,40,40,41,41,42,44,46,47)
> ?t.test
> a=t.test(hts,mu=38)
> a

   One Sample t-test

data: hts
t = 0.47751, df = 14, p-value = 0.6404
alternative hypothesis: true mean is not equal to 38
95 percent confidence interval:
35.67224 41.66109
sample estimates:
mean of x
38.66667

> c=t.test(hts,mu=36.5,alternative = "less")
> c

   One Sample t-test

data: hts
t = 1.5519, df = 14, p-value = 0.9285
alternative hypothesis: true mean is less than 36.5
95 percent confidence interval:
-Inf 41.1257
sample estimates:
mean of x
38.66667

-------------------------------------------

a) From the output, p value is 0.64 which is greater than alpha, so we fail to reject H0 that mean height is 38

b) From the code of 'a', the 95% confidence interval for mean height is (35.67224, 41.66109)

c) H0 : Mean height is 36.5

H1: Mean Height is less than 36.5

This is one sided left tailed test, from the R outpput, p value is 0.9285 which is greater than alpha = 0.05, hence we fail to reject H0 and conclude that there is no evidence to reject the claim that mean height of trees is 36.5


Related Solutions

Do the following using R. You must also turn in a copy of your R code....
Do the following using R. You must also turn in a copy of your R code. (10) What is the probability a beta (1, 8) random variable is less than 0.13? (11) What is the probability a beta (3, 9) random variable is greater than .4? (12) What is the probability a beta (18,4.4) random variable is between 0.6 and 0.7? (13) At what value of x is the probability that a beta (4, 7) random varable is less than...
Using your Excel TVM Calculators answer the following questions, be sure to submit your spreadsheet with...
Using your Excel TVM Calculators answer the following questions, be sure to submit your spreadsheet with your answers highlighted. At what annual interest rate must $137,000 be invested so that it will grow to be $475,000 in 10 years? If you wish to accumulate $175,000 in 13 years, how much must you deposit today in an account that pays an annual interest rate of 15%? How many years will it take for $125,000 to grow to be $500,000 if it...
Using R-Studio please answer the following questions and show your code. 1. Julie buys a take-out...
Using R-Studio please answer the following questions and show your code. 1. Julie buys a take-out coffee from one of two coffee shops on a random basis: Ultimo Coffee and Joe’s Place. This month, she measured the temperature of each cup immediately after purchase, using a cooking thermometer. Sample data is shown below, temperatures are in Fahrenheit. ultimo =  c(171,161,169,179, 171,166,169,178,171, 165,172,172) joes = c(168,165,172, 151,162,158,157,160, 158,160,158,164) State the null and alternative hypothesis in your own words. What type of statistical...
Use R to complete the following questions. You should include your R code, output and plots...
Use R to complete the following questions. You should include your R code, output and plots in your answer. 1. Two methods of generating a standard normal random variable are: a. Take the sum of 5 uniform (0,1) random numbers and scale to have mean 0 and standard deviation 1. (Use the properties of the uniform distribution to determine the required transformation). b. Generate a standard uniform and then apply inverse cdf function to obtain a normal random variate (Hint:...
Use R to complete the following questions. You should include your R code, output and plots...
Use R to complete the following questions. You should include your R code, output and plots in your answer. 1. Two methods of generating a standard normal random variable are: a. Take the sum of 5 uniform (0,1) random numbers and scale to have mean 0 and standard deviation 1. (Use the properties of the uniform distribution to determine the required transformation). b. Generate a standard uniform and then apply inverse cdf function to obtain a normal random variate (Hint:...
Use R to complete the following questions. You should include your R code, output and plots...
Use R to complete the following questions. You should include your R code, output and plots in your answer. Two methods of generating a standard normal random variable are: a. Take the sum of 5 uniform (0,1) random numbers and scale to have mean 0 and standard deviation 1. (Use the properties of the uniform distribution to determine the required transformation). b. Generate a standard uniform and then apply inverse cdf function to obtain a normal random variate (Hint: use...
The following should be performed using R and the R code included in your submission. To...
The following should be performed using R and the R code included in your submission. To obtain first prize in a lottery, you need to correctly choose n different numbers from N and 1 number from 20, known as the supplementary. That is we first draw n numbers from 1:N without replacement and then 1 number from 1:20 in another draw. Suppose n=7 and N=35. Let X be the number of drawn numbers that match your selection, where the supplementary...
Then, answer the following questions about the System on a Chip (SOC) and Package on Package...
Then, answer the following questions about the System on a Chip (SOC) and Package on Package (POP) that the RPi implements: 1. The Broadcom SoC is installed in a large range of devices. Explain what the advantages are of having a System on a Chip rather than a separate CPU, GPU, and RAM components. 2. What are the disadvantages to a SOC style chip? 3. Explain using step-by-step instructions how the CPU executes a simple program such as adding two...
Read the following case study and answer the questions that follow. Submit your answers to this...
Read the following case study and answer the questions that follow. Submit your answers to this Dropbox. The Case of the Coughing Housewife Jessica, a fifty-nine year old mother of four, moved from a ranch in Colorado to Los Angeles, after the death of her husband, to be closer to her oldest son and his family. She has been in Los Angeles for 18 months and has noticed that she is experiencing shortness of breath which has worsened over the...
I need this in R code please: Use the dataset ’juul’ in package ’ISwR’ to answer...
I need this in R code please: Use the dataset ’juul’ in package ’ISwR’ to answer the question. (1) Conduct one-way ANOVA test to test if the mean of igf1 of each level of tanner are the same? (2) What is the mean of igf1 in each level of tanner? (3) If there is any difference, which ones appear to be different? (Use pairwise t test for each pair of level with bonferroni method)
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT