causalimpact icon indicating copy to clipboard operation
causalimpact copied to clipboard

Confidence Interval First Data Point

Open aristidesz opened this issue 1 year ago • 1 comments

Just wondering why the point_pred lower and upper bounds are unusually large for the first data point. This happens even in the example while this is not the case with the R package.

e.g. from the example: Lower: -2804.815502 & Upper: 3048.805211

and the rest have more normal values.

Is there any way to fix this issue?

aristidesz avatar Sep 12 '23 14:09 aristidesz

I see the same. Looks like the author is aware of this so decided to plot from the second row. Would be much appreciated if you got time to look into this... @jamalsenouci

https://github.com/jamalsenouci/causalimpact/blob/8e9dd882a74bc1f4c4c2a514d7945606c816d51b/src/causalimpact/analysis.py#L876

simon19891101 avatar Mar 04 '24 00:03 simon19891101