1
$\begingroup$

These are the ACF and PACF plots of a time series (daily aggregates/counts). The first plot is un-differenced and the second plot is after a seasonal difference of 7 days.

ACF and PACF before seasonal differencing

ACF and PACF after seasonal differencing

My take looking at the seasonally differenced plots is to start with 8 seasonal auto-regression terms. However I also noticed that ACF peak before the decay, does that suggest anything to you?

Also, from the undifferenced plot, does seeing 7 significant peaks in the pacf suggest 7 immediate AR terms as well? Or perhaps 6, since the 7th one will already be included in the seasonal AR terms.

EDIT: I am not sure how to post data, I am pasting it directly on here.

array([[203. ], [217.5], [171. ], [186. ], [197.5], [206.5], [261.5], [206. ], [197. ], [179. ], [159.5], [196.5], [200.5], [202.5], [200.5], [219.5], [173.5], [150. ], [204.5], [187.5], [226.5], [224.5], [230.5], [232. ], [168. ], [206. ], [220. ], [252.5], [205.5], [207. ], [216. ], [175. ], [209.5], [222.5], [200.5], [234.5], [250.5], [184.5], [177.5], [253. ], [211. ], [208.5], [214.5], [219. ], [180.5], [163.5], [188. ], [240. ], [230. ], [209.5], [206. ], [213.5], [180.5], [200.5], [217. ], [243. ], [219. ], [224.5], [233. ], [176.5], [194. ], [229.5], [206.5], [209. ], [244. ], [206. ], [177. ], [203. ], [228. ], [250. ], [211. ], [249. ], [206.5], [179. ], [203. ], [212.5], [167. ], [227.5], [198.5], [188.5], [159. ], [189. ], [202.5], [218. ], [232. ], [222. ], [214.5], [195.5], [190. ], [259.5], [219.5], [217.5], [241. ], [204. ], [169. ], [168.5], [223. ], [239.5], [235.5], [264. ], [179. ], [192. ], [227. ], [228.5], [184. ], [200.5], [218.5], [180.5], [182. ], [190. ], [209. ], [254.5], [203. ], [214. ], [225. ], [159.5], [197. ], [205. ], [205.5], [247. ], [221.5], [166.5], [168. ], [197.5], [214.5], [205. ], [223.5], [213.5], [184. ], [166. ], [218.5], [234.5], [229.5], [222.5], [220.5], [166. ], [185.5], [192. ], [203. ], [195. ], [211.5], [203.5], [190.5], [155.5], [174.5], [224.5], [184. ], [220. ], [195. ], [192. ], [218.5], [221.5], [201. ], [215. ], [209. ], [204.5], [167. ], [188. ], [200.5], [228. ], [193. ], [210.5], [217. ], [175. ], [157.5], [187. ], [186.5], [194. ], [197. ], [221. ], [187. ], [147. ], [199.5], [200.5], [211.5], [226.5], [193. ], [188. ], [169.5], [178. ], [258.5], [201.5], [237. ], [184. ], [170. ], [172.5], [195. ], [204.5], [198. ], [194.5], [222.5], [170. ], [176.5], [173.5], [218.5], [236. ], [214. ], [210. ], [237. ], [188.5], [209. ], [192.5], [208.5], [194. ], [212.5], [178. ], [161. ], [187. ], [189.5], [158. ], [160. ], [235.5], [191.5], [179. ], [190.5], [194. ], [206.5], [226.5], [195. ], [196.5], [189.5], [207. ], [210.5], [224. ], [220. ], [235. ], [186. ], [158.5], [183.5], [210. ], [225.5], [224.5], [237. ], [198. ], [188. ], [195.5], [206.5], [223. ], [233. ], [196. ], [213.5], [189.5], [209. ], [192. ], [189.5], [182. ], [232.5], [207. ], [190. ], [191.5], [215. ], [222.5], [246.5], [227. ], [210.5], [180.5], [212. ], [223.5], [205. ], [232.5], [219.5], [207.5], [195. ], [219.5], [248. ], [236. ], [197. ], [240. ], [205. ], [173. ], [205. ], [210. ], [258. ], [221. ], [227. ], [174.5], [184. ], [192.5], [231.5], [221. ], [191.5], [193.5], [196.5], [184. ], [202.5], [218.5], [212.5], [239.5], [217.5], [182. ], [176. ], [215.5], [233. ], [236. ], [204. ], [221. ], [175. ], [166. ], [185. ], [227. ], [201. ], [221.5], [239. ], [251.5], [170. ], [217.5], [203. ], [192. ], [187.5], [207.5], [182. ], [184.5], [202. ], [185.5], [207.5], [211.5], [222. ], [202. ], [157. ], [211. ], [213.5], [207.5], [199. ], [208.5], [201.5], [166.5], [173. ], [196. ], [226.5], [155.5], [175. ], [179.5], [142.5], [213.5], [195. ], [190.5], [195. ], [209. ], [170. ], [142. ], [190. ], [176. ], [180. ], [202. ], [194. ], [158.5], [158.5], [198. ], [218.5], [181. ], [193. ], [175. ], [180. ], [178. ], [193.5], [170.5], [141. ], [139.5], [158. ], [145.5], [155.5], [183.5], [159. ], [227. ], [171.5], [174.5], [173. ], [212. ], [192.5], [220. ], [206. ], [197.5], [208. ], [167. ], [210. ], [224. ], [224.5], [219. ], [229.5], [196. ], [177.5], [209. ], [207.5], [228.5], [217. ], [242. ], [227. ], [200. ], [205. ], [210.5], [224. ], [229. ], [235. ], [201.5], [182.5], [184. ], [229.5], [205.5], [200. ], [240. ], [201. ], [167. ], [212.5], [213.5], [211.5], [234. ], [216. ], [195. ], [204. ], [163.5], [194. ], [200.5], [214. ], [223.5], [181. ], [174.5], [246. ], [207.5], [182.5], [192. ], [227. ], [200. ], [192. ], [225.5], [235. ], [235. ], [228.5], [244. ], [204. ], [177.5], [193.5], [244. ], [242.5], [226.5], [234. ], [186.5], [146. ], [172. ], [245.5], [216. ], [201.5], [205.5], [201.5], [183.5], [191. ], [225. ], [221. ], [191.5], [206. ], [198. ], [200. ], [190.5], [213.5], [209.5], [251. ], [194.5], [193. ], [206.5], [198.5], [202. ], [212. ], [219. ], [183. ], [163. ], [201. ], [182.5], [206.5], [203.5], [228.5], [247.5], [192. ], [204. ], [198. ], [181.5], [179.5], [250. ], [244. ], [212.5], [205. ], [233.5], [208. ], [218. ], [210.5], [238.5], [188.5], [194. ], [213.5], [214. ], [222. ], [235. ], [203. ], [189.5], [193.5], [226.5], [224. ], [205.5], [212.5], [206.5], [192.5], [197.5], [240.5], [230. ], [216.5], [226.5], [239.5], [189.5], [203.5], [221. ], [239.5], [205.5], [234.5], [188.5], [212. ], [199. ], [231.5], [240. ], [198. ], [222.5], [199.5], [144.5], [170.5], [239. ], [203. ], [213. ], [185. ], [210.5], [172.5], [212. ], [206.5], [175. ], [184.5], [225.5], [228. ], [185. ], [182. ], [183.5], [197. ], [208. ], [224. ], [176.5], [207.5], [212. ], [205. ], [188.5], [229. ], [208. ], [205. ], [213. ], [182.5], [219.5], [218.5], [229. ], [195.5], [203.5], [166.5], [186. ], [227.5], [206. ], [195. ], [222.5], [184. ], [191.5], [213. ], [177.5], [196.5], [201. ], [218.5], [204.5], [178.5], [194. ], [202.5], [201. ], [181.5], [203. ], [157.5], [201.5], [205. ], [224.5], [204. ], [192. ], [212.5], [193.5], [152.5], [180. ], [216. ], [203. ], [207. ], [207. ], [175.5], [174. ], [215.5], [181. ], [234. ], [219.5], [213. ], [195. ], [177.5], [199. ], [198. ], [195.5], [217. ], [213.5], [216. ], [183.5], [171.5], [188.5], [260. ], [185. ], [198.5], [190.5], [167. ], [149.5], [196. ], [192. ], [202.5], [191.5], [176.5], [183. ], [181. ], [194. ], [216.5], [217. ], [220.5], [180. ], [144. ], [172.5], [183.5], [189. ], [233.5], [217. ], [221.5], [174. ], [195.5], [199. ], [212. ], [180. ], [233. ], [159. ], [169. ], [199.5], [155. ], [229. ], [184.5], [218.5], [184. ], [176.5], [177.5], [193. ], [213. ], [200.5], [224.5], [187.5], [156.5], [188.5], [195.5], [206. ], [200.5], [210. ], [188.5], [183. ], [178. ], [180. ], [196.5], [203. ], [229.5], [183.5], [221. ], [226. ], [203.5], [174. ], [165. ], [206.5], [185. ], [176.5], [186.5], [148.5], [179. ], [188. ], [215.5], [187.5], [177. ], [179.5], [196.5], [162. ], [175.5], [205. ], [178.5], [170. ], [186.5], [183.5], [184. ], [133. ], [184.5], [168.5], [148.5], [201. ], [174.5], [233. ], [195.5], [196.5], [185. ], [169. ], [161.5], [184. ], [171. ], [179. ], [218.5], [172. ], [163. ], [197.5], [212. ], [245. ], [198. ], [207. ], [173.5], [175. ], [190.5], [186.5], [203.5], [197. ], [163. ], [134. ], [131. ], [185. ], [190.5], [161.5], [200. ], [149.5], [158.5], [186.5], [198.5], [203. ], [188. ], [169. ], [178. ], [184. ], [230.5], [221.5], [205. ], [216.5], [212. ], [180. ], [168.5], [209. ], [226.5], [202. ], [220.5], [192. ], [176.5], [177.5], [188.5], [194.5], [208.5], [210. ], [186. ], [185. ], [196.5], [268.5], [211.5], [198. ], [234.5], [180.5], [151. ], [164.5], [209. ], [196.5], [182. ], [212. ], [176.5], [159. ], [172. ], [175.5], [215. ], [203. ], [185.5], [140.5], [163. ], [160. ], [195.5], [198. ], [195.5], [219.5], [181.5], [141.5], [186. ], [219.5], [215. ], [227. ], [189.5], [214. ], [157.5], [172. ], [190.5], [211. ], [215.5], [185. ], [196. ], [181. ], [161. ], [212.5], [197. ], [204. ], [200.5], [177.5], [182.5], [195.5], [188. ], [216. ], [197. ], [198.5], [185. ], [158. ], [189. ], [199.5], [208. ], [174. ], [217.5], [187. ], [160.5], [200. ], [206. ], [225.5], [205.5], [192.5], [204.5], [154. ], [214.5], [205. ], [217. ], [201. ], [218. ], [169. ], [157.5], [194. ], [178.5], [194.5], [210.5], [219. ], [194.5], [179. ], [206. ], [197.5], [203. ], [224.5], [206. ], [183.5], [199. ], [188.5], [175.5], [196.5], [203. ], [208.5], [204. ], [192. ], [167.5], [196. ], [211. ], [204. ], [207. ], [186.5], [184.5], [208.5], [182. ], [193. ], [221. ], [216.5], [217.5], [172.5], [169. ], [182.5], [222.5], [174. ], [224. ], [183.5], [189.5], [203. ], [191. ], [249.5], [192. ], [212.5], [178.5], [155. ], [161.5], [183.5], [180.5], [187.5], [228.5], [176. ], [181. ], [173. ], [186.5], [170.5], [171.5], [201. ], [197. ], [164. ], [191.5], [177. ], [193.5], [214. ], [209. ], [203. ], [227. ], [186.5], [226. ], [172. ], [191.5], [259. ], [178.5], [156.5], [191. ], [218. ], [181. ], [181.5], [197. ], [191.5], [178.5], [175. ], [182. ], [202. ], [206.5], [210.5], [183.5], [159. ], [179.5], [178.5], [184.5], [186.5], [228. ], [206.5], [160.5], [179.5], [180.5], [200.5], [189. ], [181. ], [201. ], [169.5], [234.5], [179. ], [207.5], [198.5], [228.5], [188. ], [184.5], [176.5], [195. ], [211. ], [188.5], [201. ], [186. ], [164. ], [188. ], [173. ], [186. ], [187. ], [196.5], [191.5], [172. ], [196.5], [211.5], [190.5], [180. ], [225.5], [197.5], [155.5], [191.5], [194. ], [214. ], [217.5], [217. ], [183. ], [149.5], [163.5], [164.5], [193.5], [210.5], [206. ], [190. ], [150. ], [183.5], [187. ], [184. ], [200.5], [218. ], [182. ], [170.5], [191. ], [186. ], [211.5], [211. ], [222. ], [173.5], [205. ], [179.5], [211. ], [194. ], [196. ], [218.5], [246.5]])

$\endgroup$
9
  • $\begingroup$ post your data and I will try and help $\endgroup$
    – IrishStat
    Commented Apr 26, 2019 at 10:47
  • $\begingroup$ The ACF and the PACF are summary statistics. Your data may auto-regressive or moving-average structure along with regular differencing , seasonal differencing, level/step shifts , local time trends, pulses , seasonal pulses AND/OR the need to partition due to changes in parameters over time or error variance changes over time or error variance-expected value linkages. Only your data knows for sure ... which is why I asked you to post your data. If the data is deemed confidential simply scale it by subtracting a constant and dividing it by another constant. $\endgroup$
    – IrishStat
    Commented Apr 26, 2019 at 12:06
  • $\begingroup$ @IrishStat Thanks, I've posted the data, it's daily counts of an observable, and they start from january until october. $\endgroup$
    – Mike
    Commented Apr 26, 2019 at 15:04
  • $\begingroup$ what is the starting date + describe the data $\endgroup$
    – IrishStat
    Commented Apr 26, 2019 at 16:12
  • $\begingroup$ @IrishStat Data is between January and October of 2003. It is daily counts (so sampling frequency is 1 hour but I have resampled at 1 day by summing) $\endgroup$
    – Mike
    Commented Apr 26, 2019 at 16:20

1 Answer 1

1
$\begingroup$

I took 5609 daily crime values (I will send them to anybody who asks for them) for a US location and introduced them to AUTOBOX resulting in the following Actual-Forecast graph enter image description here . The Actual/Fit and Forecast is busier . enter image description here. Note that the OP posted data (5570 values) that had a number of omitted days which is a no-no when analyzing time series data.

As is expected crime is affected by not only day-of-the-week and month-of-the-year BUT major holidays also play a significant role. Additionally three level shifts were identified along with 3 fixed-days-of-the-month including the first day of each month . Note that day 5 has the sharpest drop-off in crime i.e Sunday suggesting that even criminals respect the sabbath with crime the highest on day 3 (Friday ).

Here is the acf of the original data illustrating the "fixed effect" of day-of-the-week enter image description here since the final model had no need for SARIMA with the acf of the model's residuals here enter image description here.

The equation is here in two parts enter image description here and here enter image description here . Note that no arima structure was needed to generate a gaussian error structure. In other words it is more important to predict based upon the actual type of day than weighting what occurred last week or any seasonal differences.

The forecasts are presented for the next 365 days ( starting at May 11, 2018 ) enter image description here

Weather and social habits (holidays ) play a major role in the occurrence of crime. Note that August has the most crime while December has the least . The monthly indicators could well be a proxy for temperature .

Box and Jenkins loudly ( but I guess not loudly enough ! ) that their suggested tools (acf/pacf) for model identification PREMISED no deterministic structure in the data among other things. Your data is replete with deterministic structure.

Following Abraham Wald ... " You need to know the assumptions underlying the test"

$\endgroup$
5
  • $\begingroup$ Thank you very much for your detailed answer and time. 1) When you say the data is replete with deterministic structure, do you mean the weekly and monthly seasonality? I thought the ACF and PACF plots were ideal for identifying that deterministic structure, unless I'm misunderstanding the term. 2) By level shifts, do you mean a change in the expectation of the random variable for prolonged periods of time? 3) I'm trying to understand your output, is this saying that you have 56 variables in total? What does fixed_eff and month_eff stand for? Do you model holidays with dummy vars? $\endgroup$
    – Mike
    Commented Apr 29, 2019 at 17:08
  • $\begingroup$ Deterninistic structure that was extracted from the data : DAILY ;MONTHLY ; 3 SPECIFIC DAYS OF THE MONTH & LEVEL SHIFTS ... no weekly . The ACF deals with autoregressive sructure NOT fixed effects. You are misunderstanding . Level shifts are permanent changes in the expected value .fixed_eff n101017 means first type then day 01 of 07 days . Month effect zz is the effect of the the zzth month.Yes the holidays are modeled with one or more dummies depending upon whether or not it is a lead , contemporaneous or lag effect e.g. xmas is 1 day before (-1) , on and the following 2 days (1 and 2 ) . $\endgroup$
    – IrishStat
    Commented Apr 29, 2019 at 17:29
  • $\begingroup$ So the fact that the ACF shows weekly seasonality is not a 'deterministic' aspect of the data, however its response to a holiday, which is a fixed event, is. When you produce this model, I imagine you have a predictor matrix, in this case having 56 columns, are any of these columns auto-regressive or moving average terms? i.e. previous time steps and previous residuals? In other words, did you not identify any ARMA structure at all, and simply used other predictors that AUTOBOX identified to get normally distributed residuals? I am also curious how Lower and Upper limits were produced. $\endgroup$
    – Mike
    Commented Apr 29, 2019 at 21:10
  • $\begingroup$ I will take a look at the autobox website to see what is specified there, my models do not provide confidence intervals, I am merely running regressions with some autoregressive orders and whatever additional predictors improve my residual structure and other error metrics. To capture seasonality I try to use ACF/PACF or transfer to the frequency domain with Fourier to try and see something there, but I've seen your answers on many other posts and it is clear that I don't have a good enough grasp of what an ARMA structure is and how to identify it. $\endgroup$
    – Mike
    Commented Apr 29, 2019 at 21:13
  • $\begingroup$ if i can help in any way please contact me at my contact info , Fourier is not going to help you.. $\endgroup$
    – IrishStat
    Commented Apr 29, 2019 at 21:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.