This comprehensive introduction to stochastic partial differential equations incorporates the effects of randomness into real-world models, offering graduate students and researchers powerful tools for understanding uncertainty quantification for risk analysis. MATLAB® codes are included, so that readers can perform computations themselves and solve the test problems discussed.