some estimates - university of california, berkeleybrill/stat153/chap3.2.pdf · 2015. 9. 23. · a...

14
Some estimates. Question. What’s an example? A sporting event? estimate of the mean level

Upload: others

Post on 26-Feb-2021

3 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Some estimates - University of California, Berkeleybrill/Stat153/chap3.2.pdf · 2015. 9. 23. · A stochastic (regression) model Y t = β 0 + β 1 X 1t + β 2 X 2t + Z t Z t independent

Some estimates.

Question. What’s an example? A sporting event?

estimate of the mean level

Page 2: Some estimates - University of California, Berkeleybrill/Stat153/chap3.2.pdf · 2015. 9. 23. · A stochastic (regression) model Y t = β 0 + β 1 X 1t + β 2 X 2t + Z t Z t independent

We will see how to estimate in Chapter 14

Page 3: Some estimates - University of California, Berkeleybrill/Stat153/chap3.2.pdf · 2015. 9. 23. · A stochastic (regression) model Y t = β 0 + β 1 X 1t + β 2 X 2t + Z t Z t independent

3.3 Regression methods.

Unbiased – proof by substitution

= 0

Page 4: Some estimates - University of California, Berkeleybrill/Stat153/chap3.2.pdf · 2015. 9. 23. · A stochastic (regression) model Y t = β 0 + β 1 X 1t + β 2 X 2t + Z t Z t independent

Analysis of varaiance rwalk + drift

std.errors assumed iid Gaussian here

Page 5: Some estimates - University of California, Berkeleybrill/Stat153/chap3.2.pdf · 2015. 9. 23. · A stochastic (regression) model Y t = β 0 + β 1 X 1t + β 2 X 2t + Z t Z t independent

betas are constants

Page 6: Some estimates - University of California, Berkeleybrill/Stat153/chap3.2.pdf · 2015. 9. 23. · A stochastic (regression) model Y t = β 0 + β 1 X 1t + β 2 X 2t + Z t Z t independent

Reminder. The beta’s are fixed (and that the error is

stationary).

Page 7: Some estimates - University of California, Berkeleybrill/Stat153/chap3.2.pdf · 2015. 9. 23. · A stochastic (regression) model Y t = β 0 + β 1 X 1t + β 2 X 2t + Z t Z t independent

Cosine trend.

NB. PHI is assumed constant

NB. –π < atan2(y,x) <= π or in [0,2π)

Yt = β0 + β1 X1t + β2 X2t + Zt

More later

Page 8: Some estimates - University of California, Berkeleybrill/Stat153/chap3.2.pdf · 2015. 9. 23. · A stochastic (regression) model Y t = β 0 + β 1 X 1t + β 2 X 2t + Z t Z t independent

p-value: Prob get a result as or more extreme as observed test statistic

(|t-value| here) under the null model

Fitted curve

3.5 Interpreting output

Page 9: Some estimates - University of California, Berkeleybrill/Stat153/chap3.2.pdf · 2015. 9. 23. · A stochastic (regression) model Y t = β 0 + β 1 X 1t + β 2 X 2t + Z t Z t independent

3.6 RESIDUAL ANALYSIS

Yt = μt + Xt

X̂ = Yt - μ̂t

μt (θ) =̂ μ̂t = μt ( 𝜃)

“most statistics software will produce standardized residuals using a

more complicated standard error in the denominator that takes into

account the specific regression model being fit”

EDA tools.

There are a broad variety of very important residual plots including:

residuals versus fitted values mu-hat transform response?

residuals versus omitted explanatories other X’s include them?

residual versus index i add to model?

residual versus preceding value X[t-1] autocorellation?

qqnorm infer normality?

qqnorm(): displays the quantiles of the data versus the theoretical

quantiles of a normal distribution

Page 10: Some estimates - University of California, Berkeleybrill/Stat153/chap3.2.pdf · 2015. 9. 23. · A stochastic (regression) model Y t = β 0 + β 1 X 1t + β 2 X 2t + Z t Z t independent

Next. transform response?

winter spring/fall summer

rstudent(): standardized residuals .

Page 11: Some estimates - University of California, Berkeleybrill/Stat153/chap3.2.pdf · 2015. 9. 23. · A stochastic (regression) model Y t = β 0 + β 1 X 1t + β 2 X 2t + Z t Z t independent

Could add a line

Page 12: Some estimates - University of California, Berkeleybrill/Stat153/chap3.2.pdf · 2015. 9. 23. · A stochastic (regression) model Y t = β 0 + β 1 X 1t + β 2 X 2t + Z t Z t independent

Sample autocorrelation function.

larain correlogram example

Page 13: Some estimates - University of California, Berkeleybrill/Stat153/chap3.2.pdf · 2015. 9. 23. · A stochastic (regression) model Y t = β 0 + β 1 X 1t + β 2 X 2t + Z t Z t independent

skewed larain stleaf()

the decimal point is at the |

4 | 1168958 6 | 235544566 8 | 01357789991368 10 | 5677790236899 12 | 01367889012677 14 | 133457801334 16 | 02577702455559 18 | 00266778929 20 | 3895 22 | 0672379 24 | 0 26 | 3382 28 | 30 | 63 32 | 3 34 | 0 36 | 38 | 40 | 3

Page 14: Some estimates - University of California, Berkeleybrill/Stat153/chap3.2.pdf · 2015. 9. 23. · A stochastic (regression) model Y t = β 0 + β 1 X 1t + β 2 X 2t + Z t Z t independent

A stochastic (regression) model

Yt = β0 + β1 X1t + β2 X2t + Zt

Zt independent zero mean, white noise, or ar or ma or arma(p,q)

harmonic() creates an [1 X1t X2t ] matrix

classical approach to regression / ordinary least squares

Interpreting regression coefficients.

E{Yt | X1t , X2t} = β0 + β1 X1t + β2 X2t

If increase X1t by 1 keeping X2t fixed, expected value increases by β1

Compare partial derivative ∂∙/∂x1