0

From the ACF graph, you can see the ranges in blue. I need the value of the range in the ACF graph. Can this be retrieved?

enter image description here

Beginner
  • 25
  • 5

1 Answers1

1

You can use the statsmodels.tsa.stattools.acf function for this:

from statsmodels.tsa.stattools import acf
import pandas as pd

df = pd.read_csv("file.csv")
acf_results = acf(x=df, alpha=0.05)

acf_results[0] #autocorrelation
acf_results[1] #confidence intervals

https://www.statsmodels.org/dev/generated/statsmodels.tsa.stattools.acf.html

Arne Decker
  • 808
  • 1
  • 3
  • 9