Question: 4 Predicting mean river water flow We know that the height is randomly distributed and can be mod - elled with an exponential distribution with

4 Predicting mean river water flow
We know that the height is randomly distributed and can be mod-
elled with an exponential distribution with a mean of 0.8 metres.
Remember to set your seed
for consistent results
Simulate a year's worth of daily heights
Hence, calculate a year's worth daily river flows.
Calculate the expected mean daily river flow using your sim-
ulated data.
For this section, you will need to write a script and submit it to
matlab grader. A template to ensure that it works fine is given
below, this is also on Matlab GRAder - see link in canvas.K}=\mathrm{ ;
L = ;
H}=\mathrm{ ;
% We will simulate one years worth of data
rng(2022)% Set seed to repeatable.
H}=\mathrm{ ;
% Next we calculate the associated river water flows.
Q = calculateRiverFlow(L, K, H);
% Calculate mean river flow
meanFlow = ;
4 Predicting mean river water flow We know that

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!