SlideShare una empresa de Scribd logo
1 de 8
Computing and Data Analysis for Environmental
Applications/Uncertainty in Engineering
Statistics Assignment Help
For any Statistics related queries, Call us at - +1 678 648 4277
You can mail us at - info@statisticsassignmenthelp.com, or reach us at - https://www.statisticsassignmenthelp.com/
Problem 1
Go to the US census bureau web site at http://www.census.gov/statab/www/ranks.html todownload data giving personal income and other
information by state. To do this click on the “Personal Income Per Person” Excel link on the web site and save an Excel file containing the desired (1999)
income data as well as various other things in your own working directory. Open the file in Excel and copy all lines in column 2: income per capita for
each of the 50 states plus DC. Go into MATLAB and open a new file. Paste the income data in the file and save it as a .txt file. The file should consist of
one column of numbers, with no text. Use the find and replace … option under edit to remove all commas (the commas confuse MATLAB). You can use
another editor if you prefer.
After you have simplified the file in this way save it.
You should write a MATLAB script in a file called census.m to process the census data.To bring the data into MATLAB you can use the load command:
load filename.txt
Now repeat the entire download process for the “Energy Consumption Per Person” link in the census web site, creating a new array called energy in
your script. Pick two
other variables of interest to you from the list provided on this site. In your script create arrays for each of these indicators with appropriate names, just
as you did for income andenergy. Be sure to divide totals by population if you want to compare per capita values.
Now include in your MATLAB script the ability to plot histograms and CDFs for each ofthe four data sets you downloaded from the census site. Also
compute the mean, median,and variance for each data set. Plot a scatter diagram of energy consumption vs. income.Plot two other scatter diagrams of
interest to you, selecting from the variables offered on the web site. Briefly indicate what each of these three scatter diagrams suggest to you.
In your discussion pay particular consideration to outliers that may violate a generaltrend.
0
Be sure to include labels on the plots you produce. The preferred approach is to createthese labels from within the script, by using the xlabel, ylabel,
and title functions (seeMATLAB Help and the example from Recitation 1). Be sure also to turn in the MATLAB output giving the values you calculated for
mean, median, and variance in addition to the plots and your program.
Statistics Assignment Help
% Problem 1
close all
clear all
load income.txt % per capita income in 1996 dollars
load energy.txt % per capita energy use in mil Btu
load fed_aid.txt % per capita federal aid in 1996 dollars
load unemployment.txt % percent unemployment
mean(income)
median(income)
var(income)
mean(energy)
median(energy)
var(energy)
mean(fed_aid)
median(fed_aid) Problem 1
var(fed_aid)
mean(unemployment)
median(unemployment)
var(unemployment)
Statistics Assignment Help
plot histograms and cdf's for each
figure
hist(income,6)
xlabel('Average Per Capita Income in 1996 USD')
ylabel('Number of States in Range')
title('Histogram of Per Capita Income for the 50 States and DC')
figure
cdfplot(income)
xlabel('Average Per Capita Income in 1996 USD')
ylabel('F(income)')
title('Cumulative Distribution Function of Per Capita Income for the 50 States and DC')
figure
hist(energy,6)
xlabel('Per Capita Energy Use in mil Btu')
ylabel('Number of States in Range')
title('Histogram of Per Capita Energy Use for the 50 States and DC')
figure
cdfplot(energy)
xlabel('Per Capita Energy Use in mil Btu')
ylabel('F(energy)')
title('Cumulative Distribution Function of Per Capita Energy Use for the 50 States and DC')
Statistics Assignment Help
figure
hist(fed_aid,5)
xlabel('Per Capita Federal Aid in 1996 USD')
ylabel('Number of States in Range')
title('Histogram of Per Capita Federal Aid for the 50 States and DC')
figure
cdfplot(fed_aid)
xlabel('Per Capita Federal Aid in 1996 USD')
ylabel('F(Aid)')
title('Cumulative Distribution Function of Per Capita Federal Aid for the 50 States and DC')
figure
hist(unemployment,6)
xlabel('Unemployment Rate [%]')
title('Histogram of Unemployment Rate for the 50 States and DC')
figure
cdfplot(unemployment)
xlabel('Unemployment Rate [%]')
ylabel('F(Unemployment)')
title('Cumulative Distribution Function of Unemployment Rate for the 50 States and DC')
Statistics Assignment Help
figure
plot(income,energy,'*')
title('Per Capita Energy Use vs Income')
xlabel('Income [1996 USD]')
ylabel('Energy [mil BTU]')
figure
plot(income,fed_aid,'o')
title('Per Capita Federal Aid vs Income')
xlabel('Income [1996 USD]')
ylabel('Federal Aid [1996 USD]')
figure
plot(income,unemployment,'x')
title('Unemployment Rate vs Per Capita Income')
xlabel('Income [1996 USD]')
ylabel('Unemployment Rate [%]')
Statistics Assignment Help
Problem 2
Write a MATLAB script that computes tidal elevation h (in m) from the following threeterm series:
h(t) = 0.2Sin(0.5w t) + 3.0Sin(w t) + 1.0Sin(2w t)
where w = 2p/24 hr-1. Define a vector time with 1001 values [0. 0.1 0.2 ….. 100.0.] spaced every 0.1 hours from t = 0 to t = 100 hrs. Use the vector
capabilities of the MATLAB sin function to compute a vector of 1001 corresponding tidal elevations with asingle equation. Read the MATLAB help
discussion of the sin(X) function to make surethat you understand how it provides element-wise evaluations of vector arguments. Plot the tidal elevations
from vs. time. Label both axes and include a plot title.
Statistics Assignment Help
Problem 2
close all
clear all
compute tidal elevation
omega=2*pi/24; % [hr^-1]
time=0:.1:100;
h=0.2*sin(0.5*omega*time)+3*sin(omega*time)+sin(2*omega*time);
figure
plot(time,h)
title('Tidal Elevation vs Time')
xlabel('Time [hr]')
ylabel('Tidal Elevation [m]')
Statistics Assignment Help

Más contenido relacionado

La actualidad más candente

Variables in matlab
Variables in matlabVariables in matlab
Variables in matlab
TUOS-Sam
 
Image Processing Homework 1
Image Processing Homework 1Image Processing Homework 1
Image Processing Homework 1
Joshua Smith
 

La actualidad más candente (19)

R studio
R studio R studio
R studio
 
Introduction to R Graphics with ggplot2
Introduction to R Graphics with ggplot2Introduction to R Graphics with ggplot2
Introduction to R Graphics with ggplot2
 
R9
R9R9
R9
 
Functions
FunctionsFunctions
Functions
 
QMC: Undergraduate Workshop, Tutorial on 'R' Software - Yawen Guan, Feb 26, 2...
QMC: Undergraduate Workshop, Tutorial on 'R' Software - Yawen Guan, Feb 26, 2...QMC: Undergraduate Workshop, Tutorial on 'R' Software - Yawen Guan, Feb 26, 2...
QMC: Undergraduate Workshop, Tutorial on 'R' Software - Yawen Guan, Feb 26, 2...
 
Data visualization with R
Data visualization with RData visualization with R
Data visualization with R
 
Assignment 1
Assignment 1Assignment 1
Assignment 1
 
Variables in matlab
Variables in matlabVariables in matlab
Variables in matlab
 
Matlab on basic mathematics
Matlab on basic mathematicsMatlab on basic mathematics
Matlab on basic mathematics
 
NCCU: Statistics in the Criminal Justice System, R basics and Simulation - Pr...
NCCU: Statistics in the Criminal Justice System, R basics and Simulation - Pr...NCCU: Statistics in the Criminal Justice System, R basics and Simulation - Pr...
NCCU: Statistics in the Criminal Justice System, R basics and Simulation - Pr...
 
Maple
MapleMaple
Maple
 
2 simple regression
2   simple regression2   simple regression
2 simple regression
 
Unit 2.1
Unit 2.1Unit 2.1
Unit 2.1
 
Matlab plotting
Matlab plottingMatlab plotting
Matlab plotting
 
Image Processing Homework 1
Image Processing Homework 1Image Processing Homework 1
Image Processing Homework 1
 
Graph Plots in Matlab
Graph Plots in MatlabGraph Plots in Matlab
Graph Plots in Matlab
 
Principal Component Analysis
Principal Component AnalysisPrincipal Component Analysis
Principal Component Analysis
 
2. data types, variables and operators
2. data types, variables and operators2. data types, variables and operators
2. data types, variables and operators
 
133467 p2a5
133467 p2a5133467 p2a5
133467 p2a5
 

Similar a Computing and Data Analysis for Environmental Applications

Week 2 Project - STAT 3001Student Name Type your name here.docx
Week 2 Project - STAT 3001Student Name Type your name here.docxWeek 2 Project - STAT 3001Student Name Type your name here.docx
Week 2 Project - STAT 3001Student Name Type your name here.docx
cockekeshia
 
Sheet1 Intermediate Business StatisticsExcel Exercise - Enter your.docx
Sheet1 Intermediate Business StatisticsExcel Exercise - Enter your.docxSheet1 Intermediate Business StatisticsExcel Exercise - Enter your.docx
Sheet1 Intermediate Business StatisticsExcel Exercise - Enter your.docx
lesleyryder69361
 
Cover PageComplete and copy the following to Word for your cover p.docx
Cover PageComplete and copy the following to Word for your cover p.docxCover PageComplete and copy the following to Word for your cover p.docx
Cover PageComplete and copy the following to Word for your cover p.docx
faithxdunce63732
 
MAT 240 Random Sampling in Excel Tutorial This tutorial wi
MAT 240 Random Sampling in Excel Tutorial This tutorial wiMAT 240 Random Sampling in Excel Tutorial This tutorial wi
MAT 240 Random Sampling in Excel Tutorial This tutorial wi
AbramMartino96
 
MAT 240 Random Sampling in Excel Tutorial This tutorial wi
MAT 240 Random Sampling in Excel Tutorial This tutorial wiMAT 240 Random Sampling in Excel Tutorial This tutorial wi
MAT 240 Random Sampling in Excel Tutorial This tutorial wi
AbramMartino96
 
1. Question #2 - Page # 88, Use data P02_03.xlsx.The file P02_03.docx
1. Question #2 - Page # 88, Use data P02_03.xlsx.The file P02_03.docx1. Question #2 - Page # 88, Use data P02_03.xlsx.The file P02_03.docx
1. Question #2 - Page # 88, Use data P02_03.xlsx.The file P02_03.docx
braycarissa250
 
LabsLab5Lab5_Excel_SH.htmlLab 5 SpreadsheetsLearning Outcomes.docx
LabsLab5Lab5_Excel_SH.htmlLab 5 SpreadsheetsLearning Outcomes.docxLabsLab5Lab5_Excel_SH.htmlLab 5 SpreadsheetsLearning Outcomes.docx
LabsLab5Lab5_Excel_SH.htmlLab 5 SpreadsheetsLearning Outcomes.docx
DIPESH30
 
John MacLean, Supply Chain Manager of the YearPurchasingBy Pau.docx
John MacLean, Supply Chain Manager of the YearPurchasingBy Pau.docxJohn MacLean, Supply Chain Manager of the YearPurchasingBy Pau.docx
John MacLean, Supply Chain Manager of the YearPurchasingBy Pau.docx
vrickens
 

Similar a Computing and Data Analysis for Environmental Applications (20)

Devry bis-155-final-exam-guide-new
Devry bis-155-final-exam-guide-newDevry bis-155-final-exam-guide-new
Devry bis-155-final-exam-guide-new
 
Chapter 2
Chapter 2Chapter 2
Chapter 2
 
Week 2 Project - STAT 3001Student Name Type your name here.docx
Week 2 Project - STAT 3001Student Name Type your name here.docxWeek 2 Project - STAT 3001Student Name Type your name here.docx
Week 2 Project - STAT 3001Student Name Type your name here.docx
 
Devry bis 155 final exam guide (music on demand) new
Devry bis 155 final exam guide (music on demand) newDevry bis 155 final exam guide (music on demand) new
Devry bis 155 final exam guide (music on demand) new
 
Itm310 problem solving #7 complete solutions correct answers key
Itm310 problem solving #7 complete solutions correct answers keyItm310 problem solving #7 complete solutions correct answers key
Itm310 problem solving #7 complete solutions correct answers key
 
Environmental Engineering Assignment Help
Environmental Engineering Assignment HelpEnvironmental Engineering Assignment Help
Environmental Engineering Assignment Help
 
Dervy bis 155 final exam guide music on demand new
Dervy  bis 155 final exam guide  music on demand  newDervy  bis 155 final exam guide  music on demand  new
Dervy bis 155 final exam guide music on demand new
 
Dervy bis-155-final-exam-guide-music-on-demand-new
Dervy bis-155-final-exam-guide-music-on-demand-newDervy bis-155-final-exam-guide-music-on-demand-new
Dervy bis-155-final-exam-guide-music-on-demand-new
 
Sheet1 Intermediate Business StatisticsExcel Exercise - Enter your.docx
Sheet1 Intermediate Business StatisticsExcel Exercise - Enter your.docxSheet1 Intermediate Business StatisticsExcel Exercise - Enter your.docx
Sheet1 Intermediate Business StatisticsExcel Exercise - Enter your.docx
 
Cover PageComplete and copy the following to Word for your cover p.docx
Cover PageComplete and copy the following to Word for your cover p.docxCover PageComplete and copy the following to Word for your cover p.docx
Cover PageComplete and copy the following to Word for your cover p.docx
 
MAT 240 Random Sampling in Excel Tutorial This tutorial wi
MAT 240 Random Sampling in Excel Tutorial This tutorial wiMAT 240 Random Sampling in Excel Tutorial This tutorial wi
MAT 240 Random Sampling in Excel Tutorial This tutorial wi
 
MAT 240 Random Sampling in Excel Tutorial This tutorial wi
MAT 240 Random Sampling in Excel Tutorial This tutorial wiMAT 240 Random Sampling in Excel Tutorial This tutorial wi
MAT 240 Random Sampling in Excel Tutorial This tutorial wi
 
1. Question #2 - Page # 88, Use data P02_03.xlsx.The file P02_03.docx
1. Question #2 - Page # 88, Use data P02_03.xlsx.The file P02_03.docx1. Question #2 - Page # 88, Use data P02_03.xlsx.The file P02_03.docx
1. Question #2 - Page # 88, Use data P02_03.xlsx.The file P02_03.docx
 
Cheat Sheet for Stata v15.00 PDF Complete
Cheat Sheet for Stata v15.00 PDF CompleteCheat Sheet for Stata v15.00 PDF Complete
Cheat Sheet for Stata v15.00 PDF Complete
 
Bis 155 Education Organization / snaptutorial.com
Bis 155 Education Organization / snaptutorial.comBis 155 Education Organization / snaptutorial.com
Bis 155 Education Organization / snaptutorial.com
 
LabsLab5Lab5_Excel_SH.htmlLab 5 SpreadsheetsLearning Outcomes.docx
LabsLab5Lab5_Excel_SH.htmlLab 5 SpreadsheetsLearning Outcomes.docxLabsLab5Lab5_Excel_SH.htmlLab 5 SpreadsheetsLearning Outcomes.docx
LabsLab5Lab5_Excel_SH.htmlLab 5 SpreadsheetsLearning Outcomes.docx
 
Stata Cheat Sheets (all)
Stata Cheat Sheets (all)Stata Cheat Sheets (all)
Stata Cheat Sheets (all)
 
John MacLean, Supply Chain Manager of the YearPurchasingBy Pau.docx
John MacLean, Supply Chain Manager of the YearPurchasingBy Pau.docxJohn MacLean, Supply Chain Manager of the YearPurchasingBy Pau.docx
John MacLean, Supply Chain Manager of the YearPurchasingBy Pau.docx
 
Bis 155 Exceptional Education / snaptutorial.com
Bis 155 Exceptional Education / snaptutorial.comBis 155 Exceptional Education / snaptutorial.com
Bis 155 Exceptional Education / snaptutorial.com
 
Bis 155 Effective Communication / snaptutorial.com
Bis 155  Effective Communication / snaptutorial.comBis 155  Effective Communication / snaptutorial.com
Bis 155 Effective Communication / snaptutorial.com
 

Más de Statistics Assignment Help

Más de Statistics Assignment Help (20)

Get Accurate and Reliable Statistics Assignment Help - Boost Your Grades!
Get Accurate and Reliable Statistics Assignment Help - Boost Your Grades!Get Accurate and Reliable Statistics Assignment Help - Boost Your Grades!
Get Accurate and Reliable Statistics Assignment Help - Boost Your Grades!
 
Statistics Assignment Help
Statistics Assignment HelpStatistics Assignment Help
Statistics Assignment Help
 
Pay For Statistics Assignment
Pay For Statistics AssignmentPay For Statistics Assignment
Pay For Statistics Assignment
 
Probability Assignment Help
Probability Assignment HelpProbability Assignment Help
Probability Assignment Help
 
Data Analysis Assignment Help
Data Analysis Assignment HelpData Analysis Assignment Help
Data Analysis Assignment Help
 
R Programming Assignment Help
R Programming Assignment HelpR Programming Assignment Help
R Programming Assignment Help
 
Hypothesis Assignment Help
Hypothesis Assignment HelpHypothesis Assignment Help
Hypothesis Assignment Help
 
The Data of an Observational Study Designed to Compare the Effectiveness of a...
The Data of an Observational Study Designed to Compare the Effectiveness of a...The Data of an Observational Study Designed to Compare the Effectiveness of a...
The Data of an Observational Study Designed to Compare the Effectiveness of a...
 
T- Test and ANOVA using SPSS Assignment Help
T- Test and ANOVA using SPSS Assignment HelpT- Test and ANOVA using SPSS Assignment Help
T- Test and ANOVA using SPSS Assignment Help
 
Linear Regression Analysis assignment help.ppt
Linear Regression Analysis assignment help.pptLinear Regression Analysis assignment help.ppt
Linear Regression Analysis assignment help.ppt
 
Stata Assignment Help
Stata Assignment HelpStata Assignment Help
Stata Assignment Help
 
MyStataLab Assignment Help
MyStataLab Assignment HelpMyStataLab Assignment Help
MyStataLab Assignment Help
 
Probability and Statistics Assignment Help
Probability and Statistics Assignment HelpProbability and Statistics Assignment Help
Probability and Statistics Assignment Help
 
Mathematical Statistics Assignment Help
Mathematical Statistics Assignment HelpMathematical Statistics Assignment Help
Mathematical Statistics Assignment Help
 
Statistics Assignment Help
Statistics Assignment HelpStatistics Assignment Help
Statistics Assignment Help
 
Statistics Coursework Assignment Help
Statistics Coursework Assignment HelpStatistics Coursework Assignment Help
Statistics Coursework Assignment Help
 
Advanced Statistics Assignment help
Advanced Statistics Assignment helpAdvanced Statistics Assignment help
Advanced Statistics Assignment help
 
Statistics Coursework Help
Statistics Coursework HelpStatistics Coursework Help
Statistics Coursework Help
 
Probabilistic systems assignment help
Probabilistic systems assignment helpProbabilistic systems assignment help
Probabilistic systems assignment help
 
Probabilistic Systems Analysis Assignment Help
Probabilistic Systems Analysis Assignment HelpProbabilistic Systems Analysis Assignment Help
Probabilistic Systems Analysis Assignment Help
 

Último

Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
Chris Hunter
 

Último (20)

Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
Ecological Succession. ( ECOSYSTEM, B. Pharmacy, 1st Year, Sem-II, Environmen...
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 

Computing and Data Analysis for Environmental Applications

  • 1. Computing and Data Analysis for Environmental Applications/Uncertainty in Engineering Statistics Assignment Help For any Statistics related queries, Call us at - +1 678 648 4277 You can mail us at - info@statisticsassignmenthelp.com, or reach us at - https://www.statisticsassignmenthelp.com/
  • 2. Problem 1 Go to the US census bureau web site at http://www.census.gov/statab/www/ranks.html todownload data giving personal income and other information by state. To do this click on the “Personal Income Per Person” Excel link on the web site and save an Excel file containing the desired (1999) income data as well as various other things in your own working directory. Open the file in Excel and copy all lines in column 2: income per capita for each of the 50 states plus DC. Go into MATLAB and open a new file. Paste the income data in the file and save it as a .txt file. The file should consist of one column of numbers, with no text. Use the find and replace … option under edit to remove all commas (the commas confuse MATLAB). You can use another editor if you prefer. After you have simplified the file in this way save it. You should write a MATLAB script in a file called census.m to process the census data.To bring the data into MATLAB you can use the load command: load filename.txt Now repeat the entire download process for the “Energy Consumption Per Person” link in the census web site, creating a new array called energy in your script. Pick two other variables of interest to you from the list provided on this site. In your script create arrays for each of these indicators with appropriate names, just as you did for income andenergy. Be sure to divide totals by population if you want to compare per capita values. Now include in your MATLAB script the ability to plot histograms and CDFs for each ofthe four data sets you downloaded from the census site. Also compute the mean, median,and variance for each data set. Plot a scatter diagram of energy consumption vs. income.Plot two other scatter diagrams of interest to you, selecting from the variables offered on the web site. Briefly indicate what each of these three scatter diagrams suggest to you. In your discussion pay particular consideration to outliers that may violate a generaltrend. 0 Be sure to include labels on the plots you produce. The preferred approach is to createthese labels from within the script, by using the xlabel, ylabel, and title functions (seeMATLAB Help and the example from Recitation 1). Be sure also to turn in the MATLAB output giving the values you calculated for mean, median, and variance in addition to the plots and your program. Statistics Assignment Help
  • 3. % Problem 1 close all clear all load income.txt % per capita income in 1996 dollars load energy.txt % per capita energy use in mil Btu load fed_aid.txt % per capita federal aid in 1996 dollars load unemployment.txt % percent unemployment mean(income) median(income) var(income) mean(energy) median(energy) var(energy) mean(fed_aid) median(fed_aid) Problem 1 var(fed_aid) mean(unemployment) median(unemployment) var(unemployment) Statistics Assignment Help
  • 4. plot histograms and cdf's for each figure hist(income,6) xlabel('Average Per Capita Income in 1996 USD') ylabel('Number of States in Range') title('Histogram of Per Capita Income for the 50 States and DC') figure cdfplot(income) xlabel('Average Per Capita Income in 1996 USD') ylabel('F(income)') title('Cumulative Distribution Function of Per Capita Income for the 50 States and DC') figure hist(energy,6) xlabel('Per Capita Energy Use in mil Btu') ylabel('Number of States in Range') title('Histogram of Per Capita Energy Use for the 50 States and DC') figure cdfplot(energy) xlabel('Per Capita Energy Use in mil Btu') ylabel('F(energy)') title('Cumulative Distribution Function of Per Capita Energy Use for the 50 States and DC') Statistics Assignment Help
  • 5. figure hist(fed_aid,5) xlabel('Per Capita Federal Aid in 1996 USD') ylabel('Number of States in Range') title('Histogram of Per Capita Federal Aid for the 50 States and DC') figure cdfplot(fed_aid) xlabel('Per Capita Federal Aid in 1996 USD') ylabel('F(Aid)') title('Cumulative Distribution Function of Per Capita Federal Aid for the 50 States and DC') figure hist(unemployment,6) xlabel('Unemployment Rate [%]') title('Histogram of Unemployment Rate for the 50 States and DC') figure cdfplot(unemployment) xlabel('Unemployment Rate [%]') ylabel('F(Unemployment)') title('Cumulative Distribution Function of Unemployment Rate for the 50 States and DC') Statistics Assignment Help
  • 6. figure plot(income,energy,'*') title('Per Capita Energy Use vs Income') xlabel('Income [1996 USD]') ylabel('Energy [mil BTU]') figure plot(income,fed_aid,'o') title('Per Capita Federal Aid vs Income') xlabel('Income [1996 USD]') ylabel('Federal Aid [1996 USD]') figure plot(income,unemployment,'x') title('Unemployment Rate vs Per Capita Income') xlabel('Income [1996 USD]') ylabel('Unemployment Rate [%]') Statistics Assignment Help
  • 7. Problem 2 Write a MATLAB script that computes tidal elevation h (in m) from the following threeterm series: h(t) = 0.2Sin(0.5w t) + 3.0Sin(w t) + 1.0Sin(2w t) where w = 2p/24 hr-1. Define a vector time with 1001 values [0. 0.1 0.2 ….. 100.0.] spaced every 0.1 hours from t = 0 to t = 100 hrs. Use the vector capabilities of the MATLAB sin function to compute a vector of 1001 corresponding tidal elevations with asingle equation. Read the MATLAB help discussion of the sin(X) function to make surethat you understand how it provides element-wise evaluations of vector arguments. Plot the tidal elevations from vs. time. Label both axes and include a plot title. Statistics Assignment Help
  • 8. Problem 2 close all clear all compute tidal elevation omega=2*pi/24; % [hr^-1] time=0:.1:100; h=0.2*sin(0.5*omega*time)+3*sin(omega*time)+sin(2*omega*time); figure plot(time,h) title('Tidal Elevation vs Time') xlabel('Time [hr]') ylabel('Tidal Elevation [m]') Statistics Assignment Help