Concrete Mathematics, Probability & StatisticsConcrete Mathematics, Probability & Statistics
Sums, counting, chance, and data — the math tools that BUET loves to test. Sums, counting, chance আর data — এই math tools গুলো BUET exam-এ খুব বেশি আসে।
- Sums and RecurrencesSums and Recurrences
- Permutations and CombinationsPermutations and Combinations
- Basic ProbabilityBasic Probability
- Conditional Probability and Bayes TheoremConditional Probability and Bayes Theorem
- Random Variables and DistributionsRandom Variables and Distributions
- Expectation and VarianceExpectation and Variance
- Basic StatisticsBasic Statistics
- Practice QuestionsPractice Questions
1. Sums and Recurrences1. Sums and Recurrences
Sigma notationSigma notation
A sum of many terms is written with the Greek letter sigma \( \Sigma \). It is just a short way to write a long addition.
অনেকগুলো term-এর sum লেখা হয় Greek letter sigma \( \Sigma \) দিয়ে। এটা আসলে লম্বা addition লেখার একটা short way।
Arithmetic seriesArithmetic series
In an arithmetic series, each term grows by the same amount \(d\) (the common difference). First term is \(a\), number of terms is \(n\).
Arithmetic series-এ প্রতিটা term একই পরিমাণ \(d\) (common difference) করে বাড়ে। প্রথম term \(a\), আর term সংখ্যা \(n\)।
Here \(a = 5\), \(d = 3\), last term \(= 50\). Number of terms: \( n = \frac{50 - 5}{3} + 1 = 16 \).
Sum \( = \frac{16}{2}(5 + 50) = 8 \times 55 = 440 \).
এখানে \(a = 5\), \(d = 3\), last term \(= 50\)। Term সংখ্যা: \( n = \frac{50 - 5}{3} + 1 = 16 \)।
Sum \( = \frac{16}{2}(5 + 50) = 8 \times 55 = 440 \)।
Geometric seriesGeometric series
In a geometric series, each term is multiplied by the same ratio \(r\).
Geometric series-এ প্রতিটা term একই ratio \(r\) দিয়ে multiply হয়।
Here \(a = 2\), \(r = 3\), \(n = 5\). Sum \( = 2 \cdot \frac{3^5 - 1}{3 - 1} = 2 \cdot \frac{242}{2} = 242 \).
এখানে \(a = 2\), \(r = 3\), \(n = 5\)। Sum \( = 2 \cdot \frac{3^5 - 1}{3 - 1} = 2 \cdot \frac{242}{2} = 242 \)।
Standard sum formulasStandard sum formulas
\( \sum k = \frac{10 \cdot 11}{2} = 55 \), \( \sum k^2 = \frac{10 \cdot 11 \cdot 21}{6} = 385 \), \( \sum k^3 = 55^2 = 3025 \).
Nice check: sum of cubes is always the square of the sum of the first powers.
\( \sum k = \frac{10 \cdot 11}{2} = 55 \), \( \sum k^2 = \frac{10 \cdot 11 \cdot 21}{6} = 385 \), \( \sum k^3 = 55^2 = 3025 \)।
সুন্দর check: cubes-এর sum সবসময় প্রথম powers-এর sum-এর square।
Telescoping sumsTelescoping sums
In a telescoping sum, each term splits into two parts. The middle parts cancel each other. Only the first and last parts stay. Like a telescope folding in.
Telescoping sum-এ প্রতিটা term দুই ভাগে ভাগ হয়। মাঝের part-গুলো একে অপরকে cancel করে দেয়। শুধু প্রথম আর শেষ part থাকে। ঠিক যেন একটা telescope ভাঁজ হয়ে যাচ্ছে।
Split: \( \frac{1}{k(k+1)} = \frac{1}{k} - \frac{1}{k+1} \).
Sum \( = \left(1 - \frac{1}{2}\right) + \left(\frac{1}{2} - \frac{1}{3}\right) + \dots + \left(\frac{1}{n} - \frac{1}{n+1}\right) \).
Everything in the middle cancels. Answer \( = 1 - \frac{1}{n+1} = \frac{n}{n+1} \).
Check with \(n = 3\): \( \frac{1}{2} + \frac{1}{6} + \frac{1}{12} = \frac{6+2+1}{12} = \frac{9}{12} = \frac{3}{4} \). Formula gives \( \frac{3}{4} \). Correct.
ভাগ করো: \( \frac{1}{k(k+1)} = \frac{1}{k} - \frac{1}{k+1} \)।
Sum \( = \left(1 - \frac{1}{2}\right) + \left(\frac{1}{2} - \frac{1}{3}\right) + \dots + \left(\frac{1}{n} - \frac{1}{n+1}\right) \)।
মাঝের সব cancel হয়ে যায়। Answer \( = 1 - \frac{1}{n+1} = \frac{n}{n+1} \)।
\(n = 3\) দিয়ে check: \( \frac{1}{2} + \frac{1}{6} + \frac{1}{12} = \frac{9}{12} = \frac{3}{4} \)। Formula দেয় \( \frac{3}{4} \)। ঠিক আছে।
Solving simple recurrencesSimple recurrence solve করা
A recurrence defines a value using earlier values. Example: \( T(n) = T(n-1) + n \). The easiest method is unfolding (also called iteration): keep replacing until you see a pattern, then close the sum.
Recurrence মানে আগের value দিয়ে নতুন value define করা। যেমন: \( T(n) = T(n-1) + n \)। সবচেয়ে সহজ method হলো unfolding (iteration-ও বলে): বারবার replace করতে থাকো যতক্ষণ না pattern দেখা যায়, তারপর sum-টা close করো।
Unfold: \( T(n) = T(n-2) + (n-1) + n = T(n-3) + (n-2) + (n-1) + n = \dots \)
After going all the way down: \( T(n) = 0 + 1 + 2 + \dots + n = \frac{n(n+1)}{2} \).
Check: \( T(3) = T(2) + 3 = (T(1) + 2) + 3 = (1) + 2 + 3 = 6 = \frac{3 \cdot 4}{2} \). Correct.
Unfold: \( T(n) = T(n-2) + (n-1) + n = T(n-3) + (n-2) + (n-1) + n = \dots \)
একদম নিচে নামলে: \( T(n) = 0 + 1 + 2 + \dots + n = \frac{n(n+1)}{2} \)।
Check: \( T(3) = 1 + 2 + 3 = 6 = \frac{3 \cdot 4}{2} \)। ঠিক আছে।
Compute small cases: \( h(1)=1,\ h(2)=3,\ h(3)=7,\ h(4)=15 \). These look like \( 2^n - 1 \).
Guess \( h(n) = 2^n - 1 \). Verify: \( 2(2^{n-1} - 1) + 1 = 2^n - 2 + 1 = 2^n - 1 \). It works. So the answer is \( h(n) = 2^n - 1 \).
ছোট case গুলো বের করো: \( h(1)=1,\ h(2)=3,\ h(3)=7,\ h(4)=15 \)। এগুলো দেখতে \( 2^n - 1 \)-এর মতো।
Guess: \( h(n) = 2^n - 1 \)। Verify: \( 2(2^{n-1} - 1) + 1 = 2^n - 1 \)। মিলে যায়। তাই answer \( h(n) = 2^n - 1 \)।
The repertoire idea (kept simple)Repertoire idea (সহজভাবে)
The book "Concrete Mathematics" teaches a trick called the repertoire method. The simple version: guess that the answer is a mix of simple functions, like \( T(n) = A \cdot 2^n + B \cdot n + C \). Plug in small known values of \(T\) to find \(A, B, C\). Then verify the guess in the recurrence. You do not need the full theory for admission — the "compute small cases, guess the pattern, verify" habit is what matters.
"Concrete Mathematics" বইয়ে repertoire method নামে একটা trick শেখানো হয়। সহজ version: ধরো answer কিছু simple function-এর mix, যেমন \( T(n) = A \cdot 2^n + B \cdot n + C \)। ছোট known value গুলো বসিয়ে \(A, B, C\) বের করো। তারপর recurrence-এ guess-টা verify করো। Admission-এর জন্য full theory লাগবে না — "ছোট case বের করো, pattern guess করো, verify করো" — এই habit-টাই আসল।
2. Permutations and Combinations2. Permutations and Combinations
Permutation = arrangement, where order matters. Combination = selection, where order does not matter. Picking a president and a secretary is a permutation. Picking two committee members is a combination.
Permutation মানে arrangement, যেখানে order matter করে। Combination মানে selection, যেখানে order matter করে না। President আর secretary বাছাই করা permutation। Committee-র দুইজন member বাছাই করা combination।
\( {}^{7}P_{3} = \frac{7!}{4!} = 7 \times 6 \times 5 = 210 \).
Choose 3 for a team (order does not matter):
\( {}^{7}C_{3} = \frac{7 \times 6 \times 5}{3!} = \frac{210}{6} = 35 \).
Notice: \( {}^{n}P_{r} = {}^{n}C_{r} \times r! \). Each team of 3 can be ordered in \(3! = 6\) ways.
\( {}^{7}P_{3} = \frac{7!}{4!} = 7 \times 6 \times 5 = 210 \)।
Team-এর জন্য 3 জন বাছাই (order matter করে না):
\( {}^{7}C_{3} = \frac{7 \times 6 \times 5}{3!} = \frac{210}{6} = 35 \)।
লক্ষ্য করো: \( {}^{n}P_{r} = {}^{n}C_{r} \times r! \)। 3 জনের প্রতিটা team-কে \(3! = 6\) ভাবে সাজানো যায়।
Useful identitiesদরকারি identities
- Symmetry: \( \binom{n}{r} = \binom{n}{n-r} \). Choosing 3 to take = choosing 4 to leave (when \(n=7\)).
- Pascal's rule: \( \binom{n}{r} = \binom{n-1}{r-1} + \binom{n-1}{r} \). Fix one item: either it is chosen or it is not.
- Row sum: \( \sum_{r=0}^{n} \binom{n}{r} = 2^n \). Total number of subsets of an \(n\)-element set.
- Edge values: \( \binom{n}{0} = \binom{n}{n} = 1 \), \( \binom{n}{1} = n \).
- Symmetry: \( \binom{n}{r} = \binom{n}{n-r} \)। 3 জন নেওয়া = 4 জন বাদ দেওয়া (যখন \(n=7\))।
- Pascal's rule: \( \binom{n}{r} = \binom{n-1}{r-1} + \binom{n-1}{r} \)। একটা item ধরো: হয় সেটা selected, নাহয় না।
- Row sum: \( \sum_{r=0}^{n} \binom{n}{r} = 2^n \)। একটা \(n\)-element set-এর মোট subset সংখ্যা।
- Edge values: \( \binom{n}{0} = \binom{n}{n} = 1 \), \( \binom{n}{1} = n \)।
Arrangements with repeated itemsRepeated item সহ arrangement
Total letters \(n = 11\). Repeats: I appears 4 times, S appears 4 times, P appears 2 times.
\[ \frac{11!}{4!\,4!\,2!} = \frac{39916800}{24 \cdot 24 \cdot 2} = \frac{39916800}{1152} = 34650. \]
মোট letter \(n = 11\)। Repeat: I আছে 4 বার, S আছে 4 বার, P আছে 2 বার।
\[ \frac{11!}{4!\,4!\,2!} = \frac{39916800}{1152} = 34650. \]
Circular permutationsCircular permutations
Around a round table, rotations look the same. So we fix one person and arrange the rest. \(n\) people in a circle: \((n-1)!\) ways. If a necklace can also be flipped over, divide by 2: \(\frac{(n-1)!}{2}\).
গোল টেবিলে rotation করলে arrangement একই দেখায়। তাই একজনকে fix করে বাকিদের সাজাই। \(n\) জন circle-এ: \((n-1)!\) ভাবে। Necklace উল্টানোও যায়, তাই 2 দিয়ে ভাগ: \(\frac{(n-1)!}{2}\)।
A necklace with 5 different beads: \( \frac{4!}{2} = 12 \) ways.
5টা আলাদা bead দিয়ে necklace: \( \frac{4!}{2} = 12 \) ভাবে।
Counting → probabilityCounting → probability
Most probability problems are just counting problems. Probability = (favourable count) ÷ (total count), when all outcomes are equally likely.
বেশিরভাগ probability problem আসলে counting problem। সব outcome equally likely হলে, probability = (favourable count) ÷ (total count)।
Total ways: \( \binom{7}{3} = 35 \).
Favourable: choose 2 girls from 3 and 1 boy from 4: \( \binom{3}{2}\binom{4}{1} = 3 \times 4 = 12 \).
Probability \( = \frac{12}{35} \).
মোট উপায়: \( \binom{7}{3} = 35 \)।
Favourable: 3 জন মেয়ে থেকে 2 জন আর 4 জন ছেলে থেকে 1 জন: \( \binom{3}{2}\binom{4}{1} = 12 \)।
Probability \( = \frac{12}{35} \)।
3. Basic Probability3. Basic Probability
Sample space and eventsSample space আর events
The sample space \(S\) is the set of all possible outcomes of an experiment. An event is any subset of \(S\). For a fair die, \( S = \{1,2,3,4,5,6\} \), and "roll an even number" is the event \( \{2,4,6\} \).
Sample space \(S\) হলো একটা experiment-এর সব possible outcome-এর set। Event হলো \(S\)-এর যেকোনো subset। Fair die-এর জন্য \( S = \{1,2,3,4,5,6\} \), আর "even number ওঠা" event-টা হলো \( \{2,4,6\} \)।
| ExperimentExperiment | Sample space sizeSample space size |
|---|---|
| One coin tossএকটা coin toss | 2 (H, T) |
| Three coin tossesতিনটা coin toss | \(2^3 = 8\) |
| One die rollএকটা die roll | 6 |
| Two dice rolledদুইটা dice roll | \(6 \times 6 = 36\) |
| Draw 1 card from a deckDeck থেকে 1টা card টানা | 52 |
Axioms of probabilityProbability-র axioms
- \( 0 \le P(A) \le 1 \) for any event \(A\).
- \( P(S) = 1 \). Something must happen.
- If \(A\) and \(B\) cannot happen together (mutually exclusive), then \( P(A \cup B) = P(A) + P(B) \).
From these: \( P(\varnothing) = 0 \) and \( P(A^c) = 1 - P(A) \) (the complement rule).
- যেকোনো event \(A\)-এর জন্য \( 0 \le P(A) \le 1 \)।
- \( P(S) = 1 \)। কিছু একটা ঘটবেই।
- \(A\) আর \(B\) একসাথে ঘটতে না পারলে (mutually exclusive), \( P(A \cup B) = P(A) + P(B) \)।
এগুলো থেকে পাই: \( P(\varnothing) = 0 \) আর \( P(A^c) = 1 - P(A) \) (complement rule)।
Addition ruleAddition rule
\( P(A) = \frac{13}{52} \), \( P(B) = \frac{4}{52} \), \( P(A \cap B) = \frac{1}{52} \) (king of hearts).
\( P(A \cup B) = \frac{13}{52} + \frac{4}{52} - \frac{1}{52} = \frac{16}{52} = \frac{4}{13} \).
We subtract \( \frac{1}{52} \) because the king of hearts was counted twice.
\( P(A) = \frac{13}{52} \), \( P(B) = \frac{4}{52} \), \( P(A \cap B) = \frac{1}{52} \) (king of hearts)।
\( P(A \cup B) = \frac{13}{52} + \frac{4}{52} - \frac{1}{52} = \frac{16}{52} = \frac{4}{13} \)।
\( \frac{1}{52} \) বিয়োগ করলাম কারণ king of hearts দুইবার গোনা হয়েছিল।
Classic worked examplesClassic worked examples
Total outcomes: 36. Favourable pairs: (1,6), (2,5), (3,4), (4,3), (5,2), (6,1) — that is 6.
\( P = \frac{6}{36} = \frac{1}{6} \). Sum 7 is the most likely sum with two dice.
মোট outcome: 36। Favourable pair: (1,6), (2,5), (3,4), (4,3), (5,2), (6,1) — মোট 6টা।
\( P = \frac{6}{36} = \frac{1}{6} \)। দুই dice-এ sum 7-ই সবচেয়ে likely।
Opposite event: no head at all = TTT. \( P(\text{TTT}) = \left(\frac{1}{2}\right)^3 = \frac{1}{8} \).
\( P(\text{at least one H}) = 1 - \frac{1}{8} = \frac{7}{8} \). Much faster than listing 7 cases.
উল্টো event: একটাও head নেই = TTT। \( P(\text{TTT}) = \left(\frac{1}{2}\right)^3 = \frac{1}{8} \)।
\( P(\text{at least one H}) = 1 - \frac{1}{8} = \frac{7}{8} \)। 7টা case list করার চেয়ে অনেক দ্রুত।
First ace: \( \frac{4}{52} \). Second ace (3 aces left in 51 cards): \( \frac{3}{51} \).
\( P = \frac{4}{52} \times \frac{3}{51} = \frac{12}{2652} = \frac{1}{221} \).
প্রথম ace: \( \frac{4}{52} \)। দ্বিতীয় ace (51টা card-এ 3টা ace বাকি): \( \frac{3}{51} \)।
\( P = \frac{4}{52} \times \frac{3}{51} = \frac{1}{221} \)।
Independent vs mutually exclusiveIndependent বনাম mutually exclusive
- Independent: one event gives no information about the other. Then \( P(A \cap B) = P(A)P(B) \). Example: two separate coin tosses.
- Mutually exclusive: both cannot happen together, so \( P(A \cap B) = 0 \). Example: one die roll being both 2 and 5.
- Independent: এক event অন্যটার সম্পর্কে কোনো information দেয় না। তখন \( P(A \cap B) = P(A)P(B) \)। যেমন: দুইটা আলাদা coin toss।
- Mutually exclusive: দুটো একসাথে ঘটতে পারে না, তাই \( P(A \cap B) = 0 \)। যেমন: এক die roll-এ একসাথে 2 আর 5 ওঠা।
Runs in Coin Tosses (Real Exam Topic!)Runs in Coin Tosses (Real Exam Topic!)
A run is a maximal block of identical outcomes in a row. "Maximal" means the block cannot be stretched any further on either side. In the sequence HHTTTH there are 3 runs: HH, then TTT, then H.
Two simple facts to remember:
- Every sequence starts with a run.
- A new run starts exactly when a toss is different from the toss just before it.
Run হলো পরপর একই outcome-এর একটা maximal block। "Maximal" মানে block-টাকে কোনো দিকেই আর বড় করা যায় না। HHTTTH sequence-এ 3টা run আছে: HH, তারপর TTT, তারপর H।
দুইটা সহজ fact মনে রাখো:
- প্রতিটা sequence একটা run দিয়ে শুরু হয়।
- যখনই কোনো toss তার ঠিক আগের toss থেকে আলাদা হয়, ঠিক তখনই একটা নতুন run শুরু হয়।
The sample space has \( 2^3 = 8 \) equally likely outcomes:
HHH, HHT, HTH, HTT, THH, THT, TTH, TTT.
Which ones have two H in a row? HHH ✓, HHT ✓, THH ✓. Note HTH does not count — its two heads are separated by a tail.
\( P = \frac{3}{8} \). For small sample spaces, listing all outcomes is the safest and fastest method.
Sample space-এ \( 2^3 = 8 \)টা equally likely outcome:
HHH, HHT, HTH, HTT, THH, THT, TTH, TTT।
কোনগুলোতে পরপর দুইটা H আছে? HHH ✓, HHT ✓, THH ✓। খেয়াল করো HTH গোনা হবে না — তার দুইটা head-এর মাঝে একটা tail আছে।
\( P = \frac{3}{8} \)। ছোট sample space-এ সব outcome list করাই সবচেয়ে safe আর দ্রুত method।
Use indicator variables. The first toss always starts a run — that gives the 1. Then look at the \( n - 1 \) boundaries between neighbouring tosses. For boundary \( i \) (between toss \( i \) and toss \( i+1 \)), let \( X_i = 1 \) if the two tosses differ (a new run starts there), else 0.
For a fair coin, \( P(\text{two neighbouring tosses differ}) = \frac{1}{2} \), so \( E[X_i] = \frac{1}{2} \).
By linearity of expectation:
\[ E[\text{runs}] = 1 + \sum_{i=1}^{n-1} E[X_i] = 1 + \frac{n-1}{2} \] Check with \( n = 3 \): formula gives \( 1 + 1 = 2 \). By listing: HHH→1, HHT→2, HTH→3, HTT→2, THH→2, THT→3, TTH→2, TTT→1. Average \( = \frac{16}{8} = 2 \). Correct.
The \( X_i \) are not independent, but linearity of expectation does not care — that is the whole trick.
Indicator variable ব্যবহার করো। প্রথম toss-টা সবসময় একটা run শুরু করে — সেখান থেকেই 1 আসে। তারপর পাশাপাশি toss-গুলোর মাঝের \( n - 1 \)টা boundary দেখো। Boundary \( i \)-এর জন্য (toss \( i \) আর toss \( i+1 \)-এর মাঝে), ধরো \( X_i = 1 \) যদি toss দুইটা আলাদা হয় (সেখানে নতুন run শুরু হয়), নাহলে 0।
Fair coin-এর জন্য \( P(\text{পাশাপাশি দুই toss আলাদা}) = \frac{1}{2} \), তাই \( E[X_i] = \frac{1}{2} \)।
Linearity of expectation দিয়ে:
\[ E[\text{runs}] = 1 + \sum_{i=1}^{n-1} E[X_i] = 1 + \frac{n-1}{2} \] \( n = 3 \) দিয়ে check: formula দেয় \( 1 + 1 = 2 \)। List করলে: HHH→1, HHT→2, HTH→3, HTT→2, THH→2, THT→3, TTH→2, TTT→1। Average \( = \frac{16}{8} = 2 \)। ঠিক আছে।
\( X_i \)-গুলো independent না, কিন্তু linearity of expectation-এর তাতে কিছু যায় আসে না — এটাই পুরো trick।
Connection to the geometric distribution: once a run of heads starts, each next toss continues it with probability \( \frac{1}{2} \) and ends it with probability \( \frac{1}{2} \). So the length \( L \) of a run of heads follows a geometric distribution: \( P(L = k) = \left(\frac{1}{2}\right)^{k-1} \cdot \frac{1}{2} = \left(\frac{1}{2}\right)^{k} \), and the expected run length is \( E[L] = 2 \). Long runs get rare very fast — a run of length 5 has probability \( \frac{1}{32} \).
Geometric distribution-এর সাথে connection: একবার heads-এর run শুরু হলে, পরের প্রতিটা toss probability \( \frac{1}{2} \) দিয়ে run-টা চালিয়ে যায় আর \( \frac{1}{2} \) দিয়ে শেষ করে। তাই heads-এর run-এর length \( L \) একটা geometric distribution মানে: \( P(L = k) = \left(\frac{1}{2}\right)^{k-1} \cdot \frac{1}{2} = \left(\frac{1}{2}\right)^{k} \), আর expected run length \( E[L] = 2 \)। লম্বা run খুব দ্রুত rare হয়ে যায় — length 5-এর একটা run-এর probability \( \frac{1}{32} \)।
1. \( P(\text{at least one}) = 1 - P(\text{none}) \) — the complement is almost always faster.
2. Linearity of expectation works without independence — never waste time checking independence for an expected value.
3. For a small sample space (8 or 16 outcomes), just enumerate — listing beats formulas under time pressure.
1. \( P(\text{at least one}) = 1 - P(\text{none}) \) — complement প্রায় সবসময় দ্রুত।
2. Linearity of expectation independence ছাড়াই কাজ করে — expected value-র জন্য independence check করে সময় নষ্ট কোরো না।
3. ছোট sample space হলে (8 বা 16টা outcome) সরাসরি enumerate করো — সময়ের চাপে formula-র চেয়ে list করাই ভালো।
4. Conditional Probability and Bayes Theorem4. Conditional Probability and Bayes Theorem
Conditional probabilityConditional probability
\( P(A \mid B) \) means: the probability of \(A\), given that \(B\) already happened. Knowing \(B\) shrinks the sample space down to \(B\) only.
\( P(A \mid B) \) মানে: \(B\) ঘটে গেছে জেনে নিয়ে \(A\)-এর probability। \(B\) জানা থাকলে sample space ছোট হয়ে শুধু \(B\) হয়ে যায়।
\( A \cap B = \{4, 6\} \), so \( P(A \cap B) = \frac{2}{6} \) and \( P(B) = \frac{3}{6} \).
\( P(A \mid B) = \frac{2/6}{3/6} = \frac{2}{3} \).
Sense check: given even, the options are \(\{2,4,6\}\); two of the three are above 3. Correct.
\( A \cap B = \{4, 6\} \), তাই \( P(A \cap B) = \frac{2}{6} \) আর \( P(B) = \frac{3}{6} \)।
\( P(A \mid B) = \frac{2/6}{3/6} = \frac{2}{3} \)।
Sense check: even জানা থাকলে option \(\{2,4,6\}\); তিনটার মধ্যে দুইটা 3-এর বেশি। ঠিক আছে।
Multiplication ruleMultiplication rule
\( P(\text{1st red}) = \frac{3}{5} \). Given the first was red, \( P(\text{2nd red}) = \frac{2}{4} \).
\( P(\text{both red}) = \frac{3}{5} \times \frac{2}{4} = \frac{6}{20} = \frac{3}{10} \).
\( P(\text{1st red}) = \frac{3}{5} \)। প্রথমটা red হলে \( P(\text{2nd red}) = \frac{2}{4} \)।
\( P(\text{both red}) = \frac{3}{5} \times \frac{2}{4} = \frac{3}{10} \)।
Law of total probabilityLaw of total probability
If \( B_1, B_2, \dots, B_n \) split the sample space into non-overlapping pieces (a partition), then any event \(A\) can be computed piece by piece:
যদি \( B_1, B_2, \dots, B_n \) sample space-কে non-overlapping টুকরোয় ভাগ করে (partition), তাহলে যেকোনো event \(A\) টুকরো টুকরো করে হিসাব করা যায়:
Bayes theoremBayes theorem
Bayes theorem flips a conditional probability. You know \( P(A \mid B) \), you want \( P(B \mid A) \). It answers: "the result happened — which cause is likely behind it?"
Bayes theorem একটা conditional probability উল্টে দেয়। তুমি জানো \( P(A \mid B) \), চাও \( P(B \mid A) \)। এটা answer দেয়: "result-টা ঘটে গেছে — কোন cause-এর সম্ভাবনা বেশি?"
A disease affects 1% of people. A test detects the disease 99% of the time when it is present (true positive). But it also gives a false positive 5% of the time for healthy people. A random person tests positive. What is the probability they really have the disease?
Let \(D\) = has disease, \(+\) = tests positive.
Given: \( P(D) = 0.01 \), \( P(+ \mid D) = 0.99 \), \( P(+ \mid D^c) = 0.05 \).
Step 1 — total probability of a positive test:
\[ P(+) = P(D)P(+ \mid D) + P(D^c)P(+ \mid D^c) = (0.01)(0.99) + (0.99)(0.05) = 0.0099 + 0.0495 = 0.0594 \] Step 2 — Bayes:
\[ P(D \mid +) = \frac{0.0099}{0.0594} \approx 0.1667 \approx 16.7\% \] Surprise: even after a positive test, the chance is only about 1 in 6. Why? Healthy people are so many (99%) that their few false positives (5%) still outnumber the true positives.
একটা disease 1% মানুষের হয়। Disease থাকলে test 99% সময় ধরে ফেলে (true positive)। কিন্তু healthy মানুষের বেলায় 5% সময় false positive দেয়। Random একজনের test positive এলো। তার আসলেই disease থাকার probability কত?
ধরো \(D\) = disease আছে, \(+\) = test positive।
Given: \( P(D) = 0.01 \), \( P(+ \mid D) = 0.99 \), \( P(+ \mid D^c) = 0.05 \)।
Step 1 — positive test-এর total probability:
\[ P(+) = (0.01)(0.99) + (0.99)(0.05) = 0.0099 + 0.0495 = 0.0594 \] Step 2 — Bayes:
\[ P(D \mid +) = \frac{0.0099}{0.0594} \approx 0.1667 \approx 16.7\% \] অবাক করা ব্যাপার: positive test-এর পরেও chance মাত্র 1 in 6-এর মতো। কেন? Healthy মানুষ এত বেশি (99%) যে তাদের অল্প false positive (5%)-ও true positive-এর চেয়ে বেশি হয়ে যায়।
Machine A makes 60% of all items and 2% of its items are defective. Machine B makes 40% and 5% of its items are defective. An item picked at random is defective. What is the probability it came from B?
\( P(A) = 0.6,\ P(B) = 0.4,\ P(D \mid A) = 0.02,\ P(D \mid B) = 0.05 \).
\( P(D) = (0.6)(0.02) + (0.4)(0.05) = 0.012 + 0.020 = 0.032 \).
\( P(B \mid D) = \frac{0.020}{0.032} = 0.625 \).
So a defective item most likely came from B, even though B makes fewer items — because B's defect rate is much higher.
Machine A মোট item-এর 60% বানায়, আর তার 2% defective। Machine B বানায় 40%, তার 5% defective। Random একটা item নেওয়া হলো, সেটা defective। এটা B থেকে আসার probability কত?
\( P(A) = 0.6,\ P(B) = 0.4,\ P(D \mid A) = 0.02,\ P(D \mid B) = 0.05 \)।
\( P(D) = (0.6)(0.02) + (0.4)(0.05) = 0.012 + 0.020 = 0.032 \)।
\( P(B \mid D) = \frac{0.020}{0.032} = 0.625 \)।
তাই defective item সম্ভবত B থেকেই এসেছে, যদিও B কম item বানায় — কারণ B-এর defect rate অনেক বেশি।
5. Random Variables and Distributions5. Random Variables and Distributions
What is a random variable?Random variable কী?
A random variable \(X\) is a number attached to a random outcome. Example: toss 3 coins, let \(X\) = number of heads. \(X\) can be 0, 1, 2, or 3.
- Discrete: \(X\) takes separate values you can list (0, 1, 2, ...). Example: number of heads.
- Continuous: \(X\) can be any value in a range. Example: exact temperature, waiting time.
Random variable \(X\) হলো random outcome-এর সাথে লাগানো একটা number। যেমন: 3টা coin toss করো, \(X\) = head-এর সংখ্যা। \(X\) হতে পারে 0, 1, 2, বা 3।
- Discrete: \(X\) আলাদা আলাদা value নেয়, যেগুলো list করা যায় (0, 1, 2, ...)। যেমন: head-এর সংখ্যা।
- Continuous: \(X\) একটা range-এর যেকোনো value নিতে পারে। যেমন: exact temperature, waiting time।
PMF, PDF, CDFPMF, PDF, CDF
| NameName | Forকার জন্য | Meaningমানে |
|---|---|---|
| PMF \( p(x) \) | discretediscrete | \( P(X = x) \) — probability of exactly \(x\). All PMF values add to 1.\( P(X = x) \) — ঠিক \(x\) হওয়ার probability। সব PMF value যোগ করলে 1। |
| PDF \( f(x) \) | continuouscontinuous | density; probability = area under the curve. \( P(X = \text{one exact value}) = 0 \).density; probability = curve-এর নিচের area। \( P(X = \text{একটা exact value}) = 0 \)। |
| CDF \( F(x) \) | bothদুটোর জন্যই | \( F(x) = P(X \le x) \) — accumulated probability up to \(x\). It never decreases; goes from 0 to 1.\( F(x) = P(X \le x) \) — \(x\) পর্যন্ত জমা হওয়া probability। কখনো কমে না; 0 থেকে 1-এ যায়। |
Bernoulli distributionBernoulli distribution
One trial, two outcomes: success (probability \(p\)) or failure (probability \(1-p\)). \(X = 1\) for success, \(0\) for failure. One coin toss with \(p = 0.5\) is Bernoulli.
একটা মাত্র trial, দুইটা outcome: success (probability \(p\)) বা failure (probability \(1-p\))। Success হলে \(X = 1\), failure হলে \(0\)। \(p = 0.5\)-এর একটা coin toss হলো Bernoulli।
Binomial distributionBinomial distribution
Repeat a Bernoulli trial \(n\) times, independently. \(X\) = total number of successes. We write \( X \sim \text{Binomial}(n, p) \).
একটা Bernoulli trial \(n\) বার independently repeat করো। \(X\) = মোট success সংখ্যা। লেখা হয় \( X \sim \text{Binomial}(n, p) \)।
\( n = 5,\ p = \frac{1}{2},\ k = 3 \).
\[ P(X = 3) = \binom{5}{3} \left(\tfrac{1}{2}\right)^3 \left(\tfrac{1}{2}\right)^2 = 10 \times \tfrac{1}{32} = \tfrac{10}{32} = \tfrac{5}{16} = 0.3125 \] The \( \binom{5}{3} = 10 \) counts which 3 of the 5 tosses are the heads.
\( n = 5,\ p = \frac{1}{2},\ k = 3 \)।
\[ P(X = 3) = \binom{5}{3} \left(\tfrac{1}{2}\right)^3 \left(\tfrac{1}{2}\right)^2 = 10 \times \tfrac{1}{32} = \tfrac{5}{16} = 0.3125 \] \( \binom{5}{3} = 10 \) গুনে দেয় 5টা toss-এর কোন 3টা head হবে।
Poisson distributionPoisson distribution
Poisson counts rare events in a fixed time or space, when only the average rate \( \lambda \) is known. Examples: calls per hour at a helpline, typos per page, packets per second at a router.
Poisson গোনে fixed time বা space-এ rare event, যখন শুধু average rate \( \lambda \) জানা থাকে। যেমন: helpline-এ প্রতি ঘণ্টায় call, প্রতি page-এ typo, router-এ প্রতি second-এ packet।
\[ P(X = 3) = \frac{e^{-2}\, 2^{3}}{3!} = \frac{0.1353 \times 8}{6} \approx 0.1804 \] And \( P(\text{no calls}) = e^{-2} \approx 0.1353 \).
\[ P(X = 3) = \frac{e^{-2}\, 2^{3}}{3!} = \frac{0.1353 \times 8}{6} \approx 0.1804 \] আর \( P(\text{no calls}) = e^{-2} \approx 0.1353 \)।
Uniform distributionUniform distribution
Discrete uniform: every value equally likely, like a fair die: \( P(X = k) = \frac{1}{6} \) for \(k = 1..6\).
Continuous uniform on \([a, b]\): flat PDF \( f(x) = \frac{1}{b-a} \). Probability of a sub-interval = its length ÷ \((b-a)\).
Discrete uniform: প্রতিটা value equally likely, যেমন fair die: \( P(X = k) = \frac{1}{6} \), \(k = 1..6\)।
Continuous uniform \([a, b]\)-তে: flat PDF \( f(x) = \frac{1}{b-a} \)। কোনো sub-interval-এর probability = তার length ÷ \((b-a)\)।
Normal distribution and z-scoreNormal distribution আর z-score
The Normal (Gaussian) distribution is the famous bell curve, written \( X \sim N(\mu, \sigma^2) \). It is symmetric around the mean \( \mu \); the spread is set by the standard deviation \( \sigma \). Heights, marks, and measurement errors are roughly Normal.
The z-score converts any Normal value to the standard Normal \( N(0, 1) \):
Normal (Gaussian) distribution হলো বিখ্যাত bell curve, লেখা হয় \( X \sim N(\mu, \sigma^2) \)। এটা mean \( \mu \)-এর চারপাশে symmetric; ছড়ানোটা ঠিক করে standard deviation \( \sigma \)। Height, marks, measurement error — এগুলো মোটামুটি Normal।
z-score যেকোনো Normal value-কে standard Normal \( N(0, 1) \)-এ convert করে:
\( z = \frac{80 - 60}{10} = 2 \). The student is 2 standard deviations above the mean.
By the 95% rule, only about 2.5% of students score above \( z = 2 \). So 80 is roughly the top 2.5%.
\( z = \frac{80 - 60}{10} = 2 \)। Student-টা mean-এর চেয়ে 2 standard deviation উপরে।
95% rule অনুযায়ী, মাত্র প্রায় 2.5% student \( z = 2 \)-এর উপরে score করে। তাই 80 মোটামুটি top 2.5%।
6. Expectation and Variance6. Expectation and Variance
Expected value E[X]Expected value E[X]
The expectation \( E[X] \) is the long-run average of \(X\). For a discrete variable, multiply each value by its probability and add.
Expectation \( E[X] \) হলো \(X\)-এর long-run average। Discrete variable-এর জন্য প্রতিটা value-কে তার probability দিয়ে multiply করে যোগ করো।
\[ E[X] = \frac{1+2+3+4+5+6}{6} = \frac{21}{6} = 3.5 \] Note: 3.5 is never an actual outcome. Expectation is an average, not a prediction of one roll.
\[ E[X] = \frac{1+2+3+4+5+6}{6} = \frac{21}{6} = 3.5 \] লক্ষ্য করো: 3.5 কখনো আসল outcome না। Expectation একটা average, এক roll-এর prediction না।
Linearity of expectationLinearity of expectation
The most powerful rule in this chapter: \( E[X + Y] = E[X] + E[Y] \) — always, even when \(X\) and \(Y\) are dependent. Also \( E[aX + b] = aE[X] + b \).
এই chapter-এর সবচেয়ে powerful rule: \( E[X + Y] = E[X] + E[Y] \) — সবসময়, এমনকি \(X\) আর \(Y\) dependent হলেও। আর \( E[aX + b] = aE[X] + b \)।
\( E[X_1 + X_2] = E[X_1] + E[X_2] = 3.5 + 3.5 = 7 \). No need to list 36 outcomes.
\( E[X_1 + X_2] = E[X_1] + E[X_2] = 3.5 + 3.5 = 7 \)। 36টা outcome list করার দরকার নেই।
Let \( X_i = 1 \) if person \(i\) gets their own hat, else 0. \( E[X_i] = \frac{1}{10} \).
\( E[X] = E[X_1] + \dots + E[X_{10}] = 10 \times \frac{1}{10} = 1 \).
The \(X_i\) are dependent, but linearity does not care. Answer: exactly 1 on average.
ধরো \( X_i = 1 \) যদি person \(i\) নিজের hat পায়, নাহলে 0। \( E[X_i] = \frac{1}{10} \)।
\( E[X] = E[X_1] + \dots + E[X_{10}] = 10 \times \frac{1}{10} = 1 \)।
\(X_i\) গুলো dependent, কিন্তু linearity-র তাতে কিছু যায় আসে না। Answer: গড়ে ঠিক 1 জন।
Variance and standard deviationVariance আর standard deviation
Variance measures how spread out \(X\) is around its mean. Standard deviation \( \sigma \) is its square root — same unit as \(X\).
Variance মাপে \(X\) তার mean-এর চারপাশে কতটা ছড়ানো। Standard deviation \( \sigma \) হলো তার square root — \(X\)-এর same unit-এ।
\( E[X] = 3.5 \).
\( E[X^2] = \frac{1^2 + 2^2 + 3^2 + 4^2 + 5^2 + 6^2}{6} = \frac{91}{6} \).
\[ \operatorname{Var}(X) = \frac{91}{6} - (3.5)^2 = 15.1667 - 12.25 = \frac{35}{12} \approx 2.9167 \] \( \sigma = \sqrt{35/12} \approx 1.708 \).
\( E[X] = 3.5 \)।
\( E[X^2] = \frac{1^2 + 2^2 + \dots + 6^2}{6} = \frac{91}{6} \)।
\[ \operatorname{Var}(X) = \frac{91}{6} - (3.5)^2 = \frac{35}{12} \approx 2.9167 \] \( \sigma = \sqrt{35/12} \approx 1.708 \)।
Useful rules: \( \operatorname{Var}(aX + b) = a^2 \operatorname{Var}(X) \) — shifting by \(b\) changes nothing, scaling by \(a\) scales variance by \(a^2\). If \(X\) and \(Y\) are independent, \( \operatorname{Var}(X + Y) = \operatorname{Var}(X) + \operatorname{Var}(Y) \).
দরকারি rules: \( \operatorname{Var}(aX + b) = a^2 \operatorname{Var}(X) \) — \(b\) দিয়ে shift করলে কিছু বদলায় না, \(a\) দিয়ে scale করলে variance \(a^2\) গুণ হয়। \(X\) আর \(Y\) independent হলে \( \operatorname{Var}(X + Y) = \operatorname{Var}(X) + \operatorname{Var}(Y) \)।
Mean and variance of common distributionsCommon distribution-এর mean আর variance
| DistributionDistribution | \( E[X] \) | \( \operatorname{Var}(X) \) |
|---|---|---|
| Bernoulli(\(p\)) | \( p \) | \( p(1-p) \) |
| Binomial(\(n, p\)) | \( np \) | \( np(1-p) \) |
| Poisson(\( \lambda \)) | \( \lambda \) | \( \lambda \) |
| Uniform on \([a,b]\)Uniform \([a,b]\)-তে | \( \frac{a+b}{2} \) | \( \frac{(b-a)^2}{12} \) |
| Normal(\( \mu, \sigma^2 \)) | \( \mu \) | \( \sigma^2 \) |
\( E[X] = np = 100 \times 0.5 = 50 \). \( \operatorname{Var}(X) = np(1-p) = 100 \times 0.5 \times 0.5 = 25 \). \( \sigma = 5 \).
So most runs land between 45 and 55 heads (within \( \pm 1\sigma \)).
\( E[X] = np = 50 \)। \( \operatorname{Var}(X) = np(1-p) = 25 \)। \( \sigma = 5 \)।
তাই বেশিরভাগ সময় head পড়বে 45 থেকে 55-এর মধ্যে (\( \pm 1\sigma \)-এর ভেতরে)।
7. Basic Statistics7. Basic Statistics
Mean, median, modeMean, median, mode
- Mean = sum of all values ÷ how many values. \( \bar{x} = \frac{1}{n}\sum x_i \).
- Median = the middle value after sorting. If \(n\) is even, average the two middle values.
- Mode = the most frequent value.
- Mean = সব value-র sum ÷ value সংখ্যা। \( \bar{x} = \frac{1}{n}\sum x_i \)।
- Median = sort করার পর মাঝের value। \(n\) even হলে মাঝের দুইটার average।
- Mode = সবচেয়ে বেশিবার আসা value।
Mean \( = \frac{7+3+9+3+8}{5} = \frac{30}{5} = 6 \).
Sorted: 3, 3, 7, 8, 9 → Median = 7. Mode = 3 (appears twice).
Range = max − min = 9 − 3 = 6.
Mean \( = \frac{30}{5} = 6 \)।
Sort করলে: 3, 3, 7, 8, 9 → Median = 7। Mode = 3 (দুইবার আছে)।
Range = max − min = 9 − 3 = 6।
Variance and standard deviation of a data setData set-এর variance আর standard deviation
Step 1 — mean: \( \bar{x} = \frac{2+4+4+4+5+5+7+9}{8} = \frac{40}{8} = 5 \).
Step 2 — deviations from 5: −3, −1, −1, −1, 0, 0, 2, 4.
Step 3 — squared: 9, 1, 1, 1, 0, 0, 4, 16. Sum = 32.
Step 4 — variance: \( \sigma^2 = \frac{32}{8} = 4 \). Standard deviation: \( \sigma = \sqrt{4} = 2 \).
If this were a sample: \( s^2 = \frac{32}{7} \approx 4.571 \), \( s \approx 2.138 \).
Step 1 — mean: \( \bar{x} = \frac{40}{8} = 5 \)।
Step 2 — 5 থেকে deviation: −3, −1, −1, −1, 0, 0, 2, 4।
Step 3 — square: 9, 1, 1, 1, 0, 0, 4, 16। Sum = 32।
Step 4 — variance: \( \sigma^2 = \frac{32}{8} = 4 \)। Standard deviation: \( \sigma = 2 \)।
এটা sample হলে: \( s^2 = \frac{32}{7} \approx 4.571 \), \( s \approx 2.138 \)।
Population vs samplePopulation বনাম sample
A population is the whole group you care about. A sample is the part you actually measured. When estimating a population's variance from a sample, divide by \(n - 1\) instead of \(n\) (Bessel's correction) — a sample tends to underestimate the spread, and \(n-1\) fixes that on average.
Population হলো পুরো group যেটা নিয়ে তুমি ভাবছ। Sample হলো যতটুকু আসলে measure করেছ। Sample থেকে population-এর variance estimate করার সময় \(n\)-এর বদলে \(n - 1\) দিয়ে ভাগ করো (Bessel's correction) — sample সাধারণত spread-কে কম দেখায়, আর \(n-1\) গড়ে সেটা ঠিক করে দেয়।
Correlation (the idea)Correlation (idea-টা)
Correlation \(r\) measures how two variables move together. \( -1 \le r \le 1 \).
- \( r \approx +1 \): move together (study hours vs marks).
- \( r \approx -1 \): move oppositely (price vs demand).
- \( r \approx 0 \): no linear relationship.
Important: correlation does not prove causation. Ice-cream sales and drowning are correlated — the hidden cause is summer.
Correlation \(r\) মাপে দুইটা variable একসাথে কেমন চলে। \( -1 \le r \le 1 \)।
- \( r \approx +1 \): একসাথে বাড়ে (study hours বনাম marks)।
- \( r \approx -1 \): উল্টোদিকে চলে (price বনাম demand)।
- \( r \approx 0 \): কোনো linear relationship নেই।
গুরুত্বপূর্ণ: correlation মানেই causation না। Ice-cream বিক্রি আর drowning correlated — লুকানো cause হলো summer।
Practice Questions (Admission Style)Practice Questions (Admission Style)
17 questions, easy to hard. Try each one on paper before opening the answer. 17টা প্রশ্ন, সহজ থেকে কঠিন। Answer খোলার আগে প্রতিটা কাগজে try করো।
Show Answerউত্তর দেখুন
Show Answerউত্তর দেখুন
Show Answerউত্তর দেখুন
Show Answerউত্তর দেখুন
Show Answerউত্তর দেখুন
\( S_8 = 3 \cdot \frac{2^8 - 1}{2 - 1} = 3 \times 255 = 765 \).
\( S_8 = 3 \cdot \frac{2^8 - 1}{2 - 1} = 3 \times 255 = 765 \)।
Show Answerউত্তর দেখুন
Show Answerউত্তর দেখুন
\[ \frac{10!}{3!\,3!\,2!} = \frac{3628800}{6 \times 6 \times 2} = \frac{3628800}{72} = 50400 \]
\[ \frac{10!}{3!\,3!\,2!} = \frac{3628800}{72} = 50400 \]
Show Answerউত্তর দেখুন
Show Answerউত্তর দেখুন
Verify in the recurrence: \( 2(2^{n-1} - 1) + 1 = 2^n - 2 + 1 = 2^n - 1 \). ✓ Base: \( 2^1 - 1 = 1 = T(1) \). ✓
(This is the Tower of Hanoi count.)
Recurrence-এ verify: \( 2(2^{n-1} - 1) + 1 = 2^n - 1 \)। ✓ Base: \( 2^1 - 1 = 1 = T(1) \)। ✓
(এটাই Tower of Hanoi-এর count।)
Show Answerউত্তর দেখুন
\( P = \binom{4}{2}\left(\frac{1}{2}\right)^4 = 6 \times \frac{1}{16} = \frac{6}{16} = \frac{3}{8} \).
\( P = \binom{4}{2}\left(\frac{1}{2}\right)^4 = 6 \times \frac{1}{16} = \frac{3}{8} \)।
Show Answerউত্তর দেখুন
(i) \( P(X = 0) = \frac{e^{-3} \cdot 3^0}{0!} = e^{-3} \approx 0.0498 \).
(ii) \( P(X \ge 1) = 1 - P(X = 0) = 1 - 0.0498 = 0.9502 \). "At least one" almost always goes through the complement.
(i) \( P(X = 0) = e^{-3} \approx 0.0498 \)।
(ii) \( P(X \ge 1) = 1 - P(X = 0) = 0.9502 \)। "At least one" প্রায় সবসময় complement দিয়ে করা হয়।
Show Answerউত্তর দেখুন
Show Answerউত্তর দেখুন
Alternative by combinations: \( \frac{\binom{4}{2}}{\binom{52}{2}} = \frac{6}{1326} = \frac{1}{221} \). Same answer, two methods — good for checking.
Combination দিয়েও করা যায়: \( \frac{\binom{4}{2}}{\binom{52}{2}} = \frac{6}{1326} = \frac{1}{221} \)। একই answer, দুই method — check করার জন্য ভালো।
Show Answerউত্তর দেখুন
Priors: \( P(A) = 0.6,\ P(B) = 0.4 \). Conditionals: \( P(D \mid A) = 0.02,\ P(D \mid B) = 0.05 \).
Total: \( P(D) = (0.6)(0.02) + (0.4)(0.05) = 0.012 + 0.020 = 0.032 \).
\( P(B \mid D) = \frac{0.020}{0.032} = \frac{5}{8} = 0.625 \).
B makes fewer items but far more of the defects, so the defective item points to B.
Prior: \( P(A) = 0.6,\ P(B) = 0.4 \)। Conditional: \( P(D \mid A) = 0.02,\ P(D \mid B) = 0.05 \)।
Total: \( P(D) = 0.012 + 0.020 = 0.032 \)।
\( P(B \mid D) = \frac{0.020}{0.032} = \frac{5}{8} = 0.625 \)।
B কম item বানালেও defect-এর বড় অংশ B-এর, তাই defective item টা B-এর দিকেই point করে।
Show Answerউত্তর দেখুন
Check PMF first: \( 0.2 + 0.5 + 0.3 = 1 \). ✓
\( E[X] = 1(0.2) + 2(0.5) + 3(0.3) = 0.2 + 1.0 + 0.9 = 2.1 \).
\( E[X^2] = 1(0.2) + 4(0.5) + 9(0.3) = 0.2 + 2.0 + 2.7 = 4.9 \).
\( \operatorname{Var}(X) = 4.9 - (2.1)^2 = 4.9 - 4.41 = 0.49 \).
\( \sigma = \sqrt{0.49} = 0.7 \).
আগে PMF check: \( 0.2 + 0.5 + 0.3 = 1 \)। ✓
\( E[X] = 1(0.2) + 2(0.5) + 3(0.3) = 2.1 \)।
\( E[X^2] = 1(0.2) + 4(0.5) + 9(0.3) = 4.9 \)।
\( \operatorname{Var}(X) = 4.9 - (2.1)^2 = 0.49 \)।
\( \sigma = \sqrt{0.49} = 0.7 \)।
Show Answerউত্তর দেখুন
We need HHH somewhere inside 4 tosses. The block HHH can start at position 1 or position 2.
Start at 1: HHHH, HHHT. Start at 2: THHH. (HHHH is already counted, so do not count it again.)
Favourable outcomes: HHHH, HHHT, THHH — exactly 3.
\( P = \frac{3}{16} \).
Trap check: HHTH and HTHH have 3 heads in total but never 3 in a row, so they do not count. A run needs consecutive heads.
4টা toss-এর ভেতরে কোথাও HHH দরকার। HHH block-টা position 1 বা position 2-এ শুরু হতে পারে।
Position 1-এ শুরু: HHHH, HHHT। Position 2-এ শুরু: THHH। (HHHH আগেই গোনা হয়েছে, তাই আবার গুনো না।)
Favourable outcome: HHHH, HHHT, THHH — ঠিক 3টা।
\( P = \frac{3}{16} \)।
Trap check: HHTH আর HTHH-তে মোট 3টা head আছে, কিন্তু পরপর 3টা নেই — তাই এগুলো গোনা হবে না। Run মানে consecutive heads লাগবে।
Show Answerউত্তর দেখুন
Step 1 — the first toss always starts a run. That contributes 1.
Step 2 — there are \( 10 - 1 = 9 \) boundaries between neighbouring tosses. For boundary \( i \), let \( X_i = 1 \) if toss \( i+1 \) differs from toss \( i \) (a new run starts), else 0.
Step 3 — for a fair coin, the two neighbouring tosses differ with probability \( \frac{1}{2} \), so \( E[X_i] = \frac{1}{2} \).
Step 4 — linearity of expectation (independence not needed):
\[ E[\text{runs}] = 1 + \sum_{i=1}^{9} E[X_i] = 1 + 9 \times \frac{1}{2} = 1 + 4.5 = 5.5 \] Quick sanity check with the general formula \( E[\text{runs}] = 1 + \frac{n-1}{2} \): for \( n = 10 \), \( 1 + \frac{9}{2} = 5.5 \). Correct.
Step 1 — প্রথম toss সবসময় একটা run শুরু করে। সেখান থেকে আসে 1।
Step 2 — পাশাপাশি toss-গুলোর মাঝে \( 10 - 1 = 9 \)টা boundary আছে। Boundary \( i \)-এর জন্য ধরো \( X_i = 1 \) যদি toss \( i+1 \) toss \( i \) থেকে আলাদা হয় (নতুন run শুরু হয়), নাহলে 0।
Step 3 — fair coin-এ পাশাপাশি দুই toss আলাদা হওয়ার probability \( \frac{1}{2} \), তাই \( E[X_i] = \frac{1}{2} \)।
Step 4 — linearity of expectation (independence লাগে না):
\[ E[\text{runs}] = 1 + \sum_{i=1}^{9} E[X_i] = 1 + 9 \times \frac{1}{2} = 5.5 \] General formula \( E[\text{runs}] = 1 + \frac{n-1}{2} \) দিয়ে quick check: \( n = 10 \) হলে \( 1 + \frac{9}{2} = 5.5 \)। ঠিক আছে।