Problem 57605. Determine flows of given probability using empirical frequency analysis
Write a function that takes as input n observations of peak streamflow and exceedance probabilities expressed as percentages and returns the flows corresponding to the probabilities.
Use the empirical method of frequency analysis. Sort the observed flows in decreasing order and assign a rank m (e.g., the highest flow has ). If a flow occurs multiple times, assign to that flow the average of the ranks attached to the multiple occurrences. Then compute the exceedance probabilities (in percent) with . Compute the flows corresponding to the requested exceedance probabilities with linear interpolation and return NaN for any probabilities that fall outside the range.
Solution Stats
Solution Comments
Show commentsProblem Recent Solvers5
Suggested Problems
-
258 Solvers
-
Cody Computer Part 4 : Are you a morning Cody player Addicted ?
82 Solvers
-
Right Triangle Side Lengths (Inspired by Project Euler Problem 39)
1868 Solvers
-
Calculate the probability that at least two people in a group share the same birthday.
93 Solvers
-
Find the index of the largest value in any vector X=[4,3,4,5,9,12,0,4.....5]
379 Solvers
More from this Author282
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!