1 / 10

Histograms

Histograms. Jake Blanchard Spring 2010. 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.

kayo
Download Presentation

Histograms

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Histograms Jake Blanchard Spring 2010 Uncertainty Analysis for Engineers

  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/m2 Uncertainty Analysis for Engineers

  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 Engineers

  4. January Insolation – 1961-1966 Uncertainty Analysis for Engineers

  5. Categories • 1700-1799 1 entry • 1800-1899 1 entry • 1900-1999 2 entries • 2000-2099 1 entry Uncertainty Analysis for Engineers

  6. Histogram for Full Data Set (Excel) Uncertainty Analysis for Engineers

  7. Excel • Go to Data/Data Analysis • Then pick Histogram Uncertainty Analysis for Engineers

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

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

  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 Engineers

More Related