- ARDLResults.plot_predict(start=None, end=None, dynamic=False, exog=None, exog_oos=None, fixed=None, fixed_oos=None, alpha=0.05, in_sample=True, fig=None, figsize=None)¶
Plot in- and out-of-sample predictions
Zero-indexed observation number at which to start forecasting, i.e., the first forecast is start. Can also be a date string to parse or a datetime type. Default is the the zeroth observation.
Zero-indexed observation number at which to end forecasting, i.e., the last forecast is end. Can also be a date string to parse or a datetime type. However, if the dates index does not have a fixed frequency, end must be an integer index if you want out-of-sample prediction. Default is the last observation in the sample. Unlike standard python slices, end is inclusive so that all the predictions [start, start+1, …, end-1, end] are returned.
Integer offset relative to start at which to begin dynamic prediction. Prior to this observation, true endogenous values will be used for prediction; starting with this observation and continuing through the end of prediction, forecasted endogenous values will be used instead. Datetime-like objects are not interpreted as offsets. They are instead used to find the index location of dynamic which is then used to to compute the offset.
A replacement exogenous array. Must have the same shape as the exogenous data array used when the model was created.
An array containing out-of-sample values of the exogenous variables. Must have the same number of columns as the exog used when the model was created, and at least as many rows as the number of out-of-sample forecasts.
A replacement fixed array. Must have the same shape as the fixed data array used when the model was created.
An array containing out-of-sample values of the fixed variables. Must have the same number of columns as the fixed used when the model was created, and at least as many rows as the number of out-of-sample forecasts.
The tail probability not covered by the confidence interval. Must be in (0, 1). Confidence interval is constructed assuming normally distributed shocks. If None, figure will not show the confidence interval.
Flag indicating whether to include the in-sample period in the plot.
An existing figure handle. If not provided, a new figure is created.
- figsize: tuple[float, float]
Tuple containing the figure size values.
Figure handle containing the plot.