Discrete Random Variable: Difference between revisions
| (One intermediate revision by the same user not shown) | |||
| Line 48: | Line 48: | ||
== Binomial == | == Binomial == | ||
Repeating a bernoulli experiment <math> | Repeating a bernoulli experiment <math>n</math> times and we get a '''binomial random variable'''. | ||
Consider an experiment with exactly two possible outcomes, conducted n times independently. | Consider an experiment with exactly two possible outcomes, conducted n times independently. The variable of interest <math>X</math> is the number of successful trials. The distribution relies on the number of trials and the probability of success. | ||
<math> | <math> | ||
| Line 56: | Line 56: | ||
</math> | </math> | ||
=== PMF === | |||
<math> | |||
(^n_x) p^x (1 - p)^{n - x} | |||
</math> | |||
=== Statistics === | |||
<math> | |||
\mu = np | |||
</math> | |||
<math> | |||
\sigma^2 = np (1 - p) | |||
</math> | |||
= Poisson = | = Poisson = | ||
Latest revision as of 16:34, 19 March 2024
A random variable is discrete if the values it can take on within an interval is finite.
PMF and CDF
The probability mass function (PMF) describes the probability distribution over a discrete random variable.
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 p(x) = P(X = x)}
The cumulative distribution function (CDF) specifies the probability of an observation being equal to or less than a given value.
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 F(x) = P(X \leq x)}
We usually have tables for these in the case of discrete random variables.
Statistics
Expected value (mean):
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 \mu = E(X) = \sum x_i P(X = x_i) }
Distributions
Bernoulli
The bernoulli distribution describes the random variable of an experiment that has two outcomes and is performed once. The outcomes are either success or failure.
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 \sim Bernoulli(p) }
PMF
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 p(1) = p, p(0) = 1 - p }
Statistics
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 \mu = p }
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 \sigma^2_X = p (1 - p) }
Binomial
Repeating a bernoulli experiment 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 n} times and we get a binomial random variable.
Consider an experiment with exactly two possible outcomes, conducted n times independently. The variable of interest 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} is the number of successful trials. The distribution relies on the number of trials and the probability of success.
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 \sim Binomial(n, p) }
PMF
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 (^n_x) p^x (1 - p)^{n - x} }
Statistics
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 \mu = np }
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 \sigma^2 = np (1 - p) }
Poisson
The poisson distribution is used when we know the average rate of occurrence for a particular event over a particular time period.
- There must be fixed interval of the time or space
- Events happen with a known average rate independent of time or the last event.
- The average rate of occurrence per unit of time/sace is the rate parameter 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 \lambda}
Poisson distribution approximates binomial distribution when n is large and p is small, used to model rare events. Normally it is used to measure the number of events in a unit time, whereas exponential distribution models the amount of waiting time until an event.
I'm sleepy I'll write the details later... zzz...
