Bivariate: Difference between revisions
No edit summary |
|||
| Line 12: | Line 12: | ||
= Bivariate Normal = | = Bivariate Normal = | ||
The '''bivariate normal''' is one special type of continuous random | The '''bivariate normal''' (aka. bivariate gaussian) is one special type | ||
variable. | of continuous random variable. | ||
<math>(X, Y)</math> is ''bivariate normal'' if | |||
# The marginal PDF of both X and Y are normal | |||
# For any <math>x</math>, the condition PDF of <math>Y</math> given <math>X = x</math> is Normal | |||
** Works the other way around: Bivariate gaussian means that condition is satisfied | |||
== Predicting Y given X == | |||
Given bivariate normal, we can predict one variable given another. | |||
Let us try estimating the expected Y given X is x | |||
<math> | |||
E(Y| X = x) | |||
</math> | |||
There are three main methods | |||
* Scatter plot approximation | |||
* Joint PDF | |||
* 5 statistics | |||
=== 5 Parameters === | |||
We need to know 5 parameters about <math>X</math> and <math>Y</math> | |||
<math>E(X), sd(X), E(Y), sd(Y), \rho</math> | |||
If <math>X, Y</math> follows bivariatte normal distribution, then we | |||
have | |||
<math> | |||
\left( \frac{E(Y|X = x) - E(Y)}{sd(Y)} \right) = \rho \left( \frac{x - | |||
E(X)}{sd(X)} \right) | |||
</math> | |||
Revision as of 17:57, 18 March 2024
Consider two numerica random variables Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle X} and Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle Y} . We can measure their covariance.
Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle Cov(X, Y)}
The correlation of two random variables measures the line dependent between Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle X} and Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle Y}
Bivariate Normal
The bivariate normal (aka. bivariate gaussian) is one special type of continuous random variable.
Failed to parse (Conversion error. Server ("https://wikimedia.org/api/rest_") reported: "Cannot get mml. Server problem."): {\displaystyle (X,Y)} is bivariate normal if
- The marginal PDF of both X and Y are normal
- For any , the condition PDF of Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle Y} given Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle X = x} is Normal
- Works the other way around: Bivariate gaussian means that condition is satisfied
Predicting Y given X
Given bivariate normal, we can predict one variable given another. Let us try estimating the expected Y given X is x
Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle E(Y| X = x) }
There are three main methods
- Scatter plot approximation
- Joint PDF
- 5 statistics
5 Parameters
We need to know 5 parameters about Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle X} and Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle Y}
Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle E(X), sd(X), E(Y), sd(Y), \rho}
If Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle X, Y} follows bivariatte normal distribution, then we have
Failed to parse (SVG (MathML can be enabled via browser plugin): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle \left( \frac{E(Y|X = x) - E(Y)}{sd(Y)} \right) = \rho \left( \frac{x - E(X)}{sd(X)} \right) }
