經管學會網盤光華方向專業(yè)概統(tǒng)lecture_第1頁
經管學會網盤光華方向專業(yè)概統(tǒng)lecture_第2頁
經管學會網盤光華方向專業(yè)概統(tǒng)lecture_第3頁
經管學會網盤光華方向專業(yè)概統(tǒng)lecture_第4頁
經管學會網盤光華方向專業(yè)概統(tǒng)lecture_第5頁
已閱讀5頁,還剩20頁未讀 繼續(xù)免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領

文檔簡介

1、1Lecture 24Method of Least SquaresSimple Linear RegressionThe Method of Least SquaresSuppose that each of 10 patients is treated first with a certain amount of a standard drug A and then with an equal amount of a new drug B, and that the change in blood pressure induced by each drug is observed for

2、each patient. i xi (drug A) yi (drug B)11.90.7 20.8-1.031.1-0.240.1-1.25-0.1-0.164.43.474.60.081.60.895.53.7103.42.0 We might be interested in describing the relationship between the response y of a patient to drug B and his response x to drug A.We might also wish to predict the response y of a futu

3、re patient to the new drug B on the basis of his response x to the standard drug A.We can try to fit a straight line to the points. outlierThe Least Square LineConsider an arbitrary straight line y=b0+b1x. The vertical distance between the point (xi,yi) and the line is |yi-(b0+b1xi)|. Let Q denote t

4、he sum of the squares of the vertical distances at the n points.The method of least squares specifies that the values of b0 and b1 must be chosen to minimize Q.normal equationsThe least square line isFitting a PolynomialSuppose that we wish to fit a polynomial of degree k (k=2) of the following form

5、The method of least squares specifies that the constants b0, bk should be chosen to minimize A set of k+1 normal equations can again be obtained by setting each of the partial derivative equal to 0 for j=1,k+1.ExampleSuppose that we wish to fit a polynomial of the formto the previous 10 observations

6、. The normal equations are found to beThe solution to the equations areSo the least square parabola isFit A Linear Function of Several VariablesSuppose that we wish to represent a patients response to drug B as a linear function involving not only his response to drug A but also some other relevant

7、variables. For each patient i (i=1,n), we measure his response yi to drug B, his response xi1 to drug A, and his values xi2,xik for the other variables. We wish to fit a linear function having the formWe need to minimize The Normal EquationsExampleSuppose for each patient i, xi1 denotes his response

8、 to drug A, xi2 denotes his heart rate, and yi denotes his response to drug B. We wish to fit a linear function having the formi xi1xi2yi11.9660.7 20.862-1.031.164-0.240.161-1.25-0.163-0.164.4703.474.6680.081.6620.895.5683.7103.4662.0 The normal equations areThe solution to the equations areSo the l

9、east squares linear function is RegressionConsider the conditional distribution of some random variable Y for given values of some other variables X1,Xk.Some of the variables X1,Xk might be random variables.Some of the variables X1,Xk might be control variables whose values are to be chosen by the e

10、xperimenter.The conditional expectation of Y for any given values of X1,Xk is called the regression of Y on X1,Xk. Linear RegressionAssume that the regression function is linear:The coefficients b0,bk are called regression coefficients.We can get least square estimators of b0,bk. Simple Linear Regre

11、ssionConsider the regression of Y on just a single variable X. Assume that for any given value X=x, the random variable Y can be represented by Y=b0+b1x+ewhere e is a random variable andThereforen pairs of observations (x1,Y1),(xn,Yn): We condition on the values x1,xn before computing the joint dist

12、ribution of (Y1,Yn)The random variables Y1,Yn are independent. For i=1,n, The M.L.EThe likelihood function of b0, b1 and :The values of b0 and b1 for which the likelihood function is a maximum will be the values that minimizeSo the M.L.E. of b0 and b1 are the least square estimators.The M.L.E. for is Simple Linear Regression AssumptionsLinearity: E(Y|x)=b0+b1x.Normality: each variable Yi has a normal distribution.Independence: the variables Y1,Yn are independent.Homoscedasticity: the variables Y1,Yn have the s

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
  • 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論