The Probability Toolkit helps calculate the likelihood of events, combinations, and distributions that form the backbone of statistics and data science. Whether you're analyzing independent trials, counting arrangements, or modeling rare events, this comprehensive tool provides accurate calculations with visual insights.
Core Probability Concepts
- Probability (P): Measures the chance of an event occurring. Formula: P(A) = Favorable Outcomes / Total Outcomes. Values range from 0 (impossible) to 1 (certain).
- Complement Rule: P(A') = 1 - P(A), where A' represents the event "not A". If P(rain) = 0.3, then P(no rain) = 0.7.
- Joint Probability (Intersection): P(A ∩ B) represents the probability that both A and B occur. For independent events, P(A ∩ B) = P(A) × P(B).
- Conditional Probability: P(A|B) = P(A ∩ B) / P(B) is the probability of A given that B has occurred. Essential for dependent events and diagnostic testing.
- Independence: Events A and B are independent if the occurrence of one does not affect the probability of the other, i.e., P(A ∩ B) = P(A) × P(B).
Combinatorics: Counting Methods
- Combinations (nCr): Choose r items from n items without order. Formula: nCr = n! / (r!(n - r)!). Example: Selecting 5 cards from 52 = 52C5 = 2,598,960 possible hands.
- Permutations (nPr): Arrange r items from n items with order. Formula: nPr = n! / (n - r)!. Example: Arranging 3 books from 10 = 10P3 = 720 arrangements.
- Factorial (n!): Product of all positive integers up to n. 5! = 5 × 4 × 3 × 2 × 1 = 120. Used as building block for combinations and permutations.
Common Discrete Distributions
- Binomial Distribution: Models the number of successes in n independent trials with constant success probability p. Example: Number of heads in 10 coin flips. Parameters: n (trials), p (success probability), k (target successes).
- Poisson Distribution: Models the count of rare events occurring in a fixed interval of time or space. Example: Number of customer arrivals per hour, network failures per day. Parameter: λ (average rate).
- Geometric Distribution: Models the number of trials needed until the first success. Example: Number of coin flips until first heads. Parameter: p (success probability).
- Hypergeometric Distribution: Models probability when sampling without replacement. Example: Drawing cards from a deck without replacing them. Parameters: N (population), K (successes in population), n (sample size).
These tools allow flexible modeling for real-world random events, from reliability tests to sports predictions, quality control to medical diagnostics.