Ex: If we have 3 identical balls to be kept in 2 boxes such that no box is empty then there are two possible way of doing it : (1,2) or (2,1).
Ex. 3 balls 2 boxes
∴ possible arrangements are.
(0,3)(1,2)(2,1)(3,0)=4
and we have 3+2−1C2−1=4c1=4
In how many ways you can choose 5 numbers a,b,c,d,e such that each one is >0 and
a+b+c+d+e=20
then the number of possible solution, is
20−1c5−1=19c4
However, if a,b,c,d,e≥0 then the number of possible solution is 20+5−1C5−1 =24C4
In how many ways you can choose 5 numbers
n1,n2,n3,n4 & n5 such that ni>0∀i=1,5 and $\quad{n_1
i=1∑5ni=20 ∴ Note that :(1,2,3,4,10) is a possible solution.
But (1,2,4,4,9) in not a solution since 4 in repeated.
Note that smallest possible value for n1=1 for n2=2 & for n5=5
∴ Let us define 5 new variables x1x2,x3,xn & x5 as follows:
x1=n1−1
x2=n2−2
x3=n3−3
x4=n4−4
x5=n5−5
∴ Each xi is≥0x1≤x2≤x3≤x4≤x5
Hence the problem becomes: to choose 5 numbers,
x1 & x2 & x3 & xn & x5 such that all are ≥0
x1+x2+x3+x4+x5
=n1−1+n2−2+n3−3+n4−4
=∑i=15ni−(1+2+3+4+5)
=20−15=5.
x1 | x2 | x3 | x4 | x5 | ||||||
---|---|---|---|---|---|---|---|---|---|---|
0 | 0 | 0 | 0 | 5 | : | 1 | 2 | 3 | 4 | 10 |
0 | 0 | 0 | 1 | 4 | : | 1 | 2 | 3 | 5 | 9 |
0 | 0 | 0 | 2 | 3 | : | 1 | 2 | 3 | 6 | 8 |
0 | 0 | 1 | 1 | 3 | : | 1 | 2 | 4 | 5 | 8 |
0 | 0 | 1 | 2 | 2 | : | 1 | 2 | 4 | 6 | 7 |
0 | 1 | 1 | 1 | 2 | : | 1 | 3 | 4 | 5 | 7 |
1 | 1 | 1 | 1 | 1 | : | 2 | 3 | 4 | 6 | 6 |
∴ number of possible solution is 7
In how many ways you choose 4 numbers
${n_1
∑i=1nni=16,n1>0∀i=1,2,3,4
we define: x1=n1−1x2=n2−2x3=n3−3xn=n4−4
such that each xi≥0
x1⩽x2⩽x3⩽x4
∑xi=16−10=6
x1 | x2 | x3 | x4 |
---|---|---|---|
0 | 0 | 0 | 6 |
0 | 0 | 1 | 5 |
0 | 0 | 2 | 4 |
0 | 0 | 3 | 3 |
0 | 1 | 1 | 4 |
0 | 1 | 2 | 3 |
1 | 1 | 1 | 3 |
1 | 1 | 2 | 2 |
0 | 2 | 2 | 2 |
9 Possible solution
We talk about probability when the underlying experiment is random.
∴ the sample space Ω is known.
And we need to compute probability of what??
Coin tossing 5 times.
Passenger with bags:
An event is a subset of the sample space Ω.
consider : we toss a coin 3 times.
we want to compute that number of heads is odd. HHH,HTT,THT,TTH.
We are looking at the probability of the subset: {HTT,THT,TTH,HHH}.
The subsets of cardinality 1 are called elementary events.
i.e The outcome of one individual trial in called an elementary event.
If we throw a die, then number of elementary events is 6 {1},{2},{3},⋯{6}.
An event comprising of more that one elementary event is called a compound event.
Suppose the Ω is {1,2,3,4,5,6,7,8,9}.
How many compound events are possible?
Solution:
Since ∣Ω∣=9
∴ there are 29 possible subsets of which 1 is ϕ & 9 are elementary events.
Number of compound events is
29−(9+1)=512−10=502
Two events E1 & E2 are said to be disjoint if E1∩E2=ϕ
A sequence of events E1,E2⋯EK is said to be mutually exclusive if Ei∩Ej=ϕ for all i,j∈{1,2,⋯k} i=j.
Two events A and B are said to be independent if
P(A∩B)=P(A)×P(B).
Probability is a mapping from the power set of Ω to [0,1]
i.e. if A⊆Ω then P(A)=p∣0⩽p⩽1
Where P satisfies the following:
a) P(A)≥0∀A⊆Ω.
b) P(Ω)=1
c) If A1,A2⋯Ak are matually exculsive then
P(A1∪A2⋯∪AK)=∑i=1kP(Ai)
Given a set A⊆Ω
P(A) is computed as, ∣Ω∣Number of elements in A
when the outcomes are equally likely.
1) Throwing a die and probability of getting an even number is
∣Ω∣#{2,4,6}
=63=21.
2) Suppose probability of getting a H is p. when 0<p<1.
Then what is the probability of getting 2H’s in 3 tosses?
Show that: P(Ac)=1−P(A).
Proof:
Since A∪AC=Ω
1=P(Ω)=P(A∪Ac)=P(A)+P(Ac)P(Ac)=1−P(A).
When we are tossing a coin,
if A={H} then Ac={T}
∴ if P(H)=P then
P(T)=1−P.
Suppose probability of getting a H is p. when 0<p<1. Then what is the probability of getting 2H’s in 3 tosses?
Solution:
Now consider getting 2H ’s in 3 tosses, P(HHT)+P(HTH)+P(THH)
Total probability =3p2(1−p)
Another important property is
P(A∪B)=P(A)+P(B)−P(A∩B).
P(A∪B)=P(B∩Ac)+P(B∩A)+P(A∩BC)
∵ These three are disjoint.
Now P(B∩Ac)=P(B)−P(A∩B)
& P(B∩A)+P(A∩BC)=P(A)
∴ Together we have , P(A∪B)=P(A)+P(B)−P(A∩B)
Suppose E is a random experiment. Let A and B be two events such that
$0
Then which of the following statements are true?
(A) A and Ac are mutually exclusive.
(B) A and Ac are independent.
(C) A and B are independent ⇒ A and Bc are independent.
(D) A and B are independent ⇒ Ac and Bc are independent.
(A) It is obvious that A & Ac are matually exclusive.
∵∄ ω ω∈A& ω∈AC
(B) A and Ac are independent.
Now we know that A and B are independent if P(A∩B)=P(A)P(B)
Now P(A∩Ac)=0
∵A∩Ac is ϕ
P(A∩Ac)=#Ω#ϕ=0
However, P(A).P(AC)=0
∵0<P(A)<1.
∴ B is false.
(C) A & B are independent ⇒A<Bc are independent.
P(A∩BC)=P(A)−P(A∩B)
=P(A)−P(A)P(B)
{∵ A & B are independent.}
P(A∩BC)=P(A)(1−P(B))
=P(A)P(BC)
∴A & BC are independent
∴ C is true.
(D) A and B are independent ⇒ Ac and Bc are independent
P(Ac∩Bc)=P(Ω)−P(A∪B)=1−(P(A)+P(B)−P(A∩B))
=1−P(A)−P(B)+P(A∩B)
=(1−P(A))−P(B)(1−P(A))
{∵ P(A∩B)=P(A).P(B)}
=(1−P(A))(1−P(B))
=P(Ac)⋅P(Bc)
∴(Ac) & (Bc) are independent.