math 15 introduction to scientific data analysis lecture 3 working with charts and graphics

23
Math 15 Introduction to Scientific Data Analysis Lecture 3 Working With Charts and Graphics

Upload: diane-fields

Post on 13-Jan-2016

223 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: Math 15 Introduction to Scientific Data Analysis Lecture 3 Working With Charts and Graphics

Math 15

Introduction to Scientific Data Analysis

Lecture 3

Working With Charts and Graphics

Page 2: Math 15 Introduction to Scientific Data Analysis Lecture 3 Working With Charts and Graphics

Week Date Concepts Project Due

1

2 January 28 Introduction to the data analysis

3 February 4 Excel #1 – General Techniques

4 February 11 Excel #2 – Plotting Graphs/Charts Quiz #1

5 February 18 Holiday

6 February 25 Excel #3 – Statistical Analysis Quiz #2

7 March 3 Excel #4 – Regression Analysis

8 March 10 Excel #5 – Interactive Programming Quiz #3

9 March 17 Introduction to Computer Programming - Part - I

March 24 Spring Recesses

10 March 31 Introduction to Computer Programming - Part - II Project #1

11 April 7 Programming – #1 Quiz #4

12 April 14 Programming – #2

13 April 21 Programming – #3 Quiz #5

14 April 28 Programming – #4

15 May 5 Programming - #5 Quiz #6

16 May 12 Movies / Evaluations Project #2

Final May ??? Final Examination

Course Lecture Schedule

There is a quiz today! There is neither lecture nor computer labs next week.

Page 3: Math 15 Introduction to Scientific Data Analysis Lecture 3 Working With Charts and Graphics

UC Merced Math 15 3

How can I interpret this data set?

Page 4: Math 15 Introduction to Scientific Data Analysis Lecture 3 Working With Charts and Graphics

You know how to interpret the pictures already.

UC Merced Math 15 4

Page 5: Math 15 Introduction to Scientific Data Analysis Lecture 3 Working With Charts and Graphics

Let’s make a histograms

Projected Population of the United States, by Age and Sex: 2000 to 2050(In thousands except as indicated. As of July 1. Resident population.)(leading dots indicate sub-parts)

Population or percent, sex, and age 2000 2010 2020 2030 2040 2050POPULATION

.TOTAL..TOTAL 282,125 308,936 335,805 363,584 391,946 419,854..0-4 19,218 21,426 22,932 24,272 26,299 28,080..5-19 61,331 61,810 65,955 70,832 75,326 81,067..20-44 104,075 104,444 108,632 114,747 121,659 130,897..45-64 62,440 81,012 83,653 82,280 88,611 93,104..65-84 30,794 34,120 47,363 61,850 64,640 65,844..85+ 4,267 6,123 7,269 9,603 15,409 20,861

.MALE..TOTAL 138,411 151,815 165,093 178,563 192,405 206,477..0-4 9,831 10,947 11,716 12,399 13,437 14,348..5-19 31,454 31,622 33,704 36,199 38,496 41,435..20-44 52,294 52,732 54,966 58,000 61,450 66,152..45-64 30,381 39,502 40,966 40,622 43,961 46,214..65-84 13,212 15,069 21,337 28,003 29,488 30,579..85+ 1,240 1,942 2,403 3,340 5,573 7,749

.FEMALE..TOTAL 143,713 157,121 170,711 185,022 199,540 213,377..0-4 9,387 10,479 11,216 11,873 12,863 13,732..5-19 29,877 30,187 32,251 34,633 36,831 39,632..20-44 51,781 51,711 53,666 56,747 60,209 64,745..45-64 32,059 41,510 42,687 41,658 44,650 46,891..65-84 17,582 19,051 26,026 33,848 35,152 35,265..85+ 3,028 4,182 4,866 6,263 9,836 13,112

Table with row headers in column A and column headers in row 5. Population numbers start in row 6, percent of total population starts in row 32.

Year 2000 - Male

0

10,000

20,000

30,000

40,000

50,000

60,000

..0-4 ..5-19 ..20-44 ..45-64 ..65-84 ..85+

Age

Po

pu

lati

on

Page 6: Math 15 Introduction to Scientific Data Analysis Lecture 3 Working With Charts and Graphics

UC Merced Math 15 6

Next Computer Lab:How to visualize data

05

10152025303540

22 22.5 23 23.5 24 24.5 25 25.5 26 26.5 27 27.5 28

Ages

Popu

latio

n

Graphs provide visual representations of numerical data.Quantitative

Page 7: Math 15 Introduction to Scientific Data Analysis Lecture 3 Working With Charts and Graphics

UC Merced Math 15 7

Graphs & Charts

Science calls them Graphs. Business calls them Charts. Excel calls them Charts.

You can use Excel’s Chart Wizard to quickly and easily create charts.

The Chart Wizard is a series of dialog boxes that prompt you for information about the chart you want to generate

Page 8: Math 15 Introduction to Scientific Data Analysis Lecture 3 Working With Charts and Graphics

UC Merced Math 15 8

In Lab, Learning few tricks!

0 10 20 30 40 50 60

1

2

6

7

Series 2

Series 1

0 10 20 30 40 50 60

1

2

6

7

Series 2

Series 1

Pictogram

Page 9: Math 15 Introduction to Scientific Data Analysis Lecture 3 Working With Charts and Graphics

UC Merced Math 15 9

Comparative histogram

0 10 20 30 40 50 60

1

2

6

7

Series 2

Series 1

60 40 20 0 20 40 60

1

2

6

7

Series 1

Series 2

Page 10: Math 15 Introduction to Scientific Data Analysis Lecture 3 Working With Charts and Graphics

UC Merced Math 15 10

Secondary Axis

0

5

10

15

20

25

Wee

k 1

Wee

k 2

Wee

k 3

Wee

k 4

Wee

k 5

Wee

k 6

Wee

k 7

Wee

k 8

Wee

k 9

Wee

k 10

Increments Cumulative

0

5

10

15

20

25

Wee

k 1

Wee

k 2

Wee

k 3

Wee

k 4

Wee

k 5

Wee

k 6

Wee

k 7

Wee

k 8

Wee

k 9

Wee

k 10

0

1

2

3

4

5

6

7

Cumulative Increments

And More!

Page 11: Math 15 Introduction to Scientific Data Analysis Lecture 3 Working With Charts and Graphics

UC Merced Math 15 11

Creating Chart is Easy!

You can use Excel’s Chart Wizard to quickly and easily create charts. Or you can choose chart from “Insert” on menu.

Just Clicking this icon invokes Chart Wizard!

Page 12: Math 15 Introduction to Scientific Data Analysis Lecture 3 Working With Charts and Graphics

Click “Insert” to create a chart!

UC Merced Math 15 12

Microsoft Excel 2007

Page 13: Math 15 Introduction to Scientific Data Analysis Lecture 3 Working With Charts and Graphics

UC Merced Math 15 13

Create a chart usingthe Chart Wizard – Excel 2003

To create a chart with the Chart Wizard:1. Select the data you want to chart, which will be your data

source

2. Click the Chart Wizard button on the standard toolbar

3. Select the chart type and sub-type

4. Make any additions or modifications to the chart's data source

5. Make any modifications to the chart's appearance

6. Specify the location for the chart, then click the OK button

Page 14: Math 15 Introduction to Scientific Data Analysis Lecture 3 Working With Charts and Graphics

UC Merced Math 15 14

Chart Wizard dialog box

Page 15: Math 15 Introduction to Scientific Data Analysis Lecture 3 Working With Charts and Graphics

UC Merced Math 15 15

Chart Wizard dialog box 2

Page 16: Math 15 Introduction to Scientific Data Analysis Lecture 3 Working With Charts and Graphics

UC Merced Math 15 16

Create a chart usingthe Chart Wizard

To create a chart with the Chart Wizard:1. Select the data you want to chart, which will be your data

source

2. Click the Chart Wizard button on the standard toolbar

3. Select the chart type and sub-type

4. Make any additions or modifications to the chart's data source

5. Make any modifications to the chart's appearance

6. Specify the location for the chart, then click the OK button

Page 17: Math 15 Introduction to Scientific Data Analysis Lecture 3 Working With Charts and Graphics

UC Merced Math 15 17

Choosing a data series

Charts are based on tables with categories (usually in the rows) and series of values (usually in the columns).

They typically display; categories on the horizontal axis (X-axis) values on the vertical axis (Y-axis)

Page 18: Math 15 Introduction to Scientific Data Analysis Lecture 3 Working With Charts and Graphics

UC Merced Math 15 18

Simple Example: Table to Chart

0

10

20

30

40

50

60

1 2 6 7

Series1

Series2

Categories

Values

A chart can have several data series all plotted against a common set of category values.

Page 19: Math 15 Introduction to Scientific Data Analysis Lecture 3 Working With Charts and Graphics

UC Merced Math 15 19

Create a chart usingthe Chart Wizard

To create a chart with the Chart Wizard:1. Select the data you want to chart, which will be your data

source

2. Click the Chart Wizard button on the standard toolbar

3. Select the chart type and sub-type

4. Make any additions or modifications to the chart's data source

5. Make any modifications to the chart's appearance

6. Specify the location for the chart, then click the OK button

Page 20: Math 15 Introduction to Scientific Data Analysis Lecture 3 Working With Charts and Graphics

UC Merced Math 15 20

Types of Charts

Pie – display only one series of values. Combined, all of the values in this one series of values make up 100% of the pie.

Column and Bar (Histogram) – can hold many series of values. The horizontal axis displays categories

Line chart – horizontal axis holds categories (name or labels)

XY (Scatter) – line with real values on both horizontal and vertical axies.

Page 21: Math 15 Introduction to Scientific Data Analysis Lecture 3 Working With Charts and Graphics

UC Merced Math 15 21

Examples

16% 2

13%

338%

443%

0

10

20

30

40

50

60

1 2 6 7

Series 1

Series 2

0

10

20

30

40

50

60

0 2 4 6 8

Series 1

Series 2

0

10

20

30

40

50

60

1 2 6 7

Series1

Series2

Pie Column

Line

XY Scatter0

10

20

30

40

50

60

1 2 6 7

Page 22: Math 15 Introduction to Scientific Data Analysis Lecture 3 Working With Charts and Graphics

UC Merced Math 15 22

Page 23: Math 15 Introduction to Scientific Data Analysis Lecture 3 Working With Charts and Graphics

UC Merced Math 15 23

Quiz

Open Book and Open Notebook! 15-minutes!

Next Quiz – February 25th!