If we have n identical balls which are to be kept in k boxes at no box will remain empty then the number of possible arrangement is
n−1Ck−1
Ex: If we have 3 identical balls to be kept in 2 boxes 7 ne box in empty then there are two passible way of doing it : (1,2) or (2,1)
n identical balls to be kept in k boxes at some boxes may remain empty then the number of possible arrangements in
n+k−1Cx−h
Ex 3 balls 2 boxes possible arrangements are.
(0,3)(1,2)(2,1)(3,0)=4
& we have 3+2−1C2−1=4C1=4
In how many ways you can choose 5 numbers a,b,c,d,e there-exist
each one is >0 & a+b+c+d+e=20
then the number of possible
Solution: in 20−1c5−1=19c4
However, if a,b,c,d,e≥0 then the number of possible
sol's is 20+5−1C5−1 =24c4
In how many ways you can choose 5 numbers
n1,n2,n3,nnn5∋n6>0∀i=1,5
& n1<n2<n3<n4<n5
& ∑i=15ni=20.
∴ Note that :(1,2,3,4,10) is a possible sol's.
point (1,2,4,4,9) in not a sol's. 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 follow.
x1=n1−1 x2=n2−2
x3=n3−3 x4=n4−4
x5=n5−5
∴ Each xi≤n≥0
& x1≤x2≤x3≤xn≤x5
Hence the problem becomes: to choose 5 numbers
x1x2x3x4x5→ all are ≥0
x1+x2+x3+x4+x5
=n1−1+n2−2+n3−3+n4−4+n5−5
=∑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 | 5 | 6 |
In how many ways you choose 4 numbers
n1<n2<n3<n4n1>0∀ i=1,2,3,4
2∑i=1nn1=16,
we define:
x1=n1−1 x2=n2−2
x3=n3−3 xn=n4−4
→ each xi≥0x1⩽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 |
We talk about probability when the underlying experiment in random.
the sample space Ω in known. And we need to compute probability of what ??
Example
Coin tossing 5 time.
a)
what in the probability of two H's.
what in the probability of the number of T′s is prime.
Event: an event is a subset of the sample space Ω.
consider : we toss a coin 3 time. we want to compute that number of H's is odd.
HTT THT TTH & HHH
∴ We are looking at the probabilitiy of the subsect: 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 no of elementary events in 6 .
1, 2,3,⋯6.
def.) An event comprising of more that one elementary event in called a "compound" event.
Suppose the Ω in 1,2,3,4,5,6,7,8,9.
How many compound events are possible?
Solution:
Since ∣Ω∣=9∴ there are 29 possible subset.
of which 1 in ϕ & sa re elementary events.
∴ No. of compound events in
29−(9+1)=512−10=502
Def):
Two events E1 & E2 are said to be disjoint if E1∩E2=∅
Eg: Throwing a die.
E1: getting a number ≤3E2 : getting a number >4]disjoint
Def.)
A sequence of events E1,E2⋯EK in said to be mutnally exclusive if Ei∩Ej=ϕ∀i,j∈1,2,⋯k i=j.
Def.)
Two events A and B are said to be independent if P(A∩B)=P(A)∗P(B).
What in the probability of an event?
probability in a mapping from the power set of Ω to [0,1]
i.e.
if A⊆Ω then P(A)=p
When P satisfies the following:
a) P(A)≥0∀A⊆Ω.
b) P(Ω)=1
c) If A1,A2⋯Ak are matually exclusive then P(A1∪A2⋯∪Ak)=∑i=1kP(Ai).
Given a set A≤ΩP(A) in computed as ∣Ω∣number of elements in A
when the outcomes are equally likely
Ex.
Throwing a die and probability of getting an even no. is ∣Ω∣#{2,4,6}
=63=21
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).
since A∪AC=Ω
∴1=P(Ω)=P(A∪Ac)=P(A)+P(Ac)
∴P(Ac)=1−P(A).
Now consider getting 2H 's in 3 tosses
P(HHT)+ P(HTH)+ P(THH)
P(HHT)=p×p×(1−p),P(HTH)=p2(1−p),
P(THH)=p2(1−p)]
Total probability =3p2(1−p).
in 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.
∵ P(B∩AC) =P(B)−P(A∩B)
P(B∩A)+P(A∩BC)=P(A).
∴ So Together we have P(A∪B)=P(A)+P(B)−P(A∩B)
Let A and B be two events ∃
0<P(A)<1 & 0<P(B)<1.
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 mutually 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 in ∅]
However, P(A)∗P(AC)=0
[∴P(A∩Ac)]∵O<P(A)<1=Ωϕ=0
(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)(1−P(B))
=P(A)P(BC)A
∴A & BC are independent
(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)
∴AcBc are independent