Probability and Statistics - The Science of Uncertainty, Second Edition CHAPTER 2 Solutions
These are solutions I have come up with for the this textbook, I offer no gaurentee of accuracy
Questions
##### Chapter 2 Section 1 Question 1

Let $S=\{1,2,3...\}$ and let $X(s)=s^2$ and $Y(s)=\frac{1}{s}$ for $s\in S$. For each of the following quantities, determine (with explaination) whether or not it exists. If it does exist, then give its value.

1. $min_{s\in S}X(s)$
2. $max_{s\in S}X(s)$
3. $min_{s\in S}Y(s)$
4. $max_{s\in S}Y(s)$

##### Chapter 2 Section 1 Question 2

Let $S=\{high,middle,low\}$. Define random variables X,Y, and Z by X(high)=-12, X(middle)=-2, X(low)=3, Y(high)=0, Y(middle)=0, Y(low)=1, Z(high)=6, Z(middle)=0, Z(low)=4, Determine whether each of the following relations is true or fasle.

1. $X < Y$
2. $X\leq Y$
3. $Y < Z$
4. $Y\leq Z$
5. $XY < Z$
6. $XY\leq Z$

##### Chapter 2 Section 1 Question 3

Let $S=\{1,2,3,4,5\}.$

1. Define two different(i.e., nonequal) nonconstant random variablesm X and Y, on S.
2. For the random variables X and Y that you have chosen, let $Z=X+Y^2$. Compute Z(s) for all $s\in S$.

##### Chapter 2 Section 1 Question 4

Consider rolling a fair six-sided die, so that $S=\{1,2,3,4,5,6\}$. Let $X(s)=s$, and $Y(s)=s^3+2$. Let $Z=XY$. Compute $Z(s)$ for all $s\in S$.

##### Chapter 2 Section 1 Question 5

Let A and B be events, and let $X=\textit{I}_A*\textit{I}_B$. Is X an indicator function? If yes, then of what event?

##### Chapter 2 Section 1 Question 6

Let $S={\{1,2,3,4\}}$, $X=\textit{I}_{\{1,2\}}$, $Y=\textit{I}_{\{2,3\}}$, $Z=\textit{I}_{\{3,4\}}$. Let $W=X+Y+Z$

1. Compute $W(1)$
2. Compute $W(2)$
3. Compute $W(4)$
4. Determine whether or not $W \geq Z$

##### Chapter 2 Section 1 Question 7

Let $S={\{1,2,3\}}$, $X=\textit{I}_{\{1\}}$, $Y=\textit{I}_{\{2,3\}}$, $Z=\textit{I}_{\{1,2\}}$. Let $W=X-Y+Z$

1. Compute $W(1)$
2. Compute $W(2)$
3. Compute $W(3)$
4. Determine whether or not $W \geq Z$

##### Chapter 2 Section 1 Question 8

Let $S={\{1,2,3,4,5\}}$, $X=\textit{I}_{\{1,2,3\}}$, $Y=\textit{I}_{\{2,3\}}$, $Z=\textit{I}_{\{3,4,5\}}$. Let $W=X+Y+Z$

1. Compute $W(1)$
2. Compute $W(2)$
3. Compute $W(5)$
4. Determine whether or not $W \geq Z$

##### Chapter 2 Section 1 Question 9

Let $S={\{1,2,3,4\}}$, $X=\textit{I}_{\{1,2\}}$, $Y(s)=s^2X(s)$

1. Compute $Y(1)$
2. Compute $Y(2)$
3. Compute $Y(4)$

##### Chapter 2 Section 1 Question 10

Let X be a random varriable

1. It is necessarily true that $X\geq 0$?
2. Is it necessarily true that there is some real number c such that $X+c \geq 0$?
3. Suppose the sample space S is finite. Then is it necessarily true that there is some real number c such that $X+c\geq 0$?
4. Compute $Y(4)$

##### Chapter 2 Section 1 Question 11

Suppose the sample space S is finite. Is it possible to define an unbounded random variiable on S? Why or why not?

##### Chapter 2 Section 1 Question 12

Suppose X is a random variable that takes only the vales 0 or 1. Must X be an indicator function? Explain.

##### Chapter 2 Section 1 Question 13

Suppose the sample space S is finite, of size m. How many different indicator functions can be defined on S?

##### Chapter 2 Section 1 Question 14

Suppose X is a random variable. Let $Y=\sqrt{X}$. Must Y be a radom variable? Explain.

##### Chapter 2 Section 2 Question 1

Consider flipping two independent fair coins. Let X be the number of heads that appear. Compute $P(X=x)$ for all real numbers x.

##### Chapter 2 Section 2 Question 2

Suppose we flip three fair coins, and let X be the number of heads showing.

1. Compute $P(X = x)$ for every real number x.
2. Write a formula for $P(X \in \textbf{B})$, for any subset $\textbf{B}$ of the real numbers.

##### Chapter 2 Section 2 Question 3

Suppose we roll two fair six-sided dice, and let Y be the sum of the two numbers showing.

1. Compute $P(Y = y)$ for every real number y.
2. Write a formula for$P(Y \in\textbf{B} )$, for any subset $\textbf{B}$ of the real numbers.

##### Chapter 2 Section 2 Question 4

Suppose we roll one fair six-sided die, and let Z be the number showing. Let $W = Z^3 + 4$, and let $V = \sqrt{Z}$.

1. Compute $P(W = w)$ for every real number w
2. Compute $P(V = v)$ for every real number v.
3. Compute $P(ZW = x)$ for every real number x.
4. Compute $P(VW = y)$ for every real number y.
5. Compute $P(V + W = r )$ for every real number r.

##### Chapter 2 Section 2 Question 5

Suppose that a bowl contains 100 chips: 30 are labelled 1, 20 are labelled 2, and 50 are labelled 3. The chips are thoroughly mixed, a chip is drawn, and the number X on the chip is noted.

1. Compute $P(X = x)$ for every real number x.
2. Suppose the first chip is replaced, a second chip is drawn, and the number Y on the chip noted. Compute $P(Y = y)$ for every real number y.
3. Compute $P(W = w$) for every real number w when $W = X + Y$.

##### Chapter 2 Section 2 Question 6

Suppose a standard deck of 52 playing cards is thoroughly shuffled and a single card is drawn. Suppose an ace has value 1, a jack has value 11, a queen has value 12, and a king has value 13.

1. Compute $P(X = x)$ for every real number x, when X is the value of the card drawn.
2. Suppose that Y = 1, 2, 3, or 4 when a diamond, heart, club, or spade is drawn. Compute P(Y = y) for every real number y.
3. Compute $P(W = w)$ for every real number w when $W = X + Y$.

##### Chapter 2 Section 2 Question 7

Suppose a university is composed of 55% female students and 45% male students. A student is selected to complete a questionnaire. There are 25 questions on the questionnaire administered to a male student and 30 questions on the questionnaire administered to a female student. If X denotes the number of questions answered by a randomly selected student, then compute $P(X = x)$ for every real number x.

##### Chapter 2 Section 2 Question 8

Suppose that a bowl contains 10 chips, each uniquely numbered 0 through 9. The chips are thoroughly mixed, one is drawn and the number on it, $X_1$, is noted. This chip is then replaced in the bowl. A second chip is drawn and the number on it, $X_2$, is noted. Compute $P(W = w)$ for every real number w when $W = X_1 + 10X_2$.

##### Chapter 2 Section 3 Question 1

Consider rolling two fair six-sided dice. Let Y be the sum of the numbers showing. What is the probability function of Y?

##### Chapter 2 Section 3 Question 2

Consider flipping a fair coin. Let Z = 1 if the coin is heads, and Z = 3 if the coin is tails. Let $W = Z^2 + Z$.

1. What is the probability function of Z?
2. What is the probability function of W?

##### Chapter 2 Section 3 Question 3

Consider flipping two fair coins. Let X = 1 if the first coin is heads, and X = 0 if the first coin is tails. Let Y = 1 if the second coin is heads, and Y = 5 if the second coin is tails. Let $Z = XY$. What is the probability function of Z?

##### Chapter 2 Section 3 Question 4

Consider flipping two fair coins. Let $X = 1$ if the first coin is heads, and $X = 0$ if the first coin is tails. Let $Y = 1$ if the two coins show the same thing (i.e., both heads or both tails), with $Y = 0$ otherwise. Let $Z = X + Y$, and $W = XY$.

1. What is the probability function of Z?
2. What is the probability function of W?

##### Chapter 2 Section 3 Question 5

Consider rolling two fair six-sided dice. Let W be the product of the numbers showing. What is the probability function of W?

##### Chapter 2 Section 3 Question 6

Let $Z$ ~ $Geometric(\theta )$. Compute $P(5 \leq Z \leq 9)$.

##### Chapter 2 Section 3 Question 7

Let $X$ ~ $Binomial(12, \theta )$. For what value of $\theta$ is $P(X = 11)$ maximized?

##### Chapter 2 Section 3 Question 8

Let $W$ ~ $Poisson(\lambda )$. For what value of $\lambda$ is $P(W = 11)$ maximized?

##### Chapter 2 Section 3 Question 9

Let $Z$ ~ $Negative-Binomial(3, 1/4)$. Compute $P(Z \leq 2)$.

##### Chapter 2 Section 3 Question 10

Let $X$ ~ $Geometric(1/5)$. Compute $P(X^2 \leq 15)$.

##### Chapter 2 Section 3 Question 11

Let $Y$ ~ $Binomial(10,\theta)$. Compute $P(Y = 10)$.

##### Chapter 2 Section 3 Question 12

Let $X$ ~ $Poisson(\lambda)$. Let $Y = X - 7$. What is the probability function of Y?

##### Chapter 2 Section 3 Question 13

Let $X$ ~ $Hypergeometric(20, 7, 8)$. What is the probability that $X = 3$? What is the probability that $X = 8$?

##### Chapter 2 Section 3 Question 14

Suppose that a symmetrical die is rolled 20 independent times, and each time we record whether or not the event $\{2, 3, 5, 6\}$ has occurred

1. What is the distribution of the number of times this event occurs in 20 rolls?
2. Calculate the probability that the event occurs five times.

##### Chapter 2 Section 3 Question 15

Suppose that a basketball player sinks a basket from a certain position on the court with probability 0.35.

1. What is the probability that the player sinks three baskets in 10 independent throws?
2. What is the probability that the player throws 10 times before obtaining the first basket?
3. What is the probability that the player throws 10 times before obtaining two baskets?

##### Chapter 2 Section 3 Question 16

An urn contains 4 black balls and 5 white balls. After a thorough mixing, a ball is drawn from the urn, its color is noted, and the ball is returned to the urn.

1. What is the probability that 5 black balls are observed in 15 such draws?
2. What is the probability that 15 draws are required until the first black ball is observed?
3. What is the probability that 15 draws are required until the fifth black ball is observed?

##### Chapter 2 Section 3 Question 17

An urn contains 4 black balls and 5 white balls. After a thorough mixing, a ball is drawn from the urn, its color is noted, and the ball is set aside. The remaining balls are then mixed and a second ball is drawn.

1. What is the probability distribution of the number of black balls observed?
2. What is the probability distribution of the number of white balls observed?

##### Chapter 2 Section 3 Question 18

(Poisson processes and queues) Consider a situation involving a server, e.g., a cashier at a fast-food restaurant, an automatic bank teller machine, a telephone exchange, etc. Units typically arrive for service in a random fashion and form a queue when the server is busy. It is often the case that the number of arrivals at the server, for some specific unit of time t, can be modeled by a $Poisson(\lambda t)$ distribution and is such that the number of arrivals in nonoverlapping periods are independent. In Chapter 3, we will show that $\lambda t$ is the average number of arrivals during a time period of length $t$, and so $\lambda$ is the rate of arrivals per unit of time. Suppose telephone calls arrive at a help line at the rate of two per minute. A Poisson process provides a good model.

1. What is the probability that five calls arrive in the next 2 minutes?
2. What is the probability that five calls arrive in the next 2 minutes and then five more calls arrive in the following 2 minutes?
3. What is the probability that no calls will arrive during a 10-minute period?

##### Chapter 2 Section 3 Question 19

Suppose an urn contains 1000 balls - one of these is black, and the other 999 are white. Suppose that 100 balls are randomly drawn from the urn with replacement. Use the appropriate Poisson distribution to approximate the probability that five black balls are observed.

##### Chapter 2 Section 3 Question 20

Suppose that there is a loop in a computer program and that the test to exitthe loop depends on the value of a random variable X. The program exits the loop whenever $X \in \mathbb{A}$, and this occurs with probability $1/3$. If the loop is executed at least once, what is the probability that the loop is executed five times before exiting?

##### Chapter 2 Section 4 Question 1

U ~ $Uniform[0, 1]$. Compute each of the following.

1. $P(U\leq 0)$
2. $P(U=\frac{1}{2})$
3. $P(U < -\frac{1}{3})$
4. $P(U\leq \frac{2}{3})$
5. $P(U < \frac{2}{3})$
6. $P(U < 1)$
7. $P(U\leq 17)$

##### Chapter 2 Section 4 Question 2

U ~ $Uniform[1, 4]$. Compute each of the following.

1. $P(W \geq 5)$
2. $P(W \geq 2)$
3. $P(W^2 \geq 9)$ (Hint: If $W^2 \leq 9$, what must W be?)
4. $P(W^2 \leq 2)$

##### Chapter 2 Section 4 Question 3

Let Z ~ $Exponential(4)$. Compute each of the following.

1. $P(Z \geq 5)$
2. $P(Z \geq -5)$
3. $P(Z^2 \geq 9)$
4. $P(Z^4-17 \geq 9)$

##### Chapter 2 Section 4 Question 4

Establish for which constants c the following functions are densities.

1. $f(x) = cx$ on $(0, 1)$ and 0 otherwise.
2. $f(x) = cx^n$ on $(0, 1)$ and 0 otherwise, for n a nonnegative integer.
3. $f(x) = cx^{\frac{1}{2}}$ on $(0, 2)$ and 0 otherwise.
4. $f(x) =c*sin(x)$ on $(0, \frac{\pi}{2})$ and 0 otherwise.

##### Chapter 2 Section 4 Question 5

Is the function defined by $f (x) =\frac{x}{3}$ for $-1 < x < 2$ and 0 otherwise, a density? Why or why not?

##### Chapter 2 Section 4 Question 6

Let X ~ $Exponential(3)$. Compute each of the following.

1. $P(0 < X < 1)$
2. $P(0 < X < 3)$
3. $P(0 < X < 5)$
4. $P(2 < X < 5)$
5. $P(2 < X < 10)$
6. $P(X > 2)$