The following question should be coded in R studio. ### Problem 7 Snow avalanche
ID: 3316939 • Letter: T
Question
The following question should be coded in R studio.
### Problem 7 Snow avalanches can be a real problem for travelers in the western United States and Canada. A very common type of avalanche is called the slab avalanche. These have been studied extensively by David McClung, a professor of civil enegineering at the University of British Columbia. Slab avalanches studied in Canada have an average thickness of Sbf mu]-67S CSource: Avalanche Handbook by D. McClung and P. Schaerer). The ski patrol at Vail, Colorado, is studying slab avalanches in its region. A random sample of avalanches in spring gave the following thickness (in cm) 59, 51, 76, 38, 65, 54, 49, 62, 68, 55, 64, 67, 63, 74, 65, 79 a) Compute the mean and standard deviation for this sample. #Include R code below this line b) Assume the slab thickness has an approximately normal distribution. Use a $1 $ 1evel of significance to test the claim that the mean slab thickness in the Vail region is different from that in Canada. Add a visualization section showing the critical region. #Include R code below this lineExplanation / Answer
critical region is (t<-2.946713) and (t>2.946713)
>
x=c(59,51,76,38,65,54,49,62,68,55,64,67,63,74,65,79) > mean=mean(x) > mean [1] 61.8125 > sd=sqrt(var(x)) > sd [1] 10.64718 > mu=67 ##average for canada > al=0.01 ##alpha > t.test(x,alternative = c("two.sided"),mu =mu,conf.level = 0.99) One Sample t-test data: x t = -1.9489, df = 15, p-value = 0.07027 alternative hypothesis: true mean is not equal to 67 99 percent confidence interval: 53.96895 69.65605 sample estimates: mean of x 61.8125 > qt(0.005,15) [1] -2.946713 > qt(0.995,15) [1] 2.946713 critical region is (t<-2.946713) and (t>2.946713)
>
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.