An Introduction to Quantile Regression and the QUANTREG Proc
分位数回归
Paper213-30
AnIntroductiontoQuantileRegressionandtheQUANTREGProcedure
Colin(Lin)Chen,SASInstituteInc.,Cary,NC
ABSTRACT
Ordinaryleast-squaresregressionmodelstherelationshipbetweenoneormorecovariatesXandthecon-ditionalmeanofaresponsevariableYgivenX=x.Incontrast,quantileregressionmodelstherelationshipbetweenXandtheconditionalquantilesofYgivenX=x,soitisespeciallyusefulinapplicationswhereextremesareimportant,suchasenvironmentalstudieswhereupperquantilesofpollutionlevelsarecriticalfromapublichealthperspective.Quantileregressionalsoprovidesamorecompletepictureofthecondi-tionaldistributionofYgivenX=xwhenbothlowerandupperorallquantilesareofinterest,asintheanalysisofbodymassindexwherebothlower(underweight)andupper(overweight)quantilesarecloselywatchedhealthstandards.ThispaperdescribesthenewQUANTREGprocedureinSAS9.1,whichcom-putesestimatesandrelatedquantitiesforquantileregressionbysolvingamodi cationoftheleast-squarescriterion.
INTRODUCTION
ThispaperintroducestheQUANTREGprocedure,whichcomputesestimatesandrelatedquantitiesforquantileregression.ForSAS9.1,http://doc.guandang.net.
Ordinaryleast-squaresregressionmodelstherelationshipbetweenoneormorecovariatesXandtheconditionalmeanoftheresponsevariableYgivenX=x.Quantileregression,whichwasintroducedbyKoenkerandBassett(1978),extendstheregressionmodeltoconditionalquantilesoftheresponsevariable,suchasthe90thpercentile.Quantileregressionisparticularlyusefulwhentherateofchangeintheconditionalquantile,expressedbytheregressioncoef cients,dependsonthequantile.
Asanexampleofdatawiththisstructure,considerthescatterplotinFigure1ofbodymassindex(BMI)againstagefor8,250menfromafour-year(1999–2002)surveybytheNationalCenterforHealthStatistics.MoredetailsaboutthedatacanbefoundinChen(2004).Bodymassindex,de nedastheratioofweight(kg)tosquaredheight(m2),isameasureofoverweightorunderweight.ThepercentilesofBMIforspeci edagesareofparticularinterest.Asageincreases,thesepercentilesprovidegrowthpatternsofBMInotonlyforthemajorityofthepopulation,butalsoforunderweightoroverweightextremesofthepopulation.Inaddition,thepercentilesofBMIforaspeci edageprovideareferenceforinpidualsatthatagewithrespecttothepopulation.
ThecurvesinFigure1represent ttedconditionalquantilesofBMI,includingthemedian,computedwiththeQUANTREGprocedureforapolynomialregressionmodelinage.Duringthequickgrowthperiod(ages2to20),thedispersionofBMIincreasesdramatically;itbecomesstableduringmiddleage,andthenitcontractsafterage60.Thispatternsuggeststhataneffectivewaytocontroloverweightinapopulationistostartinchildhood.
Notethatordinaryleast-squaresregressioncanbeusedtoestimateconditionalpercentilesbymakingadistributionalassumptionsuchasnormalityfortheerrorterminthemodel.However,itwouldnotbeappropriateheresincethedifferencebetweeneach ttedpercentilecurveandthemeancurvewouldbeconstantwithage.Least-squaresregressionassumesthatthecovariatesaffectonlythelocationoftheconditionaldistributionoftheresponse,andnotitsscaleoranyotheraspectofitsdistributionalshape.Themainadvantageofquantileregressionoverleast-squaresregressionisits exibilityformodelingdatawithheterogeneousconditionaldistributions.Dataofthistypeoccurinmany elds,includingeconomet-rics,survivalanalysis,andecology;refertoKoenkerandHallock(2001).Quantileregressionprovidesa
分位数回归
completepictureofthecovariateeffectwhenasetofpercentilesismodeled,anditmakesnodistributional
assumptionabouttheerrorterminthe
model.
Figure1.BMIwithGrowthPercentileCurves
Thenextsectionprovidesamoreformalde nitionofquantileregression,followedbyacloserlookattheuseoftheQUANTREGprocedureintheBMIexample.Asecondexampleintroducesnonparametricquantileregression.Subsequentsectionsdiscussvariousaspectsofquantileregression,includingalgorithmsforestimatingregressioncoef cients,con denceintervals,statisticaltests,detectionofleveragepointsandoutliers,andquantileprocessplots.Theseaspectsareillustratedwithathirdexampleusingeconomicgrowthdata.ThelastsectiondiscussesthescalabilityoftheQUANTREGprocedure.
QUANTILEREGRESSION
Quantileregressiongeneralizestheconceptofaunivariatequantiletoaconditionalquantilegivenoneormorecovariates.
ForarandomvariableYwithprobabilitydistributionfunction
F(y)=Prob(Y≤y)
theτthquantileofY isde nedastheinversefunction
Q(τ)=inf{y:F(y)≥τ}
thatastudent’sscoreonatestisattheτthquantileifhis(orher)gradeisbetterthan100τ%ofthestudentswhotookthe
test.Thescoreisalsosaidtobeatthe100τthpercentile.
Recall
分位数回归
where 0<τ<1.Inparticular,themedianisQ(1/2).
Forarandomsample{y1,...,yn}ofY,itiswellknownthatthesamplemedianistheminimizerofthesumofabsolutedeviations
min
n
ξ∈Ri=1
|yi ξ|
Likewise,thegeneralτthsamplequantileξ(τ),whichistheanalogueofQ(τ),maybeformulatedasthe
solutionoftheoptimizationproblem
n
ξ∈Ri=1
minρτ(yi ξ)
whereρτ(z)=z(τ I(z<0)),0<τ<1.HereI(·)denotestheindicatorfunction.Justasthesamplemean,whichminimizesthesumofsquaredresiduals
n i=1
µ =argminµ∈R
(yi µ)2
canbeextendedtothelinearconditionalmeanfunctionE(Y|X=x)=x βbysolving
=argminpββ∈R
n i=1
2
(yi x iβ)
thelinearconditionalquantilefunction,Q(τ|X=x)=x β(τ),canbeestimatedbysolving
(τ)=argminpββ∈R
n i=1
ρτ(yi x iβ)
(τ)iscalledtheτthregressionquantile.Thecaseτ=1/2,foranyquantileτ∈(0,1).Thequantityβ
whichminimizesthesumofabsoluteresiduals,correspondstomedianregression,whichisalsoknownasL1regression.
USINGTHEQUANTREGPROCEDURE
TheQUANTREGprocedurecomputesthequantilefunctionQ(τ|X=x)andconductsstatisticalinferences
(τ).ThissectionintroducestheQUANTREGprocedurebyrevisitingtheontheestimatedparametersβ
bodymassindexexampleandbyapplyingnonparametricquantileregressionto …… 此处隐藏:22269字,全部文档内容请下载后查看。喜欢就下载吧 ……
- 基于PLC控制的航空电镀生产线自动输送
- 中考预测课内外文言文对比阅读2
- 2018-2023年中国商业智能(BI)产业市场
- 中国金融体制改革研究2011new
- 外窗淋水试验方案
- 精益生产(Lean Production)
- 学校安全事故处置和信息报送制度
- Chapter 5 Human Resources Management
- 【小学数学】人教版小学六年级上册数学
- 初中数学解题方法与技巧
- 山东省创伤中心建设与管理指导原则(试
- 函数与数列的极限的强化练习题答案
- 10分钟淋巴按摩消脂
- 网络应急演练预案
- 服装设计入门基础知识
- 初二数学分式计算题练习
- (人教新课标)高二数学必修5第二章 数列
- 最新自主创业项目
- 北京大学 无机化学课件 4第4章 配合物
- 贸易公司业务管理制度




