Numerical Methods in R
Numerical Quadrature
- Define numerical quadrature.
- Explain why one might need to use numerical quadrature rather than use an indefinite integral and the Fundamental Theorem of Calculus to find the area under a curve.
- Use
integrate()
to evaluate a definite integral.
- Both proper and improper definite integrals.
- Find the cumulative distribution function \(F\) of a continuous random variable \(X\) using its probability density function \(f\) and
integrate()
.
Symbolic Differentiation with the Deriv
Package
- Define a symbolic derivative.
- Use
Deriv()
to compute the symbolic derivative of a function \(f\) up to some order.
- Define the \(r\)-th moment of a random variable \(X\).
- Use a given moment generating function \(M_{X}(t)\) of a random variable \(X\) to find its \(r\)-th moment using
Deriv()
.