✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.
You have to calculate the seasonal strength from an STL result.
import numpy as np
R = result.resid
S = result.seasonal
T = result.trend
strength = max(
0,
1 - np.var(R) / np.var(_____)
)
Choose the expression that correctly completes the calculation of seasonal strength.