Random experiments, events, conditional probability, Bayes theorem — uncertainty ko mathematically measure karo!
Random Experiment: Jiska result pehle se nahi pata — jaise coin toss, dice roll, card draw.
Sample Space (S): Sabhi possible outcomes ka set. Coin = {H,T}. Dice = {1,2,3,4,5,6}.
Event: Sample space ka koi subset — jo hum chahte hain wo ho.
| Event Type | Definition | Example (dice) |
|---|---|---|
| Simple Event | Sirf ek outcome | {3} = sirf 3 aaye |
| Compound Event | Do ya zyada outcomes | {2,4,6} = even number |
| Sure Event | S itself — hamesha hoga | 1 se 6 ke beech number aana |
| Impossible Event | Empty set — kabhi nahi hoga | 7 aana |
| Complementary | A' = S − A | A={1,2,3} → A'={4,5,6} |
| Mutually Exclusive | A∩B = ∅ (common element nahi) | Even aur Odd numbers |
Ek deck of 52 cards mein se ek card randomly nikala jaata hai. Find:
(a) P(King) = 4/52 = 1/13
(b) P(Red card) = 26/52 = 1/2
(c) P(Face card) = 12/52 = 3/13 (4 kings + 4 queens + 4 jacks)
(d) P(not a spade) = 1 − 13/52 = 3/4
Ek dice mein: A = even number = {2,4,6}, B = greater than 4 = {5,6}
P(A) = 3/6 = 1/2, P(B) = 2/6 = 1/3, P(A∩B) = P({6}) = 1/6
P(A∪B) = 1/2 + 1/3 − 1/6 = 3/6 + 2/6 − 1/6 = 4/6 = 2/3
Ek fair coin do baar toss kiya. P(dono heads) = ?
P(H₁) = 1/2, P(H₂) = 1/2 (independent!)
P(H₁ ∩ H₂) = 1/2 × 1/2 = 1/4
Jab humein pata ho ki ek event ho chuki hai, toh doosre event ki probability kya hogi?
2 red aur 3 blue balls ke bag se 2 balls nikale gaye bina replacement ke. P(dono red) = ?
Factory mein 3 machines A, B, C hain. A 50%, B 30%, C 20% production karti hain. Defect rate: A=2%, B=3%, C=5%.
Randomly ek defective item mila. Probability ki wo machine A se aaya?
Do dice throw kiye. P(sum = 7) = ? Answer: 6/36 = 1/6 (outcomes: (1,6),(2,5),(3,4),(4,3),(5,2),(6,1))
52 cards mein se 2 successively nikale (without replacement). P(dono Ace) = ? Answer: 4/52 × 3/51 = 12/2652 = 1/221
P(A) = 0.4, P(B) = 0.5, P(A∩B) = 0.2. Find P(A|B) aur P(B|A).
P(A|B) = 0.2/0.5 = 0.4; P(B|A) = 0.2/0.4 = 0.5
(Matlab: A aur B independent hain! P(A|B) = P(A) aur P(B|A) = P(B))