ArticleslgStudy

mathematics

Correlogram

Correlogram is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Correlogram rather than just read about it. In short: In the analysis of data, a correlogram is a chart of correlation statistics. For example, in time series analysis, a plot of the sample autocorrelations rh versus h (the time lags) is an autocorrelogram.

Correlogram — main illustration
Correlogram — illustration

Key takeaways

  • Correlogram belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Correlogram to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Correlogram from memory before moving on to harder problems.

Reference excerpt

In the analysis of data, a correlogram is a chart of correlation statistics. For example, in time series analysis, a plot of the sample autocorrelations rh versus h (the time lags) is an autocorrelogram. If cross-correlation is plotted, the result is called a cross-correlogram. The correlogram is a commonly used tool for checking randomness in a data set. If random, autocorrelations should be near zero for any and all time-lag separations. If non-random, then one or more of the autocorrelations will be significantly non-zero. In addition, correlograms are used in the model identification stage for Box–Jenkins autoregressive moving average time series models. Autocorrelations should be near-zero for randomness; if the analyst does not check for randomness, then the validity of many of the statistical conclusions becomes suspect. The correlogram is an excellent way of checking for such randomness. In multivariate analysis, correlation matrices shown as color-mapped images may also be called "correlograms" or "corrgrams".

Applications The correlogram can help provide answers to the following questions:

Are the data random? Is an observation related to an adjacent observation? Is an observation related to an observation twice-removed? (etc.) Is the observed time series white noise? Is the observed time series sinusoidal? Is the observed time series autoregressive? What is an appropriate model for the observed time series? Is the model Y=constant+error valid and sufficient? Is the formula sY¯=s/N valid?

Importance Randomness (along with fixed model, fixed variation, and fixed distribution) is one of the four assumptions that typically underlie all measurement processes. The randomness assumption is critically important for the following three reasons:

Most standard statistical tests depend on randomness. The validity of the test conclusions is directly linked to the validity of the randomness assumption. Many commonly used statistical formulae depend on the randomness assumption, the most common formula being the formula for determining the standard error of the sample mean: sY¯=s/N where s is the standard deviation of the data. Although heavily used, the results from using this formula are of no value unless the randomness assumption holds.

For univariate data, the default model is Y=constant+error If the data are not random, this model is incorrect and invalid, and the estimates for the parameters (such as the constant) become nonsensical and invalid.

Estimation of autocorrelations The autocorrelation coefficient at lag h is given by

rh=ch/c0 where ch is the autocovariance function

ch=1N∑t=1N−h(Yt−Y¯)(Yt+h−Y¯) and c0 is the variance function

c0=1N∑t=1N(Yt−Y¯)2 The resulting value of rh will range between −1 and +1.

Alternate estimate Some sources may use the following formula for the autocovariance function:

ch=1N−h∑t=1N−h(Yt−Y¯)(Yt+h−Y¯) Although this definition has less bias, the (1/N) formulation has some desirable statistical properties and is the form most commonly used in the statistics literature. See pages 20 and 49–50 in Chatfield for details. In contrast to the definition above, this definition allows us to compute ch in a slightly more intuitive way. Consider the sample Y1,…,YN, where Yi∈ℝn for i=1,…,N. Then, let

X=[Y1−Y¯⋯YN−Y¯]∈ℝn×N We then compute the Gram matrix Q=X⊤X. Finally, ch is computed as the sample mean of the hth diagonal of Q. For example, the 0th diagonal (the main diagonal) of Q has N elements, and its sample mean corresponds to c0. The 1st diagonal (to the right of the main diagonal) of Q has N−1 elements, and its sample mean corresponds to c1, and so on.

Statistical inference with correlograms

In the same graph one can draw upper and lower bounds for autocorrelation with significance level α:

B=±z1−α/2SE(rh) with rh as the estimated autocorrelation at lag h. If the autocorrelation is higher (lower) than this upper (lower) bound, the null hypothesis that there is no autocorrelation at and beyond a given lag is rejected at a significance level of α. This test is an approximate one and assumes that the time-series is Gaussian. In the above, z1−α/2 is the quantile of the normal distribution; SE is the standard error, which can be computed by Bartlett's formula for MA(ℓ) processes:

SE(r1)=1N SE(rh)=1+2∑i=1h−1ri2N for h>1. In the example plotted, we can reject the null hypothesis that there is no autocorrelation between time-points which are separated by lags up to 4. For most longer periods one cannot reject the null hypothesis of no autocorrelation. Note that there are two distinct formulas for generating the confidence bands: 1. If the correlogram is being used to test for randomness (i.e., there is no time dependence in the data), the following formula is recommended:

±z1−α/2N where N is the sample size, z is the quantile function of the standard normal distribution and α is the significance level. In this case, the confidence bands have fixed width that depends on the sample size. 2. Correlograms are also used in the model identification stage for fitting ARIMA models. In this case, a moving average model is assumed for the data and the following confidence bands should be generated:

±z1−α/21N(1+2∑i=1kri2) where k is the lag. In this case, the confidence bands increase as the lag increases.

Software Correlograms are available in most general purpose statistical libraries. Correlograms:

python pandas: pandas.plotting.autocorrelation_plot R: functions acf and pacf Corrgrams:

python seaborn: heatmap, pairplot R: corrgram

Related techniques Partial autocorrelation function Spectral plot Seasonal subseries plot Scaled Correlation Variogram

References

Further reading Hanke, John E.; Reitsch, Arthur G.; Wichern, Dean W. Business forecasting (7th ed.). Upper Saddle River, NJ: Prentice Hall. Box, G. E. P.; Jenkins, G. (1976). Time Series Analysis: Forecasting and Control. Holden-Day. Chatfield, C. (1989). The Analysis of Time Series: An Introduction (Fourth ed.). New York, NY: Chapman & Hall.

External links Autocorrelation Plot This article incorporates public domain material from the National Institute of Standards and Technology

Illustrations

Correlogram: A plot showing 100 random numbers with a "hidden" sine function, and an autocorrelation (correlogram) of the series on the bottom.
A plot showing 100 random numbers with a "hidden" sine function, and an autocorrelation (correlogram) of the series on the bottom.
Correlogram: Correlogram example from 400-point sample of a first-order autoregressive process with 0.75 correlation of adjacent points, along with the 95% confidence intervals (plotted about the correlation estimates in black and about zero in red), as calculated by the equations in this section.  The dashed blue line shows the actual autocorrelation function of the sampled process.
Correlogram example from 400-point sample of a first-order autoregressive process with 0.75 correlation of adjacent points, along with the 95% confidence intervals (plotted about the correlation estimates in black and about zero in red), as calculated by the equations in this section. The dashed blue line shows the actual autocorrelation function of the sampled process.
Correlogram: 20 correlograms from 400-point samples of the same random process as in the previous figure.
20 correlograms from 400-point samples of the same random process as in the previous figure.

Worked examples

Example 1 — a first encounter with Correlogram

Start with the simplest possible case. Write down what Correlogram claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Correlogram before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Correlogram ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Correlogram

In research
Correlogram appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Correlogram in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Correlogram is common in secondary-school and first-year university syllabi. It links to neighbouring topics Autocorrelation, Statistical charts and diagrams, so understanding it makes those chapters shorter.
In everyday life
Look for Correlogram outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Correlogram” →

How to study Correlogram in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Correlogram means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Correlogram out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Correlogram in simple terms?

In the analysis of data, a correlogram is a chart of correlation statistics. For example, in time series analysis, a plot of the sample autocorrelations rh versus h (the time lags) is an autocorrelogram.

Why does Correlogram matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Correlogram?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Correlogram.

Tags

  • Autocorrelation
  • Statistical charts and diagrams

Keep exploring