I need the values of the ranges that are in the ACF graph

201 Views Asked by At

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

1

There are 1 best solutions below

0
On BEST ANSWER

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