Nichols-Assignment-D
pdf
keyboard_arrow_up
School
University Of Arizona *
*We aren’t endorsed by this school
Course
376
Subject
Mechanical Engineering
Date
Jan 9, 2024
Type
Pages
5
Uploaded by ChancellorRockJaguar38
McKenna Nichols
BME 376: Assignment D
–
Probability Distributions
•
This assignment is focused on probability distributions. All answers should be entered in the
space provided below each question.
•
Type equations (using in-built Word features) and text. Avoid screenshots or images.
•
Upload a completed word document to D2L.
1.
[4 points]
Approximately 12% of the US population smokes cigarettes. A local government
(county) believed their community had a lower smoker rate and commissioned a survey of
400 randomly selected individuals.
What is the probability of observing more than 5 smokers in the sample?
[2 points] Approach A (compute manually i.e., without R)
𝑷(𝒙) = (
𝒏
𝒙
) ?
𝒙
?
𝒏−𝒙
𝑃(1) = (
400
1
) 0.12
1
0.88
400−1
= 3.3871 ∗ 10
−21
𝑃(2) = (
400
2
) 0.12
2
0.88
400−2
= 2.30938 ∗ 10
−22
𝑃(3) = (
400
3
) 0.12
3
0.88
400−3
= 2.09944 ∗ 10
−23
𝑃(4) = (
400
4
) 0.12
4
0.88
400−4
= 2.14715 ∗ 10
−24
𝑃(5) = (
400
5
) 0.12
5
0.88
400−5
= 2.34235 ∗ 10
−25
1 − (𝑃(1) + 𝑃(2) + 𝑃(3) + 𝑃(4) + 𝑃(5)) = 1 − (3.64141 ∗ 10
−21
) = 1
[1 point] Approach B (use R)
# include R commands here
> 1 - pbinom(5, size = 400, p = 0.12)
# paste R outputs here
1
What is the probability of observing less that 60 smokers in the sample?
[1 point] Use R (manual approach not needed)
# include R commands here
> pbinom(59, size = 400, prob = 0.12)
# paste R outputs here
0.9584233
2.
[6 points]
Based on census data, it is estimated that the percentage of individuals with no
high school education/diploma in Southern Arizona is 23%. Suppose we select three
individuals at random from the Southern Arizona community.
What is the probability that none of the three individuals have high school diploma?
[1 point] Approach A (compute manually i.e., without R)
(
3
3
) =
3!
3! ∗ 3!
=
1
6
𝑃(3) = (
3
3
) 0.23
3
0.77
3−3
= 0.012167
[1 point] Approach B (use R)
# include R commands here
> dbinom(3, size = 3, p = 0.23)
# paste R outputs here
0.012167
What is the probability that at least two individuals have
no
high school diploma?
[1 point] Approach A (compute manually i.e., without R)
(
3
1
) =
3!
1! ∗ 3!
= 1
𝑃(3) = (
3
1
) 0.23
1
0.77
3−1
= 0.0136367
[1 point] Approach B (use R)
# include R commands here
> 1 - pbinom(1, size = 3, p = 0.23)
# paste R outputs here
0.134366
What is the probability that all three individuals have high school diploma?
[1 point] Approach A (compute manually i.e., without R)
(
3
0
) =
3!
0! ∗ 3!
= 1
𝑃(3) = (
3
0
) 0.23
0
0.77
3−0
= 0.456533
[1 point] Approach B (use R)
# include R commands here
> dbinom(0, size = 3, p = 0.23)
# paste R outputs here
0.456533
3.
[9 points]
The amount of weight gained during a pregnancy is an important indicator of the
health of the mother as well as the baby. Learn more about the recommended weight gain
during pregnancy and its implications to maternal and infant health
here
.
Based on data from a birth data registry in Yuma County, the amount of weight gained
during pregnancy (in pounds) was approximately normally distributed with a mean of 30.2
pounds and a standard deviation of 13.8 pounds.
What is the probability that a randomly selected mother in Yuma County gained less than 20
pounds
(i.e., less than
recommended
amount of weight gain)?
[2 points] Approach A (compute manually i.e., without R)
𝑍 =
𝑥 − ?
𝜎
𝑍 =
20 − 30.2
13.8
= −0.73
Using the negative Z-table, the probability of this with the above z-score is 0.2327
[1 point] Approach B (use R)
# include R commands here
> pnorm(q = 20, mean = 30.2, sd = 13.8)
# paste R outputs here
0.2299139
What is the probability that a randomly selected mother in Yuma County gained between 25
to 35 pounds
(i.e., within the recommended range of weight gain)?
[2 points] Approach A (compute manually i.e., without R)
𝑍 =
𝑥 − ?
𝜎
𝑍 =
25−30.2
13.8
= −0.38
(z-table value is 0.3520);
𝑍 =
35−30.2
13.8
= 0.35
(z-table value is 0.6368)
0.6368 − 0.3520 = 0.2848
[1 point] Approach B (use R)
# include R commands here
> small <- pnorm(q = 25, mean = 30.2, sd = 13.8)
> large <- pnorm(q = 35, mean = 30.2, sd = 13.8)
> large - small
# paste R outputs here
0.282858
What is the probability that a randomly selected mother in Yuma County gained more than
40 pounds
(i.e., more the recommended amount of weight gain)?
[2 points] Approach A (compute manually i.e., without R)
𝑍 =
𝑥 − ?
𝜎
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
𝑍 =
40 − 30.2
13.8
= 0.710
Using the positive Z-table, the probability with the above z-score is 0.7611, but you must
subtract that from 1 which gives a probability of:
1 − 0.7611 = 0.2389
[1 point] Approach B (use R)
# include R commands here
> 1 - pnorm(q = 40, mean = 30.2, sd = 13.8)
# paste R outputs here
0.2388071
4.
[5 points]
In a Southern Arizona border town, an average of 14 new cases of esophageal
cancer are screened and diagnosed each year. Assuming that the incidence of esophageal
cancer follows a Poisson distribution,
what is the probability that in a given year the number
of newly diagnosed cases of esophageal cancer will be less than 10?
[1 point] Use R
# include R commands here
> ppois(9, lambda = 14)
# paste R outputs here
0.1093994
What is the probability that in a given year the number of newly diagnosed cases of
esophageal cancer will be between 10 and 20 (inclusive)?
[1 point] Use R
# include R commands here
> dpois(10, lambda = 14) + dpois(11, lambda = 14) + dpois(12, lambda = 14) + dpois(13, lambda = 14) + dpois(14, lambda =
14) + dpois(15, lambda = 14) + dpois(16, lambda = 14) + dpois(17, lambda = 14) + dpois(18, lambda = 14) + dpois(19,
lambda = 14) + dpois(20, lambda = 14)
# paste R outputs here
0.8426922
What is the probability that in a given year the number of newly diagnosed cases of
esophageal cancer will be exactly 10?
[2 points] Approach A (compute manually i.e., without R)
𝑃(𝑥 = 𝐾) =
𝑒
−𝜆
∗ ?
𝑘
𝑘!
𝑃(𝑥 = 10) =
𝑒
−14
∗ 14
10
10!
= 0.066282
[1 point] Approach B (use R)
# include R commands here
> dpois(10, lambda = 14)
# paste R outputs here
0.06628184
5.
[1 point] Statement of Attribution and Challenges:
Please list and describe any resource or
external support used to complete this assignment. You should clearly specify and attribute
any source of support, including but not limited to, the use of online and physical materials,
software tools and websites, peers, human tutors, digital tutors, programming assistants,
and any other form of artificial intelligence (AI) tools. You are also welcome to include
questions or general comments/challenges that came up while you were doing this
assignment.
I used the online notes that were provided and discussed in class. I also did ask a couple of
classmates for help on some of the problems. The problems that involved ranges I asked
Julia for help on and some of the manual calculations I got help from Ryan on.
Related Documents
Related Questions
Motiyo
Add explanation
arrow_forward
Answer correctly only. I
arrow_forward
4. Documents business requirements use-case narratives.for only one process
note: please i want Documents like this in pic
arrow_forward
I need the answer as soon as possible
arrow_forward
sample calculations
目
File Edit View Insert Format Data To
100%
$ % .0
.00 12:
fx |
A
1
Variable
Value
Units
diameter
height
m
4
volume
m^3
3
The image above shows a section of a Google sheet. What formula should be written in cell
B4 to calculate the volume of a cylinder with a diameter value in B2 and height in B3?
a) =0.25*PI()*B2^2 * B3
b) =PI()*B2^2 * B3
c) =pi*diameter^2 * height
d) =PI*B2^2 * B3
3 5
arrow_forward
Use MATLAB please make code for this.
arrow_forward
Can i get help with these questions
arrow_forward
Hello I’m trying to make the graph that you see in the picture, I’m trying the exact copy of that graph using this code but I’m having a hard time doing that. Could you change the code so that it looks like the graph that you see on the picture using MATLAB, please send the code when you are finished.
% Sample data for Diesel and Petrol cars
carPosition = linspace(1, 60, 50); % Assumed positions of cars
% Fix the random seed for reproducibility
rng(45);
% Assumed positions of cars
CO2Diesel = 25 + 5*cos(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Diesel
CO2Petrol = 20 + 5*sin(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Petrol
% Fit polynomial curves
pDiesel = polyfit(carPosition, CO2Diesel, 3);
pPetrol = polyfit(carPosition, CO2Petrol, 3);
% Generate points for best fit lines
fitDiesel = polyval(pDiesel, carPosition);
fitPetrol = polyval(pPetrol, carPosition);
% Plotting the data
figure; hold on;
scatter(carPosition, CO2Diesel, 'o', 'MarkerEdgeColor', [1 0.5…
arrow_forward
Engr 215 Matlab
Fahrenheit to Celsius using multiple statements
Given a Fahrenheit value temperatureFahrenheit, write a statement that assigns temperatureCelsius with the equivalent Celsius value.
While the equation is C = 5/9 * (F - 32), as an exercise use two statements, the first of which is "fractionalMultiplier = 5/9;"]
arrow_forward
Hi I need help to make the line change into a different color, I half of the line to be orange and I need the other half of the line towards the end to be purple as shown in the picture. Also I need there be a box saying Diesel, petrol, diesel best fit, petrol best fit. This part is also shown in the graph.
Please use this code and fix it in MATLAB:
% Sample data for Diesel and Petrol cars
carPosition = linspace(1, 60, 50); % Assumed positions of cars
% Fix the random seed for reproducibility
rng(50);
% Assumed positions of cars
CO2Diesel = 25 + 5*cos(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Diesel
CO2Petrol = 20 + 5*sin(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Petrol
% Fit polynomial curves
pDiesel = polyfit(carPosition, CO2Diesel, 3);
pPetrol = polyfit(carPosition, CO2Petrol, 3);
% Generate points for best fit lines
fitDiesel = polyval(pDiesel, carPosition);
fitPetrol = polyval(pPetrol, carPosition);
% Combine the best fit lines
combinedFit =…
arrow_forward
Hartley Electronics, Inc., in Nashville, producesshort runs of custom airwave scanners for the defense industry.The owner, Janet Hartley, has asked you to reduce inventory byintroducing a kanban system. After several hours of analysis, youdevelop the following data for scanner connectors used in onework cell. How many kanbans do you need for this connector?Daily demand 1,000 connectorsLead time 2 daysSafety stock 12 dayKanban size 500 connectors
arrow_forward
MULTIPLE CHOICE -The answer is one of the options below please solve carefully and circle the correct option Please write clear .
arrow_forward
K
mylabmastering.pearson.com
Chapter 12 - Lecture Notes.pptx: (MAE 272-01) (SP25) DY...
P Pearson MyLab and Mastering
Mastering Engineering
Back to my courses
Course Home
Scores
Course Home
arrow_forward
I was going over the equations for the notes in class and I had a thought. Based on the equations in the image, you could get negative propellant mass. So, I coded it in matlab and I got negative mass. How is that possible? I think I used practical values for the velocity and mass ratio and so on. Did I do something wrong?
arrow_forward
I need help with the purple line the line that you see one the graph on the picture needs to be on the graph.
Use this code to add the purple line and make sure it’s crossing the orange line. Please make sure the lines are positioned the same way it is shown on the picture with the graph.
Use this code on MATLAB and add the purple line.
% Sample data for Diesel and Petrol cars
carPosition = linspace(1, 60, 50); % Assumed positions of cars
% Use the 'seed' function instead of 'rng'
seed = 50; % Define your seed here
rand('seed',seed);
% Assumed CO2 emissions for Diesel and Petrol
CO2Diesel = 25 + 5*cos(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Diesel
CO2Petrol = 20 + 5*sin(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Petrol
% Fit polynomial curves with a reduced degree of 2
pDiesel = polyfit(carPosition, CO2Diesel, 2);
pPetrol = polyfit(carPosition, CO2Petrol, 2);
% Generate points for best fit lines
fitDiesel = polyval(pDiesel, carPosition);…
arrow_forward
Please type out and or diagram Your solution in a way that is easy to read I have bad eyesight
arrow_forward
You are a biomedical engineer working for a small orthopaedic firm that fabricates rectangular shaped fracture
fixation plates from titanium alloy (model = "Ti Fix-It") materials. A recent clinical report documents some problems with the plates
implanted into fractured limbs. Specifically, some plates have become permanently bent while patients are in rehab and doing partial
weight bearing activities.
Your boss asks you to review the technical report that was generated by the previous test engineer (whose job you now have!) and used to
verify the design. The brief report states the following... "Ti Fix-It plates were manufactured from Ti-6Al-4V (grade 5) and machined into
solid 150 mm long beams with a 4 mm thick and 15 mm wide cross section. Each Ti Fix-It plate was loaded in equilibrium in a 4-point bending
test (set-up configuration is provided in drawing below), with an applied load of 1000N. The maximum stress in this set-up was less than the
yield stress for the Ti-6Al-4V…
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you

Elements Of Electromagnetics
Mechanical Engineering
ISBN:9780190698614
Author:Sadiku, Matthew N. O.
Publisher:Oxford University Press

Mechanics of Materials (10th Edition)
Mechanical Engineering
ISBN:9780134319650
Author:Russell C. Hibbeler
Publisher:PEARSON

Thermodynamics: An Engineering Approach
Mechanical Engineering
ISBN:9781259822674
Author:Yunus A. Cengel Dr., Michael A. Boles
Publisher:McGraw-Hill Education

Control Systems Engineering
Mechanical Engineering
ISBN:9781118170519
Author:Norman S. Nise
Publisher:WILEY

Mechanics of Materials (MindTap Course List)
Mechanical Engineering
ISBN:9781337093347
Author:Barry J. Goodno, James M. Gere
Publisher:Cengage Learning

Engineering Mechanics: Statics
Mechanical Engineering
ISBN:9781118807330
Author:James L. Meriam, L. G. Kraige, J. N. Bolton
Publisher:WILEY
Related Questions
- I need the answer as soon as possiblearrow_forwardsample calculations 目 File Edit View Insert Format Data To 100% $ % .0 .00 12: fx | A 1 Variable Value Units diameter height m 4 volume m^3 3 The image above shows a section of a Google sheet. What formula should be written in cell B4 to calculate the volume of a cylinder with a diameter value in B2 and height in B3? a) =0.25*PI()*B2^2 * B3 b) =PI()*B2^2 * B3 c) =pi*diameter^2 * height d) =PI*B2^2 * B3 3 5arrow_forwardUse MATLAB please make code for this.arrow_forward
- Can i get help with these questionsarrow_forwardHello I’m trying to make the graph that you see in the picture, I’m trying the exact copy of that graph using this code but I’m having a hard time doing that. Could you change the code so that it looks like the graph that you see on the picture using MATLAB, please send the code when you are finished. % Sample data for Diesel and Petrol cars carPosition = linspace(1, 60, 50); % Assumed positions of cars % Fix the random seed for reproducibility rng(45); % Assumed positions of cars CO2Diesel = 25 + 5*cos(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Diesel CO2Petrol = 20 + 5*sin(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Petrol % Fit polynomial curves pDiesel = polyfit(carPosition, CO2Diesel, 3); pPetrol = polyfit(carPosition, CO2Petrol, 3); % Generate points for best fit lines fitDiesel = polyval(pDiesel, carPosition); fitPetrol = polyval(pPetrol, carPosition); % Plotting the data figure; hold on; scatter(carPosition, CO2Diesel, 'o', 'MarkerEdgeColor', [1 0.5…arrow_forwardEngr 215 Matlab Fahrenheit to Celsius using multiple statements Given a Fahrenheit value temperatureFahrenheit, write a statement that assigns temperatureCelsius with the equivalent Celsius value. While the equation is C = 5/9 * (F - 32), as an exercise use two statements, the first of which is "fractionalMultiplier = 5/9;"]arrow_forward
- Hi I need help to make the line change into a different color, I half of the line to be orange and I need the other half of the line towards the end to be purple as shown in the picture. Also I need there be a box saying Diesel, petrol, diesel best fit, petrol best fit. This part is also shown in the graph. Please use this code and fix it in MATLAB: % Sample data for Diesel and Petrol cars carPosition = linspace(1, 60, 50); % Assumed positions of cars % Fix the random seed for reproducibility rng(50); % Assumed positions of cars CO2Diesel = 25 + 5*cos(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Diesel CO2Petrol = 20 + 5*sin(carPosition/60*2*pi) + randn(1, 50)*5; % Random data for Petrol % Fit polynomial curves pDiesel = polyfit(carPosition, CO2Diesel, 3); pPetrol = polyfit(carPosition, CO2Petrol, 3); % Generate points for best fit lines fitDiesel = polyval(pDiesel, carPosition); fitPetrol = polyval(pPetrol, carPosition); % Combine the best fit lines combinedFit =…arrow_forwardHartley Electronics, Inc., in Nashville, producesshort runs of custom airwave scanners for the defense industry.The owner, Janet Hartley, has asked you to reduce inventory byintroducing a kanban system. After several hours of analysis, youdevelop the following data for scanner connectors used in onework cell. How many kanbans do you need for this connector?Daily demand 1,000 connectorsLead time 2 daysSafety stock 12 dayKanban size 500 connectorsarrow_forwardMULTIPLE CHOICE -The answer is one of the options below please solve carefully and circle the correct option Please write clear .arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Elements Of ElectromagneticsMechanical EngineeringISBN:9780190698614Author:Sadiku, Matthew N. O.Publisher:Oxford University PressMechanics of Materials (10th Edition)Mechanical EngineeringISBN:9780134319650Author:Russell C. HibbelerPublisher:PEARSONThermodynamics: An Engineering ApproachMechanical EngineeringISBN:9781259822674Author:Yunus A. Cengel Dr., Michael A. BolesPublisher:McGraw-Hill Education
- Control Systems EngineeringMechanical EngineeringISBN:9781118170519Author:Norman S. NisePublisher:WILEYMechanics of Materials (MindTap Course List)Mechanical EngineeringISBN:9781337093347Author:Barry J. Goodno, James M. GerePublisher:Cengage LearningEngineering Mechanics: StaticsMechanical EngineeringISBN:9781118807330Author:James L. Meriam, L. G. Kraige, J. N. BoltonPublisher:WILEY

Elements Of Electromagnetics
Mechanical Engineering
ISBN:9780190698614
Author:Sadiku, Matthew N. O.
Publisher:Oxford University Press

Mechanics of Materials (10th Edition)
Mechanical Engineering
ISBN:9780134319650
Author:Russell C. Hibbeler
Publisher:PEARSON

Thermodynamics: An Engineering Approach
Mechanical Engineering
ISBN:9781259822674
Author:Yunus A. Cengel Dr., Michael A. Boles
Publisher:McGraw-Hill Education

Control Systems Engineering
Mechanical Engineering
ISBN:9781118170519
Author:Norman S. Nise
Publisher:WILEY

Mechanics of Materials (MindTap Course List)
Mechanical Engineering
ISBN:9781337093347
Author:Barry J. Goodno, James M. Gere
Publisher:Cengage Learning

Engineering Mechanics: Statics
Mechanical Engineering
ISBN:9781118807330
Author:James L. Meriam, L. G. Kraige, J. N. Bolton
Publisher:WILEY