Arnabc74 Github Io Prob1 2025 Basic HTML
Arnabc74 Github Io Prob1 2025 Basic HTML
Basic concepts
Basic concepts
Probability axioms
Continuity of probability function
Inclusion-Exclusion formula
Countable sample spaces
Equally likely cases
Simulations
Problems for practice
Sets and Venn diagrams
Axioms
Equally likely
Harder
Basic concepts
A random experiment is an activity whose outcome we cannot predict.
The set of all outcomes is called its sample space. Each element of this
set is called a sample point. By the term event we understand a subset of
the sample space.
I give you a coin to toss. Before tossing, you carefully inspect it. You find
no difference at all between the two sides (except for the pictures on
them). So you infer that both head and tail are equally likely (i.e., you
are equally ignorant about both sides). It is common to express this
situation as "50-50" chance, or 50% chance of a head (or a tail), or
1
probability of a head (or a tail) is 2 .
The main idea is that the chance of a head equals the chance of a tail.
We like to express this by first imagining a totality and then halving it.
This totality may be taken as 100 or 100% or 1 or any other positive
number.
EXAMPLE 3: Consider rolling a fair die. Let A be the event that we get
a prime number, i.e., A = {2, 3, 5}. Intuitively, the probability of A
1
should be 2 . We shall use R to perform 5000 trials of this random
experiment and check the running proportion of cases that the event A
happens.
x = sample(6,5000,rep=T)
A = x %in% c(2,3,5)
plot(cumsum(A)/(1:5000), ty='l')
1
Run in cloud Notice that the proportions indeed tend towards 2 .
x = sample(6,5000,rep=T)
B = x %in% c(1,3,4,5)
mean(B)
Run in cloud ■
With each event we assign a probability which is a number from [0, 1].
In practice it is difficult (impossible?) to get a biased coin (i.e., a coin
which is more likely to show one side than the other). It is very easy to
simulate such a coin though:
Probability axioms
Probability axioms A collection
Let Ω denote the sample space. Let F denote the set of sets is
of all events. Then called disjoint
if the
intersection
1. For any event A ∈ F we have P(A) ≥ 0
of any two
2. P(Ω) = 1 sets from the
3. If A 1, A 2, . . . ∈ F are countably many collection is
(finite/infinite) disjoint events then empty. They
are also
P( ∪ A n) = ∑ P(A n). called
mutually
exclusive
Processing math: 97%
Explore our developer-friendly HTML to PDF API Printed using PDFCrowd HTML to PDF
Notice the last axiom. Here the sum may involve You'll often see
infinitely many terms. Such a sum is called an infinite this sentence:
series. You'll learn about them in details in your
analysis course. But for now you may quickly read this "
crash course on infinite series. (Ω, F, P)
is a
It is a remarkable fact that whatever other common probability
sense condition one has been able to think of so far space".
actually follows as a consequence of these! Also, you
cannot drop any of these requirements, in the sense This is a
that no two of these imply the other. Can you show shorthand for:
this?
Ω is a
It is an interesting exercise to derive various common nonempty set
sense conditions from these axioms. Here is one. (sample
space),
EXAMPLE 5: If A ⊆ B then show that P(A) ≤ P(B). F is the
collection of
c
SOLUTION: Split B as B = A ∪ (A ∩ B). all events,
P: F → R
is a
probability
(i.e., a
function
satisfying the
three
probability
axioms).
Next we shall prove some common sense properties that will require
more effort.
A1 ⊆ A2 ⊆ A3 ⊆ ⋯
Processing math: 97%
Explore our developer-friendly HTML to PDF API Printed using PDFCrowd HTML to PDF
and
A= ∪
nA n.
A1 ⊇ A2 ⊇ A3 ⊇ ⋯
and
A = ∩ nA n.
Theorem
If A n ↗ A or A n ↘ A then P(A n) → P(A).
So A = B 1 ∪ B 2 ∪ ⋯. (Why?)
[QED]
Being freshly admitted to ISI, you are of course proud of your probability
skills, and reply "Yes".
"That's very good for you, very good indeed", exclaims the man in glee,
"but it is not good for me, you see. I just made the offer because I took a
liking to you. I hope that you would keep two requests in return."
"The first request is that I shall dictate the value of t before each roll".
Noticing a cloud of worry upon your face, he adds, "Don't worry, t will
always be positive, and I shall fix the amount before the roll."
Processing math: 97%
Explore our developer-friendly HTML to PDF API Printed using PDFCrowd HTML to PDF
You see no harm in that, and ask him to proceed.
"The second favour that I ask for is to call it quits whenever I like. That
means I shall decide when the game will stop. It is only the barest
protection for me, you see. I shall soon become bankrupt, and then I at
least need to have my right to go back home! Surely you would not deny
me that !"
You find the entire offer reasonable enough, and so accept it.
Have you done a wise thing? [Hint: the die is indeed fair, and there is no
word play. It is a pure mathematical puzzle.]
Inclusion-Exclusion formula
This idea of inclusion and exclusion works for any finite number of
events.
Inclusion-Exclusion formula
Let A 1, . . . , A n be any n events. Let T denote the set of all subsets
of {1, . . . , n}. Then
[ ]
n
P(A 1 ∪ ⋯ ∪ A n) = ∑ ( − 1) k + 1 ∑ P(A α) ,
k=1 α∈T, |α| =k
Processing math: 97%
Explore our developer-friendly HTML to PDF API Printed using PDFCrowd HTML to PDF
where for any α ⊆ T we define
A α = ∩ i ∈ αA i.
Proof: The notation is a bit complicated. Let's understand it first with the
n = 3 case. Here the first term of the outer sum consists of the sum of
all A α where α ∈ T and | α | = 1 (i.e., all singleton subsets of {1, 2, 3}
). This sum is simply
The Venn diagram shows why this formula is correct. But a Venn
diagram cannot be considered as a proof, as it shows only one possible
case. However, a Venn diagram does indicate how to construct a general
proof. Note that A 1 ∪ A 2 ∪ A 3 is made of certain disjoint events:
A 1 = B 1 ∪ B 12 ∪ B 13 ∪ B 123,
and similarly for A 2, and A 3. Note the pattern: all the B ′ s with 1
somewhere in the subscript has occurred in the RHS. Since the events in
the RHS are disjoint, so we have
P(A 1) + P(A 2) + P(A 3) = [P(B 1) + P(B 12) + P(B 13) + P(B 123)]
+ [P(B 2) + P(B 12) + P(B 23) + P(B 123)]
+ [P(B 3) + P(B 13) + P(B 23) + P(B 123)]
Note that here each B with a single subscript occurs once, each B with
two subscripts occur twice, and so on. This is of course natural, since for
example, B 12 occurs once as part of A 1 and then again as part of A 2.
A 12 = B 12 ∪ B 123.
Here all the B's with 12 in the subscript occur in the RHS. Again, since
the B's are all disjoint,
Similarly for A 23 and A 13. Using these, the second stage (exclusion) is
P(A 12) + P(A 23) + P(A 13) = [P(B 12) + P(B 123)]
+ [P(B 23) + P(B 123)]
+ [P(B 13) + P(B 123)]
Note that no B with a single subscript occurs at all. The B's with two
subscripts occur once each, while the B with three subscripts occur
thrice. Do you see the pattern? Each B is like B β, where β is a
nonempty subset of {1, 2, 3}. Similarly, each A is like A α, where α is
also a nonempty subset of {1, 2, 3}. Now B β occurs as a part of A α if
and only if α ⊆ β. So the number of times we see B 123 in the RHS is
3
same as the number of subsets of size 2 of {1, 2, 3}, which is ( 2 ) = 3.
The same technique will also explain why B_{23}, for example, occurs
only once: the number of subsets of size 2 of \{2,3\} is \binom{2}{2}=1.
In fact, the same approach also explains the absence of B's with single
indices. Each single index B occurs \binom{1}{2}=0 times!
B_\alpha= the set of all those points that belong to A_i iff i\in
\alpha.
Indeed, all functions that satisfy axiom three are called (signed)
measures, and measure theory is the branch of mathematics that deals
with them.
The simplest special case is when the sample space \Omega is finite (say
|\Omega|=n) and we take p_1=\cdots=p_n=\frac 1n.
EXAMPLE 6: There are three distinct boxes and 10 distinct balls. The
balls are dropped
Processing math: 97% randomly among the boxes so that all possible
Explore our developer-friendly HTML to PDF API Printed using PDFCrowd HTML to PDF
configurations are equally likely. (No ball is outside a box, and each box
can hold all the balls.) What is the probability that the first box is empty?
Let A be the event that the first ball remains empty. Then A occurs if and
only if all the balls land in the other 2 boxes. So |A|=2^{10}.
EXAMPLE 7: Same problem as above, except that the balls are now
identical. The boxes are still distinct. What is the answer now?
Certain real-life scenarios may be modelled like this. Here are a few
examples from physics (no need to cram these terms for the exams!).
SOLUTION: Let \Omega = all samples of size 10. What is its size?
Instead of writing {100\choose 10}, we shall follow the steps that a
typical quality control officer would take: pick one, then pick the next,
then the next and so on. This stepwise approach is generally better
(Why?) than jumping into a ^nC_r or ^nP_r formula.
Here the first step may be done in 100 ways, the next in 99 ways, etc all
the way upto 100-10+1=91 ways.
Here A^c= the event that the box contains no defective. Again we shall
find |A^c| stepwise.
SOLUTION: Such "at least" problems usually mean that our event is the
union of some simpler events. Since the simpler events may not be
disjoint, we need the inclusion-exclusion formula.
Processing math: 97%
Explore our developer-friendly HTML to PDF API Printed using PDFCrowd HTML to PDF
Let \Omega= the set of all possible ways of dropping the balls. Then
|\Omega| = 3^{10}.
Let A_i=the event that the i-th box remains empty, where i=1,2,3.
Similarly, the three probabilities inside the exclusion term are also equal
to each other. Thus we are left with 3P(A_1)-3P(A_1\cap A_2)+
P(A_1\cap A_2\cup A_3). Now |A_1| = 2^{10} and |A_1\cap A_2| =
1^{10} (Why?) .
Simulations
SOLUTION:
event = numeric(5000)
for(k in 1:5000) {
x = sample(10,10)
at.home = sum(x==(1:10))
event[k] = (at.home==3)
}
mean(event)
Run in cloud ■
1. only F occurs
2. both E and F but not G occur
3. at least one event occurs
Processing math: 97%
Explore our developer-friendly HTML to PDF API Printed using PDFCrowd HTML to PDF
4. at least two events occur
5. all three events occur
6. none occurs
7. at most one occurs
8. at most two occur
9. exactly two occur
10. exactly one occurs.
[Hint]
[Hint]
[Hint]
[Hint]
Axioms
[Hint]
[Hint]
Equally likely
[Hint]
EXERCISE 14: A fair coin is tossed 6 times. What is the probability that
the first head occurs (a) at the third toss? (b) not before the third toss?
[Hint]
[Hint]
EXERCISE 16: Two fair dice are tossed, what is the probability that the
sum is i for i=2,3,...,12?
Processing math: 97%
Explore our developer-friendly HTML to PDF API Printed using PDFCrowd HTML to PDF
[Hint]
[Hint]
[Hint]
[Hint]
[Hint]
EXERCISE 21: A throws six dice and wins if he scores at least one ace. B
throws twelve dice and wins if he scores at least two aces. Who has the
greater probability to win?
[Hint]
Processing math: 97%
Explore our developer-friendly HTML to PDF API Printed using PDFCrowd HTML to PDF
EXERCISE 22: Find the probability that among three random digits there
appear exactly 1,2 or 3 different digits. Also do the same for four
random digits.
[Hint]
EXERCISE 23: Find, for r=1,2,3,..., the probability p_r that in a sample
of r random digits no two are equal.
[Hint]
EXERCISE 24: If n balls are placed at random among n cells, find the
probability that exactly one cell remains empty.
[Hint]
EXERCISE 25: A man is given n keys of which only one fits his door. He
tries them successively using SRSWOR until he finds the right key. Show
that the probability that he will try k keys is \frac 1n for k=1,...,n.
[Hint]
EXERCISE 26: Suppose that each of n sticks is broken into one long and
one short part. The resulting 2n pieces are combined pairwise in a
random fashion. What is the probability that the original pairings are
restored? What is the probability that each long piece gets a short
partner?
[Hint]
[Hint]
[Hint]
EXERCISE 30: What is the probability that two throws with three dice
each will show the same configuration if (a) the dice are distinct (e.g.,
(2,3,6) is not the same as (3,2,6)). (b) the dice are identical (e.g., \
{2,3,6\} is the same as \{3,2,6\})?
[Hint]
[Hint]
EXERCISE 32: A cereal company is giving a free ball with every box.
The ball is either red or green or blue or yellow, each being equally
likely. A buyer has bought 10 boxes. What is the probability that (s)he
has a at least one ball of each colour?
[Hint]
Processing math: 97%
Explore our developer-friendly HTML to PDF API Printed using PDFCrowd HTML to PDF
Harder
[Hint]
EXERCISE 34:
[Hint]
EXERCISE 35:
[Hint]
EXERCISE 36:
EXERCISE 37:
[Hint]
EXERCISE 38:
[Hint]
EXERCISE 39:
[Hint]
Processing math: 97%
Explore our developer-friendly HTML to PDF API Printed using PDFCrowd HTML to PDF
EXERCISE 40:
[Hint]
[Hint]