ORF 245 Fundamentals of Statistics Chapter 14 Least Squares Regression
|
|
- Raymond McCormick
- 5 years ago
- Views:
Transcription
1 ORF 245 Fudametals of Statstcs Chapter 14 Least Squares Regresso Robert Vaderbe Fall 2014 Sldes last edted o December 12, rvdb
2 Least Squares (Recallg two sldes from Chapter 4) Suppose we kow from some uderlyg fudametal prcple (say physcs for example) that some parameter y s related learly to aother parameter x: y = α + βx but we do t kow α ad β. We d lke to do expermets to determe them. A probablstc model of the expermet has X ad Y as radom varables. Let s mage we do the expermet over ad over may tmes ad have a good sese of the jot dstrbuto of X ad Y. We wat to pck α ad β so as to mmze E(Y α βx) 2 Aga, we take dervatves ad set them to zero. Ths tme we have two dervatves: ad ( ) α E(Y α βx)2 = E (Y α βx)2 α = 2E(Y α βx) = 2(µ Y α βµ X ) = 0 ( ) β E(Y α βx)2 = E (Y α βx)2 = 2E ( (Y α βx)x ) = 2 ( E(XY ) αe(x) βe(x 2 ) ) = 0 β 1
3 Least Squares Cotued (Recallg two sldes from Chapter 4) We get two lear equatos two ukows α + βµ X = µ Y αµ X + βe(x 2 ) = E(XY ) Multplyg the frst equato by µ X ad subtractg t from the secod equato, we get Ths equato smplfes to βe(x 2 ) βµ 2 X = E(XY ) µ X µ Y ad so βσ 2 X = σ XY β = σ XY σ 2 X = ρ σ Y σ X Fally, substtutg ths expresso to the frst equato, we get α = µ Y ρ σ Y σ X µ X 2
4 Regresso (Here starts the ew stuff) As before, suppose that t s kow (or beleved) that there s a smple lear relato betwee two measurable quattes x ad y: y = α + βx Suppose further that x ca be set wth arbtrary precso but that y s measured wth some error. A statstcal model for such as stuato volves radom varables: Y = α + βx + ε Here, ε ad (therefore) Y are radom varables. Our am s to derve estmates for α ad β based o a samplg of sze. We assume that x ca be vared as we lke the samplg process. So, we have samples lke ths: Y = α + βx + ε, = 1, 2,..., We wsh to choose the α ad β that gve the best ft to the sample. I other words, we choose them so as to mmze ε 2 = (Y α βx ) 2 3
5 Mmzg the Sum of Squares To mmze, we take the dervatves wth respect to α ad β ad set them to zero: (Y α βx ) 2 = α (Y α βx ) 2 = β Dvdg both sdes by 2, these equatos smplfy to where x = 1 x, Y = 1 Y, Y α βx = 0 xy αx βx 2 = 0 2 (Y α βx ) ( 1) = 0 2 (Y α βx ) ( x ) = 0 xy = 1 x Y, x 2 = 1 Ths s two equatos two ukows. Multplyg the frst equato by x ad subtractg that from the secod equato, we ca solve for β ad, kowg β, we ca use the frst equato to solve for α: ˆβ = xy x Y x 2 x 2, ˆα = Y ˆβx x 2 4
6 Mea of ˆα ad ˆβ Recallg that ˆβ = xy x Y x 2 x 2 ad ˆα = Y ˆβx We frst compute the expected value of ˆβ: E( ˆβ) = E(xY ) x E(Y ) = E( 1 = = = β x 2 x 2 x Y ) x E( 1 x 2 x 2 1 x E(Y ) x 1 x 2 x 2 1 x (α + βx ) x 1 x 2 x 2 Y ) E(Y ) (α + βx ) Next, we compute the expected value of ˆα: E(ˆα) = E(Y ) E( ˆβ) x = E( 1 Y ) β x = 1 E(Y ) β x = 1 (α + βx ) β x = α The estmators are ubased! 5
7 Varace of ˆα ad ˆβ Aga, recall that ˆβ = xy x Y x 2 x 2 ad ˆα = Y ˆβx To compute the varace of ˆα ad ˆβ, we eed these computatos: Usg these formulas, we get xy x Y = 1 x Y x 1 Y = 1 (x x) Y var ( xy x Y ) = var 1 (x x) Y 1 = 2 (x x) 2 σ 2 ˆα = Y xy x Y x 2 x 2 x = x2 Y x xy x 2 x 2 = ) 1 (x 2 x x Y x 2 x 2 var( ˆβ) = var(xy xy ) ( x 2 x 2 ) 2 = σ2 1 (x x) 2 ( ) 2 x 2 x 2 = σ2 1 x 2 x 2 ad var( ˆα) = 1 2 ( x 2 x x ) 2 σ 2 ( x 2 x 2 ) 2 = σ2 1 (x 2 x x ) 2 ( x 2 x 2 ) 2 = = σ2 x 2 x 2 x 2 6
8 Cofdece Itervals for α ad β Subtractg the mea ad dvdg by the stadard devato, we see that the radom varables ˆα α var(ˆα) = σ ˆα α x 2 x 2 x 2 ad ˆβ β var( ˆβ) = ˆβ β σ 1 x 2 x 2 have mea zero ad varace oe. If the ε s are Normally dstrbuted (wth mea 0 ad varace σ 2 ), the the above radom varables are stadard Normal radom varables. We do t kow σ 2. It ca be show that S 2 = 1 (Y ˆα 2 ˆβx ) 2 s a ubased estmate of σ 2 ad the correspodg ormalzed rv s are approxmately ormally dstrbuted (t-dstrbuto wth 2 degrees of freedom f s small). Puttg ths all together, we get the followg 95% cofdece tervals for ˆα ad ˆβ: α ˆα ± 1.96 S x 2 x2 x 2 β ˆβ ± 1.96 S 1 x2 x 2 If s small (less, say, that 30) the replace 1.96 wth t 2 (0.025). 7
9 Back to Temp vs. Tme at McGure AFB Recall from Chapter 10 our plot of oe-year averages: Temperature (F) Year Ths s = 55 data pots where x s the year (wth, say, year 0 beg 1955) ad y s average temperature for year x. 8
10 Temp vs. Tme Regresso Ft 58 Lear Regresso Temperature (F) ˆα = 52.81±0.53 ˆβ = ± Year T = McGureAFB(:,2); [ m] = sze(t); T = T(1: 365*floor(/365)); T = reshape(t, 365, floor(/365)); % Code for cofdece terval... y = mea(t)'; [ m] = sze(y); eps = y - alpha - beta*x; x = (0:(-1))'; S = sqrt(sum(eps.^2)/(-2)); xbar = sum(x)/; alpha_wdth = 1.96 * (S/sqrt())... ybar = sum(y)/; * (sqrt(x2bar))/(sqrt(x2bar-xbar^2)); xybar = sum(x.*y)/; beta_wdth = 1.96 *... x2bar = sum(x.*x)/; (S/sqrt()) /(sqrt(x2bar-xbar^2)); beta = (xybar - xbar*ybar)/(x2bar - xbar^2) alpha = ybar - beta*xbar plot( 1955+x, y,'b-', 1955+x, y,'r+',... [ ], [alpha alpha+beta*( )], 'g-'); 9
11 Temp vs. Tme Epslos 58 Lear Regresso Temperature (F) ˆα = 52.81±0.53 ˆβ = ± Year 10
12 Temp vs. Tme Regresso Ft Goodess of Ft Here we plot the emprcal cdf for the ε s o top of the cdf of a ormal dstrbuto wth the same mea ad varace:
13 Temp vs. Tme Regresso Ft Rollg Average Temperature (F) Lear Regresso ˆα = ˆβ = Days 10 4 T = McGureAFB(:,2); wdow = oes(365,1)/365; y = cov(t,wdow,'vald'); [ m] = sze(y); x = (0:(-1))'; xbar = sum(x)/; ybar = sum(y)/; xybar = sum(x.*y)/; x2bar = sum(x.*x)/; betahat = (xybar - xbar*ybar)/(x2bar - xbar^2) alphahat = ybar - betahat*xbar plot(x,y,'b-', [x(1) x(ed)], [alphahat alphahat+betahat*365*( )], 'g'); Note: Cofdece terval ot computed because ε s are ot depedet. 12
14 Temp vs. Tme Multple Lear Regresso Let s take to accout the seasoal oscllatos: y = β 1 + β 2 x + β 3 cos(2πx /365.25) + β 4 s(2πx /365.25) + ε = 1, 2,..., Aga, we look for values of the parameters that mmze the sum of the squares of the ε s. Ths tme, however, we have to set four dervatves equal to zero. That s four equatos four ukows. Not fu. Fortuately, Matlab provdes a tool precsely for ths purpose. We put the temperatures a colum vector y, y = ad we put the umbers that multply the β j s to a matrx X wth rows ad 4 colums 1 x 1 cos(2πx 1 /365.25) s(2πx 1 /365.25) 1 x X = 2 cos(2πx 2 /365.25) s(2πx 2 /365.25) x cos(2πx /365.25) s(2πx /365.25) y 1 y 2. y, 13
15 Multple Lear Regresso Cotued It may look complcated but y ad X are just a vector ad a matrx of umbers. Here s a few etres from y ad X: y = X = Ad, our statstcal model ca be wrtte ths matrx otato: y = Xβ + ε where β = β 1 β 2 β 3 β 4 ad ε s a log vector of errors. 14
16 Multple Lear Regresso Matlab Lear least squares s so mportat that Matlab has made t especally easy to compute the vector β that mmzes the sum of the squares of the ε s: ˆβ = X\y Here s the full Matlab code used to make the plot o the followg page: load -asc data/mcgureafb.dat; y = McGureAFB(:,2); [ m] = sze(y); % least squares regresso dt = (1:)'; X = [ oes(,1) dt cos(2*p*dt/365.25) s(2*p*dt/365.25) ]; betahat = X\y betahat(2)*356.25*100 plot( 1955+dt/365.25, y, 'b+', 1955+dt/365.25, X*betahat, 'r-'); 15
17 Multple Lear Regresso Output The umercal aswers are: β 1 = , β 2 = , β 3 = , β 4 = The lear tred s ecoded β 2. The value show above s degrees Fahrehet per day. To covert to degrees per cetury, we eed to multply by We get lear tred = β 2 = F/cetury 16
18 Cofdece Itervals va Bootstrap It s possble, but tedous, to derve formulas for the varaces (ad covaraces) of the ˆβ s the clmate model. A alterate method for producg cofdece tervals s called Bootstrap. The dea s as follows. Whe s large (say, = 20,314, as the clmate model), the we ca use the computed regresso coeffcets to produce a large emprcal pool of ε s: ( ˆε = y ˆβ1 + ˆβ 2 x + ˆβ 3 cos(2πx /365.25) + ˆβ ) 4 s(2πx /365.25) I other words, ˆε = y X ˆβ By samplg (wth replacemet) from ths pool of ˆε s, we ca artfcally geerate ew data sets that are statstcally smlar to the orgal oe: ỹ = X ˆβ + ε (here, ε s oe of the ˆε j s draw at radom from the pool of such epslos). Usg ths ew data set, we ca compute ew values for the estmators: β = X\ỹ 17
19 Cofdece Itervals va Bootstrap Cotued We ca do ths over ad over aga to geerate a large sample of ew estmators. The expected value of these ew estmators s uchaged from the orgal. But, they wo t be all the same ad therefore we ca use them to compute a emprcal stadard devato ad use that to compute cofdece tervals. The Matlab code to do ths bootstrap s rather straghtforward: Ad, the aswer s... eps = y - X*beta; beta_ew = zeros(4,100); dces = rad(,); % a x matrx of radom umbers betwee 1 ad for =1:100 y_ew = X*beta + eps(dces(:,)); beta_ew(:,) = X\y_ew; ed betahat = mea(beta_ew'); betahatstd = std(beta_ew'); * betahat(2) * 1.96*betahatstd(2) β 2 = ± F/cetury 18
20 Goodess of Ft As before, we plot the emprcal cdf for the ε s o top of the cdf of a ormal dstrbuto wth the same mea ad varace:
21 A Few Fal Remarks o Clmate Data The clmate data for McGure AFB ca be dowloaded from here... Here s a publshed paper that descrbes the data ad ts aalyss some detal
22 Had Lear Algebra Bee A Prereq... The course s over. What follows s a short advertsemet for ORF
23 Had Lear Algebra Bee A Prereq... Regresso model: y = Xβ + ε. Fd β that mmzes sum of squared errors: where ˆβ = argm β y Xβ 2 = argm β (y Xβ) T (y Xβ) = argm β f(β) f(β) = y T y β T X T y y T Xβ + β T X T Xβ. Take the gradet wth respect to β ad equate to zero: The estmator s ubased: X T X ˆβ = X T y = ˆβ = (X T X) 1 X T y E( ˆβ) = (X T X) 1 X T E(y) = (X T X) 1 X T Xβ = β The covaraces amog all of the coeffcets s also easy to compute: Cov( ˆβ) = E( ˆβ ˆβ ( T ) ββ T = E (X T X) 1 X T yy T X(X T X) 1) ββ T ( = E (X T X) 1 X T (Xβ + ε)(xβ + ε) T X(X T X) 1) ββ T = σ 2 (X T X) 1 22
24 The 2-Dmesoal Case Suppose that β = [ β0 β 1 ] ad X = [ e x ] where e deotes a colum vector of all oes ad x s a colum vector cotag the x s. I ths case, X T X = [ e T x T ] [ ] [ ] e T x e x = e T x x T x Hece [ ] σ 2 (X T X) 1 = σ 2 x T x e T x 1 e T x x T x (e T x) 2 [ ] = σ 2 x 2 x 1 x 2 x 2 (x) 2 [ ] = σ2 x 2 x 1 x 1 x 2 (x) 2 The etres o the dagoal are cosstet wth the formulas we derved before. 23
25 Back To The k-dmesoal Case Recall: y = Xβ + ε, E(ε) = 0 ˆβ = (X T X) 1 X T y, E( ˆβ) = β Let ˆε = y X ˆβ = y X(X T X) 1 X T y = P y = P (Xβ + ε) where P = I X(X T X) 1 X T = UU T where U s a ( k) orthoormal matrx (U T U = I). Note that P X = 0 ad P T P = P. We compute... E ( ˆε 2) = E ( P (Xβ + ε) ) T ( P (Xβ + ε) ) = β T X T P Xβ + Eε T P T P ε = Eε T P ε = Eε T UU T ε = = ( k)σ 2 Therefore, S = 1 k ˆε 2 = 1 k y X ˆβ 2 s a ubased estmator of σ 2. 24
STATISTICAL PROPERTIES OF LEAST SQUARES ESTIMATORS. x, where. = y - ˆ " 1
STATISTICAL PROPERTIES OF LEAST SQUARES ESTIMATORS Recall Assumpto E(Y x) η 0 + η x (lear codtoal mea fucto) Data (x, y ), (x 2, y 2 ),, (x, y ) Least squares estmator ˆ E (Y x) ˆ " 0 + ˆ " x, where ˆ
More informationLecture 7. Confidence Intervals and Hypothesis Tests in the Simple CLR Model
Lecture 7. Cofdece Itervals ad Hypothess Tests the Smple CLR Model I lecture 6 we troduced the Classcal Lear Regresso (CLR) model that s the radom expermet of whch the data Y,,, K, are the outcomes. The
More informationChapter 8: Statistical Analysis of Simulated Data
Marquette Uversty MSCS600 Chapter 8: Statstcal Aalyss of Smulated Data Dael B. Rowe, Ph.D. Departmet of Mathematcs, Statstcs, ad Computer Scece Copyrght 08 by Marquette Uversty MSCS600 Ageda 8. The Sample
More informationUNIVERSITY OF OSLO DEPARTMENT OF ECONOMICS
UNIVERSITY OF OSLO DEPARTMENT OF ECONOMICS Exam: ECON430 Statstcs Date of exam: Frday, December 8, 07 Grades are gve: Jauary 4, 08 Tme for exam: 0900 am 00 oo The problem set covers 5 pages Resources allowed:
More informationOrdinary Least Squares Regression. Simple Regression. Algebra and Assumptions.
Ordary Least Squares egresso. Smple egresso. Algebra ad Assumptos. I ths part of the course we are gog to study a techque for aalysg the lear relatoshp betwee two varables Y ad X. We have pars of observatos
More informationENGI 3423 Simple Linear Regression Page 12-01
ENGI 343 mple Lear Regresso Page - mple Lear Regresso ometmes a expermet s set up where the expermeter has cotrol over the values of oe or more varables X ad measures the resultg values of aother varable
More informationLecture 3. Sampling, sampling distributions, and parameter estimation
Lecture 3 Samplg, samplg dstrbutos, ad parameter estmato Samplg Defto Populato s defed as the collecto of all the possble observatos of terest. The collecto of observatos we take from the populato s called
More information12.2 Estimating Model parameters Assumptions: ox and y are related according to the simple linear regression model
1. Estmatg Model parameters Assumptos: ox ad y are related accordg to the smple lear regresso model (The lear regresso model s the model that says that x ad y are related a lear fasho, but the observed
More informationThe equation is sometimes presented in form Y = a + b x. This is reasonable, but it s not the notation we use.
INTRODUCTORY NOTE ON LINEAR REGREION We have data of the form (x y ) (x y ) (x y ) These wll most ofte be preseted to us as two colum of a spreadsheet As the topc develops we wll see both upper case ad
More informationEconometric Methods. Review of Estimation
Ecoometrc Methods Revew of Estmato Estmatg the populato mea Radom samplg Pot ad terval estmators Lear estmators Ubased estmators Lear Ubased Estmators (LUEs) Effcecy (mmum varace) ad Best Lear Ubased Estmators
More informationX X X E[ ] E X E X. is the ()m n where the ( i,)th. j element is the mean of the ( i,)th., then
Secto 5 Vectors of Radom Varables Whe workg wth several radom varables,,..., to arrage them vector form x, t s ofte coveet We ca the make use of matrx algebra to help us orgaze ad mapulate large umbers
More informationUNIVERSITY OF OSLO DEPARTMENT OF ECONOMICS
UNIVERSITY OF OSLO DEPARTMENT OF ECONOMICS Postpoed exam: ECON430 Statstcs Date of exam: Jauary 0, 0 Tme for exam: 09:00 a.m. :00 oo The problem set covers 5 pages Resources allowed: All wrtte ad prted
More information{ }{ ( )} (, ) = ( ) ( ) ( ) Chapter 14 Exercises in Sampling Theory. Exercise 1 (Simple random sampling): Solution:
Chapter 4 Exercses Samplg Theory Exercse (Smple radom samplg: Let there be two correlated radom varables X ad A sample of sze s draw from a populato by smple radom samplg wthout replacemet The observed
More informationMultivariate Transformation of Variables and Maximum Likelihood Estimation
Marquette Uversty Multvarate Trasformato of Varables ad Maxmum Lkelhood Estmato Dael B. Rowe, Ph.D. Assocate Professor Departmet of Mathematcs, Statstcs, ad Computer Scece Copyrght 03 by Marquette Uversty
More informationClass 13,14 June 17, 19, 2015
Class 3,4 Jue 7, 9, 05 Pla for Class3,4:. Samplg dstrbuto of sample mea. The Cetral Lmt Theorem (CLT). Cofdece terval for ukow mea.. Samplg Dstrbuto for Sample mea. Methods used are based o CLT ( Cetral
More informationLecture Note to Rice Chapter 8
ECON 430 HG revsed Nov 06 Lecture Note to Rce Chapter 8 Radom matrces Let Y, =,,, m, =,,, be radom varables (r.v. s). The matrx Y Y Y Y Y Y Y Y Y Y = m m m s called a radom matrx ( wth a ot m-dmesoal dstrbuto,
More informationMultiple Linear Regression Analysis
LINEA EGESSION ANALYSIS MODULE III Lecture - 4 Multple Lear egresso Aalyss Dr. Shalabh Departmet of Mathematcs ad Statstcs Ida Isttute of Techology Kapur Cofdece terval estmato The cofdece tervals multple
More informationSimple Linear Regression
Statstcal Methods I (EST 75) Page 139 Smple Lear Regresso Smple regresso applcatos are used to ft a model descrbg a lear relatoshp betwee two varables. The aspects of least squares regresso ad correlato
More informationESS Line Fitting
ESS 5 014 17. Le Fttg A very commo problem data aalyss s lookg for relatoshpetwee dfferet parameters ad fttg les or surfaces to data. The smplest example s fttg a straght le ad we wll dscuss that here
More informationSimple Linear Regression and Correlation.
Smple Lear Regresso ad Correlato. Correspods to Chapter 0 Tamhae ad Dulop Sldes prepared b Elzabeth Newto (MIT) wth some sldes b Jacquele Telford (Johs Hopks Uverst) Smple lear regresso aalss estmates
More informationMaximum Likelihood Estimation
Marquette Uverst Maxmum Lkelhood Estmato Dael B. Rowe, Ph.D. Professor Departmet of Mathematcs, Statstcs, ad Computer Scece Coprght 08 b Marquette Uverst Maxmum Lkelhood Estmato We have bee sag that ~
More informationQualifying Exam Statistical Theory Problem Solutions August 2005
Qualfyg Exam Statstcal Theory Problem Solutos August 5. Let X, X,..., X be d uform U(,),
More informationENGI 4421 Propagation of Error Page 8-01
ENGI 441 Propagato of Error Page 8-01 Propagato of Error [Navd Chapter 3; ot Devore] Ay realstc measuremet procedure cotas error. Ay calculatos based o that measuremet wll therefore also cota a error.
More informationLecture Notes 2. The ability to manipulate matrices is critical in economics.
Lecture Notes. Revew of Matrces he ablt to mapulate matrces s crtcal ecoomcs.. Matr a rectagular arra of umbers, parameters, or varables placed rows ad colums. Matrces are assocated wth lear equatos. lemets
More informationbest estimate (mean) for X uncertainty or error in the measurement (systematic, random or statistical) best
Error Aalyss Preamble Wheever a measuremet s made, the result followg from that measuremet s always subject to ucertaty The ucertaty ca be reduced by makg several measuremets of the same quatty or by mprovg
More informationSimulation Output Analysis
Smulato Output Aalyss Summary Examples Parameter Estmato Sample Mea ad Varace Pot ad Iterval Estmato ermatg ad o-ermatg Smulato Mea Square Errors Example: Sgle Server Queueg System x(t) S 4 S 4 S 3 S 5
More informationSimple Linear Regression
Correlato ad Smple Lear Regresso Berl Che Departmet of Computer Scece & Iformato Egeerg Natoal Tawa Normal Uversty Referece:. W. Navd. Statstcs for Egeerg ad Scetsts. Chapter 7 (7.-7.3) & Teachg Materal
More informationChapter 4 Multiple Random Variables
Revew for the prevous lecture: Theorems ad Examples: How to obta the pmf (pdf) of U = g (, Y) ad V = g (, Y) Chapter 4 Multple Radom Varables Chapter 44 Herarchcal Models ad Mxture Dstrbutos Examples:
More informationLecture 3 Probability review (cont d)
STATS 00: Itroducto to Statstcal Iferece Autum 06 Lecture 3 Probablty revew (cot d) 3. Jot dstrbutos If radom varables X,..., X k are depedet, the ther dstrbuto may be specfed by specfyg the dvdual dstrbuto
More informationMEASURES OF DISPERSION
MEASURES OF DISPERSION Measure of Cetral Tedecy: Measures of Cetral Tedecy ad Dsperso ) Mathematcal Average: a) Arthmetc mea (A.M.) b) Geometrc mea (G.M.) c) Harmoc mea (H.M.) ) Averages of Posto: a) Meda
More informationTHE ROYAL STATISTICAL SOCIETY 2016 EXAMINATIONS SOLUTIONS HIGHER CERTIFICATE MODULE 5
THE ROYAL STATISTICAL SOCIETY 06 EAMINATIONS SOLUTIONS HIGHER CERTIFICATE MODULE 5 The Socety s provdg these solutos to assst cadtes preparg for the examatos 07. The solutos are teded as learg ads ad should
More informationExample: Multiple linear regression. Least squares regression. Repetition: Simple linear regression. Tron Anders Moger
Example: Multple lear regresso 5000,00 4000,00 Tro Aders Moger 0.0.007 brthweght 3000,00 000,00 000,00 0,00 50,00 00,00 50,00 00,00 50,00 weght pouds Repetto: Smple lear regresso We defe a model Y = β0
More informationMultiple Regression. More than 2 variables! Grade on Final. Multiple Regression 11/21/2012. Exam 2 Grades. Exam 2 Re-grades
STAT 101 Dr. Kar Lock Morga 11/20/12 Exam 2 Grades Multple Regresso SECTIONS 9.2, 10.1, 10.2 Multple explaatory varables (10.1) Parttog varablty R 2, ANOVA (9.2) Codtos resdual plot (10.2) Trasformatos
More informationTESTS BASED ON MAXIMUM LIKELIHOOD
ESE 5 Toy E. Smth. The Basc Example. TESTS BASED ON MAXIMUM LIKELIHOOD To llustrate the propertes of maxmum lkelhood estmates ad tests, we cosder the smplest possble case of estmatg the mea of the ormal
More informationENGI 4421 Joint Probability Distributions Page Joint Probability Distributions [Navidi sections 2.5 and 2.6; Devore sections
ENGI 441 Jot Probablty Dstrbutos Page 7-01 Jot Probablty Dstrbutos [Navd sectos.5 ad.6; Devore sectos 5.1-5.] The jot probablty mass fucto of two dscrete radom quattes, s, P ad p x y x y The margal probablty
More informationLinear Regression with One Regressor
Lear Regresso wth Oe Regressor AIM QA.7. Expla how regresso aalyss ecoometrcs measures the relatoshp betwee depedet ad depedet varables. A regresso aalyss has the goal of measurg how chages oe varable,
More informationThe expected value of a sum of random variables,, is the sum of the expected values:
Sums of Radom Varables xpected Values ad Varaces of Sums ad Averages of Radom Varables The expected value of a sum of radom varables, say S, s the sum of the expected values: ( ) ( ) S Ths s always true
More informationAnswer key to problem set # 2 ECON 342 J. Marcelo Ochoa Spring, 2009
Aswer key to problem set # ECON 34 J. Marcelo Ochoa Sprg, 009 Problem. For T cosder the stadard pael data model: y t x t β + α + ǫ t a Numercally compare the fxed effect ad frst dfferece estmates. b Compare
More information1 Solution to Problem 6.40
1 Soluto to Problem 6.40 (a We wll wrte T τ (X 1,...,X where the X s are..d. wth PDF f(x µ, σ 1 ( x µ σ g, σ where the locato parameter µ s ay real umber ad the scale parameter σ s > 0. Lettg Z X µ σ we
More informationCHAPTER 4 RADICAL EXPRESSIONS
6 CHAPTER RADICAL EXPRESSIONS. The th Root of a Real Number A real umber a s called the th root of a real umber b f Thus, for example: s a square root of sce. s also a square root of sce ( ). s a cube
More informationReaction Time VS. Drug Percentage Subject Amount of Drug Times % Reaction Time in Seconds 1 Mary John Carl Sara William 5 4
CHAPTER Smple Lear Regreo EXAMPLE A expermet volvg fve ubject coducted to determe the relatohp betwee the percetage of a certa drug the bloodtream ad the legth of tme t take the ubject to react to a tmulu.
More informationSummary of the lecture in Biostatistics
Summary of the lecture Bostatstcs Probablty Desty Fucto For a cotuos radom varable, a probablty desty fucto s a fucto such that: 0 dx a b) b a dx A probablty desty fucto provdes a smple descrpto of the
More informationModule 7. Lecture 7: Statistical parameter estimation
Lecture 7: Statstcal parameter estmato Parameter Estmato Methods of Parameter Estmato 1) Method of Matchg Pots ) Method of Momets 3) Mamum Lkelhood method Populato Parameter Sample Parameter Ubased estmato
More informationFunctions of Random Variables
Fuctos of Radom Varables Chapter Fve Fuctos of Radom Varables 5. Itroducto A geeral egeerg aalyss model s show Fg. 5.. The model output (respose) cotas the performaces of a system or product, such as weght,
More information( ) = ( ) ( ) Chapter 13 Asymptotic Theory and Stochastic Regressors. Stochastic regressors model
Chapter 3 Asmptotc Theor ad Stochastc Regressors The ature of eplaator varable s assumed to be o-stochastc or fed repeated samples a regresso aalss Such a assumpto s approprate for those epermets whch
More informationChapter 3 Sampling For Proportions and Percentages
Chapter 3 Samplg For Proportos ad Percetages I may stuatos, the characterstc uder study o whch the observatos are collected are qualtatve ature For example, the resposes of customers may marketg surveys
More informationb. There appears to be a positive relationship between X and Y; that is, as X increases, so does Y.
.46. a. The frst varable (X) s the frst umber the par ad s plotted o the horzotal axs, whle the secod varable (Y) s the secod umber the par ad s plotted o the vertcal axs. The scatterplot s show the fgure
More informationSpecial Instructions / Useful Data
JAM 6 Set of all real umbers P A..d. B, p Posso Specal Istructos / Useful Data x,, :,,, x x Probablty of a evet A Idepedetly ad detcally dstrbuted Bomal dstrbuto wth parameters ad p Posso dstrbuto wth
More informationLecture Notes Types of economic variables
Lecture Notes 3 1. Types of ecoomc varables () Cotuous varable takes o a cotuum the sample space, such as all pots o a le or all real umbers Example: GDP, Polluto cocetrato, etc. () Dscrete varables fte
More informationMean is only appropriate for interval or ratio scales, not ordinal or nominal.
Mea Same as ordary average Sum all the data values ad dvde by the sample sze. x = ( x + x +... + x Usg summato otato, we wrte ths as x = x = x = = ) x Mea s oly approprate for terval or rato scales, ot
More information4. Standard Regression Model and Spatial Dependence Tests
4. Stadard Regresso Model ad Spatal Depedece Tests Stadard regresso aalss fals the presece of spatal effects. I case of spatal depedeces ad/or spatal heterogeet a stadard regresso model wll be msspecfed.
More informationρ < 1 be five real numbers. The
Lecture o BST 63: Statstcal Theory I Ku Zhag, /0/006 Revew for the prevous lecture Deftos: covarace, correlato Examples: How to calculate covarace ad correlato Theorems: propertes of correlato ad covarace
More informationAnalyzing Two-Dimensional Data. Analyzing Two-Dimensional Data
/7/06 Aalzg Two-Dmesoal Data The most commo aaltcal measuremets volve the determato of a ukow cocetrato based o the respose of a aaltcal procedure (usuall strumetal). Such a measuremet requres calbrato,
More informationGenerative classification models
CS 75 Mache Learg Lecture Geeratve classfcato models Mlos Hauskrecht mlos@cs.ptt.edu 539 Seott Square Data: D { d, d,.., d} d, Classfcato represets a dscrete class value Goal: lear f : X Y Bar classfcato
More informationMidterm Exam 1, section 1 (Solution) Thursday, February hour, 15 minutes
coometrcs, CON Sa Fracsco State Uversty Mchael Bar Sprg 5 Mdterm am, secto Soluto Thursday, February 6 hour, 5 mutes Name: Istructos. Ths s closed book, closed otes eam.. No calculators of ay kd are allowed..
More informationSTA302/1001-Fall 2008 Midterm Test October 21, 2008
STA3/-Fall 8 Mdterm Test October, 8 Last Name: Frst Name: Studet Number: Erolled (Crcle oe) STA3 STA INSTRUCTIONS Tme allowed: hour 45 mutes Ads allowed: A o-programmable calculator A table of values from
More informationChapter 13, Part A Analysis of Variance and Experimental Design. Introduction to Analysis of Variance. Introduction to Analysis of Variance
Chapter, Part A Aalyss of Varace ad Epermetal Desg Itroducto to Aalyss of Varace Aalyss of Varace: Testg for the Equalty of Populato Meas Multple Comparso Procedures Itroducto to Aalyss of Varace Aalyss
More informationObjectives of Multiple Regression
Obectves of Multple Regresso Establsh the lear equato that best predcts values of a depedet varable Y usg more tha oe eplaator varable from a large set of potetal predctors {,,... k }. Fd that subset of
More informationChapter Business Statistics: A First Course Fifth Edition. Learning Objectives. Correlation vs. Regression. In this chapter, you learn:
Chapter 3 3- Busess Statstcs: A Frst Course Ffth Edto Chapter 2 Correlato ad Smple Lear Regresso Busess Statstcs: A Frst Course, 5e 29 Pretce-Hall, Ic. Chap 2- Learg Objectves I ths chapter, you lear:
More informationChapter 8. Inferences about More Than Two Population Central Values
Chapter 8. Ifereces about More Tha Two Populato Cetral Values Case tudy: Effect of Tmg of the Treatmet of Port-We tas wth Lasers ) To vestgate whether treatmet at a youg age would yeld better results tha
More informationChapter -2 Simple Random Sampling
Chapter - Smple Radom Samplg Smple radom samplg (SRS) s a method of selecto of a sample comprsg of umber of samplg uts out of the populato havg umber of samplg uts such that every samplg ut has a equal
More informationParameter, Statistic and Random Samples
Parameter, Statstc ad Radom Samples A parameter s a umber that descrbes the populato. It s a fxed umber, but practce we do ot kow ts value. A statstc s a fucto of the sample data,.e., t s a quatty whose
More informationLecture Notes Forecasting the process of estimating or predicting unknown situations
Lecture Notes. Ecoomc Forecastg. Forecastg the process of estmatg or predctg ukow stuatos Eample usuall ecoomsts predct future ecoomc varables Forecastg apples to a varet of data () tme seres data predctg
More information2SLS Estimates ECON In this case, begin with the assumption that E[ i
SLS Estmates ECON 3033 Bll Evas Fall 05 Two-Stage Least Squares (SLS Cosder a stadard lear bvarate regresso model y 0 x. I ths case, beg wth the assumto that E[ x] 0 whch meas that OLS estmates of wll
More informationMidterm Exam 1, section 2 (Solution) Thursday, February hour, 15 minutes
coometrcs, CON Sa Fracsco State Uverst Mchael Bar Sprg 5 Mdterm xam, secto Soluto Thursda, Februar 6 hour, 5 mutes Name: Istructos. Ths s closed book, closed otes exam.. No calculators of a kd are allowed..
More informationLecture 8: Linear Regression
Lecture 8: Lear egresso May 4, GENOME 56, Sprg Goals Develop basc cocepts of lear regresso from a probablstc framework Estmatg parameters ad hypothess testg wth lear models Lear regresso Su I Lee, CSE
More informationSampling Theory MODULE X LECTURE - 35 TWO STAGE SAMPLING (SUB SAMPLING)
Samplg Theory ODULE X LECTURE - 35 TWO STAGE SAPLIG (SUB SAPLIG) DR SHALABH DEPARTET OF ATHEATICS AD STATISTICS IDIA ISTITUTE OF TECHOLOG KAPUR Two stage samplg wth uequal frst stage uts: Cosder two stage
More informationLecture 1 Review of Fundamental Statistical Concepts
Lecture Revew of Fudametal Statstcal Cocepts Measures of Cetral Tedecy ad Dsperso A word about otato for ths class: Idvduals a populato are desgated, where the dex rages from to N, ad N s the total umber
More informationLine Fitting and Regression
Marquette Uverst MSCS6 Le Fttg ad Regresso Dael B. Rowe, Ph.D. Professor Departmet of Mathematcs, Statstcs, ad Computer Scece Coprght 8 b Marquette Uverst Least Squares Regresso MSCS6 For LSR we have pots
More informationChapter -2 Simple Random Sampling
Chapter - Smple Radom Samplg Smple radom samplg (SRS) s a method of selecto of a sample comprsg of umber of samplg uts out of the populato havg umber of samplg uts such that every samplg ut has a equal
More informationBounds on the expected entropy and KL-divergence of sampled multinomial distributions. Brandon C. Roy
Bouds o the expected etropy ad KL-dvergece of sampled multomal dstrbutos Brado C. Roy bcroy@meda.mt.edu Orgal: May 18, 2011 Revsed: Jue 6, 2011 Abstract Iformato theoretc quattes calculated from a sampled
More informationChapter 14 Logistic Regression Models
Chapter 4 Logstc Regresso Models I the lear regresso model X β + ε, there are two types of varables explaatory varables X, X,, X k ad study varable y These varables ca be measured o a cotuous scale as
More informationLinear Regression. Hsiao-Lung Chan Dept Electrical Engineering Chang Gung University, Taiwan
Lear Regresso Hsao-Lug Cha Dept Electrcal Egeerg Chag Gug Uverst, Tawa chahl@mal.cgu.edu.tw Curve fttg Least-squares regresso Data ehbt a sgfcat degree of error or scatter A curve for the tred of the data
More informationChapter 11 Systematic Sampling
Chapter stematc amplg The sstematc samplg techue s operatoall more coveet tha the smple radom samplg. It also esures at the same tme that each ut has eual probablt of cluso the sample. I ths method of
More information22 Nonparametric Methods.
22 oparametrc Methods. I parametrc models oe assumes apror that the dstrbutos have a specfc form wth oe or more ukow parameters ad oe tres to fd the best or atleast reasoably effcet procedures that aswer
More informationDiscrete Mathematics and Probability Theory Fall 2016 Seshia and Walrand DIS 10b
CS 70 Dscrete Mathematcs ad Probablty Theory Fall 206 Sesha ad Walrad DIS 0b. Wll I Get My Package? Seaky delvery guy of some compay s out delverg packages to customers. Not oly does he had a radom package
More informationDr. Shalabh Department of Mathematics and Statistics Indian Institute of Technology Kanpur
Aalyss of Varace ad Desg of Exermets-I MODULE II LECTURE - GENERAL LINEAR HYPOTHESIS AND ANALYSIS OF VARIANCE Dr Shalabh Deartmet of Mathematcs ad Statstcs Ida Isttute of Techology Kaur Tukey s rocedure
More informationε. Therefore, the estimate
Suggested Aswers, Problem Set 3 ECON 333 Da Hugerma. Ths s ot a very good dea. We kow from the secod FOC problem b) that ( ) SSE / = y x x = ( ) Whch ca be reduced to read y x x = ε x = ( ) The OLS model
More informationProbability and. Lecture 13: and Correlation
933 Probablty ad Statstcs for Software ad Kowledge Egeers Lecture 3: Smple Lear Regresso ad Correlato Mocha Soptkamo, Ph.D. Outle The Smple Lear Regresso Model (.) Fttg the Regresso Le (.) The Aalyss of
More informationSTA 108 Applied Linear Models: Regression Analysis Spring Solution for Homework #1
STA 08 Appled Lear Models: Regresso Aalyss Sprg 0 Soluto for Homework #. Let Y the dollar cost per year, X the umber of vsts per year. The the mathematcal relato betwee X ad Y s: Y 300 + X. Ths s a fuctoal
More informationSimple Linear Regression - Scalar Form
Smple Lear Regresso - Scalar Form Q.. Model Y X,..., p..a. Derve the ormal equatos that mmze Q. p..b. Solve for the ordary least squares estmators, p..c. Derve E, V, E, V, COV, p..d. Derve the mea ad varace
More informationHandout #8. X\Y f(x) 0 1/16 1/ / /16 3/ / /16 3/16 0 3/ /16 1/16 1/8 g(y) 1/16 1/4 3/8 1/4 1/16 1
Hadout #8 Ttle: Foudatos of Ecoometrcs Course: Eco 367 Fall/05 Istructor: Dr. I-Mg Chu Lear Regresso Model So far we have focused mostly o the study of a sgle radom varable, ts correspodg theoretcal dstrbuto,
More informationChapter 5 Properties of a Random Sample
Lecture 6 o BST 63: Statstcal Theory I Ku Zhag, /0/008 Revew for the prevous lecture Cocepts: t-dstrbuto, F-dstrbuto Theorems: Dstrbutos of sample mea ad sample varace, relatoshp betwee sample mea ad sample
More informationCorrelation and Simple Linear Regression
Correlato ad Smple Lear Regresso Berl Che Departmet of Computer Scece & Iformato Egeerg Natoal Tawa Normal Uverst Referece:. W. Navd. Statstcs for Egeerg ad Scetsts. Chapter 7 (7.-7.3) & Teachg Materal
More informationECON 482 / WH Hong The Simple Regression Model 1. Definition of the Simple Regression Model
ECON 48 / WH Hog The Smple Regresso Model. Defto of the Smple Regresso Model Smple Regresso Model Expla varable y terms of varable x y = β + β x+ u y : depedet varable, explaed varable, respose varable,
More informationLecture 2: The Simple Regression Model
Lectre Notes o Advaced coometrcs Lectre : The Smple Regresso Model Takash Yamao Fall Semester 5 I ths lectre we revew the smple bvarate lear regresso model. We focs o statstcal assmptos to obta based estmators.
More informationCLASS NOTES. for. PBAF 528: Quantitative Methods II SPRING Instructor: Jean Swanson. Daniel J. Evans School of Public Affairs
CLASS NOTES for PBAF 58: Quattatve Methods II SPRING 005 Istructor: Jea Swaso Dael J. Evas School of Publc Affars Uversty of Washgto Ackowledgemet: The structor wshes to thak Rachel Klet, Assstat Professor,
More informationStatistics MINITAB - Lab 5
Statstcs 10010 MINITAB - Lab 5 PART I: The Correlato Coeffcet Qute ofte statstcs we are preseted wth data that suggests that a lear relatoshp exsts betwee two varables. For example the plot below s of
More informationPoint Estimation: definition of estimators
Pot Estmato: defto of estmators Pot estmator: ay fucto W (X,..., X ) of a data sample. The exercse of pot estmato s to use partcular fuctos of the data order to estmate certa ukow populato parameters.
More informationRandom Variables and Probability Distributions
Radom Varables ad Probablty Dstrbutos * If X : S R s a dscrete radom varable wth rage {x, x, x 3,. } the r = P (X = xr ) = * Let X : S R be a dscrete radom varable wth rage {x, x, x 3,.}.If x r P(X = x
More informationInvestigation of Partially Conditional RP Model with Response Error. Ed Stanek
Partally Codtoal Radom Permutato Model 7- vestgato of Partally Codtoal RP Model wth Respose Error TRODUCTO Ed Staek We explore the predctor that wll result a smple radom sample wth respose error whe a
More informationLinear Regression. Hsiao-Lung Chan Dept Electrical Engineering Chang Gung University, Taiwan
Lear Regresso Hsao-Lug Cha Dept Electrcal Egeerg Chag Gug Uverst, Tawa chahl@mal.cgu.edu.tw Curve fttg Least-squares regresso Data ehbt a sgfcat degree of error or scatter A curve for the tred of the data
More informationSTA 105-M BASIC STATISTICS (This is a multiple choice paper.)
DCDM BUSINESS SCHOOL September Mock Eamatos STA 0-M BASIC STATISTICS (Ths s a multple choce paper.) Tme: hours 0 mutes INSTRUCTIONS TO CANDIDATES Do ot ope ths questo paper utl you have bee told to do
More informationTraining Sample Model: Given n observations, [[( Yi, x i the sample model can be expressed as (1) where, zero and variance σ
Stat 74 Estmato for Geeral Lear Model Prof. Goel Broad Outle Geeral Lear Model (GLM): Trag Samle Model: Gve observatos, [[( Y, x ), x = ( x,, xr )], =,,, the samle model ca be exressed as Y = µ ( x, x,,
More informationChapter 13 Student Lecture Notes 13-1
Chapter 3 Studet Lecture Notes 3- Basc Busess Statstcs (9 th Edto) Chapter 3 Smple Lear Regresso 4 Pretce-Hall, Ic. Chap 3- Chapter Topcs Types of Regresso Models Determg the Smple Lear Regresso Equato
More informationX ε ) = 0, or equivalently, lim
Revew for the prevous lecture Cocepts: order statstcs Theorems: Dstrbutos of order statstcs Examples: How to get the dstrbuto of order statstcs Chapter 5 Propertes of a Radom Sample Secto 55 Covergece
More informationSTK3100 and STK4100 Autumn 2018
SK3 ad SK4 Autum 8 Geeralzed lear models Part III Covers the followg materal from chaters 4 ad 5: Cofdece tervals by vertg tests Cosder a model wth a sgle arameter β We may obta a ( α% cofdece terval for
More informationIntroduction to Matrices and Matrix Approach to Simple Linear Regression
Itroducto to Matrces ad Matrx Approach to Smple Lear Regresso Matrces Defto: A matrx s a rectagular array of umbers or symbolc elemets I may applcatos, the rows of a matrx wll represet dvduals cases (people,
More information: At least two means differ SST
Formula Card for Eam 3 STA33 ANOVA F-Test: Completely Radomzed Desg ( total umber of observatos, k = Number of treatmets,& T = total for treatmet ) Step : Epress the Clam Step : The ypotheses: :... 0 A
More information( ) ( ) ( ) f ( ) ( )
Idepedet Mote Carlo Iterested Approxmate E X = x dν x = µ µ wth = = x where x, x s sampled rom the probablty, measure ν ( X ). Uder certa regularty codtos, I x,, x x E X = are a d sample rom ν ( X ) x
More information