Skip to main content

Finding Patterns in Signals

  • Chapter
  • First Online:
An Introduction to Statistics with Python

Part of the book series: Statistics and Computing ((SCO))

  • 2575 Accesses

Abstract

This chapter describes different aspects of finding patterns in signals. It starts out with the description of cross correlation, where one looks at the occurrence of a shorter feature in a longer signal. Two special cases are investigated in more detail. First, when the two signals have the same length one can ask how strong the linear relationship is between the two variables. This comparison of signals requires a normalization to eliminate trivial artifacts, and leads to the definition of the correlation coefficient. For multivariate data, the generaliztion from the correlation coefficient to the correlation matrix is explained. An intuitive interpretation of the correlation coefficient is obtained by looking how it is related to the best line fit to the two variables. In that case the square of the correlation coefficient, the coefficient of determination, quantifies which part of the signal change in one variable is explained by the corresponding change in the other variable. The second special case is obtained by comparing one signal to shifted versions of itself. This is called autocorrelation, and can be used to find hidden systematic patterns in signals. The final section of this chapter shows how the autocorrelation is used in time-series analysis (TSA), to obtain the maximum amount of information from a time series of data.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 79.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Hardcover Book
USD 99.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    <ISP2e>/11_Pattern/correlation/ISP_corrVis.py.

  2. 2.

    <ISP2e>/12_LinearModels/bivariate/ISP_bivariate.py.

  3. 3.

    In contrast, in signal processing and engineering the autocorrelation is simply the cross correlation of a function with itself.

  4. 4.

    <ISP2e>/11_Pattern/timeSeriesAnalysis/ISP_TimeSeries.py.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Thomas Haslwanter .

Rights and permissions

Reprints and permissions

Copyright information

© 2022 Springer Nature Switzerland AG

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Haslwanter, T. (2022). Finding Patterns in Signals. In: An Introduction to Statistics with Python. Statistics and Computing. Springer, Cham. https://doi.org/10.1007/978-3-030-97371-1_11

Download citation

Publish with us

Policies and ethics