Using appropriate notation, define the form of the Portmanteau statistics used by R. How can they be used to assess goodness-of-fit for time series models? With reference to the appropriate…