Random Variable: Difference between revisions

From Rice Wiki
(Created page with "A '''random''' variable is a numerical variable whose outcome is the result of a random process (i.e. we don't know what will happen for certain). Notably, the numerical interpretation of the outcome of an experiment is a random variable. They come in two types, deserving their own pages. See = Statistics = Random variables has several statistics that we care about. See pages Continuous Random Variable and Discrete Random Var...")
 
No edit summary
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
[[Category:Statistics]]
A '''random''' variable is a numerical variable whose outcome is the result of a random process (i.e. we don't know what will happen for certain). Notably, the numerical interpretation of the outcome of an [[Probability#Experiment and Events|experiment]] is a random variable. They come in two types, deserving their own pages. See  
A '''random''' variable is a numerical variable whose outcome is the result of a random process (i.e. we don't know what will happen for certain). Notably, the numerical interpretation of the outcome of an [[Probability#Experiment and Events|experiment]] is a random variable. They come in two types, deserving their own pages. See  


Line 7: Line 9:


When we are interested in the variability of a random variable, we look at the '''variance''' and the '''standard deviation''': the latter being the expected difference from mean, and the former being the square of the latter (not really used for interpretation, more for math).
When we are interested in the variability of a random variable, we look at the '''variance''' and the '''standard deviation''': the latter being the expected difference from mean, and the former being the square of the latter (not really used for interpretation, more for math).
= Properties of Statistics =
I'm just gonna start writing equations.
<math>
E(c) = c
</math>
<math>
E(aX) = aE(X)
</math>
<math>
E(aX + c) = aE(X) + c
</math>
<math>
Var(X) = E((X - \mu)^2) = E(X^2) - E(X)^2
</math>
Cool name for this: the ''law of the unconscious statistician'' for how obvious it is
<math>
E(g(X)) = \sum g(x_i) P(X = x_i)
</math>
<math>
Var(c) = 0
</math>
<math>
Var(aX) = a^2 Var(X)
</math>
<math>
Var(aX + c) = a^2 Var(X)
</math>
= Linear Combinations =
A '''linear combination''' of random variables <math>X</math> and <math>Y</math> is given as
<math>aX + bY</math>
where ''a'' and ''b'' are constants. They are ''not'' [[bivariate]]
The expectation is
<math>
E(aX + bY) = aE(X) + bE(Y)
</math>
whereas the variance is
<math>
Var(aX + bY) = a^2 Var(X) + ab Cov(X,Y) + b^2 Var(Y)
</math>
I'm sleepy so I'm not gonna derive this one.

Latest revision as of 19:35, 17 May 2024


A random variable is a numerical variable whose outcome is the result of a random process (i.e. we don't know what will happen for certain). Notably, the numerical interpretation of the outcome of an experiment is a random variable. They come in two types, deserving their own pages. See

Statistics

Random variables has several statistics that we care about. See pages Continuous Random Variable and Discrete Random Variable for how to calculate these values.

When we are interested in the average outcome of a random variable, we look at the expected value (mean): a weighted average of the possible outcomes.

When we are interested in the variability of a random variable, we look at the variance and the standard deviation: the latter being the expected difference from mean, and the former being the square of the latter (not really used for interpretation, more for math).

Properties of Statistics

I'm just gonna start writing equations.

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(c) = c }

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(aX) = aE(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(aX + c) = aE(X) + c }

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 Var(X) = E((X - \mu)^2) = E(X^2) - E(X)^2 }

Cool name for this: the law of the unconscious statistician for how obvious it is 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(g(X)) = \sum g(x_i) P(X = x_i) }

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 Var(c) = 0 }

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 Var(aX) = a^2 Var(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 Var(aX + c) = a^2 Var(X) }

Linear Combinations

A linear combination of 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} is given as

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 aX + bY}

where a and b are constants. They are not bivariate

The expectation is

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(aX + bY) = aE(X) + bE(Y) }

whereas the variance is

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 Var(aX + bY) = a^2 Var(X) + ab Cov(X,Y) + b^2 Var(Y) }

I'm sleepy so I'm not gonna derive this one.