
in Rstudio for lab:
## Lab report #### Load data: ```{r load-data}
#load(url("https://stat.duke.edu/~mc301/data/ames.RData")) download.file("http://www.openintro.org/stat/data/bdims.RData", destfile = "bdims.RData") load("bdims.RData") head(bdims) mdims <- subset(bdims, sex == 1) fdims <- subset(bdims, sex == 0)
```
#### Set a seed:
```
{r set-seed} set.seed(42)
```
#### Exercise 1:
```{r ex1}
hist(mdims$hgt, col = 'red') hist(fdims$hgt, col = 'blue') mhgtmean <-
```
#### Exercise 2:
```{r ex2} hist(fdims$hgt,
```
#### Exercise 3:
```{r ex3}
qqnorm(fdims$hgt)
qqline(fdims$hgt)
sim_norm <- rnorm(n = length(fdims$hgt), mean = fhgtmean, sd = fhgtsd)
qqnorm(sim_norm)
qqline(sim_norm)
```
#### Exercise 4:
```{r ex4}
qqnormsim(fdims$hgt)
```
#### Exercise 5:
```{r ex5}
hist(fdims$wgt, col = 'blue')
qqnorm(fdims$wgt)
qqline(fdims$wgt)
```
Write out two probability questions that you would like to answer; one regarding female heights and
one regarding female weights. Calculate the those probabilities using both the theoretical normal
distribution as well as the empirical distribution (four probabilities in all). Which variable, height
or weight, had a closer agreement between the two methods? Why do you think this variable had
theoretical normal probabilities closer the emperical probabilities?
to generate a solution
a solution
- In an environmental impact study for a new airport, the noise level of various jets was measured just seconds after their wheels left the ground. The jets were either wide-bodied or narrow-bodied. The noise levels in decibels (dB) are recorded for 15 wide-bodied jets and 12 narrow-bodied jets (use data_5). Do the two types of jets have different mean noise levels? data 5 'WideBodied' 'NarrowBodied'109.5 131.4107.3 126.8105 114.1117.3 126.9105.4 108.2113.7 122121.7 106.9109.2 116.3108.1 115.5106.4 111.6104.6 124.5110.5 116.2110.9 111 112.4arrow_forwardWhat are two tools which test how close the dispersion of data matches the distribution shape of a normal curve?arrow_forwardResearcher wanted to determine if carpeted rooms containe more bacteria than uncarpted rooms. Colonies of bacteria were allowed to form in the 16 Petri dishes. A normal probality plot and boxplot indicate that the data are aproximately normally distributed with no outliers. Do carpted rooms have more bacteria than uncarpted roomz at the a= 0.05 level of signicance? carpeted rooms (bacteria/cubic foot) 11.8, 8.2, 7.1, 13, 10.8, 10.1 14.6, 14 uncarpted room( bacteria/cubic foot) 12.1, 8.3, 3.8, 7.2, 12, 11.1 10.1 13.7 a) Is this independent or dependent sampling? b) State the null and alternative hypotheses c) P-value: d) state your conclusion in the langauage of the problem.arrow_forward
- use the date form the second picture to answer question 3 please help me with question 3arrow_forwardThis is the only data given. Please choose the best answer for both parts. Thank youarrow_forwardAn excess of high values for the cases distributed on a graph results in a positive skew in the data?arrow_forward
- MATLAB: An Introduction with ApplicationsStatisticsISBN:9781119256830Author:Amos GilatPublisher:John Wiley & Sons IncProbability and Statistics for Engineering and th...StatisticsISBN:9781305251809Author:Jay L. DevorePublisher:Cengage LearningStatistics for The Behavioral Sciences (MindTap C...StatisticsISBN:9781305504912Author:Frederick J Gravetter, Larry B. WallnauPublisher:Cengage Learning
- Elementary Statistics: Picturing the World (7th E...StatisticsISBN:9780134683416Author:Ron Larson, Betsy FarberPublisher:PEARSONThe Basic Practice of StatisticsStatisticsISBN:9781319042578Author:David S. Moore, William I. Notz, Michael A. FlignerPublisher:W. H. FreemanIntroduction to the Practice of StatisticsStatisticsISBN:9781319013387Author:David S. Moore, George P. McCabe, Bruce A. CraigPublisher:W. H. Freeman





