statistics for atmospheric science
statistic for atmospheric science
statistic for atmospheric science
-
- 1 / 88
-
Flashcards
Is the sample mean and the sample variance unbiased?
- The sample mean is an unbiased estimator of the expected value
- The sample variance \(\widehat{Var}(x)=\frac{1}{N}\sum\limits^N_{i=1}(x_i-\bar{x})^2\) is an not unbiased, but asymptotically unbiased estimator
- However, the sample variance \(\widehat{Var}(x)=\frac{1}{N-1}\sum\limits^N_{i=1}(x_i-\bar{x})^2\) is an unbiased estimator.
What is the main idea for a confidence interval?
Given an estimate \(\widehat{\Theta}\) of \(\Theta\). An interval \((\widehat{\Theta}_L,\widehat{\Theta}_U)\) around \(\widehat{\Theta}\) is named a \((1-\alpha)\) confidence interval if
\(P(\Theta\in (\widehat{\Theta}_L,\widehat{\Theta}_U))=1-\alpha\)
A 95% confidence interval covers the true value in 95% of the cases.
What is the t-distribution and name one application.
t-Distribution:
\(f_X(x;\nu)=c(\nu)\left(1+\frac{x^2}{\nu}\right)^{-\frac{\nu+1}{2}}\)
with a constant \(c(\nu)\). \(\nu\in\mathbb{N}\) is called the degree of freedom. For \(\nu\rightarrow \infty\) it converges to the \(\mathcal{N}(0,1)\) distribution.
The t-Distribution is used to estimate the mean of a normally distributed population when the sample size is small and population standard deviation is unknown.
Derive the confidence intervals for the mean of a normal distributed variable with known variance!
The empirical mean \(\bar{x}\) has a distribution \(\mathcal{N}(\mu, \frac{\sigma}{\sqrt{n}})\) while
\(Z=\sqrt{n}(\bar{x}-\mu)/\sigma\)
has distribution \(\mathcal{N}(0,1)\) .
The value z is such that \(P(-z\leq Z\leq z)=1-\alpha\)
This yields: \(P(\bar{x}-z\frac{\sigma}{\sqrt{n}}\leq\mu\leq\bar{x}+z\frac{\sigma}{\sqrt{n}})=1-\alpha\)
The confidence interval can be easily found now.
What kinds of significance testing are there?
Significance tests aim at verification of a hypothesis based on statistical data:
- Parametric tests consider hypothesis regarding parameters of the distribution
- Non-parametric tests consider hypotheses not involving paramters (e.g. distributaions are the same or different)
Steps of a significance test
- Formulate Null hypothesis and an alternative hypothesis
- Choose significance level \(\alpha\)
- Choose significance test and test statistic; clarify assumptions to be made
- Calculate Null distribution and critical value
- Calculate test statistic and/or p-value
- Decide whether Null hypothesis is rejected or not
How are significance level and critical value defined?
Significance level and critical value are defined such that:
\(P(|T|\geq t_{crit})\equiv\alpha\)
i.e., the probability that T falls in the rejection region (Q) although the \(H_0\) (null hypothesis) is true (small probability).
Then the Null hypothesis is rejected in case \(p_{obs}\leq\alpha \) or \(|t_{obs}|\geq t_{crit}\)
significance testing: What is the error of the first kind and what is the error of the second kind?
error of the first kind or \(\alpha\)-error: Rection of the Null hypothesis \(H_0\) although it is true
Probability of this error is \(P(H_0 rejected\; | \;H_0 true)=\alpha\)
error of the second kind or \(\beta \)-error: No rejection of the Null hypothesis although it is wrong
Probability of this error is \(P(H_0\;not\;rejected\;|\;H_0\;false)=\beta \)
The reduction ofthe one error leads to increase of the other, unless we can increase sample size!
Significance test for the mean. The One sample t-test, when the variance is known
X is \(\mathcal{N(m,\sigma)}\) , \(\sigma\) is known, m is unknow.
The test statisitc is then:
\(.\\ T=\frac{\bar{x}-m_0}{\sigma/\sqrt{n}}\)
Und the Null hypothesis, T is \(\mathcal{N}(0,1)\)
hint: Due to the central limit theorem the one-sided t-test is applicable for every kind of ditributed X, if the sample size is larger then n=30!
Significance test for the mean: One sample t-test when the variance is not known
X is \(\mathcal{N}(m,\sigma)\) , \(\sigma \) is unknown
Then the test statistic is:
\(.\\T=\sqrt{n}\frac{\bar{x}-m_0}{\widehat{s}}\)
Under the Null hypothesis, T is t-distributed with (n-1) degrees of freedom.
hint: Due to the central limit theorem the one-sided t-test is applicable for every kind of ditributed X, if the sample size is larger then n=30!
Explain the Two sample t-test in general.
With the two-sample t-test one can test with the estimators of the means of two independent samples how the theoretical means are related to each other.
For this several variants are possible:
\(\sigma_1^2=\sigma _2^2\) and \(n_1=n_2\) with the Null-hypothesis \(H_0:\mu_1=\mu_2\)
The test statisitc is then:
\(.\\t=\frac{\overline{x_1}-\overline{x_2}}{\sqrt{\frac{s_1^2+s_2^2}{n}}}\)
Under the Null hypothesis t is t-distributed with (2n-2) d.o.f.
- other variants are:
Explain the Kolmogorov-Smirnov test!
\(H_0\): The empirical distribution is equal to \(F_{ref}(x)\) .
The test statistic is:
\(D_n=sup_x|F_n(x)-F_{ref}(x)|\)
Under the Null hypothesis is \(\sqrt{n}D_n\) Kolmogorov-distributed, independent of \(F_{ref}(x)\) .
Tabulated values: Rejects when \(D_{obs}>D_{crit}\)
What is a multivariate random variable and the joint probability density function?
A vector of scalar random variables \(X=(X_1,...,X_n)^T\)is called a multivariate random variable.
The joint occurrence of two continuous events x and y in a two-dimensional subset D of the event space is given by the joint probability density function \(f_{X,Y}\):
\(P(X\in D,Y\in D)=\int\limits_D f_{X,Y}(x,y)dxdy\)
What is the joint probability distribution and how is it linked to the joint cummulative distribution ?
\(F_{X,Y}(x,y)=P(X\leq x, Y\leq y)\)describes the probability that simultaneously \(X\leq x\) and \(Y\leq y\) occur.
Joint CDF and PDF are linked by:
\(f_{X,Y}(x,y)=\frac{\partial^2 F_{X,Y}}{\partial x \partial y}\)
How are the marginal distributions of a joint distribution defined?
When integrating the joint density function over all other variables, one obtain the marginal density functions associated with a specific variable:
\(f_X(x)=\int f_{X,Y}(x,y)dy\\f_Y(y)=\int f_{X,Y}(x,y)dx\)
This describes the occurrence of a variable regardless of which values the other variables assume.
Equivalent to conditional probabilities, the conditional density functions are defined as:
\(f_{Y|X}(y|x)=f_{X,Y}(x,y)/f_X(x)\\f_{X|Y}(x|y)=f_{X,Y}(x,y)/f_Y(y)\)
and describe the occurrence of y given x and vice versa.
When are components of a multivariate random variable independent?
\(F_{X,Y}(x,y)=F_X(x)F_Y(y)\)
or
\(f_{X,Y}(x,y)=f_X(x)f_Y(y)\)
What is covariance and what is correlation?
Covariance:
\(Cov(X,Y)=E[(X-\mu_X)(Y-\mu_Y)]=E(XY)-E(X)E(Y)\)
\(E(XY)=\int xy*f_{X,Y}(x,y)dxdy\)
In probability theory and statistics, covariance is a measure of the joint variability of two random variables.[1] If the greater values of one variable mainly correspond with the greater values of the other variable, and the same holds for the lesser values, (i.e., the variables tend to show similar behavior), the covariance is positive.
Correlation:
\(Corr(X,Y)=\frac{Cov(X,Y)}{\sqrt{Var(X)Var(Y)}}\)
The correlation describes the strength of the linear relationship between X and Y. -1 for perfect anti-correlation and 1 for perfect correlation.
Figure below shows non-linear relation between two variables, which correlation is zero!
Name widely used correlations products in climate physics.
- point to point correlation map
- represents the correlation between two fields at identical spatial location
- box correlation
- shows the correlation of a defined box with the rest of the field
- the global correlation field is often called the teleconnections
Give the formulas of the conditional expected value for a two dimensional joint probability density function!
\(E(X|Y=y)=\int\limits_{-\infty}^{\infty}x\;f_{X|Y}(x|y)dx\\E(Y|X=x)=\int\limits^{\infty}_{-\infty}y\;f_{Y|X}(y|x)dy\)
Explain the relation of covariance and independence!
If \(X_1,...,X_N\) are independent then \(Cov(X_i,X_j)=0\)for \(i\neq j\).
But if the covariance is zero this doesn't mean necessarily that the variables are also independent!
Give another expression for \(Var(X+Y)\)for the dependent and independent case!
dependent case:
\(Var(X+Y)=Var(X)+Var(Y)+2Cov(X,Y)\)
for the independent case:
\(Var(X+Y)=Var(X)+Var(Y)\)
Regression models: Introduce into the linear model!
- Given the pairs of data \((x_1,y_1),...,(x_n,y_n)\) , a linear model is defined as \(y_i=\beta_0+\beta_1x_i+\eta_i\).
- x is called the independent variable or predictor, while y is the dependent variable, response, or predictand.
- The model parameters may be defined, such that the sum of the squared error SSE gets minimized.
- \(SSE=\sum_{i=1}^{n}(y_i-\beta_0-\beta_1x_i)^2=\sum^n_{i=1}(y_i-\widehat{y}_i)^2\equiv min\)
- The parameters \(\widehat{\beta}_0\) and \(\widehat{\beta}_1\)can be estimated from:
- \(\;\\\widehat{\beta}_1=\frac{\sum^n_{i=1}(x-\bar{x})(y_i-\bar{y})}{\sum^n_{i=1}(x_i-\bar{x})^2},\;\;\;\widehat{\beta}_0=\bar{y}-\beta_1\bar{x}\)
- Any pattern in the reisudals indicates that the used regression model is too simple.
- If the error increases with increasing x, a weighted regression can be used!
What is a stationary process?
A stochastic process \(X_t:t\epsilon Z\) is said to be stationary if all stochastic properties (mean, variance, correlation, ...) are independent of the index t, which can be an index of time or a spatial dimension.
It follows then:
- \(X_t\) has the same distribution function F for all t
- for all t and s the paramters of the joint distribution function of \(X_t\) and \(X_s\) depend only on \(|t-s|\)
The process is called stationary up to the order m, when the same considerations apply to the mth joint moment of the process (i.e. the mth joint moment of \(\{X(t_1),...,X(t_n)\}\)) is equal to the mth joint moment of \(\{X(t_1+k),...,X(t_n+k)\}\) for any k and any set \((t_1,...,t_n)\) .
Of what types of processes can you think?
- Gausian (normal) process
- Markov process
- Prurely random process
Processes: What is a Realization? What is an Ensemble?
Realization: One observed record of a random process.
Ensemble: The collection of all possible realizations.
What is an Auto-regressive process?
An auto-regressive process of order p, or an AR(p) process, is generally defined as follows: \(X_t:t\;\epsilon\;Z \) is an auto-regressive process p of order p if there exist real constants \(\alpha_k,k=0,1,...,p\) , with \(\alpha_k\neq 0\) and a white noise process \(Z_t:t\;\epsilon\;Z\) such that:
\(X_t=\alpha_0+\sum\limits^p_{k=1}\alpha_kX_{t-k}+Z_t\)
Give the formula for the AR(1) process!
The AR(1) process is a (linear, first order) Markov process, i.e. the current state \(X_t\) depends only on the last state \(X_{t-1}\) . This process can be written as:
\(X_t=aX_{t-1}+\epsilon_t\)
What is the AR(2) process?
This kind of process is described by:
\(X_t=a_2X_{t-2}+a_1X_{t-1}+\epsilon_t\)
What is the spectrum? (in words)
The spectra of a time series is the Fourier analysis of the time series, and it is the Fourier transform of the auto-covariance function of the time series (Wiener-Khinchin theorem)!
It presents the variance per frequency of the time series as a function of frequencies and therefore distributes the variance onto different frequencies.
Explanation: Energy spectral density:
\(E=\int\limits_{-\infty}^{\infty}|x(t)|^2 dt\)
in the case of a pulse-like signal with finite total energy we find:
\(E=\int\limits_{-\infty}^{\infty}|\widehat{x}(f)|^2 df\)
where
\(|\widehat{x}(f)|^2\) is the energy spectral density of a signal x(t).
------------------
For continous signals over all time, such as stationary processes, one must define the power spectral density.
The average power P of a signal x(t) over all time is given as:
\(P=lim_{T\rightarrow \infty}\frac{1}{T}\int\limits^T_{0}|x(t)^2|dt\)
Stationary processes may have a finite power but an infinite energy. After all, energy is the integral of power, and the stationary signal contious over an infinite time.
For a signal with infinite duration the ordinary Fourier Transform does not necessarily exist. For that we use the truncated Fourier Transform.
\(\widehat{x}(\omega)=\frac{1}{\sqrt{T}}\int\limits^{T}_0 x(t)e^{-i\omega t}dt\)
Then the power spectral density is:
\(S_{xx}(\omega)=lim_{T\rightarrow \infty}E[|\widehat{x}(\omega)|^2]\)
Show the transition from a Fourier Series to a Fourier Transform!
The complex notation of the Fourier Series of a function periodic in the intervall \([-L/2,L/2]\)is:
\(x(t)=\sum\limits_{n=-\infty }^{\infty}A_ne^{i(2\pi nt/L)}\\ A_n=\frac{1}{L}\int\limits^{L/2}_{-L/2}x(t)e^{-i(2\pi nt/L)}\)
If \(L\rightarrow \infty\)than \(n/L\rightarrow \vartheta\) since \(\omega=2\pi\vartheta\)
\(X(\vartheta)=F(x(t))=\int^\infty_{-\infty}x(t)e^{-i(2\pi\vartheta)t}dt\)
Wiener-Khinchin theorem: What is it?
The power spectrum density is the Fourier transform of the auto-covariance function of the time series:
\(S(\omega)=E[X^*(\omega)X(\omega)]=\int\limits^{\infty}_{-\infty}R(\tau)e^{-i\omega \tau}d\tau\)
Parsevals theorem: What states it?
\(\int\limits^\infty_{-\infty}x(t)^2dt=\int\limits^{\infty}_{-\infty}X(\omega)^2d\omega\)
- the Fourier transform preserves the energy of the original quantity.
- For a pulse-like signal the integration of power in the time space is equal to the integration of power in the frequency space!
Discrete Fourier transform: Give deifintions!
Given a time discrete time series \(x_i\), \(i=1...N\) , sampled with sampling time \(\Delta t\)
Discrete Fourier transform:
\(X(\omega_l)=\frac{1}{\sqrt{N}}\sum^N_{k=1}x_ke^{-i\omega_lk\Delta t},\;\;\;\omega_l=\frac{2\pi l}{\Delta tN},\;\;\;l=1...N/2\)
We assume that the parameters characterizing the spectral components (amplitudes, frequencie, phases) do not change with time (signal is stationary).
Fourier spectral analysis is particularly useful for stationary random processes because they do not have systematic trends that violate the periodicity assumptions inherent in a DFT.
Nyquist frequency: What is it?
The highest resolved frequency by a discrete Fourier transform. Depends from the sampling rate \(\Delta t\) .
\(\omega _{max}=\omega_{N/2}=\frac{\pi}{\Delta t},\;\;\;f_{max}=\frac{1}{2\Delta t}\)