教学文库网 - 权威文档分享云平台
您的当前位置:首页 > 范文大全 > 资料大全 >

An Introduction to Quantile Regression and the QUANTREG Proc

来源:网络收集 时间:2026-09-10
导读: 分位数回归 Paper213-30 AnIntroductiontoQuantileRegressionandtheQUANTREGProcedure Colin(Lin)Chen,SASInstituteInc.,Cary,NC ABSTRACT Ordinaryleast-squaresregressionmodelstherelationshipbetweenoneormorecovariatesXandthecon-ditionalmeanofarespo

分位数回归

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字,全部文档内容请下载后查看。喜欢就下载吧 ……

An Introduction to Quantile Regression and the QUANTREG Proc.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.jiaowen.net/fanwen/1815769.html(转载请注明文章来源)
Copyright © 2020-2025 教文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:78024566 邮箱:78024566@qq.com
苏ICP备19068818号-2
Top
× 游客快捷下载通道(下载后可以自由复制和排版)
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能出现无法下载或内容有问题,请联系客服协助您处理。
× 常见问题(客服时间:周一到周五 9:30-18:00)