Presentation is loading. Please wait.

Presentation is loading. Please wait.

Histograms Jake Blanchard Spring 2010 Uncertainty Analysis for Engineers1.

Similar presentations


Presentation on theme: "Histograms Jake Blanchard Spring 2010 Uncertainty Analysis for Engineers1."— Presentation transcript:

1 Histograms Jake Blanchard Spring 2010 Uncertainty Analysis for Engineers1

2 Creating Histograms Distribution functions are essentially histograms, so we should get some practice with histograms We’ll use solar insolation as an example ◦ Daily insolation averaged over a month ◦ Data is for Madison, WI ◦ Units are W-hr/m 2 Uncertainty Analysis for Engineers2

3 Small Set Data on next slide is for January, years 1961-1966 Divide results into bins Count instances in each bin Plot, usually with bar chart Uncertainty Analysis for Engineers3

4 January Insolation – 1961-1966 YearInsolation (W-h/m 2 ) 19611858 19621943 19632003 19641937 19651770 Uncertainty Analysis for Engineers4

5 Categories 1700-17991 entry 1800-18991 entry 1900-19992 entries 2000-20991 entry Uncertainty Analysis for Engineers5

6 Histogram for Full Data Set (Excel) Uncertainty Analysis for Engineers6

7 Excel Go to Data/Data Analysis Then pick Histogram Uncertainty Analysis for Engineers7

8 Matlab data=xlsread('histograms.xlsx'); hist(data(:,2), 30) Uncertainty Analysis for Engineers8

9 Matlab What if we just want the month by month data? Uncertainty Analysis for Engineers9 January January June

10 Script z=find(data(:,1)==1); [N1,X1]=hist(data(z,2),10); z=find(data(:,1)==6); [N6,X6]=hist(data(z,2),10); bar(X1,N1) hold on bar(X6,N6) Uncertainty Analysis for Engineers10


Download ppt "Histograms Jake Blanchard Spring 2010 Uncertainty Analysis for Engineers1."

Similar presentations


Ads by Google