代做Problem #1 – Bayes’ Law代写数据结构程序

Problem #1 – Bayes’ Law:

As part of a routine medical exam to obtain a term life insurance, a man is tested for HIV using the RAPID test. His result turns out to be positive. Alarmed, he asks his doctor whether he definitely has HIV. The doctor assures him that the test is good (over 95% correct), but not infallible. To be precise, the doctor tells him that the sensitivity of the test – P(Positive | HIV) - is 0.99 and that the specificity – P(Negative | No HIV) is 0.98. The man is a heterosexual and has never used drugs with needles. The doctor estimates that his prior probability – P(H) – was about 0.0001, before taking the test.

What is:

1. The man’s posterior probability of having HIV?

Extra Credit (1 point):

2. The doctor recommends a second, independent test. If this is also positive, which is his posterior probability now?

3. If the posterior probability after the second test is still low, a third, independent test would likely resolve the issue. What is the posterior probability, if the third test also is positive?

All tests have the same sensitivity and specificity.

Reminder:

Parameters:

· Hypothesis (H)= Haning HIV

· Null Hypothesis (H’) = Not having HIV

· Evidence (E)= Tested Positive for HIV

· Evidence, given Hypothesis (E|H) = Tested Positive for HIV, given he has HIV

· Evidence, given null Hypothesis (E|H’) = Tested Positive for HIV, given he doesn’t HIV

· Null Evidence, given null Hypothesis (E’|H’) = Tested negative for HIV, given he doesn’t HIV, {the complement of (E|H’): P(E|H’) + P(E’|H’) = 1}

· Hypothesis, given Evidence (H|E) = Haning HIV, knowing the man tested positive Find

Problem #2 – Statistical Distribution:

The Bureau of Finance has always been a relaxed place to work. Employees are allowed 60 minutes for a lunch break and are not required to sign or punch in or out. Recently the head of the Bureau has come to suspect employees are taking advantage of the comfortable atmosphere by disappearing for more than 60 minutes at lunch. He decides to check his suspicions by monitoring for a week the number of minutes spent at lunch by each employee in a typical department of the Bureau. He considers a lunch break of up to 65 minutes acceptable, longer than that unacceptable. Below are the data collected (rounded up by minutes). Should the head of the Bureau be concerned about the time taken at lunch by employees? Present the data in ways to support your answer.

Tips (you can delete these tips in your submittal):

1. Convert the continuous variable “time spent at lunch” to a discrete variable, the first class starts at 60, and the class interval of 5.

2. Do not use Excel Histogram function, we need to see the tabulated data


3. You can use Excel’s “COUNTIF” Function, or just hand-count the number of instances in each class

4. Use column chart to plot the % histogram and scatter plot for the cumulative % and make assessments based on % above 65 min.

Minutes Spent at Lunch

75

93

66

68

60

67

63

85

78

86

73

77

69

63

64

87

93

61

80

65

82

77

60

64

62

84

64

63

63

61

70

67

76

73

72

90

80

70

89

82

Extra Credit (1 point)

#2.1 Calculate the mean (average) using a) the raw data, and b) Sx.P(x) formula and show the error of this discrete approximation.  Then reduce the Bin (Class) interval to 4, then 3, then 2, then 1, recalculate the mean using Sx.P(x) formula for each scenario and show how the accuracy of the  discrete approximation increases as bin interval decreases, using a x-y graph (interval size on x-axis, calculated mean on Y-axis.

#2.2 Review the standard statistical distributions we discussed in the class and, with visual inspection, decide which statistical distribution might be appropriate for this data, and why you think the data has such a behavior, based on human behavior. (work ethics, dedication, etc.).  How would this graph look for Google X (research before answering!)

Problem #3 – Decision Tree: The summer Job

Sam Chu was in a quandary. With two job offers in hand, the choice he should make was far from obvious. The first alternative was a job as an assistant at a local small business, let’s name this one the “In-Town Job”; the job would pay minimum wage ($5.25 per hour), require 30 to 40 hours per week, and the hours would be primarily during the week, leaving the weekends free. The job would last for 13 weeks, but the exact amount of work, and hence the amount Sam could earn, was uncertain, with the following likelihoods: 30 hours with 15%, 34 hours with 45%, and 40 h0urs with 40% likelihood. On the other hand, the free weekends could be spent with friends, that is fun level 3 in table 1 (with 100% certainty).

The second alternative was to work as a member of a trail-maintenance crew for a conservation organization.  This job would require 10 weeks of hard work, 40 hours per week at $6.50 per hour, in a national forest in a neighboring state, let’s name this one the “Forest Job”. The job would involve extensive camping and backpacking. Members of the maintenance crew would come from a large geographic area and spend the entire 10 weeks together, including weekends. Although Sam had no doubt about the earnings this job would provide, the real uncertainty was what the staff and other members of the crew would be like. Would new friendships develop? The nature of the crew and the leaders could make for 10 weeks of a wonderful time, 10 weeks of misery, or anything in between.

1. Prepare a simple 6 element influence diagram for this problem using the following symbols, connected with arrows:

a. Decision: Rectangle (straight edges)

b. Input variables (Circle)

c. Individual Consequences Rectangle (beveled edges)

d. Aggregate Consequences Rectangle (bold beveled edges)

2. Prepare the complete decision tree for this problem, with:

a. Scenarios: “In-Town job” and “Forest job”

b. Choices for each scenario: probabilities of Income and Fun level

c. Consequences: Income level and Fun Level

Note: you will come up with your own “preference probabilities” for different fun levels for the forest job, using the “probability wheel”, like what you did in the class exercises

3. Calculate the expected value of each objective for each objective, for each scenario:

a. EV(In-Town job, Salary) VS EV(Forest job, Salary)

b. EV(In-Town job, Fun Level) VS EV(Forest job, Fun Level)

Can you decide which alternative to pick? Let’s make your job easier:

4. Let’s use the “Personal Indifference Selling Price (PISP)” concept we learned in the class workshop to convert the fun levels to currencies.

a. Think in the order of magnitude of the salaries: “How much $#,###.## should I pay you to be willing to switch from level 5 to level 4, then from level 4 to level 3, etc.

b. Combine the two consequences into one $ value and then calculate then calculate the expected value of each option and show which one you would pick.

Extra Credit #3 (1point): Now go back and revisit your assumptions and see what changes could result in changing your selection and explain it.

Note: show your calculations clearly. You will lose points if you don’t even if your answer is correct!

Warning: You will find the reference document online.  The solution they provide is very different from what we are trying to do here. Please do not copy from the reference, you will lose all points at the minimum!

Rank

Description of level of fun

Pref. Prob.
(Forest Job)

5

(Best) A large, congenial group. Many new friendships made. Work is enjoyable, and time passes quickly.

100%

4

A small but congenial group of friends. The work is interesting, and time off work is spent with a few friends in enjoyable pursuits.

3

No new friends are made. Leisure hours are spent with a few friends doing typical activities. Pay is viewed as fair for the work done.

2

Work is difficult. Coworkers complain about the low pay and poor conditions. On some weekends it is possible to spend time with a few friends, but other weekends are boring.

1

(Worst) Work is extremely difficult, and working conditions are poor. Time off work is generally boring because outside activities are limited or no friends are available.

0%

Table 1 – Fun Levels descriptions and “your” preference probabilities



热门主题

课程名

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