Skip to main content

Welcome to a Grasp lesson

Create a free account to keep studying and create your own study path.

Lesson 5

Stochastic Processes & Asset Pricing

Recommended resources

Hello! Welcome to the fifth lesson in our "Foundations" module.

In our last lesson, we learned how to use covariance and correlation to measure the static, linear relationship between two assets. This gave us a snapshot of how they tend to move together. However, financial markets are dynamic. The properties of assets and the relationships between them are constantly changing.

A simple, static model that assumes a fixed distribution for asset returns can be misleading. It averages out periods of high volatility and calm, and it can't capture the evolving nature of the market. To build robust trading systems, we need a richer framework—one that can describe a system that evolves randomly through time.

This brings us to our learning outcome for today: to explain what a stochastic process is and why asset prices are often modeled as one. This concept is the bridge between static probability and the dynamic world of financial time series.


1. The Limits of Static Models

Before we define a stochastic process, let's first understand why we need it. Imagine you take all the daily returns of Bitcoin over the past five years and plot a histogram. You'll get a single distribution. However, this single picture hides a crucial fact: the nature of those returns was not the same in 2020 as it was in 2023. The underlying "data-generating process" changes.

The following video segment provides an excellent visualization of this very problem.

Brownian Motion for Quant Finance

In this clip from the video "Brownian Motion for Quant Finance" by Roman Paolucci, you'll see a demonstration of a non-stationary data generating distribution and why naively modeling it as a single, fixed distribution is flawed.

Watch the segment from 16:16 to 18:23. Pay close attention to the animation showing the 'unobservable data generating distribution' changing over time, while the observed data is aggregated into one static histogram. This illustrates why we need a model that accounts for time.

As the video shows, by collapsing a time-varying process into a single distribution, we lose all information about its evolution. We can't distinguish between different market regimes (e.g., bull market vs. bear market, high volatility vs. low volatility). This is why a more dynamic approach is necessary.



2. Defining a Stochastic Process

A stochastic process is the mathematical tool for describing randomly evolving systems. There are a couple of ways to define it.

The Formal and Intuitive Definitions

Let's start with a formal definition from an MIT OpenCourseWare lecture, which will appeal to your preference for precise, foundational concepts.

5. Stochastic Processes I

This short clip from MIT OpenCourseWare's "Stochastic Processes I" provides a concise, formal definition.

Watch the segment from 00:13 to 03:42. The lecturer defines a stochastic process as a collection of random variables, X_t, indexed by time, t. He also introduces an alternative, powerful view: a probability distribution over a space of all possible paths.

To build on that, let's get a more intuitive feel for what this means. What is a "path"? How does a collection of random variables generate one?

Brownian Motion for Quant Finance

Let's return to Roman Paolucci's video, which offers a brilliant animation to make these definitions concrete.

Now, watch the segment from 18:23 to 23:24. Focus on the visualization where a 'sample path' is generated. Notice that at each point in time, the value is a single draw from an underlying probability distribution. The entire green line is one possible 'realization' or 'path' of the process.

Let's synthesize these two perspectives.

  • Definition: A stochastic process, , is a family of random variables indexed by time. For any specific time , is a random variable with its own probability distribution.
  • Sample Path: A single realization of a stochastic process over a period of time is called a sample path. If you plot the price of BTC from yesterday to today, you are looking at one sample path.
  • The Process: The stochastic process itself is the complete description of all possible paths that could have occurred, and the probability of each one.

From your perspective as a developer, you can think of a stochastic process as a generative algorithm. Imagine a for loop that iterates through time steps. In each iteration t, the loop calls a function that returns a random number drawn from a distribution P(t). The sequence of numbers generated by this loop is one sample path. The full specification of the loop and the P(t) function for all t defines the stochastic process.



3. Fundamental Examples

To make this concept tangible, let's look at the two most important stochastic processes in finance.

a) The Simple Random Walk (Discrete Time)

The simplest and most intuitive stochastic process is the simple random walk. It's the foundation for many more complex models.

  • Imagine a game where you toss a fair coin at discrete time steps .
  • If it's heads, you take a step up (+1). If it's tails, you take a step down (-1).
  • Your position at time , let's call it , is the sum of all your steps up to that point: , where is the outcome of the -th coin toss.

The sequence of positions is a simple random walk.

The following video from the MIT course formally introduces this process and discusses its properties.

5. Stochastic Processes I

This segment formally defines the simple random walk and connects it to the Central Limit Theorem, which describes its long-term behavior.

Watch the section from 10:56 to 22:59. Key concepts to note are: Definition: How the process is constructed as a sum of independent, identically distributed (i.i.d.) random variables. Independent Increments: The movement from time t_1 to t_2 is independent of the movement from t_3 to t_4, as long as the time intervals don't overlap. This is because each coin toss is independent. Stationary Increments: The probability distribution of a step over any interval of length \Delta t is the same, regardless of when the interval starts.

b) Brownian Motion (Continuous Time)

The random walk operates in discrete time steps. If we take the conceptual limit of this process as the time steps become infinitesimally small, we arrive at its continuous-time counterpart: Brownian motion (also known as a Wiener process). This is arguably the most important stochastic process in all of finance.

Brownian motion, denoted , has the following key properties:

  1. .
  2. It has independent increments.
  3. The increment (for ) is normally distributed with a mean of 0 and a variance of . That is, .
  4. Its sample paths are continuous everywhere but differentiable nowhere.

The third property is the most critical. It means that the uncertainty, or variance, of the process grows linearly with time. The further you try to predict into the future, the wider the range of possible outcomes becomes. This aligns perfectly with our real-world experience of financial markets.

Brownian Motion for Quant Finance

Let's watch one more clip from Roman Paolucci to see Brownian motion in action and understand its properties.

Watch the segment from 23:24 to 29:04. Focus on: The formal definition of Brownian motion. The animation showing the normal distribution 'flattening out' over time. This is the visual representation of variance increasing with time. The contrast with the first process we saw, where the distribution was fixed at each step.



4. Application: Modeling Asset Prices

So, how do we use this to model an asset price? A common (though simplified) first approach is to model the price process using Arithmetic Brownian Motion. This model proposes that the change in a stock price is composed of two parts: a deterministic "drift" and a random "shock".

The model is written in differential form as:

Where:

  • is the infinitesimal change in the asset price.
  • is the drift parameter, representing the average rate of return.
  • is the infinitesimal change in time.
  • is the volatility parameter, representing the magnitude of the random fluctuations.
  • is the increment of a standard Brownian motion process, representing the source of randomness.

This simple model beautifully captures the essence of why stochastic processes are used: it decomposes price movement into a predictable trend () and an unpredictable, random component (). While real-world models are more sophisticated (e.g., Geometric Brownian Motion, which we will encounter later), they are all built upon this fundamental idea.

The next clip shows this exact application and explains how such a model is used to price financial instruments, connecting the abstract theory to a concrete financial problem.

Brownian Motion for Quant Finance

This final clip shows how Arithmetic Brownian Motion is used to model a stock price and price an option.

Watch the segment from 29:04 to 36:19. You don't need to worry about the details of option pricing. The key takeaway is seeing how a model like Arithmetic Brownian Motion provides a concrete framework for simulating future price paths and reasoning about uncertainty.



Conclusion

This lesson concludes our foundational module on probability and statistics. We've moved from basic concepts like expected value and variance to understanding how assets relate via correlation, and finally, to a dynamic framework for modeling their evolution over time.

Key Takeaways:

  • Asset price behavior is non-stationary; its statistical properties like mean and variance change over time, making static models insufficient.
  • A stochastic process is a collection of random variables indexed by time, which provides a mathematical framework for modeling such time-varying systems.
  • A sample path is a single realization of a stochastic process, like a historical price chart. The process itself describes all possible paths.
  • The Simple Random Walk (discrete-time) and Brownian Motion (continuous-time) are the foundational stochastic processes for finance.
  • Brownian motion is crucial because its variance grows linearly with time, capturing the idea that uncertainty increases the further we look into the future.
  • Asset prices are modeled as stochastic processes (like Arithmetic Brownian Motion) by representing their movements as a combination of a deterministic drift and a random shock.

Preview of the Next Module:

We now have the essential statistical vocabulary to describe and analyze financial data. In our next module, The Quant's Toolkit: Python for Finance, we will shift gears and begin mastering the practical tools needed to implement these ideas. We'll start by diving into NumPy, the fundamental package for scientific computing in Python, and explore how its powerful, vectorized array operations allow for the high-performance computations required in quantitative analysis.