Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.

Unit 5 Probability

CSE333 — Combinatorial Studies-I 9 min read

Practice MCQs Subjective questions
Text size
100%

I. Foundations of Probability

Probability is the mathematical study of random experiments: processes whose individual outcomes are uncertain but whose possible outcomes and long-run behavior can be analyzed systematically.

  • Sample space: The set of all possible outcomes is denoted by ; for a die roll, .
  • Event: An event is any subset of ; “rolling an even number” gives .
  • Probability measure: A function assigns each event a number satisfying:
    • .
    • .
    • For mutually exclusive events , .
  • Complement rule: The probability that does not occur is .
  • Addition rule: For any events and ,
    .
  • Equally likely outcomes: If contains equally likely outcomes and contains , then .
  • Discrete and continuous models: Discrete variables take countable values; continuous variables take values over intervals.
  • Independence: Events and are independent when .

II. Random Variables — Numerical Outcomes of Experiments

A. random variables

A random variable assigns a real number to every outcome of a random experiment.

  • Definition: A random variable is a function , where is the sample space and is the set of real numbers.
  • Discrete variable: A discrete random variable has a finite or countably infinite range, such as the number of heads in five coin tosses.
  • Continuous variable: A continuous random variable may assume any value in an interval, such as waiting time measured in seconds.
  • Probability mass function: For discrete , the PMF is , with and .
  • Probability density function: For continuous , a density satisfies:
    Text
    P(a ≤ X ≤ b) = ∫[a,b] f(x) dx,     ∫[-∞,∞] f(x) dx = 1

    Here are interval endpoints and .
  • Cumulative distribution function: For either type,
    . It is non-decreasing, right-continuous, and approaches as .

III. Uniform Distribution — Equal Probability Across a Range

A. uniform distribution

A uniform distribution models outcomes that are equally likely over a specified set or interval.

  • Discrete form: For possible values ,
    Text
    P(X = xᵢ) = 1/n

    where is the number of equally likely values.
  • Continuous form: If , its density is:
    Text
    f(x) = 1/(b-a),  a ≤ x ≤ b;     f(x) = 0 otherwise

    Here and are the lower and upper endpoints.
  • Parameters: Its mean is , while its variance is .
  • Interval probability: For ,
    .
  • Application: It suits random arrival within a fixed interval only when no subinterval is favored.

IV. Normal Distribution — Symmetric Continuous Variation

A. normal distribution

The normal distribution models continuous measurements concentrated symmetrically around a central value.

  • Density: If ,
    Text
    f(x) = [1/(σ√(2π))] exp[-(x-μ)²/(2σ²)]

    Here is the mean, is the standard deviation, and is the variance.
  • Shape: The curve is bell-shaped and symmetric about ; therefore mean, median, and mode all equal .
  • Total area: The density integrates to , with half the area on each side of .
  • Standardization: Any normal variable can be converted into :
    Text
    Z = (X-μ)/σ
  • Empirical rule: Approximately , , and of observations lie within one, two, and three standard deviations of , respectively.
  • Limitation: Normal models are inappropriate for strongly skewed or strictly bounded data unless an approximation is justified.

V. Exponential Distribution — Waiting-Time Model

A. exponential distribution

The exponential distribution models the waiting time until the next event in a constant-rate Poisson process.

  • Density: If ,
    Text
    f(x) = λe^(-λx),  x ≥ 0

    Here is the event rate per unit time.
  • Distribution function: , so the survival probability is .
  • Measures: The mean is , the variance is , and the standard deviation is .
  • Memoryless property: For ,
    ; elapsed waiting time does not alter the remaining-time distribution.
  • Application: If calls arrive at per hour, the mean waiting time is hour, or minutes.

VI. Poisson Distribution — Counts in Fixed Intervals

A. Poisson distribution

The Poisson distribution models the number of independent events occurring in a fixed interval at a constant average rate.

  • Mass function: If ,
    Text
    P(X=k) = e^(-λ)λ^k/k!,  k = 0,1,2,...

    Here is the expected event count and is an observed count.
  • Measures: Both the mean and variance equal ; hence the standard deviation is .
  • Assumptions: Events occur independently, the average rate is constant, and simultaneous events are negligible over a very small interval.
  • Additivity: If independent and , then .
  • Connection: Poisson counts have exponentially distributed interarrival times under the same constant-rate process.

VII. Binomial Distribution — Successes in Repeated Trials

A. binomial distribution

The binomial distribution counts successes in a fixed number of independent Bernoulli trials.

  • Conditions: There are trials, each trial has success or failure, trials are independent, and the success probability remains constant.
  • Mass function: If ,
    Text
    P(X=k) = C(n,k)p^k(1-p)^(n-k)

    Here , , and is the failure probability.
  • Measures: The mean is , the variance is , and the standard deviation is .
  • Example: For four fair coin tosses, .
  • Approximation: A Poisson model with can approximate the binomial when is large and is small.

VIII. Mean — Expected or Average Value

A. mean

The mean represents the distribution’s numerical center and, for a random variable, its long-run expected value.

  • Sample mean: For observations ,
    Text
    x̄ = (1/n) Σ[i=1 to n] xᵢ

    Here is the sample size.
  • Discrete expectation: , provided the sum converges.
  • Continuous expectation: , provided the integral exists.
  • Linearity: For constants , .
  • Sensitivity: Extreme values strongly affect the arithmetic mean, making it less representative for highly skewed data.

IX. Median — Positional Center

A. median

The median divides an ordered dataset or probability distribution into lower and upper halves.

  • Sample rule: After sorting values, the median is the middle value when is odd and the mean of the two middle values when is even.
  • Distributional definition: A median satisfies and .
  • Robustness: Unlike the mean, the median changes little when an extreme observation is introduced.
  • Interpretation: In a continuous distribution with a unique median, .
  • Limitation: The median uses order but not the numerical distances among observations.

X. Mode — Most Frequent Value

A. mode

The mode identifies the value or region with the greatest frequency or probability concentration.

  • Discrete data: A mode is a value for which or the observed frequency is maximal.
  • Continuous data: A mode is a point where the density reaches a maximum; individual point probabilities remain zero.
  • Multiplicity: A distribution may be unimodal, bimodal, multimodal, or have no unique mode.
  • Advantage: The mode applies to categorical data, such as the most common blood group, for which arithmetic averaging is meaningless.
  • Limitation: It can be unstable because small frequency changes may alter the modal value.

XI. Standard Deviation — Measure of Dispersion

A. standard deviation

Standard deviation measures the typical distance of values from their mean in the original measurement units.

  • Population variance: For ,
    Text
    Var(X) = E[(X-μ)²] = E[X²]-μ²
  • Population standard deviation: .
  • Sample standard deviation:
    Text
    s = √{Σ[i=1 to n](xᵢ-x̄)²/(n-1)}

    Here provides the usual unbiased estimator of population variance.
  • Interpretation: A small standard deviation indicates concentration near the mean; a large value indicates wider spread.
  • Transformation: For constants , ; adding does not change spread.

XII. Conditional Probability — Probability Given Information

A. conditional probability

Conditional probability updates the probability of an event using knowledge that another event has occurred.

  • Definition: For ,
    Text
    P(A | B) = P(A ∩ B)/P(B)

    Here is the probability of given .
  • Multiplication rule: .
  • Independence test: and are independent precisely when , assuming .
  • Partition rule: If mutually exclusive events cover , then:
    Text
    P(A) = Σ[i=1 to n] P(A | Bᵢ)P(Bᵢ)
  • Distinction: Mutually exclusive events cannot occur together, whereas independent events do not influence each other’s probabilities.

XIII. Bayes Theorem — Reversing Conditional Probabilities

A. Bayes theorem

Bayes theorem calculates the probability of a possible cause after observing related evidence.

  • Basic form: For ,
    Text
    P(A | B) = P(B | A)P(A)/P(B)

    Here is the prior, is the likelihood, and is the posterior.
  • Partition form: If partition ,
    Text
    P(Aⱼ | B) =
    P(B | Aⱼ)P(Aⱼ) /
    Σ[i=1 to n] P(B | Aᵢ)P(Aᵢ)

    Here is one candidate cause and is observed evidence.
  • Interpretation: The denominator is the total probability of observing under all possible causes.
  • Example: If disease prevalence is , sensitivity is , and false-positive probability is , then:
    Text
    P(disease | positive)
    = (0.90)(0.01) / [(0.90)(0.01)+(0.05)(0.99)]
    ≈ 0.154
  • Significance: A high likelihood does not necessarily imply a high posterior ; the prior probability can materially affect the result.

Test yourself on unit 5

60 MCQs on what you just read, each marked as you answer with an explanation.