No problem! Happy to help. (Smile)

  • Context: MHB 
  • Thread starter Thread starter mathmari
  • Start date Start date
  • Tags Tags
    Covariance
Click For Summary

Discussion Overview

The discussion revolves around the properties of random variables derived from independent, identically distributed random variables, specifically focusing on the distribution, expected value, and covariance of the variables defined as the maximum of pairs of these random variables. The scope includes theoretical aspects and mathematical reasoning.

Discussion Character

  • Mathematical reasoning
  • Technical explanation
  • Exploratory

Main Points Raised

  • One participant calculates the distribution of $Y_i$ and finds $P(Y_i = 1) = \frac{3}{4}$ and $P(Y_i = -1) = \frac{1}{4}$.
  • Another participant computes the expected value of $Y_i$ as $E[Y_i] = \frac{1}{2}$.
  • Participants discuss the covariance of $Y_i$ and $Y_j$, noting that when $j > i + 1$, the covariance is $0$, but they seek to determine the covariance when $j = i + 1$.
  • One participant suggests substituting the definitions of $Y_i$ and $Y_j$ and expanding the cases to calculate the covariance.
  • Another participant lists the possible combinations of $Y_i$ and $Y_{i+1}$ and their probabilities, leading to the calculation of $E[Y_iY_{i+1}]$ and subsequently the covariance.
  • It is noted that the covariance is $\frac{1}{4}$ when $j = i + 1$ and $0$ otherwise.

Areas of Agreement / Disagreement

Participants generally agree on the calculations for the covariance when $j = i + 1$, but there is an ongoing exploration of the methodology and implications for other cases, indicating some uncertainty in the broader application of these results.

Contextual Notes

Participants rely on specific definitions and assumptions about the independence and distribution of the random variables, which may affect the generalizability of their conclusions. The discussion does not resolve all potential cases for covariance calculations.

mathmari
Gold Member
MHB
Messages
4,984
Reaction score
7
Hey! :giggle:Let $X_1, \ldots , X_n$ be independent, identically distributed random variables with $$P(X_i=-1)=P(X_i=1)=\frac{1}{2}$$
We consider the random variables $Y_i=\max \{X_i,X_{i+1}\}$, $i=1,\ldots , n-1$.
(a) Determine the distribution of $Y_i$, $i=1,\ldots , n-1$.
(b) Calculate the expected value of $Y_i$, $i=1,\ldots , n-1$.
(c) Calculate the covariance of $Y_i$ and $Y_j$, i.e. $\text{Cov}(Y_i, Y_j)=E(Y_iY_j)-E(Y_i)E(Y_j)$, $i,j=1,\ldots , n-1$.For (a) we have :
The results for $(X_i, X_{i+1})$ each with probability $\frac{1}{4}$ are :
\begin{equation*}(-1,-1), (1,-1), (-1,1), (1,1)\end{equation*}
When we consider of the two values eeach time we get $1$ in three cases and $-1$ in one case.
So we get \begin{equation*}P(Y_i = 1) = \frac{3}{4}, \ P(Y_i=-1) = \frac{1}{4}\end{equation*}

For (b)
The expected value of $Y_i$ is \begin{equation*}E[Y_i]=1\cdot P(Y_i = 1)+(-1)\cdot P(Y_i=-1)=\frac{3}{4}-\frac{1}{4}=\frac{2}{4}=\frac{1}{2}\end{equation*}

For (c) :
The covariance of $Y_i$ and $Y_j$ is \begin{equation*}\text{Cov}(Y_i, Y_j)=E(Y_iY_j)-E(Y_i)E(Y_j)=E(Y_iY_j)-\frac{1}{2}\cdot \frac{1}{2}=E(Y_iY_j)-\frac{1}{4}\end{equation*}
When $j>i+1$ then $Y_i$ and $Y_j$ are independent and so the covariance is $0$.
How can we calculate the covariance when $j=i+1$ ?:unsure:
 
Last edited by a moderator:
Physics news on Phys.org
mathmari said:
For (c) :
The covariance of $Y_i$ and $Y_j$ is \begin{equation*}\text{Cov}(Y_i, Y_j)=E(Y_iY_j)-E(Y_i)E(Y_j)=E(Y_iY_j)-\frac{1}{2}\cdot \frac{1}{2}=E(Y_iY_j)-\frac{1}{4}\end{equation*}
When $j>i+1$ then $Y_i$ and $Y_j$ are independent and so the covariance is $0$.
How can we calculate the covariance when $j=i+1$ ?
Hey mathmari!

We can substitute the definitions of $Y_i$ and $Y_j$ and expand to the possible cases, just like we did in (a), can't we? 🤔
 
Klaas van Aarsen said:
We can substitute the definitions of $Y_i$ and $Y_j$ and expand to the possible cases, just like we did in (a), can't we? 🤔

We have that $Y_i=\max \{X_i, X_{i+1}\}$ and $Y_{i+1}+\max \{X_{i+1}, X_{i+2}\}$.

We have the possible values:
$(X_i, X_{i+1},X_{i+2})\in \{(-1,-1,-1),(-1,-1,1),(-1,1,-1),(1,-1,-1),(-1,1,1),(1,-1,1),(1,1,-1),(1,1,1) \} $

Right? What do we have to calculate now using this information? :unsure:
 
We can find the possible combinations of $Y_i$ and $Y_j$ and their probabilities, can't we? 🤔
 
Klaas van Aarsen said:
We can find the possible combinations of $Y_i$ and $Y_j$ and their probabilities, can't we? 🤔

Do we have to calculate first the product of $Y_i$ and $Y_j$? :unsure:
 
mathmari said:
Do we have to calculate first the product of $Y_i$ and $Y_j$? :unsure:

We have
\begin{equation*}(X_i, X_{i+1},X_{i+2})\in \{(-1,-1,-1),(-1,-1,1),(-1,1,-1),(1,-1,-1),(-1,1,1),(1,-1,1),(1,1,-1),(1,1,1) \}\end{equation*}
Then \begin{equation*}Y_iY_{i+1}\in \{(-1)\cdot (-1),(-1)\cdot 1,1\cdot 1,1\cdot (-1),1\cdot 1,1\cdot 1,1\cdot 1,1\cdot 1\}=\{1,-1,1,-1,1,1,1,1\}\end{equation*}
So $P(Y_iY_{i+1}=-1)=\frac{2}{8}$ and $P(Y_iY_{i+1}=1)=\frac{6}{8}$.

The expected value of $Y_iY_{i+1}$ is \begin{equation*}E[Y_iY_{i+1}]=1\cdot P(Y_i = 1)+(-1)\cdot P(Y_i=-1)=\frac{6}{8}-\frac{2}{8}=\frac{4}{8}=\frac{1}{2}\end{equation*}
So the covariance of $Y_i$ and $Y_j$ is \begin{equation*}\text{Cov}(Y_i, Y_j)=E(Y_iY_j)-\frac{1}{4}=\frac{1}{2}-\frac{1}{4}=\frac{1}{4}\end{equation*}

:unsure:
 
Last edited by a moderator:
Correct - if $j=i+1$. (Nod)
 
Klaas van Aarsen said:
Correct - if $j=i+1$. (Nod)

In other case it is equl to $0$, right? :unsure:
 
mathmari said:
In other case it is equl to $0$, right?
Yes. (Nod)
 
  • #10
Klaas van Aarsen said:
Yes. (Nod)

Great! Thank you! (Sun)
 

Similar threads

Replies
1
Views
3K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
1
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 11 ·
Replies
11
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 43 ·
2
Replies
43
Views
6K
  • · Replies 23 ·
Replies
23
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 18 ·
Replies
18
Views
2K