\documentclass[12pt,titlepage]{article}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{mathtools}
\usepackage{graphicx}
\usepackage{color}
\usepackage{ucs}
\usepackage[utf8x]{inputenc}
\usepackage{xparse}
\usepackage{hyperref}
%----Macros----------
%
% Unresolved issues:
%
% \righttoleftarrow
% \lefttorightarrow
%
% \color{} with HTML colorspec
% \bgcolor
% \array with options (without options, it's equivalent to the matrix environment)
% Of the standard HTML named colors, white, black, red, green, blue and yellow
% are predefined in the color package. Here are the rest.
\definecolor{aqua}{rgb}{0, 1.0, 1.0}
\definecolor{fuschia}{rgb}{1.0, 0, 1.0}
\definecolor{gray}{rgb}{0.502, 0.502, 0.502}
\definecolor{lime}{rgb}{0, 1.0, 0}
\definecolor{maroon}{rgb}{0.502, 0, 0}
\definecolor{navy}{rgb}{0, 0, 0.502}
\definecolor{olive}{rgb}{0.502, 0.502, 0}
\definecolor{purple}{rgb}{0.502, 0, 0.502}
\definecolor{silver}{rgb}{0.753, 0.753, 0.753}
\definecolor{teal}{rgb}{0, 0.502, 0.502}
% Because of conflicts, \space and \mathop are converted to
% \itexspace and \operatorname during preprocessing.
% itex: \space{ht}{dp}{wd}
%
% Height and baseline depth measurements are in units of tenths of an ex while
% the width is measured in tenths of an em.
\makeatletter
\newdimen\itex@wd%
\newdimen\itex@dp%
\newdimen\itex@thd%
\def\itexspace#1#2#3{\itex@wd=#3em%
\itex@wd=0.1\itex@wd%
\itex@dp=#2ex%
\itex@dp=0.1\itex@dp%
\itex@thd=#1ex%
\itex@thd=0.1\itex@thd%
\advance\itex@thd\the\itex@dp%
\makebox[\the\itex@wd]{\rule[-\the\itex@dp]{0cm}{\the\itex@thd}}}
\makeatother
% \tensor and \multiscript
\makeatletter
\newif\if@sup
\newtoks\@sups
\def\append@sup#1{\edef\act{\noexpand\@sups={\the\@sups #1}}\act}%
\def\reset@sup{\@supfalse\@sups={}}%
\def\mk@scripts#1#2{\if #2/ \if@sup ^{\the\@sups}\fi \else%
\ifx #1_ \if@sup ^{\the\@sups}\reset@sup \fi {}_{#2}%
\else \append@sup#2 \@suptrue \fi%
\expandafter\mk@scripts\fi}
\def\tensor#1#2{\reset@sup#1\mk@scripts#2_/}
\def\multiscripts#1#2#3{\reset@sup{}\mk@scripts#1_/#2%
\reset@sup\mk@scripts#3_/}
\makeatother
% \slash
\makeatletter
\newbox\slashbox \setbox\slashbox=\hbox{$/$}
\def\itex@pslash#1{\setbox\@tempboxa=\hbox{$#1$}
\@tempdima=0.5\wd\slashbox \advance\@tempdima 0.5\wd\@tempboxa
\copy\slashbox \kern-\@tempdima \box\@tempboxa}
\def\slash{\protect\itex@pslash}
\makeatother
% math-mode versions of \rlap, etc
% from Alexander Perlis, "A complement to \smash, \llap, and lap"
% http://math.arizona.edu/~aprl/publications/mathclap/
\def\clap#1{\hbox to 0pt{\hss#1\hss}}
\def\mathllap{\mathpalette\mathllapinternal}
\def\mathrlap{\mathpalette\mathrlapinternal}
\def\mathclap{\mathpalette\mathclapinternal}
\def\mathllapinternal#1#2{\llap{$\mathsurround=0pt#1{#2}$}}
\def\mathrlapinternal#1#2{\rlap{$\mathsurround=0pt#1{#2}$}}
\def\mathclapinternal#1#2{\clap{$\mathsurround=0pt#1{#2}$}}
% Renames \sqrt as \oldsqrt and redefine root to result in \sqrt[#1]{#2}
\let\oldroot\root
\def\root#1#2{\oldroot #1 \of{#2}}
\renewcommand{\sqrt}[2][]{\oldroot #1 \of{#2}}
% Manually declare the txfonts symbolsC font
\DeclareSymbolFont{symbolsC}{U}{txsyc}{m}{n}
\SetSymbolFont{symbolsC}{bold}{U}{txsyc}{bx}{n}
\DeclareFontSubstitution{U}{txsyc}{m}{n}
% Manually declare the stmaryrd font
\DeclareSymbolFont{stmry}{U}{stmry}{m}{n}
\SetSymbolFont{stmry}{bold}{U}{stmry}{b}{n}
% Manually declare the MnSymbolE font
\DeclareFontFamily{OMX}{MnSymbolE}{}
\DeclareSymbolFont{mnomx}{OMX}{MnSymbolE}{m}{n}
\SetSymbolFont{mnomx}{bold}{OMX}{MnSymbolE}{b}{n}
\DeclareFontShape{OMX}{MnSymbolE}{m}{n}{
<-6> MnSymbolE5
<6-7> MnSymbolE6
<7-8> MnSymbolE7
<8-9> MnSymbolE8
<9-10> MnSymbolE9
<10-12> MnSymbolE10
<12-> MnSymbolE12}{}
% Declare specific arrows from txfonts without loading the full package
\makeatletter
\def\re@DeclareMathSymbol#1#2#3#4{%
\let#1=\undefined
\DeclareMathSymbol{#1}{#2}{#3}{#4}}
\re@DeclareMathSymbol{\neArrow}{\mathrel}{symbolsC}{116}
\re@DeclareMathSymbol{\neArr}{\mathrel}{symbolsC}{116}
\re@DeclareMathSymbol{\seArrow}{\mathrel}{symbolsC}{117}
\re@DeclareMathSymbol{\seArr}{\mathrel}{symbolsC}{117}
\re@DeclareMathSymbol{\nwArrow}{\mathrel}{symbolsC}{118}
\re@DeclareMathSymbol{\nwArr}{\mathrel}{symbolsC}{118}
\re@DeclareMathSymbol{\swArrow}{\mathrel}{symbolsC}{119}
\re@DeclareMathSymbol{\swArr}{\mathrel}{symbolsC}{119}
\re@DeclareMathSymbol{\nequiv}{\mathrel}{symbolsC}{46}
\re@DeclareMathSymbol{\Perp}{\mathrel}{symbolsC}{121}
\re@DeclareMathSymbol{\Vbar}{\mathrel}{symbolsC}{121}
\re@DeclareMathSymbol{\sslash}{\mathrel}{stmry}{12}
\re@DeclareMathSymbol{\bigsqcap}{\mathop}{stmry}{"64}
\re@DeclareMathSymbol{\biginterleave}{\mathop}{stmry}{"6}
\re@DeclareMathSymbol{\invamp}{\mathrel}{symbolsC}{77}
\re@DeclareMathSymbol{\parr}{\mathrel}{symbolsC}{77}
\makeatother
% \llangle, \rrangle, \lmoustache and \rmoustache from MnSymbolE
\makeatletter
\def\Decl@Mn@Delim#1#2#3#4{%
\if\relax\noexpand#1%
\let#1\undefined
\fi
\DeclareMathDelimiter{#1}{#2}{#3}{#4}{#3}{#4}}
\def\Decl@Mn@Open#1#2#3{\Decl@Mn@Delim{#1}{\mathopen}{#2}{#3}}
\def\Decl@Mn@Close#1#2#3{\Decl@Mn@Delim{#1}{\mathclose}{#2}{#3}}
\Decl@Mn@Open{\llangle}{mnomx}{'164}
\Decl@Mn@Close{\rrangle}{mnomx}{'171}
\Decl@Mn@Open{\lmoustache}{mnomx}{'245}
\Decl@Mn@Close{\rmoustache}{mnomx}{'244}
\makeatother
% Widecheck
\makeatletter
\DeclareRobustCommand\widecheck[1]{{\mathpalette\@widecheck{#1}}}
\def\@widecheck#1#2{%
\setbox\z@\hbox{\m@th$#1#2$}%
\setbox\tw@\hbox{\m@th$#1%
\widehat{%
\vrule\@width\z@\@height\ht\z@
\vrule\@height\z@\@width\wd\z@}$}%
\dp\tw@-\ht\z@
\@tempdima\ht\z@ \advance\@tempdima2\ht\tw@ \divide\@tempdima\thr@@
\setbox\tw@\hbox{%
\raise\@tempdima\hbox{\scalebox{1}[-1]{\lower\@tempdima\box
\tw@}}}%
{\ooalign{\box\tw@ \cr \box\z@}}}
\makeatother
% \mathraisebox{voffset}[height][depth]{something}
\makeatletter
\NewDocumentCommand\mathraisebox{moom}{%
\IfNoValueTF{#2}{\def\@temp##1##2{\raisebox{#1}{$\m@th##1##2$}}}{%
\IfNoValueTF{#3}{\def\@temp##1##2{\raisebox{#1}[#2]{$\m@th##1##2$}}%
}{\def\@temp##1##2{\raisebox{#1}[#2][#3]{$\m@th##1##2$}}}}%
\mathpalette\@temp{#4}}
\makeatletter
% udots (taken from yhmath)
\makeatletter
\def\udots{\mathinner{\mkern2mu\raise\p@\hbox{.}
\mkern2mu\raise4\p@\hbox{.}\mkern1mu
\raise7\p@\vbox{\kern7\p@\hbox{.}}\mkern1mu}}
\makeatother
%% Fix array
\newcommand{\itexarray}[1]{\begin{matrix}#1\end{matrix}}
%% \itexnum is a noop
\newcommand{\itexnum}[1]{#1}
%% Renaming existing commands
\newcommand{\underoverset}[3]{\underset{#1}{\overset{#2}{#3}}}
\newcommand{\widevec}{\overrightarrow}
\newcommand{\darr}{\downarrow}
\newcommand{\nearr}{\nearrow}
\newcommand{\nwarr}{\nwarrow}
\newcommand{\searr}{\searrow}
\newcommand{\swarr}{\swarrow}
\newcommand{\curvearrowbotright}{\curvearrowright}
\newcommand{\uparr}{\uparrow}
\newcommand{\downuparrow}{\updownarrow}
\newcommand{\duparr}{\updownarrow}
\newcommand{\updarr}{\updownarrow}
\newcommand{\gt}{>}
\newcommand{\lt}{<}
\newcommand{\map}{\mapsto}
\newcommand{\embedsin}{\hookrightarrow}
\newcommand{\Alpha}{A}
\newcommand{\Beta}{B}
\newcommand{\Zeta}{Z}
\newcommand{\Eta}{H}
\newcommand{\Iota}{I}
\newcommand{\Kappa}{K}
\newcommand{\Mu}{M}
\newcommand{\Nu}{N}
\newcommand{\Rho}{P}
\newcommand{\Tau}{T}
\newcommand{\Upsi}{\Upsilon}
\newcommand{\omicron}{o}
\newcommand{\lang}{\langle}
\newcommand{\rang}{\rangle}
\newcommand{\Union}{\bigcup}
\newcommand{\Intersection}{\bigcap}
\newcommand{\Oplus}{\bigoplus}
\newcommand{\Otimes}{\bigotimes}
\newcommand{\Wedge}{\bigwedge}
\newcommand{\Vee}{\bigvee}
\newcommand{\coproduct}{\coprod}
\newcommand{\product}{\prod}
\newcommand{\closure}{\overline}
\newcommand{\integral}{\int}
\newcommand{\doubleintegral}{\iint}
\newcommand{\tripleintegral}{\iiint}
\newcommand{\quadrupleintegral}{\iiiint}
\newcommand{\conint}{\oint}
\newcommand{\contourintegral}{\oint}
\newcommand{\infinity}{\infty}
\newcommand{\bottom}{\bot}
\newcommand{\minusb}{\boxminus}
\newcommand{\plusb}{\boxplus}
\newcommand{\timesb}{\boxtimes}
\newcommand{\intersection}{\cap}
\newcommand{\union}{\cup}
\newcommand{\Del}{\nabla}
\newcommand{\odash}{\circleddash}
\newcommand{\negspace}{\!}
\newcommand{\widebar}{\overline}
\newcommand{\textsize}{\normalsize}
\renewcommand{\scriptsize}{\scriptstyle}
\newcommand{\scriptscriptsize}{\scriptscriptstyle}
\newcommand{\mathfr}{\mathfrak}
\newcommand{\statusline}[2]{#2}
\newcommand{\tooltip}[2]{#2}
\newcommand{\toggle}[2]{#2}
% Theorem Environments
\theoremstyle{plain}
\newtheorem{theorem}{Theorem}
\newtheorem{lemma}{Lemma}
\newtheorem{prop}{Proposition}
\newtheorem{cor}{Corollary}
\newtheorem*{utheorem}{Theorem}
\newtheorem*{ulemma}{Lemma}
\newtheorem*{uprop}{Proposition}
\newtheorem*{ucor}{Corollary}
\theoremstyle{definition}
\newtheorem{defn}{Definition}
\newtheorem{example}{Example}
\newtheorem*{udefn}{Definition}
\newtheorem*{uexample}{Example}
\theoremstyle{remark}
\newtheorem{remark}{Remark}
\newtheorem{note}{Note}
\newtheorem*{uremark}{Remark}
\newtheorem*{unote}{Note}
%-------------------------------------------------------------------
\begin{document}
%-------------------------------------------------------------------
\section*{Blog - exploring climate data (part 1)}
This is a [[Blog articles in progress|blog article in progress]]. To see discussions of the article as it is being written, visit the \href{http://forum.azimuthproject.org/discussion/1405/blog-exploring-climate-data-part-1/?Focus=11683#Comment_11683}{Azimuth Forum}.
If you want to write your own article, please read the directions on \href{http://www.azimuthproject.org/azimuth/show/How+to#blog}{How to blog}.
\emph{joint with \textbf{[[Dara O Shayda]]}}
Emboldened by our , people in the have been starting to analyze weather and climate data. A lot of this work is exploratory, with no big conclusions. But it's still interesting! So, let's try some blog articles where we present this work.
This one will be about the air pressure on the island of Tahiti and in a city called Darwin in Australia: how they're correlated, and how each one varies. This article will also be a quick introduction to some basic statistics, as well as `continuous wavelet transforms'.
The El Ni\~n{}o Southern Oscillation is often studied using the air pressure in Darwin, Australia versus the air pressure in Tahiti. When there's an El Ni\~n{}o, it gets stormy in the eastern Pacific so the air temperatures tend to be lower in Tahiti and higher in Darwin. When there's a La Ni\~n{}a, it's the other way around:
The or is a normalized version of the monthly mean air pressure anomaly in Tahiti minus that in Darwin. Here means we subtract off the mean, and means that we divide by the standard deviation.
So, the SOI tends to be negative when there's an El Ni\~n{}o. On the other hand, when there's an El Ni\~n{}o the tends to be positive---this says it's hotter than usual in a certain patch of the Pacific.
Here you can see how this works:
When the Ni\~n{}o 3.4 index is positive, the SOI tends to be negative, and vice versa!
It might be fun to explore precisely how well correlated they are. You can get the data to do that by clicking on the links above.
But here's another question: how similar are the air pressure anomalies in Darwin and in Tahiti? Do we really need to take their difference, or are they so strongly anticorrelated that either one would be enough to detect an El Ni\~n{}o?
You can get the data to answer such questions here:
$\bullet$ , Climate Analysis Section, NCAR/UCAR. This includes links to monthly sea level pressure anomalies in and , in either ASCII format (click the second two links) or netCDF format (click the first one and read the explanation).
In fact this website has some nice graphs already made, which I might as well show you! Here's the SOI and also the of the air pressure anomalies in Darwin and Tahiti, normalized in some way:
(Click to enlarge.)
If the sum were zero, the air pressure anomalies in Darwin and Tahiti would contain the same information and life would be simple. But it's not!
Dara took the air pressure anomaly data from 1866 to 2012 and graphed it:
More interestingly, he used Mathematica to compute some `continuous wavelet transforms' of these air pressure anomalies. Let me start by explaining how a continuous wavelet transform works.
It helps to start with some very basic statistics. Suppose you have a list of numbers
\begin{displaymath}
x = (x_1, \dots, x_n)
\end{displaymath}
You probably know how to take their , or average. People often write this with angle brackets:
\begin{displaymath}
\langle x \rangle = \frac{1}{n} \sum_{i = 1}^n x_i
\end{displaymath}
You can also calculate the mean of their squares:
\begin{displaymath}
\langle x^2 \rangle = \frac{1}{n} \sum_{i = 1}^n x_i^2
\end{displaymath}
If you were naive you might think $\langle x^2 \rangle = \langle x \rangle^2,$ but in fact we have:
\begin{displaymath}
\langle x^2 \rangle \ge \langle x \rangle^2
\end{displaymath}
and they're equal only if all the $x_i$ are the same. The point is that if the numbers $x_i$ are spread out, the squares of the big ones (positive or negative) contribute more to the average of the squares than if we had averaged them out before squaring. The difference
\begin{displaymath}
\langle x^2 \rangle - \langle x \rangle^2
\end{displaymath}
is called the ; it says how spread out our numbers are. The square root of the variance is the :
\begin{displaymath}
\sigma_x = \sqrt{\langle x^2 \rangle - \langle x \rangle^2 }
\end{displaymath}
and this has the slight advantage that if you multiply all the numbers $x_i$ by some constant $c,$ the standard deviation gets multiplied by $|c|$. (The variance gets multiplied by $c^2$.)
We can generalize the variance to a situation where we have two lists of numbers:
\begin{displaymath}
x = (x_1, \dots, x_n)
\end{displaymath}
\begin{displaymath}
y = (y_1, \dots, y_n)
\end{displaymath}
Namely, we can form the
\begin{displaymath}
\langle x y \rangle - \langle x \rangle \langle y \rangle
\end{displaymath}
This reduces to the variance when $x = y$. It measures how much $x$ and $y$ vary together --- `hand in hand', as it were. A bit more precisely: if $x_i$ is greater than its mean value mainly for $i$ such that $y_i$ is greater than mean value, the covariance is positive. On the other hand, if $x_i$ tends to be greater than average when $y_i$ is than average --- like with the air pressures at Darwin and Tahiti --- the covariance will be negative.
For example, if
\begin{displaymath}
x = (1,-1), \quad y = (1,-1)
\end{displaymath}
then they `vary hand in hand', and the covariance
\begin{displaymath}
\langle x y \rangle - \langle x \rangle \langle y \rangle = 1 - 0 = 1
\end{displaymath}
is positive. But if
\begin{displaymath}
x = (1,-1), \quad y = (-1,1)
\end{displaymath}
then one is positive when the other is negative, so the covariance
\begin{displaymath}
\langle x y \rangle - \langle x \rangle \langle y \rangle = -1 - 0 = -1
\end{displaymath}
is negative.
Of course the covariance will get bigger if we multiply both $x$ and $y$ by some big number. If we don't want this effect, we can normalize the covariance and get the :
\begin{displaymath}
\frac{ \langle x y \rangle - \langle x \rangle \langle y \rangle }{\sigma_x \sigma_y}
\end{displaymath}
which will always be between $-1$ and $1$.
Okay, we're almost ready for continuous wavelet transforms! If the mean of either $x$ or $y$ is zero, the formula for covariance simplifies a lot, to
\begin{displaymath}
\langle x y \rangle = \frac{1}{n} \sum_{i = 1}^n x_i y_i
\end{displaymath}
So, this quantity says how much the numbers $x_i$ `vary hand in hand' with the numbers $y_i,$ in the special case when one (or both) has mean zero.
We can do something similar if $x, y : \mathbb{R} \to \mathbb{R}$ are functions of time defined for all real numbers $t$. The sum becomes an integral, and we have to give up on dividing by $n$. We get:
\begin{displaymath}
\int_{-\infty}^\infty x(t) y(t)\; d t
\end{displaymath}
This is called the of the functions $x$ and $y,$ and often it's written $\langle x, y \rangle,$ but it's a lot like the covariance.
What are continuous wavelet transforms, and why should we care?
People have lots of tricks for studying `signals', like series of numbers $x_i$ or functions $x : \mathbb{R} \to \mathbb{R}$. One method is to `transform' the signal in a way that reveals useful information. The decomposes a signal into sines and cosines of different frequencies. This lets us see how much power the signal has at different frequencies, but it doesn't reveal how the power at different frequencies . For that we should use something else, like the explained by Blake Pollard in a previous post.
Sines and cosines are great, but we might want to look for other patterns in a signal. A `continuous wavelet transform' lets us scan a signal for appearances of a given pattern at different and also at different : a pattern could go by quickly, or in a stretched out slow way.
To implement the continuous wavelet transform, we need a signal and a pattern to look for. The signal could be a function $x : \mathbb{R} \to \mathbb{R}$. The pattern would then be another function $y: \mathbb{R} \to \mathbb{R},$ usually called a .
Here's an example of a wavelet:
If we're in a relaxed mood, we could call function that looks like a bump with wiggles in it a wavelet. There are lots of famous wavelets, but this particular one is the fourth derivative of a certain Gaussian. Mathematica calls this particular wavelet , and you can look up the formula under `Details' on their webpage.
However, the exact formula doesn't matter at all now! If we call this wavelet $y,$ all that matters is that it's a bump with wiggles on it, and that its mean value is 0, or more precisely:
\begin{displaymath}
\int_{-\infty}^\infty y(t) \; d t = 0
\end{displaymath}
As we saw in the last section, this fact lets us take our function $x$ and the wavelet $y$ and see how much they `vary hand it hand' simply by computing their inner product:
\begin{displaymath}
\langle x , y \rangle = \int_{-\infty}^\infty x(t) y(t)\; d t
\end{displaymath}
Loosely speaking, this measures the `amount of $y$-shaped wiggle in the function $x$'. It's amazing how hard it is to say something in plain English that perfectly captures the meaning of a simple formula like the above one---so take the quoted phrase with a huge grain of salt. But it gives a rough intuition.
Our wavelet $y$ happens to be centered at $t = 0$. However, we might be interested in $y$-shaped wiggles that are centered not at zero but at some other number $s$. We could detect these by shifting the function $y$ before taking its inner product with $x$:
\begin{displaymath}
\int_{-\infty}^\infty x(t) y(t-s)\; d t
\end{displaymath}
We could also be interested in measuring the amount of some stretched-out or squashed version of a $y$-shaped wiggle in the function $x$. Again we could do this by changing $y$ before taking its inner product with $x$:
\begin{displaymath}
\int_{-\infty}^\infty x(t) \; y\left(\frac{t}{P}\right) \; d t
\end{displaymath}
When $P$ is big, we get a stretched-out version of $y$. People sometimes call $P$ the , since the period of the wiggles in $y$ will be proportional to this (though usually not equal to it).
Finally, we can combine these ideas, and compute
\begin{displaymath}
\int_{-\infty}^\infty x(t) \; y\left(\frac{t- s}{P}\right)\; dt
\end{displaymath}
This is a function of the shift $s$ and period $P$ which says how much of the $s$-shifted, $P$-stretched wavelet $y$ is lurking in the function $x$. It's a version of the continuous wavelet transform!
Mathematica implements this idea for `time series', meaning lists of numbers $x = (x_1,\dots,x_n)$ instead of functions $x : \mathbb{R} \to \mathbb{R}$. The idea is that we think of the numbers as samples of a function $x$:
\begin{displaymath}
x_1 = x(\Delta t)
\end{displaymath}
\begin{displaymath}
x_2 = x(2 \Delta t)
\end{displaymath}
and so on, where $\Delta t$ is some time step, and replace the integral above by a suitable sum. Mathematica has a function that does this, giving
\begin{displaymath}
w(s,P) = \frac{1}{\sqrt{P}} \sum_{i = 1}^n x_i \; y\left(\frac{i \Delta t - s}{P}\right)
\end{displaymath}
The factor of $1/\sqrt{P}$ in front is a useful extra trick: it's the right way to compensate for the fact that when you stretch out out your wavelet $y$ by a factor of $P,$ it gets bigger. So, when we're doing integrals, we should define the of $y$ by:
\begin{displaymath}
w(s,P) = \frac{1}{\sqrt{P}} \int_{-\infty}^\infty x(t) y(\frac{t- s}{P})\; dt
\end{displaymath}
Starting with the air pressure anomaly at Darwin, and taking DGaussianWavelet4 as his wavelet, Dara Shayda computed the continuous wavelet transform $w(s,P)$ as above. To show us the answer, he created a :
This show roughly how big the continuous wavelet transform $w(s,P)$ is for different shifts $s$ and periods $P$. Blue means it's very small, green means it's bigger, yellow means even bigger and read means very large.
Tahiti gave this:
You'll notice that the patterns at Darwin and Tahiti are quite similar.
\textbf{Puzzle 1.} What can you say about the similarities and differences?
\textbf{Puzzle 2.} Do a , also known as a `windowed Fourier transform', of the same data. Blake Pollard explained the Gabor transform in his article . This is a way to see how much a signal wiggles at a given frequency at a given time: we multiply the signal by a shifted Gaussian and then takes its Fourier transform.
\textbf{Puzzle 3.} Read about continuous wavelet transforms and find a second, deeper reason why we want to use a wavelet $y$ with
\begin{displaymath}
\int_{-\infty}^\infty y(t) \; d t = 0
\end{displaymath}
In fact we want a somewhat stronger condition, which is implied by the above equation when the Fourier transform of $y$ is smooth and integrable:
$\bullet$ , Wikipedia.
David Tweed mentioned another approach from signal processing to understanding the quantity
\begin{displaymath}
\langle x y \rangle = \frac{1}{n} \sum_{i = 1}^n x_i y_i
\end{displaymath}
If we've got two lists of data $x$ and $y$ that we want to compare to see if they behave similarly, the first thing we ought to do is multiplicatively scale each one so they're of comparable magnitude. There are various possibilities for assigning a scale, but a reasonable one is to ensure they have equal `energy'
\begin{displaymath}
\sum_{i=1}^n x_i^2 = \sum_{i=1}^n y_i^2
\end{displaymath}
(This can be achieved by dividing each list by its standard deviation, which is equivalent to what was done in the main derivation above.) Once we've done that then it's clear that looking at
\begin{displaymath}
\sum_{i=1}^n (x_i-y_i)^2
\end{displaymath}
gives small values when they have a very good match and progressively bigger values as they become less similar. Observe that
\begin{displaymath}
\begin{array}{ccl}
\displaystyle{\sum_{i=1}^n (x_i-y_i)^2 }
&=& \displaystyle{ \sum_{i=1}^n (x_i^2 - 2 x_i y_i + y_i^2) }\\
&=& \displaystyle{ \sum_{i=1}^n x_i^2 - 2 \sum_{i=1}^n x_i y_i + \sum_{i=1}^n y_i^2 }
\end{array}
\end{displaymath}
Since we've scaled things so that $\sum_{i=1}^n x_i^2$ and $\sum_{i=1}^n y_i^2$ are constants, we can see that when $\sum_{i=1}^n x_i y_i$ becomes bigger,
\begin{displaymath}
\displaystyle{ \sum_{i=1}^n (x_i-y_i)^2 }
\end{displaymath}
becomes smaller. So,
\begin{displaymath}
\displaystyle{\sum_{i=1}^n x_i y_i}
\end{displaymath}
serves as a measure of how close the lists are, under these assumptions.
category: blog, climate
[[!redirects Blog - Exploring climate data (part 1)]]
\end{document}