Exercises

(Area under Curve)

Area under the curve, Part I. (4.1, p. 142) What percent of a standard normal distribution \(N(\mu=0, \sigma=1)\) is found in each region? Be sure to draw a graph.

1

  1. \(Z < -1.35\)

2

  1. \(Z > 1.48\)

3

  1. \(-0.4 < Z < 1.5\)

4

  1. \(|Z| > 2\)
## [1] "Exercise 1:  0.088507991437402"

## [1] "Exercise 2 0.0694366233333318"

## [1] "Exercise 3 0.588614540341466"

## [1] "Exercise 4 0.0455002638963584"


(Triathalon)

Triathlon times, Part I (4.4, p. 142) In triathlons, it is common for racers to be placed into age and gender groups. Friends Leo and Mary both completed the Hermosa Beach Triathlon, where Leo competed in the Men, Ages 30 - 34 group while Mary competed in the Women, Ages 25 - 29 group. Leo completed the race in 1:22:28 (4948 seconds), while Mary completed the race in 1:31:53 (5513 seconds). Obviously Leo finished faster, but they are curious about how they did within their respective groups. Can you help them? Here is some information on the performance of their groups:

  • The finishing times of the group has a mean of 4313 seconds with a standard deviation of 583 seconds.
  • The finishing times of the group has a mean of 5261 seconds with a standard deviation of 807 seconds.
  • The distributions of finishing times for both groups are approximately Normal.

Remember: a better performance corresponds to a faster finish.

5

  1. Write down the short-hand for these two normal distributions.

\[mens: N(\mu=4313, \sigma=583)\quad womens:N(\mu=5261, \sigma=807)\]

6

  1. What are the Z-scores for Leo’s and Mary’s finishing times? What do these Z-scores tell you?
## [1] 1.089194
## [1] 0.3122677

Within his group, Leo was over 1 SD above mean which means he took longer than the mean for his group and was in the bottom ~32% of his group. Higher times, means longer run and worse performance. While Mary took longer to run, (5261 vs 4313), compared with her group, she performed closer to mean. She was still behind the pack, but not as bad as Leo compared with his group.

7

  1. Did Leo or Mary rank better in their respective groups? Explain your reasoning.

This depending on how we define “ranking”. If its an absolute, then we don’t know … it depend on group sizes. If there were 10 people in Leo’s group, his absolute ranking will be higher than Mark’s even though he performed worse relative to his group. If it’s a relative % ranking, then Mark will have ranked higher since she was closer to mean with a larger percentage of athletes behind her compared with Leo.

8

  1. What percent of the triathletes did Leo finish faster than in his group?
## [1] 0.1400711

Leo finished faster than 14% of his group while 86% of his group was ahead of him.

9

  1. What percent of the triathletes did Mary finish faster than in her group?
## [1] 0.3774185

Mary finished faster than 37.7% of her group while 62.3% finished ahead of her.

10

  1. If the distributions of finishing times are not nearly normal, would your answers to parts (b) - (e) change? Explain your reasoning.

The z-scores are still valid within group for non-normal distribution; however, as the distributions skew, so will the z-score distribution. As such, the portions of athletes in front and behind won’t be the same as normal since outliers drag the mean their direction, ie fewer athletes in the tail group than expecte. That said, z-score is tolerant to an extent within group. Comparision across groups will become problematic as the z-score distributions deviate from each other. Since Leo and Mary’s performance was not very close, I suspect it would take a fair bit of skew before we’d question performance against each other. If their z-scores were close, then the distribution skew might matter.


(Female Heights)

Heights of female college students Below are heights of 25 female college students.

\[ \stackrel{1}{54}, \stackrel{2}{55}, \stackrel{3}{56}, \stackrel{4}{56}, \stackrel{5}{57}, \stackrel{6}{58}, \stackrel{7}{58}, \stackrel{8}{59}, \stackrel{9}{60}, \stackrel{10}{60}, \stackrel{11}{60}, \stackrel{12}{61}, \stackrel{13}{61}, \stackrel{14}{62}, \stackrel{15}{62}, \stackrel{16}{63}, \stackrel{17}{63}, \stackrel{18}{63}, \stackrel{19}{64}, \stackrel{20}{65}, \stackrel{21}{65}, \stackrel{22}{67}, \stackrel{23}{67}, \stackrel{24}{69}, \stackrel{25}{73} \]

12

  1. Do these data appear to follow a normal distribution? Explain your reasoning using the graphs provided below.

A Q-Q plot plots the quantiles of a sample distribution against a reference distribution (Clay Ford 2015). If the plot is a straight line then we can assume they came from the same distribution. Looking at the heights, it appear like a normal distribution fits the sample data.


(Defect Rates)

Defective rate. (4.14, p. 148) A machine that produces a special type of transistor (a component of computers) has a 2% defective rate. The production is considered a random process where each transistor is independent of the others.

14

  1. What is the probability that the machine produces no defective transistors in a batch of 100?
## [1] 0.1326196

16

  1. Another machine that also produces transistors has a 5% defective rate where each transistor is produced independent of the others. On average how many transistors would you expect to be produced with this machine before the first with a defect? What is the standard deviation?
## [1] 20
## [1] 19.49359

Note with Geometric distributions, as the probability increase the time to wait (on average) decreases.

17

  1. Based on your answers to parts (c) and (d), how does increasing the probability of an event affect the mean and standard deviation of the wait time until success?

As probability increases, the time to wait (mean) decreases - this makes sense. If there is a higher error rate, it should happen more often.

We see the standard deviation also decrease. With a low error rate, there is a greater spread between events with equal probability of an error occuring (p is independent). This leads to a very high SD indicating a very broad distribution. As the error rate increases, the separation between events decreases and the conceptually, we have a narrower distribution with a much higer peak. With this shape, we would expect the SD, a measure of spread, to decrease.


(Male Children)

Male children. While it is often assumed that the probabilities of having a boy or a girl are the same, the actual probability of having a boy is slightly higher at 0.51. Suppose a couple plans to have 3 kids.

18

  1. Use the binomial model to calculate the probability that two of them will be boys. \[P(\text{obs } k\text{ in }n\text{ given }p) = \frac{n!}{k!(n-k)!}*p^k*(1-p)^{n-k}\]
## [1] 0.382347

19

  1. Write out all possible orderings of 3 children, 2 of whom are boys. Use these scenarios to calculate the same probability from part (a) but using the addition rule for disjoint outcomes. Confirm that your answers from parts (a) and (b) match.
Seq children Probability
1 B B G 0.51 * 0.51 * 0.49
2 B G B 0.51 * 0.49 * 0.51
3 G B B 0.49 * 0.51 * 0.51

\[P(\text{1}^{st}\text{ Seq or 2}^{nd}\text{ Seq or 3}^{rd}\text{ Seq})\\ =P(\text{1}^{st}\text{ Seq})+P(\text{2}^{nd}\text{ Seq})+P(\text{3}^{rd}\text{ Seq})\\ =3 * [0.51 * 0.51 * 0.49]\\ = 0.3823\text{ or }38.23\%\]

20

  1. If we wanted to calculate the probability that a couple who plans to have 8 kids will have 3 boys, briefly describe why the approach from part (b) would be more tedious than the approach from part (a).

Part (a) [Exercise 18] Has a simple formula that captures the combinatorial math making the calcuations far easier. In Part (b) [Exercise 19] we’d have to write out all combinations, then multiply out the probabilities without introducing bugs and finally multiply the final combination component with the single event probability … all of that is way too much work and hassle. It’s good to understand how the formula was derived in case we have a complex problem requiring we deviate from the formula.


(Volleyball)

Serving in volleyball. (4.30, p. 162) A not-so-skilled volleyball player has a 15% chance of making the serve, which involves hitting the ball so it passes over the net on a trajectory such that it will land in the opposing team’s court. Suppose that her serves are independent of each other.

22

  1. Suppose she has made two successful serves in nine attempts. What is the probability that her 10th serve will be successful?

Since we assume independence between trials, the probability of success on any single given serve is 15%. So, on her 10th serve she has a 15% chance of success. It doesn’t matter what has come before.

23

  1. 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?

In Part (b), since we assume independence between trials, the probability of success on any single given serve is 15%. So, on her 10th serve she has a 15% chance of success. It doesn’t matter what has come before.

In Part (a), we were asking what is the probability of a sequence of events happening in a specific way/order. Now we are having to account for 2 previous successful serves and the 15% probability of the 10th serve being successful.

References

Clay Ford, Statistical Research Consultant. 2015. Understanding Q-Q Plots. University of Virginia Library. https://data.library.virginia.edu/understanding-q-q-plots/.