• Home
  • Textbooks
  • Introduction to Probability
  • Random Variables and their Distributions

Introduction to Probability

Joseph K. Blitzstein, Jessica Hwang

Chapter 3

Random Variables and their Distributions - all with Video Answers

Educators

+ 1 more educators

Chapter Questions

04:49

Problem 1

People are arriving at a party one at a time. While waiting for more people to arrive they entertain themselves by comparing their birthdays. Let $X$ be the number of people needed to obtain a birthday match, i.e., before person $X$ arrives no two people have the same birthday, but when person $X$ arrives there is a match. Find the PMF of $X$.

Ahmad Reda
Ahmad Reda
Numerade Educator
01:03

Problem 2

(a) Independent Bernoulli trials are performed, with probability $1 / 2$ of success, until there has been at least one success. Find the PMF of the number of trials performed.
(b) Independent Bernoulli trials are performed, with probability $1 / 2$ of success, until there has been at least one success and at least one failure. Find the PMF of the number of trials performed.

Dominador Tan
Dominador Tan
Numerade Educator
View

Problem 3

Let $X$ be an r.v. with $\operatorname{CDF} F$, and $Y=\mu+\sigma X$, where $\mu$ and $\sigma$ are real numbers with $\sigma>0$. (Then $Y$ is called a location-scale transformation of $X$; we will encounter this concept many times in Chapter 5 and beyond.) Find the CDF of $Y$, in terms of $F$.

Rashmi Sinha
Rashmi Sinha
Numerade Educator
01:00

Problem 4

Let $n$ be a positive integer and
$$
F(x)=\frac{\lfloor x\rfloor}{n}
$$
for $0 \leq x \leq n, F(x)=0$ for $x<0$, and $F(x)=1$ for $x>n$, where $\lfloor x\rfloor$ is the greatest integer less than or equal to $x$. Show that $F$ is a CDF, and find the PMF that it corresponds to.

Dominador Tan
Dominador Tan
Numerade Educator
01:35

Problem 5

(a) Show that $p(n)=\left(\frac{1}{2}\right)^{n+1}$ for $n=0,1,2, \ldots$ is a valid PMF for a discrete r.v.
(b) Find the CDF of a random variable with the PMF from (a).

Bon Zapata
Bon Zapata
Numerade Educator
01:10

Problem 6

(8) Benford's law states that in a very large variety of real-life data sets, the first digit approximately follows a particular distribution with about a $30 \%$ chance of a 1 , an $18 \%$ chance of a 2 , and in general
$$
P(D=j)=\log _{10}\left(\frac{j+1}{j}\right), \text { for } j \in\{1,2,3, \ldots, 9\}
$$
where $D$ is the first digit of a randomly chosen element. Check that this is a valid PMF (using properties of logs, not with a calculator).

Dominador Tan
Dominador Tan
Numerade Educator
08:59

Problem 7

Bob is playing a video game that has 7 levels. He starts at level 1, and has probability $p_{1}$ of reaching level 2 . In general, given that he reaches level $j$, he has probability $p_{j}$ of reaching level $j+1$, for $1 \leq j \leq 6$. Let $X$ be the highest level that he reaches. Find the PMF of $X$ (in terms of $p_{1}, \ldots, p_{6}$ ).

Ahmad Reda
Ahmad Reda
Numerade Educator
01:09

Problem 8

There are 100 prizes, with one worth $\$ 1$, one worth $\$ 2, \ldots$, and one worth $\$ 100$. There are 100 boxes, each of which contains one of the prizes. You get 5 prizes by picking random boxes one at a time, without replacement. Find the PMF of how much your most valuable prize is worth (as a simple expression in terms of binomial coefficients).

Hoan Nguyen
Hoan Nguyen
Numerade Educator
01:02

Problem 9

Let $F_{1}$ and $F_{2}$ be CDFs, $0<p<1$, and $F(x)=p F_{1}(x)+(1-p) F_{2}(x)$ for all $x$.
(a) Show directly that $F$ has the properties of a valid CDF (see Theorem 3.6.3). The distribution defined by $F$ is called a mixture of the distributions defined by $F_{1}$ and $F_{2}$.
(b) Consider creating an r.v. in the following way. Flip a coin with probability $p$ of Heads. If the coin lands Heads, generate an r.v. according to $F_{1}$; if the coin lands Tails, generate an r.v. according to $F_{2}$. Show that the r.v. obtained in this way has CDF $F$.

Kratika Bhadauria
Kratika Bhadauria
Numerade Educator
01:35

Problem 10

(a) Is there a discrete distribution with support $1,2,3, \ldots$, such that the value of the PMF at $n$ is proportional to $1 / n$ ?
Hint: See the math appendix for a review of some facts about series.
(b) Is there a discrete distribution with support $1,2,3, \ldots$, such that the value of the PMF at $n$ is proportional to $1 / n^{2}$ ?

Bon Zapata
Bon Zapata
Numerade Educator
01:55

Problem 11

(8) Let $X$ be an r.v. whose possible values are $0,1,2, \ldots$, with CDF $F$. In some countries, rather than using a CDF, the convention is to use the function $G$ defined by $G(x)=$ $P(X<x)$ to specify a distribution. Find a way to convert from $F$ to $G$, i.e., if $F$ is a known function, show how to obtain $G(x)$ for all real $x$.

Michelle Z.
Michelle Z.
Numerade Educator
04:43

Problem 12

(a) Give an example of r.v.s $X$ and $Y$ such that $F_{X}(x) \leq F_{Y}(x)$ for all $x$, where the inequality is strict for some $x$. Here $F_{X}$ is the CDF of $X$ and $F_{Y}$ is the CDF of $Y$. For the example you gave, sketch the CDFs of both $X$ and $Y$ on the same axes. Then sketch their PMFs on a second set of axes.
(b) In Part (a), you found an example of two different CDFs where the first is less than or equal to the second everywhere. Is it possible to find two different PMFs where the first is less than or equal to the second everywhere? In other words, find discrete r.v.s $X$ and $Y$ such that $P(X=x) \leq P(Y=x)$ for all $x$, where the inequality is strict for some $x$, or show that it is impossible to find such r.v.s.

Ahmad Reda
Ahmad Reda
Numerade Educator
03:38

Problem 13

Let $X, Y, Z$ be discrete r.v.s such that $X$ and $Y$ have the same conditional distribution given $Z$, i.e., for all $a$ and $z$ we have
$$
P(X=a \mid Z=z)=P(Y=a \mid Z=z) .
$$
Show that $X$ and $Y$ have the same distribution (unconditionally, not just when given $Z)$.

Mengchun Cai
Mengchun Cai
Numerade Educator
13:24

Problem 14

Let $X$ be the number of purchases that Fred will make on the online site for a certain company (in some specified time period). Suppose that the PMF of $X$ is $P(X=k)=$ $e^{-\lambda} \lambda^{k} / k !$ for $k=0,1,2, \ldots$.This distribution is called the Poisson distribution with parameter $\lambda$, and it will be studied extensively in later chapters.
(a) Find $P(X \geq 1)$ and $P(X \geq 2)$ without summing infinite series.
(b) Suppose that the company only knows about people who have made at least one purchase on their site (a user sets up an account to make a purchase, but someone who has never made a purchase there doesn't appear in the customer database). If the company computes the number of purchases for everyone in their database, then these data are draws from the conditional distribution of the number of purchases, given that at least one purchase is made. Find the conditional PMF of $X$ given $X \geq 1$. (This conditional distribution is called a truncated Poisson distribution.)

Heena Haldankar
Heena Haldankar
Numerade Educator
01:05

Problem 15

Find the CDF of an r.v. $X \sim \operatorname{DUnif}(1,2, \ldots, n) .$

Dominador Tan
Dominador Tan
Numerade Educator
03:28

Problem 16

Let $X \sim \mathrm{DUnif}(C)$, and $B$ be a nonempty subset of $C .$ Find the conditional distribution of $X$, given that $X$ is in $B$.

Amany Waheeb
Amany Waheeb
Numerade Educator
02:16

Problem 17

An airline overbooks a flight, selling more tickets for the flight than there are seats on the plane (figuring that it's likely that some people won't show up). The plane has 100 seats, and 110 people have booked the flight. Each person will show up for the flight with probability $0.9$, independently. Find the probability that there will be enough seats for everyone who shows up for the flight.

Ivan Kochetkov
Ivan Kochetkov
Numerade Educator
02:47

Problem 18

(3) (a) In the World Series of baseball, two teams (call them A and B) play a sequence of games against each other, and the first team to win four games wins the series. Let $p$ be the probability that $\mathrm{A}$ wins an individual game, and assume that the games are independent. What is the probability that team A wins the series?
(b) Give a clear intuitive explanation of whether the answer to (a) depends on whether the teams always play 7 games (and whoever wins the majority wins the series), or the teams stop playing more games as soon as one team has won 4 games (as is actually the case in practice: once the match is decided, the two teams do not keep playing more games).

Joe Lesueur
Joe Lesueur
Numerade Educator
08:04

Problem 19

In a chess tournament, $n$ games are being played, independently. Each game ends in a win for one player with probability $0.4$ and ends in a draw (tie) with probability $0.6$. Find the PMFs of the number of games ending in a draw, and of the number of players whose games end in draws.

Robin Corrigan
Robin Corrigan
Numerade Educator
02:26

Problem 20

Suppose that a lottery ticket has probability $p$ of being a winning ticket, independently of other tickets. A gambler buys 3 tickets, hoping this will triple the chance of having at least one winning ticket.
(a) What is the distribution of how many of the 3 tickets are winning tickets?
(b) Show that the probability that at least 1 of the 3 tickets is winning is $3 p-3 p^{2}+p^{3}$, in two different ways: by using inclusion-exclusion, and by taking the complement of the desired event and then using the PMF of a certain named distribution.
(c) Show that the gambler's chances of having at least one winning ticket do not quite triple (compared with buying only one ticket), but that they do approximately triple if $p$ is small.

Sheryl Ezze
Sheryl Ezze
Numerade Educator
01:52

Problem 21

(s) Let $X \sim \operatorname{Bin}(n, p)$ and $Y \sim \operatorname{Bin}(m, p)$, independent of $X$. Show that $X-Y$ is not Binomial.

Hunza Gilgit
Hunza Gilgit
Numerade Educator
02:27

Problem 22

There are two coins, one with probability $p_{1}$ of Heads and the other with probability $p_{2}$ of Heads. One of the coins is randomly chosen (with equal probabilities for the two coins). It is then flipped $n \geq 2$ times. Let $X$ be the number of times it lands Heads.
(a) Find the PMF of $X$.
(b) What is the distribution of $X$ if $p_{1}=p_{2} ?$
(c) Give an intuitive explanation of why $X$ is not Binomial for $p_{1} \neq p_{2}$ (its distribution is called a mixture of two Binomials). You can assume that $n$ is large for your explanation, so that the frequentist interpretation of probability can be applied.

Hunza Gilgit
Hunza Gilgit
Numerade Educator
02:03

Problem 23

There are $n$ people eligible to vote in a certain election. Voting requires registration. Decisions are made independently. Each of the $n$ people will register with probability $p_{1}$. Given that a person registers, they will vote with probability $p_{2}$. Given that a person votes, they will vote for Kodos (who is one of the candidates) with probability $p_{3}$. What is the distribution of the number of votes for Kodos (give the PMF, fully simplified, or the name of the distribution, including its parameters)?

James Kiss
James Kiss
Numerade Educator
01:22

Problem 24

Let $X$ be the number of Heads in 10 fair coin tosses.
(a) Find the conditional PMF of $X$, given that the first two tosses both land Heads.
(b) Find the conditional PMF of $X$, given that at least two tosses land Heads.

Dominador Tan
Dominador Tan
Numerade Educator
03:56

Problem 25

(3) Alice flips a fair coin $n$ times and Bob flips another fair coin $n+1$ times, resulting in independent $X \sim \operatorname{Bin}\left(n, \frac{1}{2}\right)$ and $Y \sim \operatorname{Bin}\left(n+1, \frac{1}{2}\right)$.
(a) Show that $P(X<Y)=P(n-X<n+1-Y)$.
(b) Compute $P(X<Y)$.

Bryan Lynn
Bryan Lynn
Numerade Educator
01:05

Problem 26

If $X \sim$ HGeom $(w, b, n)$, what is the distribution of $n-X ?$ Give a short proof.

Vysakh M
Vysakh M
Numerade Educator
01:01

Problem 27

Recall de Montmort's matching problem from Chapter 1: in a deck of $n$ cards labeled 1 through $n$, a match occurs when the number on the card matches the card's position in the deck. Let $X$ be the number of matching cards. Is $X$ Binomial? Is $X$ Hypergeometric?

Nick Johnson
Nick Johnson
Numerade Educator
View

Problem 28

(5) There are $n$ eggs, each of which hatches a chick with probability $p$ (independently). Each of these chicks survives with probability $r$, independently. What is the distribution of the number of chicks that hatch? What is the distribution of the number of chicks that survive? (Give the PMFs; also give the names of the distributions and their parameters, if applicable.)

Victor Salazar
Victor Salazar
Numerade Educator
01:35

Problem 29

(8) A sequence of $n$ independent experiments is performed. Each experiment is a success with probability $p$ and a failure with probability $q=1-p$. Show that conditional on the number of successes, all valid possibilities for the list of outcomes of the experiment are equally likely.

Liuxi Sun
Liuxi Sun
Numerade Educator
03:25

Problem 30

A certain company has $n+m$ employees, consisting of $n$ women and $m$ men. The company is deciding which employees to promote.
(a) Suppose for this part that the company decides to promote $t$ employees, where $1 \leq t \leq n+m$, by choosing $t$ random employees (with equal probabilities for each set of $t$ employees). What is the distribution of the number of women who get promoted?
(b) Now suppose that instead of having a predetermined number of promotions to give, the company decides independently for each employee, promoting the employee with probability $p$. Find the distributions of the number of women who are promoted, the number of women who are not promoted, and the number of employees who are promoted.
(c) In the set-up from (b), find the conditional distribution of the number of women who are promoted, given that exactly $t$ employees are promoted.

Kari Hasz
Kari Hasz
Numerade Educator
01:15

Problem 31

Once upon a time, a famous statistician offered tea to a lady. The lady claimed that she could tell whether milk had been added to the cup before or after the tea. The statistician decided to run some experiments to test her claim.
(a) The lady is given 6 cups of tea, where it is known in advance that 3 will be milkfirst and 3 will be tea-first, in a completely random order. The lady gets to taste each and then guess which 3 were milk-first. Assume for this part that she has no ability whatsoever to distinguish milk-first from tea-first cups of tea. Find the probability that at least 2 of her 3 guesses are correct.
(b) Now the lady is given one cup of tea, with probability $1 / 2$ of it being milk-first. She needs to say whether she thinks it was milk-first. Let $p_{1}$ be the lady's probability of being correct given that it was milk-first, and $p_{2}$ be her probability of being correct given that it was tea-first. She claims that the cup was milk-first. Find the posterior odds that the cup is milk-first, given this information.

Hoan Nguyen
Hoan Nguyen
Numerade Educator
06:33

Problem 32

In Evan's history class, 10 out of 100 key terms will be randomly selected to appear on the final exam; Evan must then choose 7 of those 10 to define. Since he knows the format of the exam in advance, Evan is trying to decide how many key terms he should study.
(a) Suppose that Evan decides to study $s$ key terms, where $s$ is an integer between 0 and $100 .$ Let $X$ be the number of key terms appearing on the exam that he has studied. What is the distribution of $X ?$ Give the name and parameters, in terms of $s$.
(b) Using $R$ or other software, calculate the probability that Evan knows at least 7 of the 10 key terms that appear on the exam, assuming that he studies $s=75$ key terms.

Oluwadamilola Ameobi
Oluwadamilola Ameobi
Numerade Educator
12:41

Problem 33

A book has $n$ typos. Two proofreaders, Prue and Frida, independently read the book. Prue catches each typo with probability $p_{1}$ and misses it with probability $q_{1}=1-p_{1}$, independently, and likewise for Frida, who has probabilities $p_{2}$ of catching and $q_{2}=1-p_{2}$ of missing each typo. Let $X_{1}$ be the number of typos caught by Prue, $X_{2}$ be the number caught by Frida, and $X$ be the number caught by at least one of the two proofreaders.
(a) Find the distribution of $X$.
(b) For this part only, assume that $p_{1}=p_{2}$. Find the conditional distribution of $X_{1}$ given that $X_{1}+X_{2}=t$.

Evelyn Cunningham
Evelyn Cunningham
Numerade Educator
04:12

Problem 34

There are $n$ students at a certain school, of whom $X \sim \operatorname{Bin}(n, p)$ are Statistics majors. A simple random sample of size $m$ is drawn ("simple random sample" means sampling without replacement, with all subsets of the given size equally likely).
(a) Find the PMF of the number of Statistics majors in the sample, using the law of total probability (don't forget to say what the support is). You can leave your answer as a sum (though with some algebra it can be simplified, by writing the binomial coefficients in terms of factorials and using the binomial theorem).
(b) Give a story proof derivation of the distribution of the number of Statistics majors in the sample; simplify fully.

Hint: Does it matter whether the students declare their majors before or after the random sample is drawn?

Bon Zapata
Bon Zapata
Numerade Educator
02:03

Problem 35

(s) Players A and B take turns in answering trivia questions, starting with player A answering the first question. Each time A answers a question, she has probability $p_{1}$ of getting it right. Each time B plays, he has probability $p_{2}$ of getting it right.
(a) If $\mathrm{A}$ answers $m$ questions, what is the PMF of the number of questions she gets right?
(b) If A answers $m$ times and B answers $n$ times, what is the PMF of the total number of questions they get right (you can leave your answer as a sum)? Describe exactly when/whether this is a Binomial distribution.
(c) Suppose that the first player to answer correctly wins the game (with no predetermined maximum number of questions that can be asked). Find the probability that A wins the game.

Sheryl Ezze
Sheryl Ezze
Numerade Educator
06:01

Problem 36

There are $n$ voters in an upcoming election in a certain country, where $n$ is a large, even number. There are two candidates: Candidate A (from the Unite Party) and Candidate $\mathrm{B}$ (from the Untie Party). Let $X$ be the number of people who vote for Candidate $\mathrm{A}$. Suppose that each voter chooses randomly whom to vote for, independently and with equal probabilities.
(a) Find an exact expression for the probability of a tie in the election (so the candidates end up with the same number of votes).
(b) Use Stirling's approximation, which approximates the factorial function as
$$
n ! \approx \sqrt{2 \pi n}\left(\frac{n}{e}\right)^{n}
$$
to find a simple approximation to the probability of a tie. Your answer should be of the form $1 / \sqrt{c n}$, with $c$ a constant (which you should specify).

Sheryl Ezze
Sheryl Ezze
Numerade Educator
01:15

Problem 37

(s) A message is sent over a noisy channel. The message is a sequence $x_{1}, x_{2}, \ldots, x_{n}$ of $n$ bits $\left(x_{i} \in\{0,1\}\right)$. Since the channel is noisy, there is a chance that any bit might be corrupted, resulting in an error (a 0 becomes a 1 or vice versa). Assume that the error events are independent. Let $p$ be the probability that an individual bit has an error $(0<p<1 / 2)$. Let $y_{1}, y_{2}, \ldots, y_{n}$ be the received message (so $y_{i}=x_{i}$ if there is no error in that bit, but $y_{i}=1-x_{i}$ if there is an error there).

To help detect errors, the $n$th bit is reserved for a parity check: $x_{n}$ is defined to be 0 if $x_{1}+x_{2}+\cdots+x_{n-1}$ is even, and 1 if $x_{1}+x_{2}+\cdots+x_{n-1}$ is odd. When the message is received, the recipient checks whether $y_{n}$ has the same parity as $y_{1}+y_{2}+\cdots+y_{n-1}$. If the parity is wrong, the recipient knows that at least one error occurred; otherwise, the recipient assumes that there were no errors.
(a) For $n=5, p=0.1$, what is the probability that the received message has errors which go undetected?
(b) For general $n$ and $p$, write down an expression (as a sum) for the probability that the received message has errors which go undetected.
(c) Give a simplified expression, not involving a sum of a large number of terms, for the probability that the received message has errors which go undetected.
Hint for (c): Letting
$$
a=\sum_{k \text { even, } k \geq 0}\left(\begin{array}{l}
n \\
k
\end{array}\right) p^{k}(1-p)^{n-k} \text { and } b=\sum_{k \text { odd, } k \geq 1}\left(\begin{array}{l}
n \\
k
\end{array}\right) p^{k}(1-p)^{n-k}
$$
the binomial theorem makes it possible to find simple expressions for $a+b$ and $a-b$, which then makes it possible to obtain $a$ and $b$.

Dominador Tan
Dominador Tan
Numerade Educator
07:10

Problem 38

(a) Give an example of dependent r.v.s $X$ and $Y$ such that $P(X<Y)=1$.
(b) Give an example of independent r.Y.s $X$ and $Y$ such that $P(X<Y)=1$.

Mengchun Cai
Mengchun Cai
Numerade Educator
01:23

Problem 39

Give an example of two discrete random variables $X$ and $Y$ on the same sample space such that $X$ and $Y$ have the same distribution, with support $\{1,2, \ldots, 10\}$, but the event $X=Y$ never occurs. If $X$ and $Y$ are independent, is it still possible to construct such an example?

SS
Sagar Singh
Numerade Educator
01:51

Problem 40

Suppose $X$ and $Y$ are discrete r.v.s such that $P(X=Y)=1$. This means that $X$ and $Y$ always take on the same value.
(a) Do $X$ and $Y$ have the same PMF?
(b) Is it possible for $X$ and $Y$ to be independent?

Aman Gupta
Aman Gupta
Numerade Educator
01:47

Problem 41

If $X, Y, Z$ are r.v.s such that $X$ and $Y$ are independent and $Y$ and $Z$ are independent, does it follow that $X$ and $Z$ are independent?

Jacob Fry
Jacob Fry
Numerade Educator
01:41

Problem 42

Let $X$ be a random day of the week, coded so that Monday is 1, Tuesday is 2, etc. (so $X$ takes values $1,2, \ldots, 7$, with equal probabilities). Let $Y$ be the next day after $X$ (again represented as an integer between 1 and 7). Do $X$ and $Y$ have the same distribution? What is $P(X<Y)$ ?

Wendi Zhao
Wendi Zhao
Numerade Educator
03:38

Problem 43

(a) Is it possible to have two r.v.s $X$ and $Y$ such that $X$ and $Y$ have the same distribution but $P(X<Y) \geq p$, where:
- $p=0.9$ ?
- $p=0.99$ ?
- $p=0.9999999999999$ ?
- $p=1$ ?
For each, give an example showing it is possible, or prove it is impossible.

Mengchun Cai
Mengchun Cai
Numerade Educator
02:12

Problem 44

For $x$ and $y$ binary digits $(0$ or 1$)$, let $x \oplus y$ be 0 if $x=y$ and 1 if $x \neq y$ (this operation is called exclusive or (often abbreviated to XOR), or addition mod 2).
(a) Let $X \sim \operatorname{Bern}(p)$ and $Y \sim \operatorname{Bern}(1 / 2)$, independently. What is the distribution of $X \oplus Y ?$
(b) With notation as in (a), is $X \oplus Y$ independent of $X ?$ Is $X \oplus Y$ independent of $Y ?$ Be sure to consider both the case $p=1 / 2$ and the case $p \neq 1 / 2$.
(c) Let $X_{1}, \ldots, X_{n}$ be i.i.d. Bern(1/2). For each nonempty subset $J$ of $\{1,2, \ldots, n\}$, let
$$
Y_{J}=\bigoplus_{j \in J} X_{j}
$$
where the notation means to "add" in the $\oplus$ sense all the elements of $J$; the order in which this is done doesn't matter since $x \oplus y=y \oplus x$ and $(x \oplus y) \oplus z=x \oplus(y \oplus z)$. Show that $Y_{J} \sim$ Bern $(1 / 2)$ and that these $2^{n}-1$ r.v.s are pairwise independent, but not independent. For example, we can use this to simulate 1023 pairwise independent

Nick Johnson
Nick Johnson
Numerade Educator
02:52

Problem 45

A new treatment for a disease is being tested, to see whether it is better than the standard treatment. The existing treatment is effective on $50 \%$ of patients. It is believed initially that there is a $2 / 3$ chance that the new treatment is effective on $60 \%$ of patients, and a $1 / 3$ chance that the new treatment is effective on $50 \%$ of patients. In a pilot study, the new treatment is given to 20 random patients, and is effective for 15 of them.
(a) Given this information, what is the probability that the new treatment is better than the standard treatment?
(b) A second study is done later, giving the new treatment to 20 new random patients. Given the results of the first study, what is the PMF for how many of the new patients the new treatment is effective on? (Letting $p$ be the answer to (a), your answer can be left in terms of $p .)$

Harsh Gadhiya
Harsh Gadhiya
Numerade Educator
View

Problem 46

Independent Bernoulli trials are performed, with success probability $1 / 2$ for each trial. An important question that often comes up in such settings is how many trials to perform. Many controversies have arisen in statistics over the issue of how to analyze data coming from an experiment where the number of trials can depend on the data collected so far.

For example, if we can follow the rule "keep performing trials until there are more than twice as many failures as successes, and then stop", then naively looking at the ratio of failures to successes (if and when the process stops) will give more than $2: 1$ rather than the true theoretical $1: 1$ ratio; this could be a very misleading result! However, it might never happen that there are more than twice as many failures as successes; in this problem, you will find the probability of that happening.
(a) Two gamblers, A and B, make a series of bets, where each has probability $1 / 2$ of winning a bet, but A gets $\$ 2$ for each win and loses $\$ 1$ for each loss (a very favorable game for A!). Assume that the gamblers are allowed to borrow money, so they can and do gamble forever. Let $p_{k}$ be the probability that $\mathrm{A}$, starting with $\$ k$, will ever reach $\$ 0$, for each $k \geq 0$. Explain how this story relates to the original problem, and how the original problem can be solved if we can find $p_{k}$.
(b) Find $p_{k}$.

James Kiss
James Kiss
Numerade Educator
01:05

Problem 47

A copy machine is used to make $n$ pages of copies per day. The machine has two trays in which paper gets loaded, and each page used is taken randomly and independently from one of the trays. At the beginning of the day, the trays are refilled so that they each have $m$ pages.
(a) Let pbinom $(x, n, p)$ be the CDF of the $\operatorname{Bin}(n, p)$ distribution, evaluated at $x$. In terms of pbinom, find a simple expression for the probability that both trays have enough paper on any particular day, when this probability is strictly between 0 and 1 (also specify the values of $m$ for which the probability is 0 and the values for which it is 1).
(b) Using a computer, find the smallest value of $m$ for which there is at least a $95 \%$ chance that both trays have enough paper on a particular day, for $n=10, n=100, n=1000$, and $n=10000$.
Hint: If you use $R$, you may find the following commands useful:
$\mathrm{g}$ <- function $(\mathrm{m}, \mathrm{n})$ [your answer from (a)] defines a function $g$ such that $g(m, n)$ is your answer from (a), $g(1: 100,100)$ gives the vector $(g(1,100), \ldots, g(100,100))$, which $(v>0.95)$ gives the indices of the components of vector $v$ that exceed $0.95$, and min(w) gives the minimum of a vector w.

Dominador Tan
Dominador Tan
Numerade Educator