SlideShare a Scribd company logo
Data Analysis Homework
Help
For any help regarding Matlab Assignment Help visit :
https://www.matlabassignmentexperts.com/ ,
Email - info@matlabassignmentexperts.com or call us at - +1 678 648 4277
Matlab Homework Help
Problem 1 Computing joint probabilities and correlations of a time series
Suppose that the total streamflows (in m3
/month) Qt and Qt+1 over two successive
months t and t+1 are related by the following equation:
Qt+1 = 0.6Qt + et t = 1....10
In deterministic applications such time series expressions are solved one step at a
time, starting with a specified value of the initial value of the dependent (in this case,
the initial streamflow Q1) and using a specified series of et values (for t = 10). The
resultis a series of Qt values for t > 1.
When Q1 and the et values are uncertain, we can use the time series equation to derive
the mean, variance, and covariance of the streamflow for t > 1. These give a
probabilistic description of the temporally variable streamflow.
Suppose that the random excitation values e1 … e10 are independent normally
distributed random variables, each with mean 4.0 and variance 0.64 (standard
deviation 0,8). In addition, suppose that the initial streamflow Q1 is normally
distributed with mean 10.0 and variance 1.0 (standard deviation 1.0). Assume that Q1
and the et values are independent.
Use the definitions of variance and correlation to evaluate the correlation between the
two successive streamflows Q2 and Q3. First use the defining time series difference
equation and the properties of the mean and variance of a linear function to find the
means and variances of Q2 and Q3. Then use the same equation to derive an
expression for the covariance and correlation between Q2 and Q3. Are Q2 and Q3
independent? Why? What do you think you would get for the means and variances of
Q9 and Q10. Why?
Use MATLAB to determine the joint probability that Q2 and Q3 are both greater than
12.0. Also, plot a typical replicate of streamflow vs. time.
Some relevant MATLAB functions: normrnd, sum
Computing and Data Analysis for Environmental Applications
Matlab Homework Help
Solution:
To find the mean and variance of Q2 and Q3: Q2 =
0.6Q1 + e1
E[Q2] = 0.6(10) + 4 =10
Q3 = .6(.6Q1 + e1)+e2
E[Q3] = .36(10)+.6(4)+4 =10
If the Qi’s are independent:
Var[a1Q1+a2Q2+…+anQn] = a1
2
Q1
2
+…+an
2
2
Qn
Apply to the difference equations for Q2 and Q3 :
Var[Q2] = (.6)2
(1)2
+(.8)2
= 1
Var[Q3] = (.36)2
(1)2
+(.6)2
(.8)2
+(.8)2
= 1
Find the correlation between Q2 andQ3:
Correl(Q2,Q3) = Cov(Q2,Q3)/(Var[Q2]*Var[Q3])
e2 )(Q2-Q2 )]
Cov(Q2,Q3) = E[(Q2-Q2 )(Q3-Q3 )]
Q3- Q3= 0.6(Q2- Q2 )+(e2 e2 )
E[(Q2-Q2 )( Q3-Q3 )] = 0.6*E[(Q2-Q2 )2
]+E[(e2
= 0.6*Var[Q2] + Cov(Q2,e2)
What is Cov(Q2,e2)?
e2 )]+
Note: Q2- Q2 = 0.6(Q1- Q1)+(e1 e1) Then:
Cov(Q2,e2) = E[ (Q2- Q2 )( e2
E[ (e1 e1 )(e2
e2 )] = 0.6* E[(Q1-Q1)(e2
e2 )]
From the problem statement, Q1 is independent of the ei’s, and the ei’s are independent of each
other, Therefore:
Cov(Q2,e2) = E[ (Q2-Q2 )(e2 e2 )] = 0
And:
Cov(Q2,Q3) = 0.6*Var[Q2]+Cov(Q2,e2) = 0.6*Var[Q2] = 0.6
Correl(Q2,Q3) = 0.6/(1*1) = 0.6
Matlab Homework Help
MATLAB solution to second part of problem.
Problem 2 The Central Limit Theorem(solution)
The Central Limit Theorem states that the distribution of a linear function of independent
random variables approaches the normal distribution as the number of variables increases. Use
MATLAB to demonstrate this by carrying out the following virtual experiment:
Generate a random array of 1000 replicates (rows) each consisting of 32 independent
identically distributed sample values (columns), using one of the non-normal random number
generators provided in the MATLAB statistics toolbox (e.g. exponential, uniform, lognormal,
etc.). Select your own values for all required distributional parameters. Plot histograms and
CDFs (over all replicates) for the sample mean:
N
i 1
1
N
xi
mx
For N= 1, 4, 16, and 64. Plot all 4 CDFs on the same axis using the MATLAB normplot
function, which displays normally distributed data as a straight line.Your CDFs should more
closely approach a straight line as Nincreases, indicating convergence to a normal probability
distribution. The approach to normality should also be apparent in your 4 histograms (try
plotting all four on one page, using the MATLAB subplot function)
Some relevant MATLAB functions: exprnd, chi2rnd, lognrnd, hist,
normplot, mean, subplot.
Matlab Homework Help
% Problem Set 5
% Problem 1
clear all
close all
nrep=1000000;
emu=4;
esigma=.8;
qmu=10;
qsigma=1;
% create a matrix of random e's
emat=normrnd(emu,esigma,nrep,9);
% create the Q matrix
Qmat = zeros(nrep,10);
Qmat(:,1) = normrnd(qmu,qsigma,nrep,1);
for i=2:10
Qmat(:,i) = 0.6*Qmat(:,i-1)+emat(:,i-1);
End
% to get the correlation, need mean of (Q2-Q2bar)*(Q3-Q3bar) divided by
% sqrt [var(Q2)*var(Q3)]
Q2bar=mean(Qmat(:,2));
Q3bar=mean(Qmat(:,3));
numerator = mean((Qmat(:,2)-Q2bar).*(Qmat(:,3)-Q3bar));
denominator = sqrt(var(Qmat(:,2))*var(Qmat(:,3)));
correl = numerator/denominator
covariance = numerator
Matlab Homework Help
vect = Qmat(:,2)>12 & Qmat(:,3)>12;
jointprob = sum(vect)/nrep
plot(1:10,Qmat(5,:),'-*')
xlabel('Time')
ylabel('Streamflow')
title('Sample Streamflow vs. Time')
% One set of results:
%correl =
% 0.6007
% covariance =
% 0.6012 %
jointprob =
% 0.0057
Matlab Homework Help
% Problem Set 5
% Problem 2
clear all
close all
nrep=1000;
mat=exprnd(5,nrep,64);
m1=mat(:,1);
m4=sum(mat(:,1:4),2)/4;
m16=sum(mat(:,1:16),2)/16;
m64=sum(mat(:,1:64),2)/64;
figure
subplot(2,2,1), hist(m1)
subplot(2,2,2), hist(m4)
subplot(2,2,3), hist(m16)
subplot(2,2,4), hist(m64)
figure
normplot(m1)
hold normplot(m4)
normplot(m16)
normplot(m64)
legend('N=1','N=4','N=16','N=32')
Matlab Homework Help

More Related Content

What's hot

Statistics Homework Help
Statistics Homework HelpStatistics Homework Help
Statistics Homework Help
Statistics Homework Helper
 
Machnical Engineering Assignment Help
Machnical Engineering Assignment HelpMachnical Engineering Assignment Help
Machnical Engineering Assignment Help
Matlab Assignment Experts
 
Electrical Engineering Assignment Help
Electrical Engineering Assignment HelpElectrical Engineering Assignment Help
Electrical Engineering Assignment Help
Matlab Assignment Experts
 
Stochastic Processes Homework Help
Stochastic Processes Homework Help Stochastic Processes Homework Help
Stochastic Processes Homework Help
Statistics Assignment Help
 
Solution 3.
Solution 3.Solution 3.
Solution 3.
sansaristic
 
Numerical Methods
Numerical MethodsNumerical Methods
Numerical Methods
ESUG
 
5.1 greedy 03
5.1 greedy 035.1 greedy 03
5.1 greedy 03
Krish_ver2
 
Computer Science Assignment Help
Computer Science Assignment Help Computer Science Assignment Help
Computer Science Assignment Help
Programming Homework Help
 
Environmental Engineering Assignment Help
Environmental Engineering Assignment HelpEnvironmental Engineering Assignment Help
Environmental Engineering Assignment Help
Matlab Assignment Experts
 
Signal Processing Assignment Help
Signal Processing Assignment HelpSignal Processing Assignment Help
Signal Processing Assignment Help
Matlab Assignment Experts
 
Greedy Algorithms with examples' b-18298
Greedy Algorithms with examples'  b-18298Greedy Algorithms with examples'  b-18298
Greedy Algorithms with examples' b-18298
LGS, GBHS&IC, University Of South-Asia, TARA-Technologies
 
Assignment 2 daa
Assignment 2 daaAssignment 2 daa
Assignment 2 daa
gaurav201196
 
Digital Signal Processing Assignment Help
Digital Signal Processing Assignment HelpDigital Signal Processing Assignment Help
Digital Signal Processing Assignment Help
Matlab Assignment Experts
 
Answers withexplanations
Answers withexplanationsAnswers withexplanations
Answers withexplanations
Gopi Saiteja
 
5.1 greedy
5.1 greedy5.1 greedy
5.1 greedy
Krish_ver2
 
algorithm Unit 4
algorithm Unit 4 algorithm Unit 4
algorithm Unit 4
Monika Choudhery
 
Ms nikita greedy agorithm
Ms nikita greedy agorithmMs nikita greedy agorithm
Ms nikita greedy agorithm
Nikitagupta123
 
Algorithm chapter 9
Algorithm chapter 9Algorithm chapter 9
Algorithm chapter 9
chidabdu
 
Ee693 questionshomework
Ee693 questionshomeworkEe693 questionshomework
Ee693 questionshomework
Gopi Saiteja
 
DSP System Homework Help
DSP System Homework HelpDSP System Homework Help
DSP System Homework Help
Matlab Assignment Experts
 

What's hot (20)

Statistics Homework Help
Statistics Homework HelpStatistics Homework Help
Statistics Homework Help
 
Machnical Engineering Assignment Help
Machnical Engineering Assignment HelpMachnical Engineering Assignment Help
Machnical Engineering Assignment Help
 
Electrical Engineering Assignment Help
Electrical Engineering Assignment HelpElectrical Engineering Assignment Help
Electrical Engineering Assignment Help
 
Stochastic Processes Homework Help
Stochastic Processes Homework Help Stochastic Processes Homework Help
Stochastic Processes Homework Help
 
Solution 3.
Solution 3.Solution 3.
Solution 3.
 
Numerical Methods
Numerical MethodsNumerical Methods
Numerical Methods
 
5.1 greedy 03
5.1 greedy 035.1 greedy 03
5.1 greedy 03
 
Computer Science Assignment Help
Computer Science Assignment Help Computer Science Assignment Help
Computer Science Assignment Help
 
Environmental Engineering Assignment Help
Environmental Engineering Assignment HelpEnvironmental Engineering Assignment Help
Environmental Engineering Assignment Help
 
Signal Processing Assignment Help
Signal Processing Assignment HelpSignal Processing Assignment Help
Signal Processing Assignment Help
 
Greedy Algorithms with examples' b-18298
Greedy Algorithms with examples'  b-18298Greedy Algorithms with examples'  b-18298
Greedy Algorithms with examples' b-18298
 
Assignment 2 daa
Assignment 2 daaAssignment 2 daa
Assignment 2 daa
 
Digital Signal Processing Assignment Help
Digital Signal Processing Assignment HelpDigital Signal Processing Assignment Help
Digital Signal Processing Assignment Help
 
Answers withexplanations
Answers withexplanationsAnswers withexplanations
Answers withexplanations
 
5.1 greedy
5.1 greedy5.1 greedy
5.1 greedy
 
algorithm Unit 4
algorithm Unit 4 algorithm Unit 4
algorithm Unit 4
 
Ms nikita greedy agorithm
Ms nikita greedy agorithmMs nikita greedy agorithm
Ms nikita greedy agorithm
 
Algorithm chapter 9
Algorithm chapter 9Algorithm chapter 9
Algorithm chapter 9
 
Ee693 questionshomework
Ee693 questionshomeworkEe693 questionshomework
Ee693 questionshomework
 
DSP System Homework Help
DSP System Homework HelpDSP System Homework Help
DSP System Homework Help
 

Similar to Data Analysis Homework Help

Quantum algorithm for solving linear systems of equations
 Quantum algorithm for solving linear systems of equations Quantum algorithm for solving linear systems of equations
Quantum algorithm for solving linear systems of equations
XequeMateShannon
 
Statistics lab 1
Statistics lab 1Statistics lab 1
Statistics lab 1
University of Salerno
 
DSP_FOEHU - MATLAB 01 - Discrete Time Signals and Systems
DSP_FOEHU - MATLAB 01 - Discrete Time Signals and SystemsDSP_FOEHU - MATLAB 01 - Discrete Time Signals and Systems
DSP_FOEHU - MATLAB 01 - Discrete Time Signals and Systems
Amr E. Mohamed
 
Linear regression [Theory and Application (In physics point of view) using py...
Linear regression [Theory and Application (In physics point of view) using py...Linear regression [Theory and Application (In physics point of view) using py...
Linear regression [Theory and Application (In physics point of view) using py...
ANIRBANMAJUMDAR18
 
Introduction to R
Introduction to RIntroduction to R
Introduction to R
University of Salerno
 
MATLAB
MATLABMATLAB
MATLAB
svati sharma
 
tw1979 Exercise 1 Report
tw1979 Exercise 1 Reporttw1979 Exercise 1 Report
tw1979 Exercise 1 Report
Thomas Wigg
 
Advanced Modularity Optimization Assignment Help
Advanced Modularity Optimization Assignment HelpAdvanced Modularity Optimization Assignment Help
Advanced Modularity Optimization Assignment Help
Computer Network Assignment Help
 
Klt
KltKlt
Setting linear algebra problems
Setting linear algebra problemsSetting linear algebra problems
Setting linear algebra problems
JB Online
 
Basic MATLAB-Presentation.pptx
Basic MATLAB-Presentation.pptxBasic MATLAB-Presentation.pptx
Basic MATLAB-Presentation.pptx
PremanandS3
 
Matlab for marketing people
Matlab for marketing peopleMatlab for marketing people
Matlab for marketing people
Toshiaki Takeuchi
 
An Introduction to MATLAB with Worked Examples
An Introduction to MATLAB with Worked ExamplesAn Introduction to MATLAB with Worked Examples
An Introduction to MATLAB with Worked Examples
eAssessment in Practice Symposium
 
Computer Science Exam Help
Computer Science Exam Help Computer Science Exam Help
Computer Science Exam Help
Programming Exam Help
 
Chi-squared Goodness of Fit Test Project Overview and.docx
Chi-squared Goodness of Fit Test Project  Overview and.docxChi-squared Goodness of Fit Test Project  Overview and.docx
Chi-squared Goodness of Fit Test Project Overview and.docx
mccormicknadine86
 
Chi-squared Goodness of Fit Test Project Overview and.docx
Chi-squared Goodness of Fit Test Project  Overview and.docxChi-squared Goodness of Fit Test Project  Overview and.docx
Chi-squared Goodness of Fit Test Project Overview and.docx
bissacr
 
Programming in python
Programming in pythonProgramming in python
Programming in python
Ivan Rojas
 
from_data_to_differential_equations.ppt
from_data_to_differential_equations.pptfrom_data_to_differential_equations.ppt
from_data_to_differential_equations.ppt
ashutoshvb1
 
Matlab intro notes
Matlab intro notesMatlab intro notes
Matlab intro notes
pawanss
 
EPE821_Lecture3.pptx
EPE821_Lecture3.pptxEPE821_Lecture3.pptx
EPE821_Lecture3.pptx
Ihtisham Uddin
 

Similar to Data Analysis Homework Help (20)

Quantum algorithm for solving linear systems of equations
 Quantum algorithm for solving linear systems of equations Quantum algorithm for solving linear systems of equations
Quantum algorithm for solving linear systems of equations
 
Statistics lab 1
Statistics lab 1Statistics lab 1
Statistics lab 1
 
DSP_FOEHU - MATLAB 01 - Discrete Time Signals and Systems
DSP_FOEHU - MATLAB 01 - Discrete Time Signals and SystemsDSP_FOEHU - MATLAB 01 - Discrete Time Signals and Systems
DSP_FOEHU - MATLAB 01 - Discrete Time Signals and Systems
 
Linear regression [Theory and Application (In physics point of view) using py...
Linear regression [Theory and Application (In physics point of view) using py...Linear regression [Theory and Application (In physics point of view) using py...
Linear regression [Theory and Application (In physics point of view) using py...
 
Introduction to R
Introduction to RIntroduction to R
Introduction to R
 
MATLAB
MATLABMATLAB
MATLAB
 
tw1979 Exercise 1 Report
tw1979 Exercise 1 Reporttw1979 Exercise 1 Report
tw1979 Exercise 1 Report
 
Advanced Modularity Optimization Assignment Help
Advanced Modularity Optimization Assignment HelpAdvanced Modularity Optimization Assignment Help
Advanced Modularity Optimization Assignment Help
 
Klt
KltKlt
Klt
 
Setting linear algebra problems
Setting linear algebra problemsSetting linear algebra problems
Setting linear algebra problems
 
Basic MATLAB-Presentation.pptx
Basic MATLAB-Presentation.pptxBasic MATLAB-Presentation.pptx
Basic MATLAB-Presentation.pptx
 
Matlab for marketing people
Matlab for marketing peopleMatlab for marketing people
Matlab for marketing people
 
An Introduction to MATLAB with Worked Examples
An Introduction to MATLAB with Worked ExamplesAn Introduction to MATLAB with Worked Examples
An Introduction to MATLAB with Worked Examples
 
Computer Science Exam Help
Computer Science Exam Help Computer Science Exam Help
Computer Science Exam Help
 
Chi-squared Goodness of Fit Test Project Overview and.docx
Chi-squared Goodness of Fit Test Project  Overview and.docxChi-squared Goodness of Fit Test Project  Overview and.docx
Chi-squared Goodness of Fit Test Project Overview and.docx
 
Chi-squared Goodness of Fit Test Project Overview and.docx
Chi-squared Goodness of Fit Test Project  Overview and.docxChi-squared Goodness of Fit Test Project  Overview and.docx
Chi-squared Goodness of Fit Test Project Overview and.docx
 
Programming in python
Programming in pythonProgramming in python
Programming in python
 
from_data_to_differential_equations.ppt
from_data_to_differential_equations.pptfrom_data_to_differential_equations.ppt
from_data_to_differential_equations.ppt
 
Matlab intro notes
Matlab intro notesMatlab intro notes
Matlab intro notes
 
EPE821_Lecture3.pptx
EPE821_Lecture3.pptxEPE821_Lecture3.pptx
EPE821_Lecture3.pptx
 

More from Matlab Assignment Experts

🚀 Need Expert MATLAB Assignment Help? Look No Further! 📊
🚀 Need Expert MATLAB Assignment Help? Look No Further! 📊🚀 Need Expert MATLAB Assignment Help? Look No Further! 📊
🚀 Need Expert MATLAB Assignment Help? Look No Further! 📊
Matlab Assignment Experts
 
Matlab Assignment Help
Matlab Assignment HelpMatlab Assignment Help
Matlab Assignment Help
Matlab Assignment Experts
 
Matlab Assignment Help
Matlab Assignment HelpMatlab Assignment Help
Matlab Assignment Help
Matlab Assignment Experts
 
Matlab Assignment Help
Matlab Assignment HelpMatlab Assignment Help
Matlab Assignment Help
Matlab Assignment Experts
 
MAtlab Assignment Help
MAtlab Assignment HelpMAtlab Assignment Help
MAtlab Assignment Help
Matlab Assignment Experts
 
Matlab Assignment Help
Matlab Assignment HelpMatlab Assignment Help
Matlab Assignment Help
Matlab Assignment Experts
 
Matlab Assignment Help
Matlab Assignment HelpMatlab Assignment Help
Matlab Assignment Help
Matlab Assignment Experts
 
Matlab Homework Help
Matlab Homework HelpMatlab Homework Help
Matlab Homework Help
Matlab Assignment Experts
 
MATLAB Assignment Help
MATLAB Assignment HelpMATLAB Assignment Help
MATLAB Assignment Help
Matlab Assignment Experts
 
Matlab Homework Help
Matlab Homework HelpMatlab Homework Help
Matlab Homework Help
Matlab Assignment Experts
 
Matlab Assignment Help
Matlab Assignment HelpMatlab Assignment Help
Matlab Assignment Help
Matlab Assignment Experts
 
Computer vision (Matlab)
Computer vision (Matlab)Computer vision (Matlab)
Computer vision (Matlab)
Matlab Assignment Experts
 
Online Matlab Assignment Help
Online Matlab Assignment HelpOnline Matlab Assignment Help
Online Matlab Assignment Help
Matlab Assignment Experts
 
Modelling & Simulation Assignment Help
Modelling & Simulation Assignment HelpModelling & Simulation Assignment Help
Modelling & Simulation Assignment Help
Matlab Assignment Experts
 
Mechanical Assignment Help
Mechanical Assignment HelpMechanical Assignment Help
Mechanical Assignment Help
Matlab Assignment Experts
 
CURVE FITING ASSIGNMENT HELP
CURVE FITING ASSIGNMENT HELPCURVE FITING ASSIGNMENT HELP
CURVE FITING ASSIGNMENT HELP
Matlab Assignment Experts
 
Design and Manufacturing Homework Help
Design and Manufacturing Homework HelpDesign and Manufacturing Homework Help
Design and Manufacturing Homework Help
Matlab Assignment Experts
 
Digital Image Processing Assignment Help
Digital Image Processing Assignment HelpDigital Image Processing Assignment Help
Digital Image Processing Assignment Help
Matlab Assignment Experts
 
Signals and Systems Assignment Help
Signals and Systems Assignment HelpSignals and Systems Assignment Help
Signals and Systems Assignment Help
Matlab Assignment Experts
 
Signal Processing Assignment Help
Signal Processing Assignment HelpSignal Processing Assignment Help
Signal Processing Assignment Help
Matlab Assignment Experts
 

More from Matlab Assignment Experts (20)

🚀 Need Expert MATLAB Assignment Help? Look No Further! 📊
🚀 Need Expert MATLAB Assignment Help? Look No Further! 📊🚀 Need Expert MATLAB Assignment Help? Look No Further! 📊
🚀 Need Expert MATLAB Assignment Help? Look No Further! 📊
 
Matlab Assignment Help
Matlab Assignment HelpMatlab Assignment Help
Matlab Assignment Help
 
Matlab Assignment Help
Matlab Assignment HelpMatlab Assignment Help
Matlab Assignment Help
 
Matlab Assignment Help
Matlab Assignment HelpMatlab Assignment Help
Matlab Assignment Help
 
MAtlab Assignment Help
MAtlab Assignment HelpMAtlab Assignment Help
MAtlab Assignment Help
 
Matlab Assignment Help
Matlab Assignment HelpMatlab Assignment Help
Matlab Assignment Help
 
Matlab Assignment Help
Matlab Assignment HelpMatlab Assignment Help
Matlab Assignment Help
 
Matlab Homework Help
Matlab Homework HelpMatlab Homework Help
Matlab Homework Help
 
MATLAB Assignment Help
MATLAB Assignment HelpMATLAB Assignment Help
MATLAB Assignment Help
 
Matlab Homework Help
Matlab Homework HelpMatlab Homework Help
Matlab Homework Help
 
Matlab Assignment Help
Matlab Assignment HelpMatlab Assignment Help
Matlab Assignment Help
 
Computer vision (Matlab)
Computer vision (Matlab)Computer vision (Matlab)
Computer vision (Matlab)
 
Online Matlab Assignment Help
Online Matlab Assignment HelpOnline Matlab Assignment Help
Online Matlab Assignment Help
 
Modelling & Simulation Assignment Help
Modelling & Simulation Assignment HelpModelling & Simulation Assignment Help
Modelling & Simulation Assignment Help
 
Mechanical Assignment Help
Mechanical Assignment HelpMechanical Assignment Help
Mechanical Assignment Help
 
CURVE FITING ASSIGNMENT HELP
CURVE FITING ASSIGNMENT HELPCURVE FITING ASSIGNMENT HELP
CURVE FITING ASSIGNMENT HELP
 
Design and Manufacturing Homework Help
Design and Manufacturing Homework HelpDesign and Manufacturing Homework Help
Design and Manufacturing Homework Help
 
Digital Image Processing Assignment Help
Digital Image Processing Assignment HelpDigital Image Processing Assignment Help
Digital Image Processing Assignment Help
 
Signals and Systems Assignment Help
Signals and Systems Assignment HelpSignals and Systems Assignment Help
Signals and Systems Assignment Help
 
Signal Processing Assignment Help
Signal Processing Assignment HelpSignal Processing Assignment Help
Signal Processing Assignment Help
 

Recently uploaded

A Free 200-Page eBook ~ Brain and Mind Exercise.pptx
A Free 200-Page eBook ~ Brain and Mind Exercise.pptxA Free 200-Page eBook ~ Brain and Mind Exercise.pptx
A Free 200-Page eBook ~ Brain and Mind Exercise.pptx
OH TEIK BIN
 
How to Download & Install Module From the Odoo App Store in Odoo 17
How to Download & Install Module From the Odoo App Store in Odoo 17How to Download & Install Module From the Odoo App Store in Odoo 17
How to Download & Install Module From the Odoo App Store in Odoo 17
Celine George
 
Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)
nitinpv4ai
 
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
TechSoup
 
Standardized tool for Intelligence test.
Standardized tool for Intelligence test.Standardized tool for Intelligence test.
Standardized tool for Intelligence test.
deepaannamalai16
 
How Barcodes Can Be Leveraged Within Odoo 17
How Barcodes Can Be Leveraged Within Odoo 17How Barcodes Can Be Leveraged Within Odoo 17
How Barcodes Can Be Leveraged Within Odoo 17
Celine George
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
Himanshu Rai
 
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
National Information Standards Organization (NISO)
 
How to Fix [Errno 98] address already in use
How to Fix [Errno 98] address already in useHow to Fix [Errno 98] address already in use
How to Fix [Errno 98] address already in use
Celine George
 
SWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptxSWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptx
zuzanka
 
CIS 4200-02 Group 1 Final Project Report (1).pdf
CIS 4200-02 Group 1 Final Project Report (1).pdfCIS 4200-02 Group 1 Final Project Report (1).pdf
CIS 4200-02 Group 1 Final Project Report (1).pdf
blueshagoo1
 
How to Predict Vendor Bill Product in Odoo 17
How to Predict Vendor Bill Product in Odoo 17How to Predict Vendor Bill Product in Odoo 17
How to Predict Vendor Bill Product in Odoo 17
Celine George
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
iammrhaywood
 
How to Manage Reception Report in Odoo 17
How to Manage Reception Report in Odoo 17How to Manage Reception Report in Odoo 17
How to Manage Reception Report in Odoo 17
Celine George
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
TechSoup
 
HYPERTENSION - SLIDE SHARE PRESENTATION.
HYPERTENSION - SLIDE SHARE PRESENTATION.HYPERTENSION - SLIDE SHARE PRESENTATION.
HYPERTENSION - SLIDE SHARE PRESENTATION.
deepaannamalai16
 
MDP on air pollution of class 8 year 2024-2025
MDP on air pollution of class 8 year 2024-2025MDP on air pollution of class 8 year 2024-2025
MDP on air pollution of class 8 year 2024-2025
khuleseema60
 
Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10
nitinpv4ai
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
Jyoti Chand
 
Temple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation resultsTemple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation results
Krassimira Luka
 

Recently uploaded (20)

A Free 200-Page eBook ~ Brain and Mind Exercise.pptx
A Free 200-Page eBook ~ Brain and Mind Exercise.pptxA Free 200-Page eBook ~ Brain and Mind Exercise.pptx
A Free 200-Page eBook ~ Brain and Mind Exercise.pptx
 
How to Download & Install Module From the Odoo App Store in Odoo 17
How to Download & Install Module From the Odoo App Store in Odoo 17How to Download & Install Module From the Odoo App Store in Odoo 17
How to Download & Install Module From the Odoo App Store in Odoo 17
 
Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)Oliver Asks for More by Charles Dickens (9)
Oliver Asks for More by Charles Dickens (9)
 
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
Elevate Your Nonprofit's Online Presence_ A Guide to Effective SEO Strategies...
 
Standardized tool for Intelligence test.
Standardized tool for Intelligence test.Standardized tool for Intelligence test.
Standardized tool for Intelligence test.
 
How Barcodes Can Be Leveraged Within Odoo 17
How Barcodes Can Be Leveraged Within Odoo 17How Barcodes Can Be Leveraged Within Odoo 17
How Barcodes Can Be Leveraged Within Odoo 17
 
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem studentsRHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
RHEOLOGY Physical pharmaceutics-II notes for B.pharm 4th sem students
 
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
Jemison, MacLaughlin, and Majumder "Broadening Pathways for Editors and Authors"
 
How to Fix [Errno 98] address already in use
How to Fix [Errno 98] address already in useHow to Fix [Errno 98] address already in use
How to Fix [Errno 98] address already in use
 
SWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptxSWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptx
 
CIS 4200-02 Group 1 Final Project Report (1).pdf
CIS 4200-02 Group 1 Final Project Report (1).pdfCIS 4200-02 Group 1 Final Project Report (1).pdf
CIS 4200-02 Group 1 Final Project Report (1).pdf
 
How to Predict Vendor Bill Product in Odoo 17
How to Predict Vendor Bill Product in Odoo 17How to Predict Vendor Bill Product in Odoo 17
How to Predict Vendor Bill Product in Odoo 17
 
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptxNEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
NEWSPAPERS - QUESTION 1 - REVISION POWERPOINT.pptx
 
How to Manage Reception Report in Odoo 17
How to Manage Reception Report in Odoo 17How to Manage Reception Report in Odoo 17
How to Manage Reception Report in Odoo 17
 
Leveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit InnovationLeveraging Generative AI to Drive Nonprofit Innovation
Leveraging Generative AI to Drive Nonprofit Innovation
 
HYPERTENSION - SLIDE SHARE PRESENTATION.
HYPERTENSION - SLIDE SHARE PRESENTATION.HYPERTENSION - SLIDE SHARE PRESENTATION.
HYPERTENSION - SLIDE SHARE PRESENTATION.
 
MDP on air pollution of class 8 year 2024-2025
MDP on air pollution of class 8 year 2024-2025MDP on air pollution of class 8 year 2024-2025
MDP on air pollution of class 8 year 2024-2025
 
Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
 
Temple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation resultsTemple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation results
 

Data Analysis Homework Help

  • 1. Data Analysis Homework Help For any help regarding Matlab Assignment Help visit : https://www.matlabassignmentexperts.com/ , Email - info@matlabassignmentexperts.com or call us at - +1 678 648 4277 Matlab Homework Help
  • 2. Problem 1 Computing joint probabilities and correlations of a time series Suppose that the total streamflows (in m3 /month) Qt and Qt+1 over two successive months t and t+1 are related by the following equation: Qt+1 = 0.6Qt + et t = 1....10 In deterministic applications such time series expressions are solved one step at a time, starting with a specified value of the initial value of the dependent (in this case, the initial streamflow Q1) and using a specified series of et values (for t = 10). The resultis a series of Qt values for t > 1. When Q1 and the et values are uncertain, we can use the time series equation to derive the mean, variance, and covariance of the streamflow for t > 1. These give a probabilistic description of the temporally variable streamflow. Suppose that the random excitation values e1 … e10 are independent normally distributed random variables, each with mean 4.0 and variance 0.64 (standard deviation 0,8). In addition, suppose that the initial streamflow Q1 is normally distributed with mean 10.0 and variance 1.0 (standard deviation 1.0). Assume that Q1 and the et values are independent. Use the definitions of variance and correlation to evaluate the correlation between the two successive streamflows Q2 and Q3. First use the defining time series difference equation and the properties of the mean and variance of a linear function to find the means and variances of Q2 and Q3. Then use the same equation to derive an expression for the covariance and correlation between Q2 and Q3. Are Q2 and Q3 independent? Why? What do you think you would get for the means and variances of Q9 and Q10. Why? Use MATLAB to determine the joint probability that Q2 and Q3 are both greater than 12.0. Also, plot a typical replicate of streamflow vs. time. Some relevant MATLAB functions: normrnd, sum Computing and Data Analysis for Environmental Applications Matlab Homework Help
  • 3. Solution: To find the mean and variance of Q2 and Q3: Q2 = 0.6Q1 + e1 E[Q2] = 0.6(10) + 4 =10 Q3 = .6(.6Q1 + e1)+e2 E[Q3] = .36(10)+.6(4)+4 =10 If the Qi’s are independent: Var[a1Q1+a2Q2+…+anQn] = a1 2 Q1 2 +…+an 2 2 Qn Apply to the difference equations for Q2 and Q3 : Var[Q2] = (.6)2 (1)2 +(.8)2 = 1 Var[Q3] = (.36)2 (1)2 +(.6)2 (.8)2 +(.8)2 = 1 Find the correlation between Q2 andQ3: Correl(Q2,Q3) = Cov(Q2,Q3)/(Var[Q2]*Var[Q3]) e2 )(Q2-Q2 )] Cov(Q2,Q3) = E[(Q2-Q2 )(Q3-Q3 )] Q3- Q3= 0.6(Q2- Q2 )+(e2 e2 ) E[(Q2-Q2 )( Q3-Q3 )] = 0.6*E[(Q2-Q2 )2 ]+E[(e2 = 0.6*Var[Q2] + Cov(Q2,e2) What is Cov(Q2,e2)? e2 )]+ Note: Q2- Q2 = 0.6(Q1- Q1)+(e1 e1) Then: Cov(Q2,e2) = E[ (Q2- Q2 )( e2 E[ (e1 e1 )(e2 e2 )] = 0.6* E[(Q1-Q1)(e2 e2 )] From the problem statement, Q1 is independent of the ei’s, and the ei’s are independent of each other, Therefore: Cov(Q2,e2) = E[ (Q2-Q2 )(e2 e2 )] = 0 And: Cov(Q2,Q3) = 0.6*Var[Q2]+Cov(Q2,e2) = 0.6*Var[Q2] = 0.6 Correl(Q2,Q3) = 0.6/(1*1) = 0.6 Matlab Homework Help
  • 4. MATLAB solution to second part of problem. Problem 2 The Central Limit Theorem(solution) The Central Limit Theorem states that the distribution of a linear function of independent random variables approaches the normal distribution as the number of variables increases. Use MATLAB to demonstrate this by carrying out the following virtual experiment: Generate a random array of 1000 replicates (rows) each consisting of 32 independent identically distributed sample values (columns), using one of the non-normal random number generators provided in the MATLAB statistics toolbox (e.g. exponential, uniform, lognormal, etc.). Select your own values for all required distributional parameters. Plot histograms and CDFs (over all replicates) for the sample mean: N i 1 1 N xi mx For N= 1, 4, 16, and 64. Plot all 4 CDFs on the same axis using the MATLAB normplot function, which displays normally distributed data as a straight line.Your CDFs should more closely approach a straight line as Nincreases, indicating convergence to a normal probability distribution. The approach to normality should also be apparent in your 4 histograms (try plotting all four on one page, using the MATLAB subplot function) Some relevant MATLAB functions: exprnd, chi2rnd, lognrnd, hist, normplot, mean, subplot. Matlab Homework Help
  • 5. % Problem Set 5 % Problem 1 clear all close all nrep=1000000; emu=4; esigma=.8; qmu=10; qsigma=1; % create a matrix of random e's emat=normrnd(emu,esigma,nrep,9); % create the Q matrix Qmat = zeros(nrep,10); Qmat(:,1) = normrnd(qmu,qsigma,nrep,1); for i=2:10 Qmat(:,i) = 0.6*Qmat(:,i-1)+emat(:,i-1); End % to get the correlation, need mean of (Q2-Q2bar)*(Q3-Q3bar) divided by % sqrt [var(Q2)*var(Q3)] Q2bar=mean(Qmat(:,2)); Q3bar=mean(Qmat(:,3)); numerator = mean((Qmat(:,2)-Q2bar).*(Qmat(:,3)-Q3bar)); denominator = sqrt(var(Qmat(:,2))*var(Qmat(:,3))); correl = numerator/denominator covariance = numerator Matlab Homework Help
  • 6. vect = Qmat(:,2)>12 & Qmat(:,3)>12; jointprob = sum(vect)/nrep plot(1:10,Qmat(5,:),'-*') xlabel('Time') ylabel('Streamflow') title('Sample Streamflow vs. Time') % One set of results: %correl = % 0.6007 % covariance = % 0.6012 % jointprob = % 0.0057 Matlab Homework Help
  • 7. % Problem Set 5 % Problem 2 clear all close all nrep=1000; mat=exprnd(5,nrep,64); m1=mat(:,1); m4=sum(mat(:,1:4),2)/4; m16=sum(mat(:,1:16),2)/16; m64=sum(mat(:,1:64),2)/64; figure subplot(2,2,1), hist(m1) subplot(2,2,2), hist(m4) subplot(2,2,3), hist(m16) subplot(2,2,4), hist(m64) figure normplot(m1) hold normplot(m4) normplot(m16) normplot(m64) legend('N=1','N=4','N=16','N=32') Matlab Homework Help