The Ljung Box statistic, also known as the modified Box Pierce statistic, is a function of the accumulated autocorrelations, Οjβ, up to time lag m. Itβs calculated as:
Q(m)=n(n+2)β[nβjΟj2ββ]
In this case, time lag = 3
Thus,
Q(3)=333(335)[3320.122β+331(β0.17)2β+330(β0.09)2β]=17.32