Probability
Everything on SkillVeris tagged Probability — collected across the glossary, study notes, blog, and cheat sheets.
6 resources across 1 library
Interview Questions(6)
What is Reservoir Sampling?
Reservoir sampling is a randomized algorithm that selects a uniformly random sample of k items from a stream of unknown or unbounded length, using only O(k) me…
How to Solve Probability Problems on Playing Cards
A standard deck has 52 cards in 4 suits of 13 ranks, so any card-probability question reduces to counting favorable cards over 52 (or over nCr combinations whe…
How to Solve Probability Problems on Dice
A single fair die has 6 equally likely outcomes, and rolling n dice together creates a sample space of 6^n equally likely ordered outcomes, so every dice probl…
How to Solve Basic Conditional Probability Problems
Conditional probability P(A|B) = P(A and B) / P(B) measures the chance of event A given that event B has already happened, which shrinks the sample space from…
How to Solve Probability Problems With Replacement
With replacement means each item drawn is put back before the next draw, so the total pool and every probability stay identical across draws, making successive…
How to Solve Probability Problems Without Replacement
Without replacement means each drawn item is kept out of the pool, so both the total count and the favorable count shrink after every draw, making successive d…