1. Home
  2. Explore
  3. Statistics
  4. Stochastic Processes: Basics

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Stochastic Processes: Basics

Speaker 1Speaker 2

Stochastic Processes: Basics

18:48
0:00-18:48
  1. Anna

    Today we’re building the foundations for stochastic processes, with two key ideas at the center: martingales and Markov chains. We’ll define the language first, then test both ideas on four examples. Those examples are deliberately chosen to show that the two concepts can overlap—or occur separately.

  2. Simon

    And there’s a bigger course map here, too. This chapter lays the groundwork for later results about martingales, branching processes, Markov chains, random walks, and Poisson processes. Let’s start with the most general question: what is a stochastic process?

  3. Anna

    It’s a collection of random variables, all defined on the same probability space, usually written as X_i for indices i in some set I. Each variable takes values in a state space S. The index set can be finite, countable, uncountable, or even multidimensional; it doesn’t have to represent time.

  4. Simon

    And the state space is simply the set of values the process can take. To make the random variables mathematically well-defined, we equip S with a sigma-algebra—often its Borel sigma-algebra. If S is a topological space, that’s the sigma-algebra generated by its open sets; if S is a finite or countable subset of the real numbers, it’s all subsets of S.

  5. Anna

    There are a few related terms worth separating. Omega is the sample space: the set of possible outcomes of the underlying experiment. In the language of stochastic processes, we also call an outcome a realization of the process. A sample path is different: fix one outcome omega, and look at the process’s value at that omega for every index i. That collection of values is the sample path.

  6. Simon

    So a realization selects a sample path. That distinction matters when you simulate a process: a computer program gives you particular sample paths, not the abstract stochastic process itself. The process is the whole collection of random variables; the output you see is one or more realizations of it.

  7. Anna

    The index set I can represent time, but it doesn’t have to. A random graph, for instance, can be a random structure described by a collection of random variables without evolving in time. In this discussion we’ll focus on processes that do evolve in time, so the index set has an order that lets us distinguish past, present, and future.

  8. Simon

    The usual choices are discrete time, with indices 0, 1, 2, and so on, or continuous time, with nonnegative real indices. In discrete time, we write X_n for the state at time n. We’ll focus on this case, although analogous martingale and Markov-chain ideas also exist in continuous time.

  9. Anna

    Once we talk about past and future, we need a way to represent what is known at each time. That’s a filtration: a nondecreasing sequence of sub-sigma-algebras of the underlying sigma-algebra, often written G_n. Think of G_n as all the information available from time zero through time n.

  10. Simon

    It grows because information accumulates. What happened by time n is known, while the future is still uncertain. We call G_n the information from the past and present. A process X_n is adapted to G_n if each X_n is measurable with respect to G_n—in plain language, if the information available at time n tells you the process’s value at time n.

  11. Anna

    In practice, a common choice is the natural filtration of the process: F_n is generated by its observed values through time n, conventionally X_0 through X_n. It contains exactly the information provided by watching that process, with no additional information from other sources. It is a filtration, and the process is adapted to it by construction.

  12. Simon

    You can think of the natural filtration as the smallest information sequence that makes the process adapted. When someone says a process is a martingale without naming a filtration, the usual convention is that they mean with respect to its natural filtration.

  13. Anna

    Now let’s define a martingale. For a discrete-time process X_n and a filtration G_n, we require three things: each X_n is integrable, the process is adapted to G_n, and the conditional expectation of X at the next time, given G_n, is X_n. In symbols, E of X at n plus one given G_n equals X_n.

  14. Simon

    The integrability condition means the expectations are well-defined and finite. Adaptedness says the current value is already known at the current time. The conditional-expectation condition is the heart of the definition: given everything known so far, the expected value at the next step is the value you have now.

  15. Anna

    That’s why a martingale is often described as a fair game. If X_n represents a gambler’s fortune, then after one more play the expected fortune—given the entire history so far—is unchanged. You can still win or lose; the claim is about the conditional average, not about every individual outcome.

  16. Simon

    A useful picture is that the past trajectory is fixed and known, while several possible next steps remain. The average of those possible next values should land at the current value. Equivalently, the next increment has conditional mean zero, given the information available now.

  17. Anna

    There are two related classes. A submartingale keeps the integrability and adaptedness requirements but replaces equality with a conditional expectation greater than or equal to the current value. Its fair-game analogy is favorable: the next expected fortune is at least what you have now.

  18. Simon

    A supermartingale uses less than or equal to instead. That’s the unfavorable-game analogy: given the past and present, your expected next fortune is no greater than your current one. The names are also connected to subharmonic and superharmonic functions, respectively.

  19. Anna

    A Markov chain uses the same information idea but looks at conditional probabilities rather than conditional expectations. For a discrete-time process with a finite or countable state space, the Markov property says that, for every subset B of the state space, the probability that X at n plus one lies in B, given the full history through n, equals the probability of that event given only X_n.

  20. Simon

    Because the state space is finite or countable, any subset B is measurable, so the event that the next state belongs to B is a legitimate event to assign a conditional probability to. The key point is that this equation has to hold for every possible next-step event, not just one particular destination.

  21. Anna

    The intuition is memorylessness: to predict the next state, the whole past is no more useful than the present state alone. Another way to say it is that, given the present, past and future are conditionally independent. The process may have a history, but the present state contains all the history needed for this prediction.

  22. Simon

    And that’s distinct from a martingale. A martingale asks whether the conditional mean of the next value equals the current value. A Markov chain asks whether the conditional distribution of the next state depends on the history only through the current state. One is about an average; the other is about how the future is conditionally distributed.

  23. Anna

    To check these properties, we’ll use a couple of basic conditional-expectation facts. If a random variable is measurable with respect to the information you’re conditioning on, it is already known, so its conditional expectation is itself. If a random variable is independent of that information, conditioning on it leaves its expectation unchanged.

  24. Simon

    And for Markov chains, a useful test is to calculate a next-step conditional probability given the full history. If you can express it as a measurable function of X_n alone, that supports the Markov property. If it genuinely depends on an earlier state too, that is evidence against it.

  25. Anna

    Here come the four examples. We’ll use a sequence of independent fair-coin outcomes, a symmetric random walk, a betting random walk, and a process that chooses between two biased coins. Together, they demonstrate all four combinations: both properties, martingale only, Markov only, and neither.

  26. Simon

    First, let W_n equal plus one for Heads and minus one for Tails on the nth flip of a fair coin. The flips are independent. At each time, W_n has mean zero, but notice what the process records: just the latest coin outcome, not a running total of winnings.

  27. Anna

    Is W_n a martingale? No. The next flip is independent of the past, so its conditional expectation given the past is still zero. But the current W_n is either plus one or minus one, never zero. So the required equality between the conditional expectation of W at the next time and W_n fails.

  28. Simon

    That also shows why constant expectations alone don’t make a process a martingale. Every W_n has expectation zero, so the expectation is constant over time, yet W_n is not a martingale. In this example, the conditional expectation is zero, which is sometimes above the current value and sometimes below it, so it’s neither a submartingale nor a supermartingale.

  29. Anna

    But W_n is a Markov chain. In fact, it’s a particularly simple one: the next flip is independent not only of the past but also of the present. The probability of Heads or Tails next time is one half either way, whether we condition on the full history or only on W_n.

  30. Simon

    So this first example is Markov but not a martingale. It also illustrates that a Markov process doesn’t have to use its current state to predict the future; in this case the future is independent of the current state altogether.

  31. Anna

    Next is the symmetric random walk X_n on the integers. Start at some position X_0, and at every step move right by one with probability one half or left by one with probability one half. Using the coin outcomes from the first example, we can write X_n as X_0 plus the sum of W_1 through W_n.

  32. Simon

    This time the process records the running position, or equivalently a gambler’s fortune if every Heads wins one dollar and every Tails loses one. That’s a fair game, so we expect a martingale—and the conditional-expectation calculation confirms it.

  33. Anna

    The next position is X_n plus W at n plus one. X_n is already known at time n, while the next fair-coin increment is independent of the history and has mean zero. So the conditional expectation of the next position is X_n plus zero, which is exactly X_n.

  34. Simon

    It’s also Markov. From any current integer, the next position is one step to the left or one step to the right, each with probability one half. The earlier route taken to get to the current position doesn’t change those probabilities.

  35. Anna

    More formally, for a particular destination x, the conditional probability that X at n plus one equals x is one half when the current position is exactly one step away, and zero otherwise. That probability is a function of X_n alone, so the process is Markov as well as a martingale.

  36. Simon

    The third example is the betting random walk, with fortune Y_n. At each fair-coin game, the gambler chooses a bet B_n. Heads adds the bet to the fortune, and Tails subtracts it, so the next fortune is the current fortune plus the next bet times the next coin outcome.

  37. Anna

    The important timing assumption is that B_n is chosen using information available before the nth flip: it is measurable with respect to the filtration at time n minus one. The gambler must place the bet before seeing the result. If the bet could depend on the result, that would describe an unfair and unrealistic setup.

  38. Simon

    Even if the bet is random and depends on the entire past, the fortune remains a martingale, provided that timing condition holds. At time n, both the current fortune and the next bet are known. The next fair-coin outcome is independent of that information and has mean zero.

  39. Anna

    So when we condition the next fortune on the history, the known fortune stays as it is, and the expected contribution from the next bet times the coin outcome is zero. The expected next fortune is therefore Y_n. A strategy can change the size of possible wins and losses, but under these assumptions it doesn’t change the conditional expected gain.

  40. Simon

    Is it Markov? That depends on the betting strategy. If every bet is a fixed deterministic amount, then the current fortune determines the next-step possibilities and their probabilities, so the process can be Markov. The symmetric random walk is the special case where every bet is one.

  41. Anna

    But a strategy can use the past in a way that the current fortune doesn’t reveal. For instance, choose a larger bet a after a win and a smaller bet b after a loss, with a greater than b. The next bet then depends on whether the previous move went up or down—that is, on the comparison between Y_n and Y at n minus one.

  42. Simon

    Then the probability of a particular next-step outcome can depend on both Y_n and the previous fortune. For example, getting an increase of size a at the next step requires both that the next coin is Heads and that the previous result was a win, which is why the next bet is a.

  43. Anna

    Given the full history, the next coin is Heads with probability one half, but the condition that the bet equals a tells us whether the previous move was upward. So that next-step probability involves Y_n and Y at n minus one, not just Y_n. This strategy gives a martingale that is not a Markov chain.

  44. Simon

    That’s a useful distinction: the betting process can be fair even though it retains information about the past. Martingale doesn’t mean memoryless. It only constrains the conditional mean of the next value.

  45. Anna

    Our fourth example is the two-coin process Z_n. Each outcome is recorded as plus one for Heads and minus one for Tails. Coin one lands Heads with probability one third, and coin two with probability two thirds.

  46. Simon

    Which coin gets used depends on the previous two outcomes. If they match—Heads followed by Heads or Tails followed by Tails—we use coin one next. If they differ, we use coin two. We begin by flipping coin one twice so the rule can be applied from the third flip onward.

  47. Anna

    This process is not a martingale. If the previous two outcomes match, the next value has conditional mean one third minus two thirds, which is minus one third. If they differ, its conditional mean is two thirds minus one third, which is plus one third.

  48. Simon

    So the conditional expectation of the next value is minus one third on a match and plus one third on a mismatch. It is never equal to Z_n, which is either plus one or minus one. And it’s neither a submartingale nor a supermartingale: when Z_n is minus one, those conditional means are larger; when Z_n is plus one, they’re smaller.

  49. Anna

    It is not Markov either. The probability of Heads next time is one third if the previous two outcomes matched, and two thirds if they differed. That depends on Z_n and Z at n minus one, not just on Z_n.

  50. Simon

    The fact that the two coins have different biases matters here: the previous pair selects a coin, and the selected coin changes the next outcome probabilities. If the next-step probability depended only on the current value, the Markov test could work; in this construction, the earlier outcome still matters.

  51. Anna

    Now we can see the four possibilities clearly. The independent fair-coin outcome process is Markov but not a martingale. The symmetric random walk is both. The past-dependent betting random walk can be a martingale but not Markov. And the two-coin process is neither.

  52. Simon

    That’s the central lesson: martingale and Markov-chain properties are different conditions. They can coexist, but neither one implies the other, and a process can fail to have both.

  53. Anna

    Let’s connect this chapter to what comes next. Chapter Five develops martingale theory in depth. Today we’ve focused on the definition and examples; later topics include the optional stopping theorem, the upcrossing inequality, and martingale convergence results, along with regular and reverse martingales.

  54. Simon

    Those tools will also support an application in Chapter Six: Galton–Watson branching processes. They model population dynamics in biology, and can also be viewed more broadly as invasion models. Martingale results help us study their behavior.

  55. Anna

    Chapter Seven turns to the full theory of discrete-time Markov chains: recurrence and transience, irreducibility, positive recurrence, aperiodicity, stationary distributions, and convergence. Chapter Eight then applies that theory to random walks on general connected graphs, including connections with electrical networks.

  56. Simon

    The course also moves beyond those topics. Chapter Nine covers Poisson processes and Poisson point processes, with results about superposition, thinning, and conditioning. Chapter Ten covers continuous-time Markov chains and, under suitable conditions, represents one using a discrete-time chain for the sequence of visited states together with Poisson processes for jump times.

  57. Anna

    And the later martingale material connects to a broader probability result, too: combining reverse martingales with Kolmogorov’s zero-one law can provide a proof of the strong law of large numbers, including for random variables with infinite variance.

  58. Simon

    So the roadmap starts with a shared language—processes, paths, state spaces, and filtrations—and then branches into two powerful ways to describe evolution. Martingales track conditional averages; Markov chains track how conditional future probabilities depend on the present.

  59. Anna

    That’s our foundation for the chapters ahead. Keep the four examples in mind: they’re a compact reminder that fairness and memorylessness answer different questions. Once those distinctions are clear, the deeper theory becomes much easier to organize.

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent