Probability: Class 12 Maths · Chapter 13
Updating chances when you learn something new
Mathematics Part 2 · Companion notes, simulations and practice · Official NCERT chapter PDF ↗
Published · Updated
What you will learn in Probability
- Find the conditional probability P(E|F) by shrinking the sample space to F, or from P(E ∩ F)/P(F), and use its properties
- Use the multiplication rule to find the probability that two or three events all happen, including draws without replacement
- Decide whether two or three events are independent, and keep independent and mutually exclusive events apart
- Recognise a partition of a sample space and use the theorem of total probability
- Use Bayes' theorem to update a prior probability into a posterior one, with trees and natural frequencies as checks
- Describe a random variable as a real-valued function on a sample space and list the values it takes
Original companion text aligned to NCERT Mathematics Class 12, Chapter 13, pp. 406–438. Not affiliated with or endorsed by NCERT.
13.1 Introduction
Will it rain on the day of the inter-house sports meet? Will the 8:15 local reach Dadar on time? Since Class 9 you have put a number between 0 and 1 on questions like these. In Class 11 you computed it in two ways: by counting equally likely outcomes, and from Kolmogorov's axioms, which treat probability as a function defined on events. You also met the addition rule, which gives as minus the overlap .
Real judgements rarely start from zero information. A forecaster revises the chance of rain once clouds gather; a doctor weighs a test report before naming an illness. This chapter is about probability when we learn something: conditional probability, the multiplication rule, independence, and Bayes' theorem, which reasons backwards from an effect to its likely cause. It closes with a first look at random variables. Unless a problem says otherwise, the outcomes of each experiment are equally likely.
Warm up with two dice. Ordered pairs from to give 36 equally likely outcomes, and six of them have a total above 9. The classical probability of a total above 9 is therefore . The lab below rolls the dice for you, so you can watch the relative frequency approach that value.
A two-dice probability lab. Buttons roll the pair once, 10, 100 or 1000 times. A bar chart shows how often each total from 2 to 12 has come up, beside its theoretical probability, and a readout compares the relative frequency of a total greater than 9 with the theoretical value one sixth. Nothing moves until the learner presses a roll button.
- Roll 100 at a time until you have about 1000 rolls. Is the share of totals above 9 close to ?
- Which total comes up most often? Count how many of the 36 ordered pairs give it.
- Before Section 13.2: among rolls with a total above 9, what fraction do you expect to contain a 6?
Show answer
Answer 0.1111
Show answer
Answer (B)
13.2 Conditional Probability
In a board game you need a 6 on either of two dice. The dice are still under the cup when a friend peeks and says, the total is at least 10. Is that good news? Before the hint, the chance of at least one 6 is , a little under a third. After it, only six outcomes remain: , , , , and . Five of these contain a 6, so the chance has jumped to (Fig. 13.2).
2/3Event , a total of 10 or more, leaves only 6 possible outcomes.
A grid of 36 cells, one for each ordered pair of throws, with the first die down the side and the second die along the top; each cell shows the total. In the first step the 11 cells that contain a 6, the last row and the last column, are ringed, and the panel reads E, a 6 shows, 11 of 36 cells. In the second step the six cells with a total of 10, 11 or 12, in the bottom right corner, are outlined and the other cells fade; the panel says only 6 cells are possible now. In the third step the other cells almost vanish, leaving a new sample space of 6 cells, and 5 of them are ringed, so the conditional probability is five sixths.
Let us name the events. is at least one die shows 6 and is the total is 10 or more. Once we know has happened, every outcome outside is ruled out, and itself becomes the sample space. The outcomes of that survive are exactly those of . We write the new probability as , read the probability of given .
Divide the top and the bottom by and the counts become probabilities: . This second form does not need equally likely outcomes, so it serves as the definition.
Take two events and of one sample space, with . The conditional probability of given is the share of 's probability that also lies in : .
ExampleTwo dice: .
- the probability that and both happen
- the probability of the condition
Why insist on ? Conditioning on an impossible event gives , which has no value. Notice too that the condition sits on the right of the bar and changes the denominator. Here , a different number from .
13.2.1 Properties of conditional probability
Fix an event with . The rule then behaves like an ordinary probability on the smaller sample space . Three properties make this precise.
.
For any events and , equals minus . When and are disjoint the last term is zero.
.
One more consequence: is part of , so , and therefore , as every probability must be.
Reading the formula both ways
Events and have , and . Find and .
Try it yourself first. Then reveal the solution one step at a time.
Three children, at least two girls
A family has three children. Assume each child is equally likely to be a girl or a boy, independently of the others. Given that at least two of the children are girls, find the probability that all three are girls.
Try it yourself first. Then reveal the solution one step at a time.
A token that is a perfect square
Tokens numbered 1 to 30 are mixed in a bag for a lucky draw, and one is drawn at random. It turns out to be a perfect square. What is the probability that it is odd?
Try it yourself first. Then reveal the solution one step at a time.
Bus riders in Class 12
A school has 1200 students. Of them, 520 come by the school bus, and 156 of the bus riders are in Class 12. A student chosen at random turns out to be a bus rider. Find the probability that the student is in Class 12.
Try it yourself first. Then reveal the solution one step at a time.
After three tails
A fair coin is tossed four times. The first three tosses all show tails. Find the probability that the fourth toss shows a head.
Try it yourself first. Then reveal the solution one step at a time.
A product of 12
A die is thrown twice and the product of the two numbers is 12. What is the probability that one of the throws was a 6?
Try it yourself first. Then reveal the solution one step at a time.
So far every outcome was equally likely. The definition works just as well when they are not; we then add the probabilities of outcomes instead of counting them. Experiments that happen in stages are best drawn as a tree diagram: one branch for each result of a stage, labelled with its probability given everything before it. Multiplying along a path gives the probability of that path (Fig. 13.3).
3/3No head leaves of the probability; the two 6-paths carry of it.
A tree that starts at a dot on the left. Three branches lead to the die results 6, 5 and 1 to 4, with probabilities one sixth, one sixth and two thirds. From 6 and from 5, branches lead to red with one third and green with two thirds; from 1 to 4, branches lead to head and tail with one half each. In the second step the probability of each path appears beside its leaf: one eighteenth, one ninth, one eighteenth, one ninth, one third and one third. In the third step the head leaf fades, the five leaves with no head are outlined, a brace marks the two leaves after a 6 as E and F together, and the result reads P of E given F equals one quarter.
A die, then a ball or a coin
Meera throws a die. If it shows 5 or 6, she draws a ball from a bag with 1 red and 2 green balls; otherwise she tosses a coin. Find the probability that the die showed 6, given that no head appeared.
Try it yourself first. Then reveal the solution one step at a time.
Show answer
Answer (C)
Show answer
Answer False
Show answer
Answer 0.7
Show answer
Answer F
Practice 13.1: questions with answers
Events and have , and . Find and .
Show solution
Answer and
.
.
If and , find .
Show answer
Answer 0.45
., and .
Find .
Show answer
Answer 0.3
Multiply by : .Find .
Show answer
Answer 0.6667
.Find .
Show answer
Answer 0.75
.
Find if and .
Show solution
Answer
and .
.
So is .
, and . Find (a) , (b) , (c) .
Show solution
Answer, ,
(a) Read the addition rule backwards: the overlap is .
(b) .
(c) .
A coin is tossed four times. Find in each case.
: tail on the fourth toss; : tails on each of the first three tosses.
Show answer
Answer 0.5
and , so .: exactly two heads; : at least one head.
Show answer
Answer 0.4
has outcomes. Exactly two heads happens in of them, so .: at least three heads; : head on the first toss.
Show answer
Answer 0.5
Given a first head, we need at least two heads in the last three tosses: of 8 outcomes, so .
A coin is tossed and a die is thrown. Find .
: the die shows 6; : the coin shows a head.
Show answer
Answer 0.16667
has six outcomes and one of them has a 6: .: a head and a number above 4; : the coin shows a tail.
Show answer
Answer 0
needs a head and says tail, so and .
A die is thrown four times. : the fourth throw shows more than 4. : each of the first three throws shows 1. Find .
Show answer
Answer 0.3333
fixes the first three throws, leaving 6 equally likely values for the fourth; two of them (5, 6) are more than 4. So .Four friends, Asha, Bina, Charu and Dev, sit at random in a row of four seats. : Asha sits at one end. : Bina sits in the second seat. Find .
Show solution
Answer
Given , the other three friends fill seats 1, 3 and 4 in equally likely ways.
Asha is at an end (seat 1 or seat 4) in of them.
So .
A white die and a blue die are rolled together.
Find the probability that the total is at least 8, given that the white die shows 4.
Show answer
Answer 0.5
The blue die must show 4, 5 or 6: .Find the probability that the total is 5, given that the blue die shows an odd number.
Show answer
Answer 0.1111
has outcomes. A total of 5 needs white 4 with blue 1, or white 2 with blue 3 (blue 5 would need white 0). So .
A fair die is thrown. Let , and . Find (a) and , (b) and , (c) and .
Show solution
Answer(a) , (b) , (c) ,
(a) : and .
(b) : and .
(c) meets in , so . meets in , so .
A cricket team wins or loses each of its next two matches with equal chance, independently (no ties). Find the probability that it wins both, given that
it wins the first match;
Show answer
Answer 0.5
Given , only works: .it wins at least one match.
Show answer
Answer 0.3333
Given , only works: .
A school library has 240 Hindi fiction books, 160 Hindi non-fiction books, 360 English fiction books and 440 English non-fiction books. A book is picked at random and it is in English. What is the probability that it is fiction?
Show answer
Answer 0.45
There are English books and 360 of them are fiction: .Two dice are thrown and the two numbers are different. Find the probability that their product is 12.
Show answer
Answer 0.1333
Different numbers: outcomes. Product 12: , all with different numbers. So .A die is thrown. If it shows an even number, it is thrown again; if it shows an odd number, a coin is tossed. Find the probability that a head appears, given that the first throw is less than 3.
Show solution
Answer
Let be first throw less than 3, so .
A head needs a first throw of 1 (odd, so a coin is tossed) and then a head: . A first throw of 2 leads to a die, never a coin.
.
and is an impossible event. Then is
Show answer
Answer (D) not defined
, and the definition needs ; the fraction would be . So is not defined.and are events with . Which of these must be true?
Show answer
Answer (C)
Both fractions share the numerator , which is not zero here. Equal fractions with the same non-zero numerator have equal denominators, so . The events need not be equal or nested, and disjoint events would make both sides 0.
13.3 Multiplication Theorem on Probability
Often we want the chance that two things both happen: the first two toffees taken from a packet are orange, or a train is late and it is raining. The event both and is , sometimes written . Turning the definition of conditional probability around lets us find it one stage at a time.
From (13.1), whenever . Exchange the roles of the two events and use : the same probability is also times , provided .
- the chance of once has happened
This is the multiplication rule of probability. On a tree diagram it is the instruction multiply along the path: the first factor is the chance of the first branch, and the second is the chance of the next branch given the first (Fig. 13.4).
3/3Both orange: multiply along that path, in all.
A tree for drawing two toffees from a packet of 8 mango and 4 orange toffees. In the first step only the first draw is shown: mango with 8 out of 12 and orange with 4 out of 12. In the second step the second draw appears: after a mango, mango has 7 out of 11 and orange 4 out of 11; after an orange, mango has 8 out of 11 and orange 3 out of 11. In the third step the path orange then orange is drawn thick, the other branches fade, and the four path products are shown: 14 over 33, 8 over 33, 8 over 33 and 4 over 12 times 3 over 11, which is 1 over 11.
Two orange toffees
A packet holds 8 mango and 4 orange toffees. Two toffees are taken out one after the other, and the first is not put back. What is the probability that both are orange?
Try it yourself first. Then reveal the solution one step at a time.
For three events we apply the rule twice. Each new factor is conditioned on everything that has already happened, and the pattern continues for four or more events.
A raffle draw
Six of the 20 tickets in a school raffle box win a prize. Three tickets are drawn one after another without replacement. Find the probability that the first two tickets win and the third does not.
Try it yourself first. Then reveal the solution one step at a time.
Show answer
Answer 0.142857
Show answer
Answer (A)
- multiply the three
- red on draw 1
- blue on draw 3, given 2 reds
- red on draw 2, given red
Show answer
- red on draw 1
- red on draw 2, given red
- blue on draw 3, given 2 reds
- multiply the three
13.4 Independent Events
Draw a ticket at random from a box numbered 1 to 20. Let be the number is even and be the number is a multiple of 5. Then . If you are told that happened, the ticket is one of 5, 10, 15 and 20, and two of these are even, so . The news about did not change the chance of . It works the other way too: and .
Now use a box numbered 1 to 15 with the same two descriptions. This time , but among 5, 10 and 15 only 10 is even, so . The events sound identical in both boxes, yet only the first pair is unaffected by each other. Independence is a fact about probabilities, not about whether two events feel connected.
Events and are independent if (when ) and (when ): learning that one has happened leaves the probability of the other unchanged.
ExampleTickets 1–20: even and multiple of 5.
By the multiplication rule, , and for independent events the second factor is simply . The resulting product form needs no condition on or , so it is the working definition.
Events that fail this test are called dependent: . Two experiments are called independent when every event of the first is independent of every event of the second, as with a coin toss and a die throw, or two separate throws of one die.
An area picture helps (Fig. 13.5). Draw the sample space as a unit square in which area stands for probability, and let be its left half. is independent of exactly when covers the same fraction of as it does of the whole square.
2/4 crosses in proportion: the overlap, , is the product.
A unit square stands for the sample space, with area equal to probability. In the first step the left half is shaded as event E, with probability one half. In the second step a band along the bottom, one fifth of the height, is event F; it crosses E, and the overlap is hatched, with area one tenth, equal to P of E times P of F, so the panel says independent. In the third step the complement of F, the top four fifths, is outlined, and its overlap with E has area two fifths, again the product, so E and F prime are independent too. In the fourth step F is redrawn as a box of the same area entirely inside the right half, so it does not meet E: the overlap is 0 while the product is one tenth, and the panel says exclusive, so dependent.
Independent or mutually exclusive?
Independent
- Defined through probabilities: .
- Can share outcomes; with positive probabilities they must.
- Knowing one tells you nothing new about the other.
Mutually exclusive
- Defined through the sets: .
- Share no outcome at all.
- Knowing one happened tells you the other did not.
So two events with non-zero probabilities can never be both. If then , while . Mutually exclusive events of this kind are always dependent.
One die, two descriptions
A die is thrown. Let be the number is at most 2 and be the number is odd. Are and independent? What changes if is at most 3 instead?
Try it yourself first. Then reveal the solution one step at a time.
A six first, and a total of 7
Two dice are thrown. Let be the first die shows 6 and be the total is 7. Check whether and are independent.
Try it yourself first. Then reveal the solution one step at a time.
Which pairs are independent?
Two dice are thrown. : a double (both dice equal). : the total is 8. : the first die is even. Which of the pairs , , are independent?
Try it yourself first. Then reveal the solution one step at a time.
Complements of independent events
Show that independence survives taking a complement: whenever and are independent, so are and .
Try it yourself first. Then reveal the solution one step at a time.
At least one of two
Show that if and are independent, the probability that at least one of them happens is . A jewellery shop has two alarms that work independently; in a break-in they stay silent with probabilities 0.1 and 0.2. Find the probability that at least one rings.
Try it yourself first. Then reveal the solution one step at a time.
Show answer
Answer (D) dependent
Show answer
Answer 0.65
Show answer
Answer False
Show answer
- (A) a heart and a king
- (B) a red card and a face card
Practice 13.2: questions with answers
and are independent events with and . Find .
Show answer
Answer 0.2
.Two cards are drawn one after the other, without replacement, from a well-shuffled pack of 52. Find the probability that both are face cards (jack, queen or king).
Show solution
Answer
and .
By the multiplication rule the answer is , about 0.05.
A crate of 20 mangoes contains 4 bruised ones. An inspector takes 3 mangoes at random, without replacement, and accepts the crate only if none of them is bruised. Find the probability that the crate is accepted.
Show solution
Answer
There are 16 good mangoes, and the three draws must all be good: multiply , and to get .
So the crate passes a little less than half the time.
A coin is tossed and a spinner with five equal sectors numbered 1 to 5 is spun. : the coin shows a tail. : the spinner shows an odd number. Are and independent?
Show solution
AnswerYes
, , and , so .
Since , the events are independent, as we expect for two separate devices.
On a die, the faces 1 and 2 are painted blue and the faces 3, 4, 5 and 6 yellow. The die is thrown. : the number is odd. : the face is blue. Are and independent?
Show solution
AnswerYes
and . The only odd blue face is 1, so .
, so they are independent: half the blue faces are odd, just as half of all faces are.
, and . Are and independent?
Show answer
Answer (A) Yes
, so they are independent., and . Find if and are
mutually exclusive;
Show answer
Answer 0.3
, so .independent.
Show answer
Answer 0.5
, so and .
and are independent with and . Find (a) , (b) , (c) , (d) .
Show solution
Answer, , ,
(a) . (b) .
(c) . (d) .
, and . Find .
Show answer
Answer 0.58333
, so the chance of neither is ., , and the probability that and do not both happen is . Are and independent?
Show solution
AnswerYes
Not both is the event , so .
. The two agree, so and are independent.
and are independent with and . Find the probability of
and ;
Show answer
Answer 0.14
.and not ;
Show answer
Answer 0.56
.or ;
Show answer
Answer 0.76
.neither nor .
Show answer
Answer 0.24
, which is also .
A die is thrown four times. Find the probability of getting at least one 6.
Show answer
Answer 0.51775
The throws are independent, so , and .A jar holds 7 white and 5 blue marbles. Two marbles are drawn at random with replacement. Find the probability that
both are white;
Show answer
Answer 0.34028
.the first is blue and the second white;
Show answer
Answer 0.24306
.exactly one of them is blue.
Show answer
Answer 0.48611
Blue–white or white–blue: .
Riya and Kabir try a puzzle independently. Riya solves it with probability and Kabir with probability . Find the probability that
the puzzle is solved;
Show answer
Answer 0.7
.exactly one of them solves it.
Show answer
Answer 0.55
Riya alone: . Kabir alone: . Together .
One card is drawn from a well-shuffled pack of 52. In which cases are and independent? (a) : a club, : a card numbered 2 to 5. (b) : a diamond or a club, : a card numbered 2 to 10. (c) : an ace or a king, : a king or a queen.
Show solution
Answer(a) and (b)
(a) , , ; and . Independent.
(b) , , , which equals the product. Independent.
(c) , but is the four kings: . Dependent.
In a housing society, 55% of the residents watch a cricket match on TV, 35% follow it on a phone app and 15% do both. A resident is chosen at random.
Find the probability that the resident does neither.
Show answer
Answer 0.25
, so neither: .If the resident watches on TV, find the probability that they also use the app.
Show answer
Answer 0.27273
.If the resident uses the app, find the probability that they also watch on TV.
Show answer
Answer 0.42857
.
Two dice are thrown. The probability that each die shows a perfect square is
Show answer
Answer (B)
The squares are 1 and 4, so each die succeeds with . The dice are independent: .Which condition guarantees that and are independent?
Show answer
Answer (A) and are independent
If and are independent, then by Example 13 so are and . The conditions and describe exclusive events, which are dependent when both probabilities are positive, and says nothing about the overlap.
13.5 Bayes' Theorem
Two boxes of pens sit on a teacher's desk. Box I holds 4 blue and 2 black pens; Box II holds 3 blue and 5 black. A student picks a box at random and pulls out a pen without looking. The forward question is easy: if the pen came from Box II, it is black with probability . Now turn it round. You see only that the pen is black. How likely is it that it came from Box II? We are reasoning backwards, from an observed effect to its possible cause.
The English minister and mathematician Thomas Bayes found how to answer such inverse questions. His essay was read to the Royal Society in 1763, two years after his death, by his friend Richard Price. Two ideas come first: a partition of the sample space, and the theorem of total probability.
13.5.1 Partition of a sample space
We say that events partition when (a) no two of them overlap, for ; (b) their union is all of ; and (c) each one has positive probability, .
ExampleFor one die: , , .
Whatever the outcome, exactly one part of a partition happens. In the pen problem, Box I is chosen and Box II is chosen are the two parts; the three suppliers of Example 19 give a partition with three parts. Any event with , taken with , is a partition too, and two events and give a finer one: those of the four pieces , , , that have positive probability. Since one sample space can be cut up in many ways, we choose the partition whose parts are the possible causes.
Fig. 13.6 draws a partition into three events as vertical strips whose widths are , and . Another event then cuts a piece out of each strip, and the height of the piece in strip is .
3/4Adding the pieces of , , gives in all.
A rectangle stands for the sample space, with area equal to probability. In the first step it is divided into three vertical strips E1, E2 and E3 whose widths are 0.5, 0.3 and 0.2, labelled under the rectangle. In the second step a hatched piece of event A appears at the bottom of each strip, with heights 0.3, 0.6 and 0.2, which are the conditional probabilities of A in each strip. In the third step the pieces show their areas 0.15, 0.18 and 0.04, and the label reads P of A equals 0.37. In the fourth step only the middle piece stays bright and the label reads P of E2 given A equals 0.18 over 0.37, about 0.49.
13.5.2 Theorem of total probability
Suppose the events partition , and is any event. Then equals the sum of the products , one for each part.
In the strip picture each piece of is a rectangle of width and height , so the theorem adds up areas. On a tree diagram it adds the probabilities of all the paths that end in (Fig. 13.7).
3/3Either route can end on time, so add the two paths: in all.
A tree with two first branches: fog with 0.3 and clear with 0.7. After fog the train is on time with 0.4 and late with 0.6; after a clear morning it is on time with 0.85 and late with 0.15. In the second step the path probabilities appear beside the leaves: 0.12, 0.18, 0.595 and 0.105. In the third step the two on-time paths are highlighted, the late paths fade, and the label reads sum 0.715.
Fog and the morning train
On a December morning in Delhi there is dense fog with probability 0.3. A certain train arrives on time with probability 0.4 on a foggy morning and 0.85 on a clear one. Find the probability that the train arrives on time.
Try it yourself first. Then reveal the solution one step at a time.
Bayes' theorem
Suppose the events partition and is an event with . Then for each , equals divided by .
- the total probability of the evidence, , from (13.5)
Read Bayes' theorem as a share. The numerator is the probability of the one path through that ends in ; the denominator is the probability of all the paths that end in . In the last step of Fig. 13.6 it is the area of one piece of divided by the area of all of .
Which box did the pen come from?
Box I holds 4 blue and 2 black pens; Box II holds 3 blue and 5 black. A box is chosen at random and a pen drawn from it is black. Find the probability that it came from Box II.
Try it yourself first. Then reveal the solution one step at a time.
Three pouches of coins
Three identical pouches each hold three coins. Pouch I has 3 gold coins, Pouch II has 1 gold and 2 silver, and Pouch III has 3 silver. A pouch is chosen at random and one coin taken from it is gold. What is the probability that the two coins still in that pouch are both gold?
Try it yourself first. Then reveal the solution one step at a time.
A positive screening test
A screening test is used for a condition that affects 1% of a population. If a person has the condition, the test is positive with probability 0.98; if not, it still gives a false positive with probability 0.03. A person chosen at random tests positive. What is the probability that the person has the condition?
Try it yourself first. Then reveal the solution one step at a time.
3/3Only 98 of the 395 positive tests belong to ill people: about 0.25.
A tree of counts. At the top is a box for 10 000 people. It splits into 100 ill and 9 900 well. In the second step each splits by test result: the 100 ill give 98 positive and 2 negative tests; the 9 900 well give 297 positive and 9 603 negative tests. In the third step the negative boxes fade and a bar at the bottom shows all 395 positive tests, a short part for the 98 ill people and a long part for the 297 well people.
The surprise in Example 18 is common in medicine, airport security and spam filters. When a condition is rare, even a good test meets far more healthy people than ill ones, so its few false alarms can outnumber its true alarms. The lab below lets you move the three numbers and watch the posterior respond.
Which supplier made the faulty battery?
A phone factory buys batteries from three suppliers: 45% from the first, 35% from the second and 20% from the third. Their batteries are faulty 2%, 3% and 4% of the time. A battery picked at random from the store is faulty. Find the probability that it came from the second supplier.
Try it yourself first. Then reveal the solution one step at a time.
Late for school
Tanvi gets to school by metro on half of all days, by auto-rickshaw on 30% of days and by cycle on the rest. She is late with probability by metro, by auto and by cycle. One day she arrives late. What is the probability that she came by auto?
Try it yourself first. Then reveal the solution one step at a time.
A report that may be false
Ravi tells the truth 4 times out of 5. He throws a die and tells you the number was greater than 4. Find the probability that it really was. (When Ravi lies, he reports the other kind of result.)
Try it yourself first. Then reveal the solution one step at a time.
Show answer
Answer 0.75
Show answer
Answer (C) 9%
Show answer
Answer True
Tap an item on the left, then its match on the right.
Show answer
- hypothesis :
- prior :
- posterior :
- total probability :
Random variables
Many experiments end in a number we care about more than the raw outcome: the total on two dice, the number of faulty items in a carton, the money won at a fair stall. Toss a coin three times. The sample space has 8 outcomes, and to each one we can attach the number of heads it contains.
A rule that attaches a real number to every outcome of a random experiment; in other words, a function from the sample space to the real numbers .
ExampleThree tosses: = the number of heads, so .
For the three tosses, , , and (Fig. 13.10). One sample space can carry many random variables. Suppose a game pays ₹10 for each head and takes ₹5 for each tail. Your winnings are , that is rupees. So , , and . and are different functions on the same .
2/3 sends each outcome to its number of heads.
Along the top, the eight outcomes of three tosses sit in a shaded box labelled S: TTT, HTT, THT, TTH, HHT, HTH, THH and HHH. In the second step an arrow runs from each outcome down to a number line with ticks 0, 1, 2 and 3: TTT to 0, the three outcomes with one head to 1, the three with two heads to 2, and HHH to 3, with the note count the heads. In the third step the same arrows stay but the tick labels change to minus 15, 0, 15 and 30, with the note 10 rupees per head, minus 5 rupees per tail.
Show answer
Answer (B) 5
Show answer
- (A) the number of tails
- (C) ₹2 per head minus ₹1 per tail
Practice 13.3: questions with answers
A jar has 4 red and 6 green balls. Pick one ball at random, note its colour and return it to the jar along with 3 extra balls of that colour. Then pick a second ball.
Find the probability that the second ball is green.
Show answer
Answer 0.6
, the same as for the first ball.Given that the second ball is green, find the probability that the first one was green.
Show answer
Answer 0.69231
.
Basket I holds 5 ripe and 3 raw mangoes; Basket II holds 2 ripe and 6 raw. A basket is chosen at random and a mango taken from it is ripe. Find the probability that it came from Basket I.
Show solution
Answer
and .
The equal priors cancel, so the posterior of Basket I is .
At a coaching centre 70% of the students study online and 30% attend in person. In a mock test 25% of the online students and 40% of the in-person students score above 90. A student who scored above 90 is picked at random. Find the probability that the student attends in person.
Show solution
Answer
Paths to above 90: online ; in person .
The two paths add to , so the posterior of in person is .
In a test, each multiple-choice question has 5 options. A student knows the answer with probability and otherwise guesses at random. Given that the student answered a question correctly, what is the probability that the student knew the answer?
Show solution
Answer
.
The posterior of knew is .
An airport scanner flags 95% of the bags that carry a banned item, and it also flags 2% of the bags that do not. One bag in 200 carries a banned item. A bag is flagged. What is the probability that it really carries a banned item?
Show solution
Answer
True alarms: . False alarms: .
All flagged bags: . So the chance of a banned item is , about 0.19.
So about four flagged bags in five are false alarms, which is why a flagged bag is then searched by hand.
A bag holds three dice: an ordinary die, a die with 6 on three of its faces, and a die with 6 on every face. One die is chosen at random and thrown, and it shows 6. What is the probability that it is the die with 6 on every face?
Show solution
Answer
With priors each, .
The all-six die's posterior is .
A delivery company employs 300 cyclists, 500 motorbike riders and 200 van drivers. In a month the probability of a traffic fine is 0.02 for a cyclist, 0.05 for a rider and 0.1 for a van driver. One employee received a fine this month. Find the probability that the employee is a cyclist.
Show solution
Answer
Expected fines: cyclists , riders , vans ; 51 in all.
So the chance of a cyclist is .
An office has two printers. Printer P prints 70% of the pages and printer Q the rest. A page from P is smudged with probability 0.03, and from Q with probability 0.05. A page picked from the out-tray is smudged. What is the probability that Q printed it?
Show answer
Answer 0.41667
Paths: and . So .Two candidates, X and Y, stand for school captain; X wins with probability 0.55 and Y with 0.45. If X wins, a new sports period is introduced with probability 0.8; if Y wins, with probability 0.4. The sports period was introduced. What is the probability that Y won?
Show answer
Answer 0.29032
Paths: and . So .Arjun throws a die. If it shows 1 or 2, he tosses a coin three times; otherwise he tosses it twice. He tells you he got exactly two heads. What is the probability that the die showed 1 or 2?
Show solution
Answer
Paths: through 1 or 2, and through 3 to 6.
So the posterior of 1 or 2 is .
A bakery runs three shifts. The morning shift bakes 40% of the loaves, the afternoon shift 35% and the night shift 25%. The proportions of burnt loaves are 2%, 3% and 6%. A burnt loaf is found. What is the probability that the night shift baked it?
Show solution
Answer
Paths to burnt: , , ; total .
So the night shift's posterior is .
One card is lost from a full pack of 52. Two cards are then drawn from the remaining 51 and both are red. Find the probability that the lost card was red.
Show solution
Answer
Given a red card was lost: . Given a black card was lost: .
The priors and the common factor cancel, leaving , which is .
Two red cards in the draw make it slightly less likely that a red card is missing.
Meena tells the truth 2 times out of 3. A coin is tossed and she reports a tail. The probability that it really was a tail is
Show answer
Answer (A)
. With a fair coin the posterior equals her truth rate.and . Which statement is correct?
Show answer
Answer (C)
because . Also whenever , so the last option is false.
Miscellaneous Examples
Four jars of sweets
Four jars of sweets stand on a counter. Their contents are listed below. One jar is picked at random and one sweet is taken from it without looking. It is a laddoo. Find the probability that it came from Jar II. Which jar is least likely?
| Laddoo | Barfi | Peda | |
|---|---|---|---|
| Jar I | 2 | 3 | 5 |
| Jar II | 4 | 1 | 1 |
| Jar III | 1 | 4 | 3 |
| Jar IV | 3 | 3 | 6 |
Try it yourself first. Then reveal the solution one step at a time.
Ring toss at the mela
At a mela ring-toss stall, Aman and Bela take turns, Aman first, until one of them rings a bottle and wins. On each throw Aman succeeds with probability and Bela with probability , independently. Find each player's probability of winning.
Try it yourself first. Then reveal the solution one step at a time.
3/3Collecting the pieces, Aman wins with probability and Bela with in all.
A long bar stands for total probability 1. In the first step its first third is shaded A, for Aman winning on his first throw, the next sixth is dashed B, for Bela winning on her first throw, and the remaining half is marked game goes on. In the second step the remaining half is shared the same way: A gets a sixth and B a twelfth, leaving a quarter. In the third step later rounds fill the bar with ever smaller A and B pieces, and a second bar below collects them: A wins two thirds and B wins one third.
Two seeds from one packet
A nursery's seed packets come from a good batch with probability 0.75. In a good batch each seed sprouts with probability 0.9; in a poor batch, with probability 0.5. Seeds sprout independently of one another. You sow two seeds from one packet and both sprout. Find the probability that the packet is from a good batch.
Try it yourself first. Then reveal the solution one step at a time.
Show answer
Answer 0.166667
Show answer
Answer (B) fall below 0.75
Historical note: from dice tables to axioms
- c. 1564
Cardano counts dice outcomes
Girolamo Cardano's Liber de Ludo Aleae listed the favourable cases for throws of dice; it was printed only in 1663.
- c. 1620
Galileo and three dice
Galileo explained why a total of 10 turns up more often than 9 with three dice: 27 of the 216 ordered outcomes against 25.
- 1654
Pascal and Fermat
Letters between Blaise Pascal and Pierre de Fermat solved how to divide the stakes of an unfinished game.
- 1657
The first printed textbook
Christiaan Huygens published De Ratiociniis in Ludo Aleae, a short book of problems on games of chance.
- 1713
Bernoulli's Ars Conjectandi
Jacob Bernoulli's book, published after his death, proved an early law of large numbers.
- 1763
Bayes and inverse probability
Thomas Bayes' essay on reasoning from effects back to causes was presented by Richard Price, two years after Bayes died.
- 1812
Laplace's treatise
Pierre-Simon Laplace set out the rule we now call Bayes' theorem in general form.
- 1933
Kolmogorov's axioms
Andrey Kolmogorov built probability on a few axioms about sets of outcomes, the approach you met in Class 11.
Probability: key points and summary
- Knowing that happened makes the new sample space: , with (Section 13.2).
- Given , probabilities obey the usual rules: , , and the addition rule holds (Section 13.2.1).
- and have the same numerator but different denominators; in general they differ.
- Multiplication rule: ; for three events, multiply in stages (Section 13.3).
- A tree diagram multiplies along a path and adds across paths (Fig. 13.3).
- and are independent when ; then complements are independent too (Section 13.4).
- Mutually exclusive events with positive probabilities are dependent; three events need all four product checks.
- A partition is a set of disjoint events with positive probabilities that together fill (Section 13.5.1).
- Total probability: (Section 13.5.2).
- Bayes' theorem turns priors into posteriors by taking one path's share of (Bayes' theorem).
- With a rare condition, most positive tests can be false; count with natural frequencies to check (Example 18).
- A random variable attaches a real number to each outcome; one sample space can carry many (Random variables).
Formula cards
Miscellaneous Exercise on Chapter 13
Practice questions with answers (NCERT “Miscellaneous exercise”)
and are events with . Find if
;
Show solution
Answer1
, so .
;
Show solution
Answer0
, so .
.
Show solution
Answer
, so , which is at least .
Two dice are thrown. Find the probability that both show 6, given that
at least one die shows 6;
Show answer
Answer 0.0909
At least one 6 has 11 outcomes, and only has two: .the first die shows 6.
Show answer
Answer 0.16667
Given a first 6, the second die must show 6: .
About 8% of men and 0.5% of women are red–green colour-blind. A colour-blind person is chosen at random from a group with equal numbers of men and women. What is the probability that the person is a man?
Show solution
Answer
The equal priors cancel. Men supply 0.08 and women 0.005 of the colour-blind paths, so the chance of a man is , about 0.94.
Each seed in a packet sprouts with probability 0.8, independently of the others. Six seeds are sown. Find the probability that at most 4 of them sprout.
Show solution
Answer
All 6 sprout: .
Exactly 5 sprout: choose the one that fails in 6 ways, each with probability , so .
At most 4: .
A leap year is chosen at random. What is the probability that it has 53 Fridays or 53 Saturdays?
Show answer
Answer 0.42857
The two extra days are one of 7 equally likely pairs (Sun–Mon, …, Sat–Sun). Thu–Fri, Fri–Sat and Sat–Sun contain a Friday or a Saturday: .Four boxes K, L, M and N each hold 10 marbles, coloured as in the table. A box is chosen at random and a marble drawn from it is green. Find the probability that it came from box K, from box L and from box M.
Table 13.3Marbles in each box Green Red White K 2 5 3 L 4 4 2 M 7 1 2 N 0 3 7 Show solution
Answer, ,
is 0.2, 0.4, 0.7 and 0 for K, L, M and N; the priors cancel.
Total , so the posteriors are , and (and 0 for N).
A student's chance of catching a cold in winter is 40%. A daily walk multiplies this chance by 0.8; daily vitamin tablets multiply it by 0.6. Each student picks exactly one of the two, with equal probability. A student caught a cold. Find the probability that the student chose the walk.
Show solution
Answer
Walk: . Tablets: .
The equal priors cancel, so the chance that the student chose the walk is .
Each entry of a matrix is 0 or 1, chosen independently with probability each. What is the probability that the determinant is non-zero?
Show answer
Answer 0.375
There are 16 equally likely matrices. needs and : 3 matrices. likewise gives 3. So .A scooter fails to start if its battery (A) or its starter (B) fails. Records give: , , . Find
;
Show answer
Answer 0.33333
, so ..
Show answer
Answer 0.2
.
Bag I has 4 white and 2 black balls; Bag II has 3 white and 5 black. A ball picked at random from Bag I is transferred into Bag II. A ball is then taken from Bag II, and it is white. Find the probability that the transferred ball was white.
Show solution
Answer
Moved white (): Bag II then has 4 white of 9. Moved black (): 3 white of 9.
Paths: and . So the chance that a white ball was moved is .
and . Then
Show answer
Answer (C)
. Nothing forces : can still happen when does not.and are non-zero and . Which is correct?
Show answer
Answer (D)
Multiplying both sides by shows that the overlap is less than times . Dividing that by gives : bad news for one is bad news for the other.and are events with and . Then
Show answer
Answer (B)
By the addition rule, the given equation says that minus the overlap is zero. So , and dividing by gives .Put the steps of a Bayes' theorem calculation in order.
- note priors, forward chances
- divide one path by P(A)
- add the paths to get P(A)
- list the hypotheses
Show answer
Answer- list the hypotheses
- note priors, forward chances
- add the paths to get P(A)
- divide one path by P(A)
The hypotheses must form a partition before their priors and forward probabilities mean anything; is the denominator.Match each rule with its formula.
Tap an item on the left, then its match on the right.
Show answer
Answer- multiplication rule :
- independence :
- complement given F :
- total probability :
The first two both equal , the second only for independent events; the third is .Two mutually exclusive events, each with non-zero probability, are always .
Show answer
Answer dependent
Their overlap has probability 0 but the product of their probabilities is positive.If and are non-zero and , then .
Show answer
Answer True
means , which is symmetric in and , so .
Find your NCERT exercise question
Our practice questions are written for ncert.ai and follow the NCERT exercises. Find the one that matches the question in your textbook; its answer is with it.
| In your NCERT textbook | Practice question here |
|---|---|
| NCERT Exercise 13.1, Q1 | Practice 13.1 · Q1 |
| NCERT Exercise 13.1, Q2 | Practice 13.1 · Q2 |
| NCERT Exercise 13.1, Q3 | Practice 13.1 · Q3 |
| NCERT Exercise 13.1, Q4 | Practice 13.1 · Q4 |
| NCERT Exercise 13.1, Q5 | Practice 13.1 · Q5 |
| NCERT Exercise 13.1, Q6 | Practice 13.1 · Q6 |
| NCERT Exercise 13.1, Q7 | Practice 13.1 · Q7 |
| NCERT Exercise 13.1, Q8 | Practice 13.1 · Q8 |
| NCERT Exercise 13.1, Q9 | Practice 13.1 · Q9 |
| NCERT Exercise 13.1, Q10 | Practice 13.1 · Q10 |
| NCERT Exercise 13.1, Q11 | Practice 13.1 · Q11 |
| NCERT Exercise 13.1, Q12 | Practice 13.1 · Q12 |
| NCERT Exercise 13.1, Q13 | Practice 13.1 · Q13 |
| NCERT Exercise 13.1, Q14 | Practice 13.1 · Q14 |
| NCERT Exercise 13.1, Q15 | Practice 13.1 · Q15 |
| NCERT Exercise 13.1, Q16 | Practice 13.1 · Q16 |
| NCERT Exercise 13.1, Q17 | Practice 13.1 · Q17 |
| NCERT Exercise 13.2, Q1 | Practice 13.2 · Q1 |
| NCERT Exercise 13.2, Q2 | Practice 13.2 · Q2 |
| NCERT Exercise 13.2, Q3 | Practice 13.2 · Q3 |
| NCERT Exercise 13.2, Q4 | Practice 13.2 · Q4 |
| NCERT Exercise 13.2, Q5 | Practice 13.2 · Q5 |
| NCERT Exercise 13.2, Q6 | Practice 13.2 · Q6 |
| NCERT Exercise 13.2, Q7 | Practice 13.2 · Q7 |
| NCERT Exercise 13.2, Q8 | Practice 13.2 · Q8 |
| NCERT Exercise 13.2, Q9 | Practice 13.2 · Q9 |
| NCERT Exercise 13.2, Q10 | Practice 13.2 · Q10 |
| NCERT Exercise 13.2, Q11 | Practice 13.2 · Q11 |
| NCERT Exercise 13.2, Q12 | Practice 13.2 · Q12 |
| NCERT Exercise 13.2, Q13 | Practice 13.2 · Q13 |
| NCERT Exercise 13.2, Q14 | Practice 13.2 · Q14 |
| NCERT Exercise 13.2, Q15 | Practice 13.2 · Q15 |
| NCERT Exercise 13.2, Q16 | Practice 13.2 · Q16 |
| NCERT Exercise 13.2, Q17 | Practice 13.2 · Q17 |
| NCERT Exercise 13.2, Q18 | Practice 13.2 · Q18 |
| NCERT Exercise 13.3, Q1 | Practice 13.3 · Q1 |
| NCERT Exercise 13.3, Q2 | Practice 13.3 · Q2 |
| NCERT Exercise 13.3, Q3 | Practice 13.3 · Q3 |
| NCERT Exercise 13.3, Q4 | Practice 13.3 · Q4 |
| NCERT Exercise 13.3, Q5 | Practice 13.3 · Q5 |
| NCERT Exercise 13.3, Q6 | Practice 13.3 · Q6 |
| NCERT Exercise 13.3, Q7 | Practice 13.3 · Q7 |
| NCERT Exercise 13.3, Q8 | Practice 13.3 · Q8 |
| NCERT Exercise 13.3, Q9 | Practice 13.3 · Q9 |
| NCERT Exercise 13.3, Q10 | Practice 13.3 · Q10 |
| NCERT Exercise 13.3, Q11 | Practice 13.3 · Q11 |
| NCERT Exercise 13.3, Q12 | Practice 13.3 · Q12 |
| NCERT Exercise 13.3, Q13 | Practice 13.3 · Q13 |
| NCERT Exercise 13.3, Q14 | Practice 13.3 · Q14 |
| NCERT Miscellaneous Exercise, Q1 | Miscellaneous exercise · Q1 |
| NCERT Miscellaneous Exercise, Q2 | Miscellaneous exercise · Q2 |
| NCERT Miscellaneous Exercise, Q3 | Miscellaneous exercise · Q3 |
| NCERT Miscellaneous Exercise, Q4 | Miscellaneous exercise · Q4 |
| NCERT Miscellaneous Exercise, Q5 | Miscellaneous exercise · Q5 |
| NCERT Miscellaneous Exercise, Q6 | Miscellaneous exercise · Q6 |
| NCERT Miscellaneous Exercise, Q7 | Miscellaneous exercise · Q7 |
| NCERT Miscellaneous Exercise, Q8 | Miscellaneous exercise · Q8 |
| NCERT Miscellaneous Exercise, Q9 | Miscellaneous exercise · Q9 |
| NCERT Miscellaneous Exercise, Q10 | Miscellaneous exercise · Q10 |
| NCERT Miscellaneous Exercise, Q11 | Miscellaneous exercise · Q11 |
| NCERT Miscellaneous Exercise, Q12 | Miscellaneous exercise · Q12 |
| NCERT Miscellaneous Exercise, Q13 | Miscellaneous exercise · Q13 |
Quick check: MCQs on Probability
- 13.1 Introduction2 questions
- 13.2.1 Properties of conditional probability4 questions
- 13.3 Multiplication Theorem on Probability3 questions
- 13.4 Independent Events4 questions
- Bayes' theorem4 questions
- Random variables2 questions
- Miscellaneous Examples2 questions
Key terms (English–Hindi)
- Bayes' theoremबेज़-प्रमेयbez prameya
- The rule that the posterior equals divided by : the chance of a cause once its effect is seen.First seen in the chapter →
- conditional probabilityसप्रतिबंध प्रायिकताsapratibandh praayikta
- The probability of once we know has happened: , with .First seen in the chapter →
- hypothesisपरिकल्पनाparikalpana
- In Bayes' theorem, one of the events of the partition: a possible cause of what was observed.First seen in the chapter →
- independent eventsस्वतंत्र घटनाएँsvatantra ghatnaayen
- Events with , so knowing one does not change the chance of the other. Otherwise they are dependent.
- multiplication ruleप्रायिकता का गुणन नियमpraayikta ka gunan niyam
- : the chance of both is the chance of the first times the chance of the second given the first.First seen in the chapter →
- mutually exclusive eventsपरस्पर अपवर्जी घटनाएँparaspar apavarji ghatnaayen
- Events with no outcome in common, ; they cannot happen together.First seen in the chapter →
- partition of a sample spaceप्रतिदर्श समष्टि का विभाजनpratidarsh samashti ka vibhaajan
- Events that are pairwise disjoint, together make up , and each have non-zero probability.
- posterior probability
- , the probability of a hypothesis after the evidence is taken into account.First seen in the chapter →
- prior probability
- , the probability of a hypothesis before the evidence is taken into account.First seen in the chapter →
- random variableयादृच्छिक चरyaadrichchhik char
- A rule that gives a real number for each outcome of a random experiment: a function from to the real numbers.First seen in the chapter →
- theorem of total probabilityसंपूर्ण प्रायिकता प्रमेयsampoorn praayikta prameya
- For a partition : .
- tree diagramवृक्ष आरेखvriksh aarekh
- A branching picture of a staged experiment; multiplying along a path gives the probability of that path.First seen in the chapter →