 # Statistical Hydrology

Subject Engineering MATLAB for Engineering

## Question

1. Using the annual precipitation data at Tucson
a. Compute the 95% and 99% confidence interval for the sample mean for the cases where the variance is known and for the case when it is unknown.
b. Compute the 95% and 99% confidence intervals for the sample variance.
c. Determine the sample size if you want the precision for the Tucson annual precipitation sample mean to be 10%.
d. Compute the Type II error if the true mean is 10% larger than the sample mean
2. Use the annual maximum flows at the Rio Grande at Embudo to:
a. Test the hypothesis that the peaks after 1965 have a different mean than those before that year. Use a confidence level of 5%.
b. Test if the variance has changed in the period 1966-present.

## Solution Preview

This material may consist of step-by-step explanations on how to solve a problem or examples of proper writing, including the use of citations, references, bibliographies, and formatting. This material is made available for the sole purpose of studying and learning - misuse is strictly forbidden.

data = matrix(:,2);
mu = mean(data);
sigma = std(data);
variance = sigma^2;
n = length(data);
sigma_n = sigma/sqrt(n);

%Variance is known -- normal distribution
Z_normal_95 = 1.96;
Z_normal_99 = 2.58;

%Variance is unknown -- t distribution
%Values obtained from t table
Z_t_95 = 2.011;
Z_t_99 = 2.682;

%%%
%%% Problem 1 a)
%%%...

This is only a preview of the solution. Please use the purchase button to see the entire solution

## Related Homework Solutions

Signal Processing \$45.00
Engineering
Matlab
Signal
Processing
Fourier
Transform
Constants
Discrete
Magnitude
Phase
Program
Control of a Magnetic Suspension System \$350.00
Matlab
Control
Magnetic Suspension System
Maglev
Controller
Calculation
Linearization
Engineering
Magnetic Levitation System \$150.00
Magnetic
Levitation
System
Engineering
Matlab
Root
Locus
System
Compensator
Bode
Plots
Matlab Questions \$45.00
Matlab
Mathematics
Computer Science
Variables
Statements
Codes
Expressions
Mean
Standard Deviation
Plots
Lines
Points
Live Chats