MVITS.plot_counterfactual#

MVITS.plot_counterfactual(variable='mu', plot_total_sales=True, ax=None)[source]#

Plot counterfactual scenario.

Plot the predicted sales of the existing products under the counterfactual scenario of never releasing the new product.

Parameters:
variablestr, optional

The variable to compare. Either “mu” or “y”.

plot_total_salesbool, optional

Whether to plot the total sales or not.

axesplt.Axes, optional

The matplotlib axes.

Returns:
plt.Axes

The new or modified matplotlib axes.