390 Lecture 2
-
Upload
aravindsomu -
Category
Documents
-
view
217 -
download
0
Transcript of 390 Lecture 2
-
8/10/2019 390 Lecture 2
1/33
Forecasting
Aforecastisaguessaboutanunknown.
Aneconomicforecastisaforecastaboutan
economicvariable,event,outcome,or
duration.
-
8/10/2019 390 Lecture 2
2/33
LetsMakeaForecast
Supposewetakearandomhouseholdinthe
UnitedStates. Letsforecastthewage(hourly)oftheheadof
household. Whatisyourforecast?
Willyourforecastbecorrect?Why?
-
8/10/2019 390 Lecture 2
3/33
WageDensity
-
8/10/2019 390 Lecture 2
4/33
WageDistribution
-
8/10/2019 390 Lecture 2
5/33
WageForecast
Wageshaveadistributioninthepopulation.
Itisimpossibletocorrectlyforecastan
individualswage.
Ifweforecastthewagewillbe$17.87itisclosetoimpossiblethatagivenpersonswage
willbeexactly$17.87.
Themostcorrectandaccurateforecastisthe
entiredistribution(ordensity).
-
8/10/2019 390 Lecture 2
6/33
-
8/10/2019 390 Lecture 2
7/33
ForecastDistribution
Supposewearetryingtoforecastan
economicvariable y Forexample,arandompersonswage.
y hasadistribution F(y) whichismathematicallydefinedas
Visually,werepresentdistributionsthrough
theirdensityfunctions
)()( uyPuF =
)()( yF
dy
dyf =
-
8/10/2019 390 Lecture 2
8/33
ForecastDistribution
Acompleteforecastfor y isitsdistribution F(y)
ordensityf(y). Either F(y) orf(y) summarizesallthatisknown
andunknownaboutthepotentialvaluesfor y.
Wecall F theforecastorpredictivedistribution.
Canyouforecastapersonswage?
Wecannotknowwithcertaintythewage
Weknow(orcanestimate)thedistribution:
Therangeandlikelihoodofpossiblewages.
-
8/10/2019 390 Lecture 2
9/33
Whatmightthismatter?
Supposeyourcompanyunderwrites
unemploymentinsurancewhichpayapersonswage y iftheybecomeunemployed.
Supposearandompersonlosestheirjob. Whatisthecosttothecompany?
Wecannotknowwithcertainty,butwemayknowthedistributionofthepotentialcosts.
-
8/10/2019 390 Lecture 2
10/33
-
8/10/2019 390 Lecture 2
11/33
PointForecast
Apointforecast isafunctionofthe
predictivedistribution F Itcanbeviewedasasummaryof F.
Whichfunctionshouldbeused?
Whatisourbestguessfor y basedon F?
Itturnsoutthattheanswerdependsonourlossfunction howwemeasurethecostsdue
topotentialforecasterror.
-
8/10/2019 390 Lecture 2
12/33
ForecastError
Ifweforecastarandomvariable y witha
forecastf wesaythattheforecasterroris
Theforecasterroristhedifferencebetweenthe
actualandtheforecast.
Forexample,ifweforecastedthatanindividuals
wagewouldbe$18,butitturnsoutthatitis$24,
thentheerroris2418=6.Iftheirwagewas
actually$14,thentheerrorwouldbe1418=4.
yye =
-
8/10/2019 390 Lecture 2
13/33
Forecasterror
Solongasthevariable y israndom(not
perfectlyforecastable)thentherewillalwaysbeforecasterror.
Thiscannotbeavoided. However,errorsarecostly.
Ausercanassigncoststoaforecasterror.
Wecallthisthelossfunction
FunctionLosseL =
)(
-
8/10/2019 390 Lecture 2
14/33
LossFunctions
CommonmathematicalchoicesQuadraticLoss
AbsoluteLoss
BotharesymmetricTreatpositiveandnegativeforecasterrors
symmetrically
Quadraticlosspenalizeslargeerrorsmuchmorethansmallerrors.
AsymmetricLossFunctionsalsopossible.
2)( eeL =
eeL =)(
-
8/10/2019 390 Lecture 2
15/33
ManyLossFunctionsare
(Approximately)Quadratic ConsideramonopolistsellingaproductQatapriceP,
withlineardemandandzerocost.
ThemonopolistsetspricePandthensellsQ.
Thedemandequationis Q=2aP
Theprofitfunctionis (P)=2aPP2
TheoptimalpriceisP*=a,optimalprofit*=(P*)=a2.
Letbeaforecastofawitherrore=a.
ThemonopolistsetsP= TheLossisL=*()=a22a+2=(a)2=e2
Thisisquadraticloss.
-
8/10/2019 390 Lecture 2
16/33
Risk
TheRiskofaforecastisitsexpectedloss.
Mathematically,
Forquadraticloss
Forabsoluteloss
)(E)(E)( yyLeLyR ==
( )2E)( yyyR =
yyyR E)( =
-
8/10/2019 390 Lecture 2
17/33
OptimalPointForecast
Theoptimal(best)pointforecastisthe
function ofthepredictivedistribution Fwhichminimizestherisk (minimizesthe
expectedloss).
Inthequadraticcase
whichisaquadraticin
( )22
2
E2E
E)(
yyyy
yyyR
+=
=
-
8/10/2019 390 Lecture 2
18/33
OptimalPointForecast QuadraticLoss
The whichminimizestheRiskisfoundby
differentiation
Whichhasthesolution
Theoptimalpointforecastisthemeanofthe
predictivedistribution
yy 2E20 +=
yy E =
-
8/10/2019 390 Lecture 2
19/33
OptimalForecastUnderQuadraticLoss
istheMean Theoptimalpointforecastunderquadratic
lossisthemean. Forexample,toforecastthewageofarandom
person,ouroptimalpointforecastis$17.87
-
8/10/2019 390 Lecture 2
20/33
OptimalPredictionUnderAbsoluteLoss
istheMedian Theriskofaforecastis
Thisisminimizedbythemedian
Theoptimalforecastunderabsolutelossis
Forexample,toforecastthewageofarandomperson,theoptimalpointforecastis$14.76
yyyR E)( =
)( yMediany =
-
8/10/2019 390 Lecture 2
21/33
ChoiceofLossFunction
Wehavelearnedthattheoptimalpointforecastdependsuponthelossfunction
Themean Ey minimizestheexpectedsquarederror Themedianminimizestheexpectedabsoluteerror.
Otherlossfunctionsleadtodifferentsolutions.
Inmostcases,wedonothaveanexplicitlossfunction.Sowetakethesimplestapproachandusethemean,whichisequivalenttosquaredloss.
However,inarealworldapplication,youmightbeabletoarticulatetheexplicitlossduetoforecastingerror.Inthiscase,itwouldbebesttousethelossfunctionexplicitly,leadingtospecializedestimatorsandforecasts.
-
8/10/2019 390 Lecture 2
22/33
IntervalForecast
Wehavesaidthatacompleteforecastforthe
unknownwage y isitsdensityf,butforsimplicityusersoftenwantapointforecast
Anintermediatesolutionistoreportaforecast
interval C=[L,U].
Aforecastintervalissimilartoaconfidence
intervalinstatistics. Thegoalisfortheunknownwage y tolieinthe
forecastintervalwithaprespecifiedprobability.
-
8/10/2019 390 Lecture 2
23/33
IntervalForecast
Thusanx%forecastinterval C satisfies
Commonchoicesfor x include
x=.90 (90%)
x=.80 (80%)
x=.50 (50%)
50%intervalshavethesimplepropertythat
theycontaintheunknown y withevenodds.
( ) xCyP =
-
8/10/2019 390 Lecture 2
24/33
Quantiles
Theendpointsof C=[L,U] arequantiles ofthedistribution F of y.
Definition:Theth quantile of y isthenumberq
whichsatisfies
Theyarefoundbyinvertingthedistributionfunction
Forax%interval,youneedthex/2and1x/2quantiles
Forexample,the25%and75%quantiles fora
50%forecastinterval.
( )
qF=
-
8/10/2019 390 Lecture 2
25/33
Quantiles ofWageDistribution
-
8/10/2019 390 Lecture 2
26/33
NormalRule
Ifthevariable y isnormallydistributedN(,2)
Thepointforecastis
Theforecastintervalsare[z/2,+z /2] wherez/2
arequantiles fromthenormaldistribution table.
Forexample,fora90%interval,z.05=1.645,orfora50%
interval,z.25=0.675
Allyouneedtoknowisthestandarddeviation
Buteconomicdataareoftenfarfromnormal,so
thisrulemaybeinaccurate.
-
8/10/2019 390 Lecture 2
27/33
UseForecastIntervals!
Forecastintervalsaresimple,yetnotwidely
used. Apointforecastbyitselfdoesnot
communicatetheuncertaintyintheforecast Aforecastintervaliseasiertointerpretthan
theentiredistribution
-
8/10/2019 390 Lecture 2
28/33
Summary UnconditionalForecasts
Acompleteforecastofarandomvariable y isthedistribution F ordensityf ofthevariable.
Apointforecastisasinglenumber tosummarizethedistribution.
Theoptimalchoicedependsonthelossfunction.
Whenlossisquadratic,theoptimalpointforecastisthemean.
Forecastintervalsarequantiles oftheforecastdistribution,andconveyusefulinformationabouttheuncertainin y.
-
8/10/2019 390 Lecture 2
29/33
ConditionalForecast
Wehadconsideredforecastingthewageofa
randomperson. Thedistributionisquitediffuseasitincludes
allwageearners.Weknownothingaboutthepersonbeingforecast.
-
8/10/2019 390 Lecture 2
30/33
ConditionalForecast
Nowsupposeweknowthatthepersonisaman(orawoman).
Theinformationimprovestheforecast.
-
8/10/2019 390 Lecture 2
31/33
ConditionalonSex,Race,Education
-
8/10/2019 390 Lecture 2
32/33
ConditionalForecasts(Means)
Men Women
White High School $17 $13
College $27 $20
Graduate $32 $26
Black High School $14 $11
College $21 $21Graduate $29 $23
-
8/10/2019 390 Lecture 2
33/33
RoleofConditioning
Byconditioningonavailableinformation,we
canmakeforecastsmoreaccurate. Conditioningreducestheriskoftheforecast.
Ignoringestimation,conditioningonmoreinformationisalwaysbetterinthesenseof
reducingrisk.