Standard Gaussian

  • The PDF of a gaussian random variable does not have an antiderivative expressable in closed-form (expression that uses a finite amount of standard operations (basic functions and basic arithmetic operations)).

  • The common solution is to numerically approximate operations regarding the CDF of Gaussian(0, 1).

  • Definition: The standard Gaussian/normal random variable XN(0,1) has a :

    • PDF: fX(x)=12πex22.
    • CDF: Φ(x)=FX(x)=12πxet22dt
  • Theorem: Let XN(μ,σ2), then FX(x)=Φ(xμσ)

# Gaussian(mean = 0, variance = 1)
x <- seq(-3, 3, 0.01)
mean <- 0
standard_deviation <- 1

plot(
  x, dnorm(x, mean, standard_deviation), type = 'l',
  main = "PDF", xlab = "x", ylab = ""
)

plot(
  x, pnorm(x, mean, standard_deviation), type = 'l',
  main = "CDF", xlab = "x", ylab = "",
  ylim = c(0,1)
)