liveBook · Manning

White noise

As explained in Statistics Every Programmer Needs

White noise is a random process with uncorrelated values across time and typically constant variance.

White noise is the error process assumed in a time-series model when residual values show no meaningful correlation across time and maintain a stable variance. In an ARIMA model, the error term εt represents white noise, while sigma2 estimates the residual-error variance. section 7.3.10

Assess whether model residuals behave like white noise by checking:

  • Residual plots for obvious patterns or trends. section 7.3.10
  • Residual density for concentration around a mean of zero and approximate normality. section 7.3.10
  • ACF and PACF plots for statistically significant correlations. section 7.3.10

Inspecting fitted-model residuals

Extract residuals with model_fit.resid[1:], then plot their values and kernel density using pandas and Matplotlib. A residual series with no visible pattern, a distribution centered near zero, and no significant ACF or PACF correlations supports the adequacy of the fitted ARIMA model. section 7.3.10

>>> residuals = model_fit.resid[1:]    #1
>>> fig, ax = plt.subplots(1, 2)   #2
>>> residuals.plot(title = \
>>>                'Residuals', ax = ax[0])     #3
>>> residuals.plot(title = \
>>>                'Density', 
>>>                kind = 'kde', 
>>>                ax = ax[1])     #4
>>> plt.tight_layout()    #5
>>> plt.show()    #6

Run the supplied plotting listing to inspect residual behavior and density after fitting a model. section 7.3.10

How Statistics Every Programmer Needs covers it

How deep it goes
Defines white noise through residual-error assumptions and supplies plot-based diagnostics, stopping short of formal statistical testing details.
Examples
Uses residual time-series plots, kernel-density plots, and ACF/PACF plots as concrete diagnostics.
What it assumes
Assumes a fitted ARIMA model and basic familiarity with residuals, variance, and autocorrelation diagnostics.
What you can do after
Diagnose model adequacy by plotting residuals and checking their distribution and autocorrelation.
How it connects
Connects white noise with ARIMA models, residuals, variance, ACF, PACF, and model fit.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Statistics Every Programmer Needs. The section links point to the parts of the book it draws on.