Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

This is from MatLab. Are answers are supposed to go in the green comments \"FIXM

ID: 3587072 • Letter: T

Question

This is from MatLab. Are answers are supposed to go in the green comments "FIXME"

Assgn maloHeightSampie wth 1000000 normaty dlnbuAod s mpics with mcan makHeighthican and standard dostatlon macHeghsidDe Assign pecentageTaller wth the parcentags of sampies In Assign maleTaleHeight with an estimate of the number of US males taler than thresholdHeiaht by mubplyna m3leUSoopu at on with percetange Taler taller than thresholdHelaht Your Function Savr C Reset MATIAR Dacumentation || function naleTallerHelght EstinateTallHales, thresholdHaight % Estinate ,11Ngles : Estimate number of U.S Mdles taller than input height 3 % Tnputs: threshol Haleht. height threshold % Outputs : nalcTallerHeight estinated number of U.s- nales taller th n threshold height NA1@Heightst Dev-6.81; % (1n.) maleuspopulation . 110.4; nillions % Initialize rando nuter genr:tor rngi 'de avlt' % Assign nalcHeightSonplc With 1eaeeea normally distributed 5:noles with % Assign percentageTaller 'with the percentage % taller than thresholdHeight sannies In MaloHeightSarple % Assign naler allerHeight with an estimete of the number of US males taller % than thresholdHeight by nuiltiplying naleuspapulation uithencataneeTaller

Explanation / Answer

PLEASE REFER BELOW CODE

function maleTallerHeight = EstimateTallmales(thresholdHeight)
maleHeightMean = 89.3; %(in.)
maleHeightStdDev = 6.01; %(in.)
maleUSpopulation = 119.4; % millions

%initiate random number generator
rng('default');

%Assign maleHeightSample with 1000000 normally distributed samples with
%mean maleHeightMean and Standard deviation maleHeightStdDev
%R = normrnd(mu,sigma)

maleHeightSample = normrnd(maleHeightMean,maleHeightStdDev,[1 1000000]);

maleGreaterThanThresholdHeight = sum(maleHeightSample > thresholdHeight);

%assign maleHeightSample with the percentage of samples in maleHeightSample
% taller than thresholdHeight
percentageTaller = (maleGreaterThanThresholdHeight / 1000000) * 100;

%assign maleTallerHeight with the estimate of the number of US males
%taller than thresholdHeight by multiplying maleUSpopulation with percentageTaller
maleTallerHeight = percentageTaller * maleUSpopulation * 0.01;

end

PLEASE REFER BELOW OUTPUT FROM COMMAND WINDOW

>> EstimateTallmales(90.9)

ans =

47.1751

>>

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote