ΘρϵηΠατπ

Continuous Random Variable
We say that a random variable X is continuous if P(X=x)=0 for every x.

This is not the same as saying that X is not a discrete random variable. A discrete random variable has a countable set of possible values. A continuous random variable has no single value with positive probability. These are different conditions.

Continuous Random Variable Has Uncountable Range
If X is a continuous random variable, then X(Ω) is not countable.
Suppose, toward a contradiction, that X(Ω) is countable. Since every outcome ωΩ has X(ω)X(Ω), Ω=xX(Ω){ωΩ:X(ω)=x}. Because X is continuous, each event {X=x} has probability 0. By countable additivity in the definition of a probability measure, P(Ω)=xX(Ω)P(X=x)=0. This contradicts P(Ω)=1, so X(Ω) is not countable.
Uncountable Range Does Not Imply Continuous
A random variable can have an uncountable set of possible values without being continuous.
Let X be a random variable with X(Ω)=[0,1] whose distribution function is FX(x)={0,x<0,12+x2,0x1,1,x>1. The set of possible values of X contains [0,1], so it is not countable because nontrivial intervals are uncountable. Thus X is not a discrete random variable. However, P(X=0)=FX(0)limx0FX(x)=12, so X is not continuous.
Random Variable Neither Discrete Nor Continuous
Give an example of a random variable that is neither discrete nor continuous.
Let X be a random variable with X(Ω)=[0,1] whose distribution function is FX(x)={0,x<0,12+x2,0x1,1,x>1. The set of possible values of X contains [0,1], which is uncountable. Therefore X(Ω) is not countable, so X is not discrete.

On the other hand,

P(X=0)=FX(0)limx0FX(x)=12, so it is not true that P(X=x)=0 for every x. Therefore X is not continuous.

This is different from a die roll. If X is the result of a fair six-sided die, then P(X=3)=1/6, so a single exact outcome can have positive probability. Here P(X=3) is shorthand for the probability of the event determined by the binary relation X=3. For a continuous random variable, every exact value has probability 0; probabilities live on intervals or regions rather than individual values.

One way to picture the transition is to imagine a fair die with N equally likely faces. Each single face has probability 1/N. As N gets larger, 1/N gets smaller. If the faces become tiny patches approximating a smooth sphere and the limiting roll is modeled as landing on a point of the sphere, then any single exact point has limiting probability 0, even though a region of the sphere can still have positive probability.

Continuous Uniform Distribution
The random variable U is said to have a (continuous) uniform distribution on the unit interval [0,1] denoted by U unif [0,1] iff P(Uu)=u0u1.
Probability of an Interval in the Uniform Distribution
For a continuous uniform random variable, P(aXb)=ba
Density Function
Let X be a random variable. A function f:[0,) is a density function for X if, for every interval I, P(XI)=If(t)dt.

For example, the function f:[0,) defined by f(t)=1 for t[0,1] and f(t)=0 otherwise is a density function for a random variable uniformly distributed on [0,1]. For any interval I, the integral If(t)dt is the length of the part of I that lies inside [0,1].

The reason an integral appears is not that we add the probabilities of the individual points. For a discrete random variable, that pointwise method works because the possible values form a countable set. The analogous object is usually called a probability mass function, not a density function. If X is a fair six-sided die roll, then its mass function satisfies pX(k)=1/6 for k{1,2,3,4,5,6}. For the interval [2,4], the probability is the sum of the masses at the possible values in that interval: P(X[2,4])=pX(2)+pX(3)+pX(4)=36. For a continuous random variable, trying to keep this rule fails: if every point has probability 0, then summing point probabilities cannot recover a positive probability for an interval. The repair is to assign probability to the event that the random value lands in a small interval, not to the individual points. A density says that if I is a small interval of length Δt near t, for example I=(tϵ,t+ϵ), then P(XI)f(t)Δt. These small interval probabilities are compatible with the basic additivity rule for disjoint events, because adjacent small intervals contribute by addition. When the interval is divided into finer and finer pieces, the limiting sum of these interval contributions is the integral. Thus the integral is the continuous replacement for summing masses at possible values, while the value f(t) itself is not the probability of the point t.

Density has Total Mass One
If f is a density function, then f(t)dt=1.
Apply the definition of density to the interval I=. Since a random variable is real-valued with probability one, P(X)=1. Therefore the integral over is 1.
Density Determines Distribution Function
If X has density f, then its distribution function satisfies FX(x)=xf(t)dt for every x.
Apply the definition of density to the interval I=(,x].
Density Determines Interval Probabilities
If X has density f, then for a<b, P(a<Xb)=abf(x)dx.
Apply the definition of density to the interval I=(a,b].
CDF Derivative is the Density
Suppose that X has density function f, and let FX be the distribution function of X. If f is continuous at x0, then FX is differentiable at x0 and FX(x0)=f(x0).
Choose a,b with a<x0<b. For x(a,b), density determines interval probabilities gives FX(x)FX(a)=P(a<Xx)=axf(t)dt. Hence, on (a,b), FX(x)=FX(a)+axf(t)dt. The constant term FX(a) has derivative 0, and by the Fundamental Theorem of Calculus I, the derivative of axf(t)dt at x0 is f(x0), because f is continuous at x0. Therefore FX(x0)=f(x0).
Expectation of a Continuous Random Variable
If X has density f, then E(X)=xf(x)dx, whenever the integral is defined.
Expectation of an Interval Indicator
Suppose that X has density f and a,b with a<b. Then E(χ(a,b](X))=χ(a,b](x)f(x)dx.
Let A:={ωΩ:a<X(ω)b}. For every ωΩ, χ(a,b](X(ω))={1,ωA,0,ωA, so χ(a,b](X)=𝟏A by the definition of an indicator random variable. Therefore, by expectation of an indicator, E(χ(a,b](X))=E(𝟏A)=P(A)=P(a<Xb). By density determines interval probabilities, P(a<Xb)=abf(x)dx. Since χ(a,b](x) is 1 on (a,b] and 0 off (a,b], abf(x)dx=χ(a,b](x)f(x)dx.
Expectation of a Function of a Continuous Random Variable
If X has density f and g: is measurable, then E(g(X))=g(x)f(x)dx, whenever the integral is defined.
The formula holds for interval indicators by expectation of an interval indicator. By finite additivity and linearity of expectation for finite sums, the same formula holds for every non-negative simple function s built from finitely many intervals: E(s(X))=s(x)f(x)dx. For a non-negative measurable function g, choose an increasing sequence of non-negative simple functions sn with sn(x)g(x). Applying the simple-function case to each sn, then using the monotone convergence theorem on both sides, gives E(g(X))=g(x)f(x)dx. For a general measurable g, apply the non-negative case to the positive part g+ and the negative part g, then subtract, whenever the resulting integral is defined.
Continuous Expectation Respects Scalar Multiplication
Suppose that X has density fX, g: is measurable, and a. If the expectations are defined, then E(ag(X))=aE(g(X)).
By expectation of a function of a continuous random variable, E(ag(X))=ag(x)fX(x)dx. Pulling the constant a out of the integral gives ag(x)fX(x)dx=ag(x)fX(x)dx. Applying expectation of a function of a continuous random variable again gives ag(x)fX(x)dx=aE(g(X)).
Continuous Expectation is Linear for Finite Sums
Suppose that X1,,Xn are continuous random variables and g1,,gn: are measurable functions. If the expectations are defined, then E(i=1ngi(Xi))=i=1nE(gi(Xi)).
This is the finite-sum case of linearity of expectation, applied to the random variables g1(X1),,gn(Xn).
Joint Density Function
Random variables X and Y have joint density fX,Y if it is a two-variable analogue of a density function: fX,Y0, fX,Y(x,y)dxdy=1, and P((X,Y)A)=AfX,Y(x,y)dxdy for suitable sets A2.
Continuous Marginal Density Functions
If X and Y have joint density fX,Y, then their marginal densities are fX(x)=fX,Y(x,y)dy,fY(y)=fX,Y(x,y)dx.
Independent Continuous Random Variables
Continuous random variables X and Y are independent if their joint density factors as fX,Y(x,y)=fX(x)fY(y) for all x,y except possibly on a set of area zero.
Conditional Density Function
If X and Y have joint density and fX(x)>0, the conditional density of Y given X=x is fY|X(y|x)=fX,Y(x,y)fX(x).
Continuous Conditional Expectation Given a Value
If the conditional density fY|X(y|x) is defined, then E(Y|X=x)=yfY|X(y|x)dy, whenever the integral is defined.
Continuous Convolution Formula
If X and Y are independent continuous random variables with densities fX and fY, then X+Y has density fX+Y(z)=fX(x)fY(zx)dx.
Integrate the joint density fX(x)fY(y) over the region x+yz, then differentiate with respect to z.
Change of Variables for Joint Densities
Let (Y1,Y2)=T(X1,X2), where T is one-to-one and differentiable with differentiable inverse. If (X1,X2) has joint density fX, then fY(y1,y2)=fX(T1(y1,y2))|det[D(T1)(y1,y2)]E|.
Density Gives Zero Probability to Points
If X has a density function, then P(X=a)=0 for every a.
Apply the definition of density to the interval I=[a,a]. The integral of a density over a single point is 0, so P(X=a)=0.
Exponential 1 Distribution
Suppose that Z is a random variable. We write Zexp(1) iff Z=ln(U) where U is a continuous uniform random variable on [0,1].
Probability of an Interval in the Exponential Distribution
Suppose that Zexp(1). Using uniform interval probabilities, P(sZt)=eset
Observe that the following sets are equal: sZt=sln(U)t=tln(U)s=etUes therefore we know that P(sZt)=P(etUes)=eset