代做STATS 513 Winter, 2024 Exam #2 (Practice Exam for W25)代写留学生Matlab程序

STATS 513

Winter, 2024

Exam #2 (Practice Exam for W25)

In this exam, we use parts of a dataset to study the new FAIR policies/renewals per 100 housing units collected from different regions. The variables are:

fair: new FAIR policies/renewals per 100 housing units

race: racial composition in percentage of minority

fire: fires per 100 housing units

theft: thefts per 1000 population

age: percentage of housing units with age 25 years or older

income: median family income in thousands of dollars

region: different regions under study

1.  A Q-Q plot  (normal quantile plot) of ‘fire’ is shown in Figure  1.   Please describe the distribution of the variable ’fire’ based on the plot:  is it close to normal, long-tailed, short-tailed, skewed to the right, skewed to the left?

2.  suppose we like to use the Jackknife residuals to identify which data point could be an outlier.  The R-codes below can be used to find out the potential outliers. What are the values of df.ti and nnM? If you do not know the sample size, you can pretend the sample size is 160.

ti=rstudent(m1)

pp  =  2*(1-pt(ti,df=df.ti))

alpha .v  <- .05/nnM

which(pp

3.  We focus on the model ’m2’ with Y = √fair and with the following variables as predictors:

race+theft+age+log(income)+region*fire

Based on the diagnostic plots, which data point is removed in the model ’m2.sub’?  Is the point an outlier, a high leverage point or both? Please explain.

>  cook<-cooks.distance(m2)

>  ido<-which.max(cook)

> m2.sub<-lm(fair**.5~race+theft+age+log(income)+region*fire,Fair,

+  subset=-ido)

4.  Describe the H0  and HA  for the test performed in  “anova(m2, m2.newR)”. Please clearly define the parameters used in your H0  and HA .

Feel free to use the following definitions:  let β0;A, β0;B, β0;C  (intercepts) and β1;A, β1;B, β1;C  (slopes), denote the regression intercepts and slopes for ’fire’ at regions, A, B and C, respectively., considering the existence of other covariates in the model ’m2’.

>  anova(m2,  m2.newR)

Analysis  of  Variance  Table

Model  1:  fair^0 .5  ~  race  +  theft  +  age  +  log(income)  +  region  *  fire

Model  2:  fair^0 .5  ~  race  +  theft  +  age  +  log(income)  +  newR  *  fire

Res.Df        RSS  Df    Sum  of  Sq            F  Pr(>F)

1        140  5.4446

2        142  5 .4509  -2  -0 .0062269  0 .0801  0 .9231

5.  For the ANOVA test above, one argues that we can conduct an equivalent t-test.  Is this argument correct?  If it is, please describe the exact t-test procedure for a 0 .05 level test to get full credits.  If this argument is incorrect, please provide explanations.

6.  Suppose we need to reduce the size of model ’m2.newR’. Based on the R-output, will the  “testing- based” procedure and the  “criteria-based” procedure, AIC, reach the same decision?  Please report the decision one would make using each procedure,  respectively,  and explain how you reach each decision.

7.  We let μA , μB , μC  denote the  means of Y = fair for the three regions.   Please provide a 95% confidence interval for μA  and μA - μB , respectively.  Note:  you can use the notation tdf,γ without knowing its value, where P (X ≥ tdf,γ) = γ , but please do report the  “df” and  “γ” values you would use for the t df,γ when constructing the confidence intervals.

8.  Would we reach a different conclusion here when we conduct all pairwise comparisons among μA , μB , and μC , controlling the family-wise error rate vs. controlling the individual error rate?  Please briefly justify your answer.

9.  Comparing m3 and m4, could we claim that m4 is a superior model than m4 by comparing their R2 ? Please justify your answer.

10.  Based on the R-outputs, please comment on if there is a need to consider the subset removing the point with the largest Cook's distance.

11.  Please comment on the output for ’anova(m2.newRa, m2.newR)’ and state what conclusion you make (or would not make) based on the F-test.

>  anova(m2.newRa,  m2.newR)

Analysis  of  Variance  Table

Model  1:  fair^0 .5  ~  theft  +  poly(age,  2)  +  newR  *  fire

Model  2:  fair^0 .5  ~  race  +  theft  +  age  +  log(income)  +  newR  *  fire

Res.Df        RSS  Df  Sum  of  Sq            F        Pr(>F)

1        143  5.9648

2        142  5 .4509    1        0 .5139  13.388  0 .0003562  ***

12.  Considering mod.glm, please provide the model that corresponds to mod.glm.


热门主题

课程名

mktg2509 csci 2600 38170 lng302 csse3010 phas3226 77938 arch1162 engn4536/engn6536 acx5903 comp151101 phl245 cse12 comp9312 stat3016/6016 phas0038 comp2140 6qqmb312 xjco3011 rest0005 ematm0051 5qqmn219 lubs5062m eee8155 cege0100 eap033 artd1109 mat246 etc3430 ecmm462 mis102 inft6800 ddes9903 comp6521 comp9517 comp3331/9331 comp4337 comp6008 comp9414 bu.231.790.81 man00150m csb352h math1041 eengm4100 isys1002 08 6057cem mktg3504 mthm036 mtrx1701 mth3241 eeee3086 cmp-7038b cmp-7000a ints4010 econ2151 infs5710 fins5516 fin3309 fins5510 gsoe9340 math2007 math2036 soee5010 mark3088 infs3605 elec9714 comp2271 ma214 comp2211 infs3604 600426 sit254 acct3091 bbt405 msin0116 com107/com113 mark5826 sit120 comp9021 eco2101 eeen40700 cs253 ece3114 ecmm447 chns3000 math377 itd102 comp9444 comp(2041|9044) econ0060 econ7230 mgt001371 ecs-323 cs6250 mgdi60012 mdia2012 comm221001 comm5000 ma1008 engl642 econ241 com333 math367 mis201 nbs-7041x meek16104 econ2003 comm1190 mbas902 comp-1027 dpst1091 comp7315 eppd1033 m06 ee3025 msci231 bb113/bbs1063 fc709 comp3425 comp9417 econ42915 cb9101 math1102e chme0017 fc307 mkt60104 5522usst litr1-uc6201.200 ee1102 cosc2803 math39512 omp9727 int2067/int5051 bsb151 mgt253 fc021 babs2202 mis2002s phya21 18-213 cege0012 mdia1002 math38032 mech5125 07 cisc102 mgx3110 cs240 11175 fin3020s eco3420 ictten622 comp9727 cpt111 de114102d mgm320h5s bafi1019 math21112 efim20036 mn-3503 fins5568 110.807 bcpm000028 info6030 bma0092 bcpm0054 math20212 ce335 cs365 cenv6141 ftec5580 math2010 ec3450 comm1170 ecmt1010 csci-ua.0480-003 econ12-200 ib3960 ectb60h3f cs247—assignment tk3163 ics3u ib3j80 comp20008 comp9334 eppd1063 acct2343 cct109 isys1055/3412 math350-real math2014 eec180 stat141b econ2101 msinm014/msing014/msing014b fit2004 comp643 bu1002 cm2030
联系我们
EMail: 99515681@qq.com
QQ: 99515681
留学生作业帮-留学生的知心伴侣!
工作时间:08:00-21:00
python代写
微信客服:codinghelp
站长地图