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 6 Probability and Stochastic Processes

ECE183 — Mathematics For Robotics 6 min read

Practice MCQs Subjective questions
Text size
100%

I. Orientation

Probability provides a mathematical language for uncertainty, incomplete information, sensor noise, and random disturbances. In robotics, a robot rarely knows its exact position, velocity, or environment state; instead, it represents possible values and their likelihoods. A stochastic process extends this idea to quantities that change randomly over time, such as noisy measurements or motion disturbances.

  • Random experiment: An operation with an uncertain outcome, such as measuring distance with a laser sensor.
  • Sample space: The set of all possible outcomes, denoted by .
  • Event: A subset of the sample space, denoted by , , or similar symbols.
  • Probability: A numerical measure satisfying , , and additivity for mutually exclusive events.
  • Conditional probability: The probability of given , written , and defined only when .
  • Independence: Events and are independent when .
  • Random variable: A function mapping outcomes to numerical values, such as a robot’s measured range .
  • Stochastic-process viewpoint: A random variable indexed by time, written , represents changing uncertain quantities.

II. Bayes' theorem — Updating beliefs with evidence

Bayes' theorem gives the probability of a hypothesis after observing evidence. It is fundamental to robot localization, diagnosis, mapping, and sensor fusion because it combines prior knowledge with new measurements.

A. Bayes' theorem

Bayes' theorem states that, for events and with ,

  • Formal statement: The posterior probability of after observing is
    Text
      P(A | B) = [P(B | A) P(A)] / P(B)

    Here, is the posterior, is the likelihood, is the prior, and is the evidence.
  • Evidence expansion: If are mutually exclusive and exhaustive hypotheses,
    Text
      P(B) = Σ_i P(B | A_i) P(A_i)

    The sum accounts for every possible cause of the observation.
  • Robot interpretation: A map-based position estimate is the prior; a sensor reading is evidence; the updated position distribution is the posterior.
  • Worked example: Suppose a robot is either in region with prior probability or outside it with probability . A sensor detects a landmark with probability in and outside . Then
    Text
      P(A | landmark) = (0.9 × 0.6) / [(0.9 × 0.6) + (0.2 × 0.4)]
                      = 0.54 / 0.62
                      ≈ 0.871

    The landmark raises belief in region from to approximately .

III. Probability distributions and probability mass functions — Discrete uncertainty

A probability distribution describes how probability is assigned to the possible values of a random variable. For a discrete variable, this assignment is represented by a probability mass function.

A. Probability distributions and probability mass functions

This topic distinguishes the general distribution of a random variable from the discrete function that gives the probability of each exact value.

  • Probability distribution: For a random variable , the distribution specifies probabilities for all possible values of .
  • Probability mass function (PMF): For a discrete , the PMF is
    Text
      p_X(x) = P(X = x)

    The value is the probability that equals .
  • Normalization: A valid PMF satisfies
    Text
      Σ_x p_X(x) = 1

    where the sum covers every allowed value of .
  • Event probability: For a set of discrete values,
    Text
      P(X ∈ S) = Σ_{x ∈ S} p_X(x)
  • Non-negativity: Every PMF value obeys .
  • Robotics example: If is the number of faulty sensor readings in five measurements, then can take only ; its PMF assigns a probability to each count.
  • Discrete versus continuous: A discrete variable has individual point probabilities, whereas a continuous variable generally has for every exact value.

IV. Cumulative distribution functions — Probability up to a threshold

The cumulative distribution function records the probability that a random variable is less than or equal to a specified value. It works for both discrete and continuous variables.

A. Cumulative distribution functions

The CDF is useful when a robot needs threshold probabilities, such as the chance that position error is below a tolerance.

  • Definition: For any random variable , its CDF is
    Text
      F_X(x) = P(X ≤ x)

    Here, is a possible numerical threshold.
  • Discrete form: If is discrete,
    Text
      F_X(x) = Σ_{t ≤ x} p_X(t)

    The CDF accumulates all PMF values at or below .
  • Interval probability: For ,
    Text
      P(a < X ≤ b) = F_X(b) - F_X(a)
  • Properties: A CDF is non-decreasing, bounded between and , approaches as , and approaches as .
  • Worked example: If , , and , then .
  • Robotic use: can mean that a localization error is no more than m with probability .

V. Probability density functions — Continuous uncertainty

A probability density function describes the relative concentration of probability for a continuous random variable. It is not itself the probability of an exact value.

A. Probability density functions

PDFs model quantities such as wheel-slip error, range noise, and robot position, which can vary over continuous intervals.

  • Definition: A continuous random variable has PDF satisfying
    Text
      P(a ≤ X ≤ b) = ∫_a^b f_X(x) dx

    Here, and are interval boundaries.
  • Normalization: The total area under a PDF equals one:
    Text
      ∫_{-∞}^{∞} f_X(x) dx = 1
  • Non-negativity: A PDF must satisfy .
  • Exact values: For a continuous variable, ; probability is assigned to intervals, not isolated points.
  • CDF relationship: Where the derivative exists,
    Text
      f_X(x) = dF_X(x)/dx

    Conversely, .
  • Units: If is measured in metres, has units of inverse metres, while the integrated probability is dimensionless.
  • Robotics use: A sharply concentrated PDF represents a precise sensor; a broad PDF represents high measurement uncertainty.

VI. Mean and variance — Numerical summaries of uncertainty

The mean identifies the central or expected value of a random variable, while variance measures the spread around that value.

A. Mean and variance

These quantities summarize distributions and are widely used in estimation, filtering, and motion modeling.

  • Discrete mean: For a discrete ,
    Text
      μ = E[X] = Σ_x x p_X(x)

    Here, is expectation and is the mean.
  • Continuous mean: For a continuous ,
    Text
      μ = E[X] = ∫_{-∞}^{∞} x f_X(x) dx
  • Variance: Variance is
    Text
      Var(X) = σ² = E[(X - μ)²]

    Here, measures average squared deviation from .
  • Computational form: The equivalent identity is
    Text
      σ² = E[X²] - μ²
  • Standard deviation: has the same units as , making it easier to interpret than variance.
  • Worked example: If is with probability and with probability , then , , and .
  • Interpretation: A mean position of m with standard deviation m indicates concentration near m; the mean alone does not describe that uncertainty.

VII. Binomial distribution — Fixed trials with two outcomes

The binomial distribution models the number of successes in a fixed number of independent trials when each trial has the same success probability.

A. Binomial distribution

It is appropriate for repeated yes/no events, such as successful detections across a known number of sensor scans.

  • Assumptions: There are fixed trials; each trial has success probability ; failure probability is ; and trials are independent.
  • PMF: If counts successes,
    Text
      P(X = k) = C(n,k) p^k (1-p)^(n-k)

    Here, , and .
  • Mean and variance:
    Text
      E[X] = np
      Var(X) = np(1-p)
  • Worked example: For scans and detection probability , the probability of exactly detections is
    Text
      P(X=3) = C(4,3)(0.75)^3(0.25) = 0.421875
  • Limitation: Independent, identical trials are essential; changing sensor conditions or correlated detections may invalidate the model.

VIII. Poisson distribution — Counts over an interval

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

A. Poisson distribution

It is useful for counting arrivals, failures, obstacles, or communication events over time or distance.

  • Assumptions: Events occur independently, the average rate is constant, and simultaneous multiple events are negligibly likely in an infinitesimally small interval.
  • PMF: For event count and rate parameter ,
    Text
      P(X = k) = e^(-λ) λ^k / k!

    Here, , and is the expected count in the chosen interval.
  • Mean and variance:
    Text
      E[X] = λ
      Var(X) = λ

    Equality of mean and variance is a defining feature of the Poisson model.
  • Rate scaling: If events occur at rate per second during time , then . For events/s and s, .
  • Relation to binomial: A Poisson distribution approximates a binomial distribution when is large, is small, and .
  • Limitation: Bursty, dependent, or time-varying event arrivals require a different model.

IX. Normal distribution — Continuous bell-shaped uncertainty

The normal distribution is a continuous, symmetric model characterized by its mean and variance. It often approximates accumulated independent measurement errors.

A. Normal distribution

Normal models are central in robotics because many sensor and estimation errors are treated as approximately Gaussian.

  • PDF: A normal random variable has
    Text
      f_X(x) = [1 / (σ√(2π))] exp[-(x-μ)²/(2σ²)]

    Here, is the mean, is the standard deviation, and is the variance.
  • Shape: The curve is symmetric about ; its peak occurs at , and larger produces greater spread.
  • Standardization: The standardized variable is
    Text
      Z = (X - μ) / σ

    It follows the standard normal distribution .
  • Empirical rule: Approximately of values lie within , within , and within .
  • Worked interpretation: If range error is m, then about of errors lie between m and m.
  • Robotics limitation: Real errors may be skewed, bounded, or contain outliers; a normal approximation should be checked against sensor behavior rather than assumed automatically.

Test yourself on unit 6

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