代写Economics 140A Homework 1代做留学生SQL 程序

Economics 140A

Homework 1

This homework should be completed with Stata.  When submitting your homework, copy-paste your Stata code at the bottom of the document you submit.  You will learn how to use Stata in section.

The data set background_survey contains the answers you and your classmates gave to some of the questions in the background survey.  Gender is a variable equal to 1 for females and to 0 for males. Job is a variable equal to 1 for students who have a job and to 0 for students who do not. IV_weekend_safety_fee is a variable equal to 1 for students in favor of increasing tuition fees by 50 dollars to implement new security measures and ensure Isla Vista (IV) is safer during weekends, and to 0 for students who answered they were against this idea.  Non_response is a variable equal to 1 for students who said they would not have answered the survey if answering had not been worth 4% of the final grade, while this variable is equal to 0 for students who said they would still have answered.

The students who answered the question about the increase in tuition fees to implement more safety measures in IV were randomly divided into 10 groups of equal size.  The number of the  group a student is assigned to is in the variable randomdraw, which takes values from 1 to 10.  Each group of students with the same value of the variable randomdraw is a random sample of size n drawn without replacement from the total population of N students who answered this question.

1.  Among those who answered the question (N students), what is the percentage of your classmates in favor of increasing tuition fees by 50 dollars to implement new security measures and ensure Isla Vista is safer during weekends?  Hereafter, let p denote that number.

2.  Compute the percentage of students in favor of increasing tuition fees to implement security measures in IV, in the first random sample of students (those with randomdraw=1).  This percentage is your estimate of p based on the first random sample and is denoted ,1 .  Is this percentage equal to the percentage of students in favor of that idea in the entire population?

3.  Compute the percentage of students in favor of this measure in the 9 other random samples. Let ,2, … , ,10 denote the estimates of p based on random samples 2 through 10 (note: these are defined by the variable randomdraw). Compute , the variance of those 10 numbers.

4.  According to what we saw in lecture, the variance of p(^)n  is equal to  (the additional  term comes from the fact the sample is drawn without replacement).  Given the value of p you found in question 1, compute that number.  Is the number you found very far from the number you found in question 3?  Explain.

5.  For each of the 10 samples of students, compute the 95% confidence interval for p according to the formula we saw during lecture, and assess whether p indeed belongs to that interval.  For what proportion of these 10 samples does p indeed belong to the confidence interval?  Does that make sense?  Explain your answer.

6.  Compare the percentage of students in favor of increasing tuition fees to implement new security measures in IV among male and among female students. Is the difference between the two groups statistically significant at the 5% level?  Hint: you can use the Stata command regress.

7.  Compare the percentage of students in favor of increasing tuition fees to implement new security measures in IV, among students with a job and students without a job. Is the difference between the two groups statistically significant at the 5% level? Hint: you can use the Stata command regress.  If the difference is statistically significant, try to explain what causes this difference.

8.  When asked whether they would have answered the survey if it had not been worth 4% of the final grade, those who said they would still have replied are coded Non_response=0, while those who said they would not have replied are coded Non_response=1. The first group consists of students who answer surveys even if they do not have an incentive to do so, so let's call them always respondents. The second group consists of students who only answer surveys if they have an incentive to do so, so let's call them incentivized respondents. If there had not been an incentive to answer this survey, only the always respondents would have answered.  What would the response rate have been in this case?  Compare the percentage of females among the always respondents and to the percentage of females among the incentivized respondents. Is the difference between the two groups statistically significant at the 5% level?  Hint: you can use the Stata command regress.

9.  Compare the percentage of students in favor of increasing tuition fees to implement new security measures in IV among the always respondents and the incentivized respondents. Is the difference between the two groups statistically significant at the 5% level?  Hint: you can use the Stata command regress.

10.  Assume the university wants to know whether it should increase tuition fees by 50 dollars to implement new security measures in IV. To make that decision, they will survey students, and they will implement this measure if more than 50% of the students that respond to their survey are in favor of this idea. Only the always respondents will respond to the survey, because there is no incentive to respond. Do you think that the results of the survey can give the university a reliable measure of whether more or less than 50% of students are in favor of that idea? Hint: use the result from the previous question.





热门主题

课程名

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
站长地图