Beyond the Basics: Two Approaches to Covariance in General Brownian Bridges
I looked into how to derive the structure of the covariance function of the Brownian Bridges with arbitrary (> 0) start and end points in time. The covariance quantifies how much the values along the path tend to differ in the same direction from their expected values at two different times. I find formulae more expressive, so here is the definition what I actually mean by the covariance function between times s and t:
I’ve found two equally easy ways to derive the covariance function of the general Brownian Bridge. I’ll show them both because they are going to produce intermediate steps, which might be important further down on the road:
- I derive the density of the joint distribution of the Brownian Bridge first. Then I calculate the necessary expected values in a brute-force way arriving at the formula.
- I define the stochastic process which represents the Brownian Bridge first. I show that its distribution is identical to the one derived in my previous article. Then I derive the covariance function by gradually tracing it back to the expectations of its building blocks.
All we need are:
- a basic understanding of a Brownian motion/Wiener-process
- a basic understanding of the expected value, variance and covariance of the Brownian motion
- knowledge of what a Gaussian distribution is
- how to calculate the expected value of a random variable if we know its density function
Learnings from my previous article
I’ll build the bridge from the same process as found in my earlier writing in the Brownian Bridges series:
And the Bridge itself is:
I’ll also use the shorthand I’ve introduced there for saving some vertical space on writing “the underlying process is in the dx neighbourhood of x at time t” (Delta) and “the underlying process is equal to x at time t” (Lambda):
Also, an important observation was that we can move the Lambda out of the condition the following way:
Also, the conclusion was that the probability that the bridge at time t is in the dx neighbourhood of x can be written as:
Which implied that the value of the Bridge at time t follows a Gaussian distribution where the expected value is:
The variance is the following:
The expected value, variance and covariance
The Wiener-process, which is the most important part of the foundational process of the Bridge I discuss, is characterised by a Gaussian distribution at times t > 0, which is centred around zero and is linearly expanding with the square root of time. Based on this, the expected value and the variance of the Wiener-process are:
Also, one can quickly derive that the covariance of the Wiener-process based on its definition:
Based on this, the expected value, variance and the covariance of the process I’ll build the Brownian Bridge upon are the following:
Brute Force Way
First, let’s look at the expected value of the Bridge at time s, which can also be expressed with the starting value of the Bridge and the expectation at a later time t, which will come handy down the line:
I will define the joint density of the Brownian Bridge with the probability of the event of being in the dx neighbourhood of x at time s and jointly being in the dy neighbourhood of y at time t:
We can see that the second probability is describing the probability of the bridge being in the dy neighbourhood of y at time t starting from a at time t₁ and ending up at b at time t₂.
The first factor is basically a bridge where not only the start and end points are fixed, rather than another point at t > s time. One can see that it is actually a construction of two Brownian Bridges joined together at time t. I’ve simulated a handful such paths for visualisation purposes (amber) overlaid with Brownian Bridge paths with starting value of a at time t₁ and ending value b at time t₂ (steel blue):
The bottom line is that the movements in the first part are independent of the movements in the second part, so the condition at t₂ can be omitted. This way the first probability describes the probability of the bridge being in the dx neighbourhood of x at time starting from a at time t₁ and ending up at y at time t.
This way, we’ve arrived to the density of the joint distribution of the bridge at time s and t which is arguably the most important result of this particular approach:
Also, one important note is, that if we marginalise over y at time t, we get the distribution of the original bridge at time s. It means that if we draw a value from the bridge at time t from its distribution, then we construct a new bridge (a at time t₁ and the drawn value at time t) and draw a value from the new bridge’s distribution at time s, we get the same distribution as if we drawn the value from the original bridge at time s. It seems like a lot of work for a simple, already known result, but it will come handy in a later story I’ll write about how to actually simulate paths of a Brownian Bridge.
However, we hoped to derive the covariance function of the Brownian Bridge, so we need to move forward to calculate the expectation of the multiplication of the Bridge’s values which is not difficult in possession of the density of the joint distribution:
This is very good, because the covariance is then:
The Gaussian process way
We can define the following process using the a deterministic functions (Dₜ, alpha) of the time, the original Brownian motion process, and its value at t₂-t₁:
The first step is to determine the deterministic alpha function to match the expected value and variance of the original Bridge at all t times (t₁ < t < t₂).
In order to avoid writing too much, I’ll call the time-span of the Brownian Bridge T alongside with the notation of tau:
Also, the variance of the original Brownian Bridge can be written as:
We can see that the distribution of the new process is Gaussian at all times, because it is the sum of either deterministic functions or Gaussian variables. So, if we match the expected value and the variance of the distribution at all times in the t₁— t₂ interval, we can say the distribution of this process and the Brownian Bridge is the same.
It’s expected value is already in a good shape:
Which is exactly the expected value of the Brownian Bridge at time t without posing too much restriction on alpha.
Let’s look at the variance:
If we choose alpha in a way that the last factor is (1-tau)*tau, then the distribution of the process will be the same as the distribution of our original Bridge. So, for calculation purposes, I will use the following process:
Again, an important note: this definition can be used to simulate paths of Brownian Bridges, which I will discuss in a future article.
Using this “new” process, we can calculate the remaining necessary input for the covariance:
So, because the distribution of the original bridge at all times t, t₁ < t < t₂ is the same as the distribution of the “new” process, their covariance is the same too:
The correlation function
The correlation function is pretty easy to derive:
A few words about the results
First of all, because t₁ < s < t < t₂, the covariance is positive, which means that if the path is above its expected value at time s, our expectation is that its value will be above its expected value at a later time t. This erodes linearly as t is getting farther from s. It can be seen if I express t in terms of how much later it is from s:
Then the covariance between time s and t, s < t is:
For reference purposes, we can compare the results to the covariance of the original foundational process:
And we can see that it is everywhere smaller than the covariance of the original Brownian motion.
Also, what would be more interesting is to compare the results to the original Brownian motion conditioned on being a at time t₁:
We can also see that the covariance of the Brownian Bridge is also smaller than the restricted Brownian motion.
However, if both t and s are close to t₁:
We can see that the covariance function starts at t₁ just as a usual Brownian motion conditioned on being a at time t₁, but further we go from the starting point the bigger is the effect of the condition at the end.
Conclusion
I’ve derived the covariance function for Brownian Bridges in a general case in two ways without getting too deep into stochastic calculus. Surprisingly enough, the journey happened to be more exciting to me than the destination itself:
- I’ve seen that if we draw a value from the bridge at time t according to its distribution, then we construct a new bridge (“a” at time t₁ and the drawn value at time t) and draw a value from the new bridge’s distribution at time s, we get the same distribution as if we drawn the value from the original bridge at time s
- I’ve derived the joint density function for the joint distribution for the Brownian Bridge at times s and t, s < t
- I’ve defined the stochastic process for the Brownian Bridge
The bottom line is that due to the condition at the end is making the covariance and the correlation less than of a normal Brownian motion only conditioned to be a at time t₁.
If you liked the article, feel free to clap to propel it to a wider audience. If you have found a part particularly insightful, don’t hesitate to highlight it. In case of any question or observation, comment below, I’ll be happy to respond. Also, if you would like to get notified when I publish my next story, follow me.