资源描述:
《《多元数据分析》PPT课件》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、多元数据分析刘国庆Question?Howtodetermineafairmarketvaluefortheproperty?Inbuildingthemodel,thegoalistopredictthemarketvalueoftheLeslieSaltproperty,usingtheinformationavailable.DataLeslieSaltData.txtRegressionAnalysisItisusedtoexploretherelationshipbetweenasetofindependentvariables(X’s)andas
2、ingledependentvariable(Y).Aregressionmodelisalinearcombinationofindependentvariablesthatcorrespondsaspossibletothedependentvariable.RegressionforansweringquestionsHowcanwedescribetherelationshipbetweenthedependentvariableandtheindependentvariables?Istherelationshipdescribedbythemod
3、elstatisticallysignificant?Whichindependentvariablesaremostimportant?Howwelldoesthemodelgeneralizetoobservationsoutsidethesample?资料预处理大多数的销售价格低于$10,000,但是有一些价格甚至高于$20,000or$30,000每亩;一般地,这种价值的差别会带来问题。为此,采用log函数。一些特殊的点需要排除VariablesDescriptionVariables.txtCorrelationMatrixCorrMatData.
4、txt分析从表3中可以看出与log(Price)高度关联的变量是Elevation,Sewer,Date,Flood.从表格中我们也可以看到在独立的变量之间也存在着相关性。比如,Elevation,County.回归模型ResultsofRegressionResultsRegress.txtHowgoodistheFit?HowgoodistheFit(continueI)OneofthedrawbacksofR^2isthatwheneveranindependentvariableisaddedtothemodelitalwaysincreases,n
5、omatterhowsmallthecontributioninfit.Ingeneral,whenbuildingmodels,onewantstomakeatrade-offbetweenparsimonyandimprovementinfit.HowgoodistheFit(continueII)IsitSignificant?Testtheerrortermsarenormallydistributed;thatisTestingthemodelF-TestFTest.txtThecriticalvaluefortheF-distributionat
6、the0.01levelisF(4,26)=4.14,whichsuggeststhatourmodelishighlysignificant.DetectingproblemswiththemodelOnemeasureofmulticollinearityiscalledtheconditionindex(CI)Heteroscedasticity(异方差性)Wehaveassumedthattheerrortermsallhavethesamevariance.Thisassumptionissometimescalledhomoscedasticit
7、y.Whentheassumptionisviolated(i.e.,thevariancesarenotallthesame),wehavewhatiscalledheteroscedasticity.Weightedleastsquares(WLS)InfluentialObservationsSometimesregressionmodelresultscanbeinordinatelyinfluencedbyoneorafewobservationsinthedata.Thistypeofobservationasanoutlier.DFBETAsW
8、ecanlookattheimpactoftheob