MHB Solving Minimization Problem Involving Variance & Covariance

Click For Summary
The discussion centers on minimizing the expression E[(X-b)^2], confirming that the optimal value for b is indeed E[X]. The proof involves differentiating the expression and setting it to zero, which is validated by participants. A subsequent question arises regarding the minimization of E[(Y-aX-b)^2], where Y is a random variable, leading to confusion about the roles of variances and covariances in the optimization process. Clarifications indicate that E(X) and Var(X) are constants, while Cov(Y, aX+b) is a variable in this context, complicating the minimization. Understanding these distinctions is crucial for correctly solving the problem.
OhMyMarkov
Messages
81
Reaction score
0
Hello Everyone!

What $b$ minimizes $E[(X-b)^2]$ where $b$ is some constant, isn't it $b=E[X]$? Is it right to go about the proof as follows:

$E[(X-b)^2] = E[(X^2+b^2-2bX)] = E[X^2] + E[b^2]-2bE[X]$, but $E = b$, we differentiate with respect to $b$ and set to zero, we obtain that $b=E[X]$. Is this proof correct? I was thinking it was until I got this problem:

What $Y$ minimizes $E[(Y-aX-b)^2]$? The given expression contains variances and covariances, but all I get was $Y=aE[X]+b$.

What am I doing wrong here?

Any help is appreciated! :D
 
Physics news on Phys.org
OhMyMarkov said:
Hello Everyone!

What $b$ minimizes $E[(X-b)^2]$ where $b$ is some constant, isn't it $b=E[X]$? Is it right to go about the proof as follows:

$E[(X-b)^2] = E[(X^2+b^2-2bX)] = E[X^2] + E[b^2]-2bE[X]$, but $E = b$, we differentiate with respect to $b$ and set to zero, we obtain that $b=E[X]$. Is this proof correct?


Correct


I was thinking it was until I got this problem:

What $Y$ minimizes $E[(Y-aX-b)^2]$? The given expression contains variances and covariances, but all I get was $Y=aE[X]+b$.

What am I doing wrong here?

Any help is appreciated! :D

The problem with this second question is that with normal naming conventions \(Y\) is a random variable not a constant, if it were a constant what you get would be correct. If it is a RV then it leaves you with a minimisation problem where the variables are \( \overline{Y}\), \(Var(Y)\), \( Covar(Y,aX+b)\). This is a constrained minimisation problem as \( | Covar(Y,aX+b)| \le \sqrt{Var(Y)Var(aV+b)}\)

CB
 
Last edited:
Thank you CaptainBlack!

But, you mentioned [FONT=MathJax_Math-italic]E[FONT=MathJax_Main][[FONT=MathJax_Math-italic]Y[FONT=MathJax_Main]][FONT=MathJax_Main],[FONT=MathJax_Math-italic]V[FONT=MathJax_Math-italic]a[FONT=MathJax_Math-italic]r[FONT=MathJax_Main][[FONT=MathJax_Math-italic]Y[FONT=MathJax_Main]][FONT=MathJax_Main],[FONT=MathJax_Math-italic]C[FONT=MathJax_Math-italic]o[FONT=MathJax_Math-italic]v[FONT=MathJax_Main][[FONT=MathJax_Math-italic]Y[FONT=MathJax_Main],[FONT=MathJax_Math-italic]a[FONT=MathJax_Math-italic]X[FONT=MathJax_Main]+[FONT=MathJax_Math-italic]b[FONT=MathJax_Main]] , what about [FONT=MathJax_Math-italic]E[FONT=MathJax_Main][[FONT=MathJax_Math-italic]X[FONT=MathJax_Main]][FONT=MathJax_Main],[FONT=MathJax_Math-italic]V[FONT=MathJax_Math-italic]a[FONT=MathJax_Math-italic]r[FONT=MathJax_Main][[FONT=MathJax_Math-italic]X[FONT=MathJax_Main]] , can we sub them for [FONT=MathJax_Math-italic]C[FONT=MathJax_Math-italic]o[FONT=MathJax_Math-italic]v[FONT=MathJax_Main][[FONT=MathJax_Math-italic]Y[FONT=MathJax_Main],[FONT=MathJax_Math-italic]a[FONT=MathJax_Math-italic]X[FONT=MathJax_Main]+[FONT=MathJax_Math-italic]b[FONT=MathJax_Main]] ? Or are the variables intentionally used in this fashion so that the hand calculation becomes easier?
 
Last edited:
OhMyMarkov said:
Thank you CaptainBlack!

But, you mentioned [FONT=MathJax_Math-italic]E[FONT=MathJax_Main][[FONT=MathJax_Math-italic]Y[FONT=MathJax_Main]][FONT=MathJax_Main],[FONT=MathJax_Math-italic]V[FONT=MathJax_Math-italic]a[FONT=MathJax_Math-italic]r[FONT=MathJax_Main][[FONT=MathJax_Math-italic]Y[FONT=MathJax_Main]][FONT=MathJax_Main],[FONT=MathJax_Math-italic]C[FONT=MathJax_Math-italic]o[FONT=MathJax_Math-italic]v[FONT=MathJax_Main][[FONT=MathJax_Math-italic]Y[FONT=MathJax_Main],[FONT=MathJax_Math-italic]a[FONT=MathJax_Math-italic]X[FONT=MathJax_Main]+[FONT=MathJax_Math-italic]b[FONT=MathJax_Main]] , what about [FONT=MathJax_Math-italic]E[FONT=MathJax_Main][[FONT=MathJax_Math-italic]X[FONT=MathJax_Main]][FONT=MathJax_Main],[FONT=MathJax_Math-italic]V[FONT=MathJax_Math-italic]a[FONT=MathJax_Math-italic]r[FONT=MathJax_Main][[FONT=MathJax_Math-italic]X[FONT=MathJax_Main]] , can we sub them for [FONT=MathJax_Math-italic]C[FONT=MathJax_Math-italic]o[FONT=MathJax_Math-italic]v[FONT=MathJax_Main][[FONT=MathJax_Math-italic]Y[FONT=MathJax_Main],[FONT=MathJax_Math-italic]a[FONT=MathJax_Math-italic]X[FONT=MathJax_Main]+[FONT=MathJax_Math-italic]b[FONT=MathJax_Main]] ? Or are the variables intentionally used in this fashion so that the hand calculation becomes easier?

\(E(X)\) and \(Var(X)\) are constants for this problem, while \(u=Covar(Y,aX+b)\) is one of the variable in the optimisation problem.

CB
 
First trick I learned this one a long time ago and have used it to entertain and amuse young kids. Ask your friend to write down a three-digit number without showing it to you. Then ask him or her to rearrange the digits to form a new three-digit number. After that, write whichever is the larger number above the other number, and then subtract the smaller from the larger, making sure that you don't see any of the numbers. Then ask the young "victim" to tell you any two of the digits of the...

Similar threads

  • · Replies 14 ·
Replies
14
Views
2K
Replies
4
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K