Homework 3 - Fall 2024
Homework 3 - Fall 2024
Homework 3 - Fall 2024
HOMEWORK #3
List Collaborators1:
Basic information
Topics covered: Sampling, Random Variables, Conditional Probability, and Bayes Theorem
General instructions:
• Please begin each problem on a new page – it makes life easier on graders.
(The keyboard shortcut in word for a new page is CTRL+Enter)
• You may, and are encouraged to, use information from:
o Static internet resources
o Lecture slides and videos
o The textbook
o Calculator
o Excel / spreadsheet software
o Classmates, Peers, & Family members
o Your instructors
• You may not use:
o People you don’t know (e.g., Chegg)
o Students who have previously taken BMED2400 (except TAs)
Submission:
Please submit via Gradescope.
Please make sure you submit to Homework #3
Grading:
You will be graded using the following scheme for each problem:
• 0% for little effort or failure to demonstrate meaningful comprehension of the relevant
content
• 50% for incomplete work that demonstrates meaningful comprehension of the relevant
content
• 100% for complete work (possibly with errors) that demonstrates meaningful
comprehension of the relevant content
1
Please list anyone you worked with on the homework. This uses the honor system. Remember that I encourage you
to work together but that the work your turn in should be your own work.
BMED2400: Introduction to Bioengineering Statistics Fall 2024
Butterflies
in 77% 78% 9.3% 6.0% 50.3%
Stomach
Bread
57% 59% 11% 9.4% 50.3%
Basket
Funny
50% 50% 8.0% 8.1% 50.3%
Bone
Wish
21% 21% 4.0% 9.4% 50.3%
Bone
c) Interpretation: Explain what your results mean (both the conditional probabilities
and the comparison of the measured and calculated columns) as if to another
engineer. Put yourself in the shoes of a director of surgery in a hospital: pick one
procedure to focus on improving in your hospital and describe WHY you chose it.
i) The measured probabilities represent the results of the experiment with false data
within and the calculated probabilities account for those errors related to false data and give us
a more accurate probability. I would improve Spare Ribs as the calculated probability was a
BMED2400: Introduction to Bioengineering Statistics Fall 2024
whole 2% off the measured probability just like Bread Basket, however, more Spare Ribs
surgeries were performed and it has a lower success rate.
D2) Do textbook problem 3.26, but change the conformance probabilities to 0.95, 0.93, and
0.98 for machines 1, 2, and 3, respectively.
a) Setup: Read problem 3.26. Identify two concepts/rules that are useful for this
problem and list any equations you will use.
i) It tells you two integral pieces of information: 1) The conformation probabilities
of each machine and 2) the assignments of each machine to production.
b) Calculation: Calculate results to parts (a) and (b) from the textbook.
i) a) 94.6% b) 30.1%
c) Interpretation: Your boss wants you to improve the average quality of the factory
these machines are in. You have to redistribute the production among the three
machines to improve quality, but you have limited options for distribution because of
throughput. No machine may be below 20% or above 50%. How would you distribute
the production among the three types of machines to maximize the output of the
factory? Defend your reasoning using math and show the amount of improvement in
producing conforming parts that your solution would create.
i) I would reassign it so that 3 would be 50%, 1 would be 30%, and 2 would be
20%. This would give us a new conformation probability of 96.1%. This would optimize the
probability the most due to the fact that the machine with the highest efficiency makes the most
and the one with the lowest efficiency makes the least.
D3) You have four (4) six-sided dice. They are each weighted differently.
Pick a software coding environment of your choice (e.g., R or MATLAB), or utilize Excel.
Develop code or an appropriate spreadsheet setup to do the following:
• Randomly weight four dice.
• Randomly select one of the four dice.
• Roll that die 50 times. After each roll, update the probability of having selected each
die according to Bayes’ Theorem.
a) Setup: Provide the code used or include a table of the excel formulas as they appear
in your spreadsheet (use CTRL+` to switch between viewing formulas and results).
i) To decide which number to weight: Randbetween(1,6))
ii) To decide which dice to roll: F9(Randbetween(1,4))
iii) RandomNumberValue: Randbetween(1,10)
iv) Weighted Die Roll: IF(RandomNumberValue > 6, Weighted Number,
RandomNumber Value)1
b) Calculation: Fill in the following tables:
BMED2400: Introduction to Bioengineering Statistics Fall 2024
Side Weights
Die # 1 2 3 4 5 6
Roll # 1 2 3 4
5 0 0.60 0.40 0
10 0 0.50 0.20 0
c) Interpretation: Discuss which die you believe you selected and the likelihood you
are incorrect, if that is even possible. Discuss why the probability changed as you
rolled the die. Qualitatively, how would expect your values to change if you instead
had six (6) dice? What if you had only been told the result of every other roll?
i) I believe die 2 was selected as the weighted 3 showed up the most. If I am
incorrect, it would truly be due to random error and I believe if we rolled it more times, the true
choice would be apparent. The values would change if I had 6 dice depending on the
BMED2400: Introduction to Bioengineering Statistics Fall 2024
weightages of the dice. If I was only told every other result, I believe I would still arrive at the
same conclusion, but it might’ve taken me more rolls.
BMED2400: Introduction to Bioengineering Statistics Fall 2024
ii) Con- It wasn’t actual data but what I thought the data would be.