CHAPTER 3 HOMEWORK - Distributions of Random Variables Practice: 3.1 (see normalPlot), 3.3, 3.17 (use qqnormsim from lab 3), 3.21, 3.37, 3.41 Graded: 3.2 (see normalPlot), 3.4, 3.18 (use qqnormsim from lab 3), 3.22, 3.38, 3.42
library(DATA606)
## Loading required package: shiny
## Loading required package: openintro
## Please visit openintro.org for free statistics materials
##
## Attaching package: 'openintro'
## The following objects are masked from 'package:datasets':
##
## cars, trees
## Loading required package: OIdata
## Loading required package: RCurl
## Loading required package: bitops
## Loading required package: maps
## Loading required package: ggplot2
##
## Attaching package: 'ggplot2'
## The following object is masked from 'package:openintro':
##
## diamonds
## Loading required package: markdown
##
## Welcome to CUNY DATA606 Statistics and Probability for Data Analytics
## This package is designed to support this course. The text book used
## is OpenIntro Statistics, 3rd Edition. You can read this by typing
## vignette('os3') or visit www.OpenIntro.org.
##
## The getLabs() function will return a list of the labs available.
##
## The demo(package='DATA606') will list the demos that are available.
##
## Attaching package: 'DATA606'
## The following object is masked from 'package:utils':
##
## demo
normalPlot(mean = 0, sd = 1, bounds = c(-1.13, 4))
normalPlot(mean = 0, sd = 1, bounds = c(-4, 0.18))
normalPlot(mean = 0, sd = 1, bounds = c(8, 8))
normalPlot(mean = 0, sd = 1, bounds = c(-4, -.5))
normalPlot(mean = 0, sd = 1, bounds = c(0.5, 4))
0.309*2
## [1] 0.618
Write down the short-hand for these two normal distributions men; mean 4313, sd 583 women; mean 5261, sd 801
What are the Z-scores for Leo’s and Mary’s finishing times? What do these Z-scores tell you? Leo; 1.09 Mary; 0.31 These scores show us how far above the mean Leo and Mary scored
Did Leo or Mary rank better in their respective groups? Explain your reasoning. Leo ranked much better than Mary since his score was well above the mean score for men, Mary’s score was more modest.
What percent of the triathletes did Leo finish faster than in his group? 86.2%
What percent of the triathletes did Mary finish faster than in his group? 66.3%
If the distributions of finishing times are not nearly normal, would your answers to parts b-e change? Explain your reasoning.
(B) would not change since Z scores can be calculated for not normal distributions. The other parts would change.
students <- c(54,55,56,56,57,58,58,59,60,60,60,61,61,62,62,63,63,63,64,65,65,67,67,69,73)
The mean height is 61.52 inches with a standard deviation of 4.58 inches. Use this information to determine if the heights approximately follow the 68-95-99.7% Rule. The distribution follows the 68-95-99.7% Rule
Do these data appear to follow a normal distribution? Explain your reasoning using the graphs provided below.
The curve on the bar chart show that distribution is symmetrical and unimodal. Plot points show normal distribution.
What is the probability that the 10th transistor produced is the first with a defect? (.98^9).02 = .02
What is the probability that the machine produces no defective transistors in a batch of 100? .98^100 = .13
On average, how many transistors would you expect to be produced before the first with a defect? What is the standard deviation? 1/.02 = 50
sd <- sqrt((1 - .02)/.02^2)
sd
## [1] 49.49747
sd <- sqrt((1 - .05)/.05^2)
sd
## [1] 19.49359
dbinom(2,3,0.51)
## [1] 0.382347
((0.51^2)*0.49)+((0.51^2)*0.49)+((0.51^2)*0.49)
## [1] 0.382347
choose(10, 3)*(0.15^3)*(0.85^7)
## [1] 0.1298337
Suppose she has made two successful serves in nine attempts. What is the probability that her 10th serve will be successful? 15% since serves are independent
Even though parts (a) and (b) discuss the same scenario, the probabilities you calculated should be different. Can you explain the reason for this discrepancy? The probability of a successful serve is always 15% regardless of how many successful serves have already been made - Question A asked for the probability of 3 successes out of 10, this requires a different formula