def lb(x): s,p = acorr_ljungbox(x, lags=4) return np.r_[s, p]
def lb1(x): s,p = acorr_ljungbox(x, lags=1) return s[0], p[0]
def lb4(x): s,p = acorr_ljungbox(x, lags=4) return s[-1], p[-1]
def lb(x): s, p = acorr_ljungbox(x, lags=4) return np.r_[s, p]
def lb1(x): s, p = acorr_ljungbox(x, lags=1) return s[0], p[0]
def lb4(x): s, p = acorr_ljungbox(x, lags=4) return s[-1], p[-1]