Probability Basics. Combinatorics. Bayes Theorem. Part 1
Almaz Khusnutdinov•Math enthusiast, love coding and mathematics
Published 9/27/2025
Conditional Probability
Problem 1.1
In a family with 2 children, at least one is a girl. What is the probability that both are girls?Answer: 31.
Problem 1.2
A family has 2 children. One child chosen uniformly at random from the two is a boy. What is the probability that both children are boys?Answer: 21.
Problem 1.3
In a family with 3 children, at least one child is a boy. What is the probability that all three children are boys?Answer: 71.
Problem 1.4
Two independent servers A and B are up with probabilities pA=0.9,pB=0.8.The system is up iff at least one server is up.Given the system is up, what is the probability that both servers are up?Answer: P(A∪B)P(A∩B)=0.9+0.8−0.720.72=4936.
Problem 1.5
A die is selected: fair with probability 32,loaded with probability 31.Loaded die rolls 6 with probability 21and each of 1–5 with probability 101.A single roll shows 6.What is the probability the selected die was loaded?Answer: 31⋅21+32⋅6131⋅21=53.
Problem 1.6
Factory F1 makes 40% of chips with defect rate 1%.Factory F2 makes 60% with defect rate 3%.A randomly chosen chip is defective. What is the probability it came from F1?Answer: 0.4⋅0.01+0.6⋅0.030.4⋅0.01=112.
Problem 1.7
A family has 2 children. It is known that at least one child is a boy born on a Tuesday. What is the probability that both children are boys?Answer: 2713.
Problem 1.8
A family has 2 children. The older child is a boy. What is the probability that both children are boys?Answer: 21.
Problem 1.9
In a two-child family, each birth is a boy with probability p∈(0,1) independently. Given that at least one child is a boy, what is the probability that both are boys?Answer: 1−(1−p)2p2=2−pp.
Basic Probability
Problem 2.1
A fair six-sided die is rolled twice.(a) What is the probability that the sum of the two rolls is 9?(b) What is the probability that at least one of the rolls is 6?Solution to (a):Each die has 6 outcomes, so the sample space has 6⋅6=36 equally likely outcomes.We list all pairs with sum 9: (3,6),(4,5),(5,4),(6,3).So there are 4 favorable outcomes.P(sum=9)=364=91.Solution to (b):Let A={at least one 6}. The complement Ac is “no 6 appears”.On a single die, P(no 6)=65. For two dice (independent):P(Ac)=P(no 6 on die 1 and no 6 on die 2)=65⋅65=3625.P(A)=1−P(Ac)=1−3625=3611.Answer: (a)91,(b)3611.
Problem 2.2
A fair coin is tossed three times.(a) What is the probability of getting exactly two heads?(b) What is the probability of getting at least one tail?Answer: (a)83,(b)87.
Problem 2.3
An urn contains 4 red, 3 blue, and 3 green balls (10 in total). Two ballsare drawn at random without replacement.(a) What is the probability that the two balls are of the same color?(b) What is the probability that one ball is red and the other is blue?Answer: (a)154,(b)154.
Problem 2.4
A standard deck of 52 cards is well shuffled.(a) One card is drawn. What is the probability that it is a heart or a king?(b) Two cards are drawn without replacement. What is the probability that bothcards are aces?Answer: (a)134,(b)2211.
Problem 2.5
A class has 6 boys and 4 girls. Two students are chosen at randomwithout replacement.(a) What is the probability that both chosen students are girls?(b) What is the probability that at least one of the chosen students is a boy?Answer: (a)152,(b)1513.
Problem 2.6
Two fair six-sided dice are rolled.(a) Given that the sum of the two dice is 7, what is the probability thatone of the dice shows 3?(b) Given that at least one die shows 5, what is the probability thatthe sum of the two dice is 10?Answer: (a)31,(b)111.
Problem 2.7
A bag contains 5 white balls and 7 black balls (12 in total). Three ballsare drawn at random without replacement.(a) What is the probability that exactly one of the three balls is white?(b) What is the probability that at least two of the three balls are white?Answer: (a)4421,(b)114.
Problem 2.8
Two digits are chosen independently and uniformly from {0,1,2,…,9}.Let the ordered pair be (D1,D2).(a) What is the probability that D1+D2=10?(b) What is the probability that D1>D2?Answer: (a)1009,(b)209.
Problem 2.9
A box contains 8 good light bulbs and 2 defective ones. Three bulbsare chosen at random without replacement.(a) What is the probability that none of the chosen bulbs is defective?(b) What is the probability that at least one of the chosen bulbs is defective?Answer: (a)157,(b)158.
Problem 2.10
A single card is drawn at random from a standard 52-card deck.(a) Given that the card is red, what is the probability that it is a heart?(b) Given that the card is a face card (J, Q, or K), what is the probabilitythat it is a king?Answer: (a)21,(b)31.