Answer:Digits 0–9 each with probability 0.1 at every position; generated by physical devices, tables or pseudo-random formulas; used in simulation and random sampling.
Solution
**Random numbers** are sequences of the digits 0, 1, …, 9 in which each digit has probability 0.1 of appearing at any position, independently of the others.
**Generation:** physical devices (dice, coins, cards, numbered slips, spinning wheels); published random number tables; computer pseudo-random generators such as \(x_{n+1}=(a x_n+b)\bmod m\) with a seed \(x_0\).
**Applications:**
1. Simulation (Monte Carlo methods) of experiments that are costly, slow or impossible – queues, inventories, games, coin and dice experiments.
2. Selecting random samples from a population (each unit numbered, random numbers pick the units).
3. Random allocation of treatments in experiments.
4. Generating values from a given probability distribution (probability proportional to size).
Ex 8 · Q8.2LongNumerical5 marks
Three balls are drawn from a bag containing 5 white and 3 black balls. If X denotes the number of white balls drawn, find the probability distribution of X.
There are seven candidates for three typist positions. Four know Urdu typing and three do not. If three candidates are selected at random, find the probability distribution of the number of selected persons knowing Urdu typing.
Answer:A list/formula giving the probabilities of all values (or intervals) of a random variable. Discrete: isolated values (number of heads); continuous: any value in an interval (height).
Solution
A **probability distribution** of a random variable describes how the total probability 1 is distributed over its values: for a discrete variable a table or formula \(P(x)\) for each value (probability mass function); for a continuous variable a density curve \(f(x)\) whose areas give the probabilities of intervals (probability density function).
**Discrete random variable:** takes isolated values (counts) – e.g. number of heads in 4 tosses (0, …, 4), number of defective items.
**Continuous random variable:** takes any value in an interval (measurements) – e.g. height, weight, time, temperature; \(P(X=a)=0\) for any single value.
Ex 8 · Q8.4(ii)LongNumerical5 marks
A coin is tossed 4 times. If X denotes the number of tails, what is the probability distribution of X? Draw a probability histogram.
\(n(S)=2^4=16\) equally likely outcomes; the number of outcomes with \(x\) tails is \(\binom4x\).
\[\begin{array}{|c|c|c|c|c|c|}\hline x & 0 & 1 & 2 & 3 & 4 \\ \hline P(x) & \frac{1}{16} & \frac{4}{16} & \frac{6}{16} & \frac{4}{16} & \frac{1}{16} \\ \hline\end{array}\]
Check: \(\sum P(x)=\dfrac{16}{16}=1\).
**Histogram:** on the \(x\)-axis mark 0–4, draw adjacent rectangles of width 1 (from \(x-0.5\) to \(x+0.5\)) with heights \(\frac1{16},\frac4{16},\frac6{16},\frac4{16},\frac1{16}\) (0.0625, 0.25, 0.375, 0.25, 0.0625) – symmetrical about 2.
Ex 8 · Q8.4(iii)LongNumerical5 marks
A bag contains 4 red and 6 black balls. A sample of 4 balls is selected without replacement. Let X be the number of red balls; find the probability distribution of X.
Answer:A function \(P(x)\) giving the probability of each value of a discrete random variable, with \(0\le P(x)\le1\) and \(\sum P(x)=1\); e.g. number of heads in 3 tosses.
Solution
A **probability function (probability mass function)** of a discrete random variable \(X\) is a function \(P(x)=P(X=x)\) that gives the probability of each possible value, such that \(0\le P(x)\le1\) and \(\sum P(x)=1\).
**Example:** three coins are tossed, \(X\) = number of heads:
\[\begin{array}{|c|c|c|c|c|}\hline x & 0 & 1 & 2 & 3 \\ \hline P(x) & \frac{1}{8} & \frac{3}{8} & \frac{3}{8} & \frac{1}{8} \\ \hline\end{array}\]
It can be written as a formula \(P(x)=\binom3x\left(\frac12\right)^3\), \(x=0,1,2,3\).
Ex 8 · Q8.5(ii)LongNumerical5 marks
Two fair dice are thrown and Y denotes the product of the two scores. Obtain the probability distribution of Y.
Answer:Probability function: \(0\le P(x)\le1\), \(\sum P(x)=1\). Density: \(f(x)\ge0\), total area \(\int f(x)dx=1\).
Solution
**Probability (mass) function** of a discrete variable:
1. \(0\le P(x)\le1\) for each possible value \(x\);
2. \(\sum_{\text{all }x}P(x)=1\).
**Probability density function** of a continuous variable:
1. \(f(x)\ge0\) for all \(x\);
2. the total area under the curve is 1: \(\int_{-\infty}^{\infty}f(x)\,dx=1\).
Probabilities of intervals are areas: \(P(a<X<b)=\int_a^bf(x)\,dx\).
Ex 8 · Q8.6(ii)(a)ShortNumerical2 marks
Check whether \(f(y)=\tfrac14\) for \(y=1, 2, 3, 4, 5\) satisfies the conditions of a probability function.
Determine the value of \(c\) so that the function can serve as a probability function: (a) \(cy\) for \(y=1,2,3,4,5\) (b) \((1-c)c^y\) for \(y=0,1,2,\dots\)
Answer:(a) \(c=\tfrac1{15}\) (b) any \(c\) with \(0<c<1\)
Solution
(a) \(\sum cy=c(1+2+3+4+5)=15c=1\Rightarrow c=\dfrac1{15}\) (and then all values are positive).
(b) The values must be non-negative and \(\sum_{y=0}^{\infty}(1-c)c^y=(1-c)\dfrac1{1-c}=1\); the geometric series converges only for \(|c|<1\), and non-negativity needs \(0\le c<1\). So any \(0<c<1\) works.
Ex 8 · Q8.8ShortNumerical2 marks
A random variable \(Y\) takes values 0, 1, 2, 3 with probabilities \(\frac14(1+3\theta),\ \frac14(1-\theta),\ \frac14(1+2\theta),\ \frac14(1-4\theta)\). For what values of \(\theta\) is this a valid probability function?
Sum \(=\frac14(4+3\theta-\theta+2\theta-4\theta)=1\) for every \(\theta\). Each probability must be \(\ge0\):
\(1+3\theta\ge0\Rightarrow\theta\ge-\frac13\); \(1-\theta\ge0\Rightarrow\theta\le1\); \(1+2\theta\ge0\Rightarrow\theta\ge-\frac12\); \(1-4\theta\ge0\Rightarrow\theta\le\frac14\).
All hold when \(-\dfrac13\le\theta\le\dfrac14\).
Ex 8 · Q8.9(i)LongNumerical5 marks
Given \(P(x)=\frac1{126},\frac{20}{126},\frac{60}{126},\frac{40}{126},\frac5{126}\) for \(x=0,1,2,3,4\), verify that \(E(2X+3)=2E(X)+3\).
\(X\) has the distribution \(P(x)=0.125,0.500,0.200,0.050,0.125\) for \(x=-1,0,1,2,3\). Find (a) \(E(X)\) and \(\operatorname{Var}(X)\) (b) the distribution of \(Y=2X+1\) and, from it, \(E(Y)\) and \(\operatorname{Var}(Y)\).
The number of courses \(Y\) taught by a teacher has \(P(y)=0.1,0.2,0.3,0.3,0.1\) for \(y=1,\dots,5\). Find the probability that the teacher taught (i) 2 courses (ii) less than 4 courses (iii) between 2 and 5 courses (iv) at least 3 courses (v) at most 4 courses.
Answer:(i) 0.2 (ii) 0.6 (iii) 0.6 (iv) 0.7 (v) 0.9
Solution
(i) \(P(Y=2)=0.2\)
(ii) \(P(Y<4)=0.1+0.2+0.3=0.6\)
(iii) between 2 and 5 (exclusive): \(P(Y=3)+P(Y=4)=0.6\)
(iv) \(P(Y\ge3)=0.3+0.3+0.1=0.7\)
(v) \(P(Y\le4)=1-P(Y=5)=0.9\)
Ex 8 · Q8.11ShortNumerical2 marks
A box contains five slips marked 1, 2, 3, 4 and 5. Two slips are selected without replacement. List the possible values of (i) the sum of the two numbers (ii) the difference between the first and second number.
The 20 ordered pairs \((a,b)\), \(a\neq b\), from 1–5.
(i) smallest sum \(1+2=3\), largest \(4+5=9\); every value between occurs: \(\{3,4,5,6,7,8,9\}\).
(ii) \(a-b\) can be \(\pm1,\pm2,\pm3,\pm4\) (never 0 because the slips differ). Ignoring the sign the values are \(\{1,2,3,4\}\) (book's answer).
Ex 8 · Q8.12ShortNumerical2 marks
Four randomly selected students give their opinion about the teaching system as satisfactory (S) or not satisfactory (N). Let Y be the number saying satisfactory. Write the possible outcomes and the possible Y values.
Each student gives S or N, so there are \(2^4=16\) outcomes:
NNNN (0), NNNS (1), NNSN (1), NNSS (2), NSNN (1), NSNS (2), NSSN (2), NSSS (3), SNNN (1), SNNS (2), SNSN (2), SNSS (3), SSNN (2), SSNS (3), SSSN (3), SSSS (4)
(number in brackets = value of \(Y\)). \(Y\) takes the values 0, 1, 2, 3, 4 (with 1, 4, 6, 4, 1 outcomes).
Ex 8 · Q8.13Short2 marks
A point is randomly selected on the surface of a lake that has maximum depth 30 feet. Let Y be the depth at the selected point. What are the possible values of Y? Is Y discrete or continuous?
\(\int_0^1kx^2dx=\frac k3=1\Rightarrow k=3\).
\(P\left(\frac13<X<\frac12\right)=\int_{1/3}^{1/2}3x^2dx=\left[x^3\right]_{1/3}^{1/2}=\frac18-\frac1{27}=\frac{27-8}{216}=\dfrac{19}{216}\)
(As in Example 8.11; the book's answer page prints \(k=2\) and 13/216, which are slips.)
Ex 8 · Q8.16Long5 marks
What is a random variable? Distinguish between discrete and continuous random variables, giving examples.
Answer:A variable whose value depends on the outcome of a random experiment; discrete = isolated values (counts), continuous = any value in an interval (measurements).
Solution
A **random variable** is a variable whose values are determined by the outcomes of a random experiment (a real-valued function on the sample space).
**Discrete:** takes isolated values, usually whole numbers obtained by counting; described by a probability mass function. Examples: number of heads in 4 tosses, number of boys in a family, number of accidents.
**Continuous:** takes any value in an interval; obtained by measuring; described by a density curve, probabilities being areas. Examples: height, weight, lifetime of a bulb, depth of a lake.
Ex 8 · Q8.17ShortNumerical2 marks
Find the probability distribution of the number of boys in families with three children, assuming equal probabilities for boys and girls.
8 equally likely outcomes BBB, BBG, BGB, GBB, BGG, GBG, GGB, GGG; the number with \(x\) boys is \(\binom3x\).
\[\begin{array}{|c|c|c|c|c|}\hline x & 0 & 1 & 2 & 3 \\ \hline P(x) & \frac{1}{8} & \frac{3}{8} & \frac{3}{8} & \frac{1}{8} \\ \hline\end{array}\]
Check: \(\sum P(x)=\dfrac{8}{8}=1\).
Ex 8 · Q8.18LongNumerical5 marks
From a lot of 12 items, 4 of which are defective, 5 are chosen at random. If X is the number of defective items in the sample, write (i) the probability distribution of X (ii) \(P(X\le1)\) (iii) verify \(\sum P(x)=1\).
Answer:A random variable taking any value in an interval; its distribution is a density f(x) ≥ 0 with total area 1, probabilities being areas.
Solution
A **continuous random variable** can take every value in an interval of the real line (e.g. weight, time).
Its **probability distribution** is given by a **probability density function** \(f(x)\) such that \(f(x)\ge0\) and the total area under the curve is 1. The probability that \(X\) lies in \((a,b)\) is the area under \(f\) between \(a\) and \(b\): \(P(a<X<b)=\int_a^bf(x)\,dx\); the probability of any single value is 0.
Ex 8 · Q8.19(ii)ShortNumerical2 marks
Find the constant \(k\) so that \(f(x)=\frac1k\) for \(a\le x\le b\) (0 elsewhere) is a density function.
Answer:\(E(X)=\sum xP(x)\), the mean of the distribution. Properties: \(E(c)=c\), \(E(a+bX)=a+bE(X)\), \(E(X\pm Y)=E(X)\pm E(Y)\), \(E(XY)=E(X)E(Y)\) for independent X, Y.
Solution
The **expected value (mathematical expectation)** of a discrete random variable \(X\) is the weighted mean of its values with their probabilities as weights: \(E(X)=\mu=\sum xP(x)\). It is the long-run average value of \(X\) over many repetitions.
**Properties:**
1. \(E(c)=c\) for any constant \(c\).
2. \(E(cX)=cE(X)\) and \(E(a+bX)=a+bE(X)\); hence \(E(X-\mu)=0\).
3. \(E(X+Y)=E(X)+E(Y)\) and \(E(X-Y)=E(X)-E(Y)\).
4. If \(X\) and \(Y\) are independent, \(E(XY)=E(X)E(Y)\).
Also \(\operatorname{Var}(X)=E(X^2)-[E(X)]^2\).
Ex 8 · Q8.20(ii)LongNumerical5 marks
Given \(P(x)=\frac6{36},\frac{10}{36},\frac8{36},\frac6{36},\frac4{36},\frac2{36}\) for \(x=0,\dots,5\), compute the mean, variance, standard deviation and coefficient of variation.
\(\int\frac{x+1}8dx=\frac{(x+1)^2}{16}\). Check: \(\frac{25-9}{16}=1\).
(a) \(P(2<X<3.5)=\dfrac{4.5^2-3^2}{16}=\dfrac{11.25}{16}=0.703125\)
(b) \(P(2.4<X<3.5)=\dfrac{4.5^2-3.4^2}{16}=\dfrac{8.69}{16}=0.543125\)
(c) \(P(X=1.5)=0\) – a single point has zero probability (and 1.5 is outside the range).
Ex 8 · Q8.22(ii)ShortNumerical2 marks
\(X\) has density \(f(x)=2x\), \(0\le x\le1\). Find (a) \(P(X=\frac12)\) (b) \(P(X>\frac14)\) (c) \(P(\frac14<X<\frac12)\).
Answer:(i) \(a=\tfrac1{210}\) (ii) 0.4929 (iii) 0.6476 (iv) 0.6857
Solution
(i) \(\int_2^8a(x+30)dx=a\left[\frac{(x+30)^2}2\right]_2^8=a\,\frac{1444-1024}2=210a=1\Rightarrow a=\frac1{210}\).
With \(\int\frac{x+30}{210}dx=\frac{(x+30)^2}{420}\):
(ii) \(\dfrac{36^2-33^2}{420}=\dfrac{207}{420}=0.4929\)
(iii) \(\dfrac{36^2-32^2}{420}=\dfrac{272}{420}=0.6476\)
(iv) \(\dfrac{38^2-34^2}{420}=\dfrac{288}{420}=0.6857\) (book: 0.6851)
Ex 8 · Q8.24ShortNumerical2 marks
In summer a dealer of desert room coolers earns Rs 800 per day if the day is hot, Rs 200 if it is fair and loses Rs 50 if it is cloudy. Find his mathematical expectation if P(hot) = 0.40 and P(cloudy) = 0.35.
Answer:P.f.: \(0\le P(x)\le1\), \(\sum P(x)=1\). P.d.f.: \(f(x)\ge0\), total area 1.
Solution
**Probability function** (discrete): (1) \(0\le P(x)\le1\) for every value; (2) \(\sum P(x)=1\). Probability of an event = sum of the probabilities of its values.
**Probability density function** (continuous): (1) \(f(x)\ge0\) everywhere; (2) total area under the curve \(\int_{-\infty}^{\infty}f(x)dx=1\). Probability of an interval = area under the curve over it; \(P(X=a)=0\), so \(P(a\le X\le b)=P(a<X<b)\).
Answer:\(F(x)=P(X\le x)\); non-decreasing from 0 to 1.
Solution
The **distribution function** (cumulative distribution function) of a random variable \(X\) gives, for every real number \(x\), the probability that \(X\) does not exceed \(x\): \(F(x)=P(X\le x)\).
Discrete: \(F(x)=\sum_{t\le x}P(t)\) – a step function jumping by \(P(x)\) at each value. Continuous: \(F(x)=\int_{-\infty}^xf(t)dt\) – the area to the left of \(x\).
Properties: \(F(-\infty)=0\), \(F(\infty)=1\); \(F\) is non-decreasing; it is right-continuous; \(P(a<X\le b)=F(b)-F(a)\).
Ex 8 · Q8.27(ii)LongNumerical5 marks
10 vegetable cans of the same size have lost their labels; 5 contain tomatoes and 5 corn. If 5 cans are selected at random, find the probability distribution and the distribution function of the number of tomato cans in the sample.
The **expected value** of a discrete random variable \(X\) is \(E(X)=\sum xP(x)\), the sum of each value multiplied by its probability; it is the mean \(\mu\) of the probability distribution (the long-run average of \(X\)). For a continuous variable \(E(X)=\int xf(x)\,dx\).
Ex 8 · Q8.28(ii)ShortNumerical2 marks
The daily number of automobile accidents in a city is 1, 2, 3, 4 with probabilities 1/8, 2/8, 2/8 and 3/8. What is the expected number of daily accidents?
\(E(X)=1\cdot\frac18+2\cdot\frac28+3\cdot\frac28+4\cdot\frac38=\frac{1+4+6+12}8=\frac{23}8=2.875\)
(The book's answer page prints 1.875, which corresponds to the values 0, 1, 2, 3.)
Ex 8 · Q8.29LongNumerical5 marks
A and B throw a die in turn for a prize of Rs 11, to be won by the player who first throws a 6. If A has the first throw, what are their respective expectations?
\(p=\frac16,q=\frac56\). A wins on throws 1, 3, 5, …: \(P(A)=p+q^2p+q^4p+\dots=\dfrac{p}{1-q^2}=\dfrac{1/6}{11/36}=\dfrac6{11}\); \(P(B)=\dfrac5{11}\).
Expectations: A \(=11\times\frac6{11}=\text{Rs }6\); B \(=11\times\frac5{11}=\text{Rs }5\).
Ex 8 · Q8.30LongNumerical5 marks
A bag contains 2 white and 2 black balls. A, B and C in turn draw a ball without replacement. The person who first draws a white ball receives Rs 12. What are their respective expectations?
\(P(A)=\frac24=\frac12\); \(P(B)=\frac24\cdot\frac23=\frac13\); \(P(C)=\frac24\cdot\frac13\cdot1=\frac16\) (after two blacks only whites remain).
Expectations: A \(=12\times\frac12=6\), B \(=12\times\frac13=4\), C \(=12\times\frac16=2\) rupees.
Ex 8 · Q8.31LongNumerical5 marks
Three balls are drawn from a bag containing 5 white and 3 black balls. If X denotes the number of white balls drawn, find the probability distribution of X and its mean and variance.
A coin is biased so that a head is thrice as likely as a tail. Find the probability distribution of the number of heads and its mean and variance when the coin is tossed 4 times.
\(P(H)=3P(T)\) and \(P(H)+P(T)=1\Rightarrow P(H)=\frac34,\ P(T)=\frac14\). \(P(X=x)=\binom4x\left(\frac34\right)^x\left(\frac14\right)^{4-x}=\dfrac{\binom4x3^x}{256}\):
\[\begin{array}{|c|c|c|c|c|c|}\hline x & 0 & 1 & 2 & 3 & 4 \\ \hline P(x) & \frac{1}{256} & \frac{12}{256} & \frac{54}{256} & \frac{108}{256} & \frac{81}{256} \\ \hline\end{array}\]
\(E(X)=\frac{0+12+108+324+324}{256}=\frac{768}{256}=3\); \(E(X^2)=\frac{0+12+216+972+1296}{256}=\frac{2496}{256}=9.75\); \(\operatorname{Var}=9.75-9=0.75\)
(These equal \(np=3\) and \(npq=0.75\) of the binomial distribution, Chapter 9.)
Ex 8 · Q8.33ShortNumerical2 marks
About 10% of glass bottles from a production line have serious defects. If two bottles are selected at random, find the expected number of bottles having serious defects.
\(X\) = number of defective bottles in 2: \(P(0)=0.9^2=0.81\), \(P(1)=2(0.1)(0.9)=0.18\), \(P(2)=0.1^2=0.01\).
\(E(X)=0(0.81)+1(0.18)+2(0.01)=0.20\); \(E(X^2)=0.18+0.04=0.22\), \(\operatorname{Var}=0.22-0.04=0.18\)
(The book's table prints P(2) = 0.1; it should be 0.01.)
Ex 8 · Q8.34LongNumerical5 marks
\(X\) takes the values −3, −2, 2, 3, 4 with probabilities 1/5, 1/10, 1/10, 1/5, 2/5. Compute \(E(X)\), show that \(E(5X+10)=5E(X)+10\), compute \(\operatorname{Var}(X)\) and \(\operatorname{Var}(5X+10)\) and find the ratio of the two variances.
\(f(x)=\frac1{36},\frac2{36},\dots,\frac6{36},\dots,\frac1{36}\) for \(x=2,\dots,12\) (the sum of two dice).
\(\sum xf(x)=\frac{252}{36}=7\); \(\sum x^2f(x)=\frac{1974}{36}=54.833\); \(\operatorname{Var}=54.833-49=5.833=\frac{35}6\)
Ex 8 · Q8.36ShortNumerical2 marks
For the distribution \(P(x)=\frac15,\frac3{10},\frac12\) at \(x=-10,-20,30\), find (i) \(E(X)\) (ii) \(E(X^2)\) (iii) \(E[X-E(X)]^2\).
(i) \(E(X)=-10\left(\frac15\right)-20\left(\frac3{10}\right)+30\left(\frac12\right)=-2-6+15=7\)
(ii) \(E(X^2)=100\left(\frac15\right)+400\left(\frac3{10}\right)+900\left(\frac12\right)=20+120+450=590\)
(iii) \(E[X-E(X)]^2=\operatorname{Var}(X)=590-49=541\)
Ex 8 · Q8.37LongNumerical5 marks
Define expectation of a random variable. If \(f(x)=\binom3x\left(\frac14\right)^x\left(\frac34\right)^{3-x}\), \(x=0,1,2,3\), find \(E(X)\) and \(E(X^2)\).
Expectation \(E(X)=\sum xf(x)\) – the mean of the distribution.
\(f(0)=\frac{27}{64},\ f(1)=\frac{27}{64},\ f(2)=\frac9{64},\ f(3)=\frac1{64}\).
\(E(X)=\frac{0+27+18+3}{64}=\frac{48}{64}=0.75\); \(E(X^2)=\frac{0+27+36+9}{64}=\frac{72}{64}=1.125\)
Ex 8 · Q8.38(i)ShortTrue/False1 mark
A random variable is also named as a chance variable. (True / False)
False – it is shown by a bar (line) chart or probability histogram; area under a curve represents a continuous distribution. (The book's key prints T.)
Ex 8 · Q8.38(ix)ShortTrue/False1 mark
If X and Y are independent random variables then E(XY) = E(X) E(Y). (True / False)