Basic Statistics · the types of data collected ... Column graphs can be combined to compare data...

36
Basic Statistics Representing Data - Graphing

Transcript of Basic Statistics · the types of data collected ... Column graphs can be combined to compare data...

Page 1: Basic Statistics · the types of data collected ... Column graphs can be combined to compare data Date Colour 1 March Blue 1 March Light Brown 1 March Dark brown 1 March Light Brown

Basic Statistics

Representing Data - Graphing

Page 2: Basic Statistics · the types of data collected ... Column graphs can be combined to compare data Date Colour 1 March Blue 1 March Light Brown 1 March Dark brown 1 March Light Brown

Representing Data

Learning Intentions

Today we will understand:

Graphics don’t just report data theyshow trends and patterns

The graphic used is determined bythe types of data collected

Pie charts, bar graphs, histograms, scatterplots

Image accessed: http://intouchacquisitions.co.uk

Page 3: Basic Statistics · the types of data collected ... Column graphs can be combined to compare data Date Colour 1 March Blue 1 March Light Brown 1 March Dark brown 1 March Light Brown

Graphing

Is an important way of visually representing data

Provides a significant amount of information

Moves from reporting data to showing trends and patterns

Relationships are more easily identifiedin a graphic representation ascompared to a table

Image accessed: http://www.abcteach.com/documents/clip-art-stick-guy-graphing-grayscale-21480

Page 4: Basic Statistics · the types of data collected ... Column graphs can be combined to compare data Date Colour 1 March Blue 1 March Light Brown 1 March Dark brown 1 March Light Brown

The graphic used is determined by the types of datacollected

Remember……..

Graphing

Page 5: Basic Statistics · the types of data collected ... Column graphs can be combined to compare data Date Colour 1 March Blue 1 March Light Brown 1 March Dark brown 1 March Light Brown

Graphing Categorical Variables

Images accessed: https://onlinecourses.science.psu.edu

http://www.statcan.gc.ca

Bar Graph Pie Chart

Figure 1. JCU student demographicsFigure 2. JCU students favourite movie genre

Page 6: Basic Statistics · the types of data collected ... Column graphs can be combined to compare data Date Colour 1 March Blue 1 March Light Brown 1 March Dark brown 1 March Light Brown

Bar Graph

Date Egg Colour

1 Oct White

1 Oct White

1 Oct Dark Brown

1 Oct White

1 Oct Dark Brown

1 Oct Blue

2 Oct Dark Brown

2 Oct Dark Brown

2 Oct White

2 Oct White

2 Oct White

2 Oct Light Brown

Egg Colour Frequency

White 6

Dark brown 4

Blue 1

Light brown 1

Organise data

Page 7: Basic Statistics · the types of data collected ... Column graphs can be combined to compare data Date Colour 1 March Blue 1 March Light Brown 1 March Dark brown 1 March Light Brown

Bar Graph

Each category has its own bar with gaps between bars

0

1

2

3

4

5

6

7

White Dark Brown Blue Light Brown

Freq

uen

cy

Egg Colour

Figure 3. The colour of eggs laid during a two day period in October

Page 8: Basic Statistics · the types of data collected ... Column graphs can be combined to compare data Date Colour 1 March Blue 1 March Light Brown 1 March Dark brown 1 March Light Brown

Bar Graph

Column graphs can be combined to compare data

Date Colour

1 March Blue

1 March Light Brown

1 March Dark brown

1 March Light Brown

1 March Blue

1 March Blue

2 March Blue

2 March Light Brown

2 March White

2 March Light Brown

2 March Blue

2 March Light brown

Egg Colour Frequency

White 1

Dark brown 1

Blue 5

Light brown 5

Organise data

Page 9: Basic Statistics · the types of data collected ... Column graphs can be combined to compare data Date Colour 1 March Blue 1 March Light Brown 1 March Dark brown 1 March Light Brown

Bar Graph

Column graphs can be combined to compare data

Egg Colour Frequency

White 1

Dark brown 1

Blue 5

Light brown 5

Eggs Laid in October Eggs Laid in March

Egg Colour Frequency

White 6

Dark brown 4

Blue 1

Light brown 1

Page 10: Basic Statistics · the types of data collected ... Column graphs can be combined to compare data Date Colour 1 March Blue 1 March Light Brown 1 March Dark brown 1 March Light Brown

Bar Graph

0

1

2

3

4

5

6

7

White Dark Brown Blue Light Brown

Freq

uen

cy

Egg Colour

October

March

Figure 4. The colour of eggs laid during a two day period in October and March

Page 11: Basic Statistics · the types of data collected ... Column graphs can be combined to compare data Date Colour 1 March Blue 1 March Light Brown 1 March Dark brown 1 March Light Brown

Pie Chart

DISCRETE

DISCRETE

The area of the circle is proportional to the frequency

50%

34%

8%8%

White

Dark Brown

Blue

Light Brown

Figure 5. The colour of eggs laid during a two day period in October

Page 12: Basic Statistics · the types of data collected ... Column graphs can be combined to compare data Date Colour 1 March Blue 1 March Light Brown 1 March Dark brown 1 March Light Brown

Pie Chart

You cannot plot two variables on the same pie chart but you can compare two pie charts

8%8%

42%

42%

White

Dark Brown

Blue

Light Brown

50%

34%

8%8%

White

Dark Brown

Blue

Light Brown

Figure 6. The colour of eggs laid during a two day period in October

Figure 7. The colour of eggs laid during a two day period in March

Page 13: Basic Statistics · the types of data collected ... Column graphs can be combined to compare data Date Colour 1 March Blue 1 March Light Brown 1 March Dark brown 1 March Light Brown

Histogram

Visual display of frequencies

Quantitative variable – continuous and/or grouped

Shows distribution of all observations in dataset

Describes shape, centre and spread of dataset

Image accessed: http://www.six-sigma-material.com/Histograms.html

Page 14: Basic Statistics · the types of data collected ... Column graphs can be combined to compare data Date Colour 1 March Blue 1 March Light Brown 1 March Dark brown 1 March Light Brown

Histogram

Figure 8. Distribution of children’s height

Freq

uen

cy

Height (cm)

Image accessed: http://www.abs.gov.au/websitedbs/a3121120.nsf/home/statistical+language+-+frequency+distribution

Page 15: Basic Statistics · the types of data collected ... Column graphs can be combined to compare data Date Colour 1 March Blue 1 March Light Brown 1 March Dark brown 1 March Light Brown

HistogramFr

equ

ency

Height (cm)

Figure 8. Distribution of children’s height

Page 16: Basic Statistics · the types of data collected ... Column graphs can be combined to compare data Date Colour 1 March Blue 1 March Light Brown 1 March Dark brown 1 March Light Brown

Histogram

Figure 9. JCU students test scores

0

5

10

15

20

25

30

30

- 3

5

35

- 4

0

40

- 4

5

45

- 5

0

50

- 5

5

55

- 6

0

60

- 6

5

65

- 7

0

70

- 7

5

75

- 8

0

80

- 8

5

85

- 9

0

90

- 9

5

95

- 1

00

Freq

uen

cy (

%)

Test Scores (%)

Frequency can also be expressed as a

percentage of total observations.

Why is this not a good example of a histogram?

Which column would 50 go in? 65? 60? 70?

Page 17: Basic Statistics · the types of data collected ... Column graphs can be combined to compare data Date Colour 1 March Blue 1 March Light Brown 1 March Dark brown 1 March Light Brown

Show association between two numerical variables

Data plotted as Cartesian (X,Y) coordinates

Suggests relationships between variables

Scatterplot

Pri

ce (

$)

Age (years)

Figure 10. Car price according to age of the car

Image accessed: http://conceptdraw.com/samples/business-charts-area-line-scatter

Page 18: Basic Statistics · the types of data collected ... Column graphs can be combined to compare data Date Colour 1 March Blue 1 March Light Brown 1 March Dark brown 1 March Light Brown

Scatterplot

Figure 10. Height (cm) and weight (Kg) of JCU students

0

10

20

30

40

50

60

70

80

90

100

140 160 180 200

Wei

ght

(Kg)

Height (cm)

Page 19: Basic Statistics · the types of data collected ... Column graphs can be combined to compare data Date Colour 1 March Blue 1 March Light Brown 1 March Dark brown 1 March Light Brown

Scatterplot

Can show a “Trend Line” or “Line of Best Fit” on a scatterplot

Quantifies the correlation

y = 0.8247x - 73.891R² = 0.8361

0

10

20

30

40

50

60

70

80

90

100

140 160 180 200

Wei

ght

(Kg)

Height (cm)

Figure 11. Height (cm) and weight (Kg) of JCU students

Page 20: Basic Statistics · the types of data collected ... Column graphs can be combined to compare data Date Colour 1 March Blue 1 March Light Brown 1 March Dark brown 1 March Light Brown

Correlation Between Variables

Correlation is the relationship between two variables

Correlation is positive when the values increase together

Correlation is negative when one value decreases as the other increases

Image accessed: https://www.mathsisfun.com/data/scatter-xy-plots.html

Page 21: Basic Statistics · the types of data collected ... Column graphs can be combined to compare data Date Colour 1 March Blue 1 March Light Brown 1 March Dark brown 1 March Light Brown

Graphs Can Be Misleading

Image accessed: http://www.statisticshowto.com/misleading-graphs/

Page 22: Basic Statistics · the types of data collected ... Column graphs can be combined to compare data Date Colour 1 March Blue 1 March Light Brown 1 March Dark brown 1 March Light Brown

Graphs Can Be Misleading……

Figure 12. Average house price in Cairns

425000

430000

435000

440000

445000

450000

455000

2013 2014 2015

Ave

rage

Ho

use

Pri

ce (

$)

Year

Page 23: Basic Statistics · the types of data collected ... Column graphs can be combined to compare data Date Colour 1 March Blue 1 March Light Brown 1 March Dark brown 1 March Light Brown

A Better Representation……

0

50000

100000

150000

200000

250000

300000

350000

400000

450000

500000

2013 2014 2015

Ave

rage

Ho

use

Pri

ce (

$)

Year

Figure 13. Average house price in Cairns

Page 24: Basic Statistics · the types of data collected ... Column graphs can be combined to compare data Date Colour 1 March Blue 1 March Light Brown 1 March Dark brown 1 March Light Brown

Keep It Simple

0

1

2

3

4

5

6

7

Blue Dark Brown Light Brown White

Freq

uen

cy

Egg Colour

Is better than.........

Figure 15. The colour of eggs laid during a two day period in October

Page 25: Basic Statistics · the types of data collected ... Column graphs can be combined to compare data Date Colour 1 March Blue 1 March Light Brown 1 March Dark brown 1 March Light Brown

Keep It Simple

0

1

2

3

4

5

6

BlueDark Brown

Light BrownWhite

Freq

uen

cy

Egg Colour

Figure 16. The colour of eggs laid during a two day period in October

The simplest representation is best

Page 26: Basic Statistics · the types of data collected ... Column graphs can be combined to compare data Date Colour 1 March Blue 1 March Light Brown 1 March Dark brown 1 March Light Brown

Graphing Using Excel

Excel is a good data management tool

With some practise, you can produce and edit graphs quickly in Excel

Search the internet and YouTube for videos and tutorials about creating graphs in Excel

Specialised statistical software such as S-Plus will enable you to produce graphs that represent your data with more precision

Page 27: Basic Statistics · the types of data collected ... Column graphs can be combined to compare data Date Colour 1 March Blue 1 March Light Brown 1 March Dark brown 1 March Light Brown

Lynda.com

You can find and access courses to help with your study through Lynda.com

1) Go to website www.jcu.edu.au

2) Click on “Library”

Page 28: Basic Statistics · the types of data collected ... Column graphs can be combined to compare data Date Colour 1 March Blue 1 March Light Brown 1 March Dark brown 1 March Light Brown

Lynda.com

3) Go to “Learn”

4) Click on “Lynda.com”

Page 29: Basic Statistics · the types of data collected ... Column graphs can be combined to compare data Date Colour 1 March Blue 1 March Light Brown 1 March Dark brown 1 March Light Brown

Lynda.com

5) Log in using your jc number and password

Page 30: Basic Statistics · the types of data collected ... Column graphs can be combined to compare data Date Colour 1 March Blue 1 March Light Brown 1 March Dark brown 1 March Light Brown

Lynda.com

6) Browse the Lynda Library for courses of interest

Page 31: Basic Statistics · the types of data collected ... Column graphs can be combined to compare data Date Colour 1 March Blue 1 March Light Brown 1 March Dark brown 1 March Light Brown

Lynda.com

7) Search the Lynda Library for courses of interest

8) Select the course that you want from the available course list or search again

Page 32: Basic Statistics · the types of data collected ... Column graphs can be combined to compare data Date Colour 1 March Blue 1 March Light Brown 1 March Dark brown 1 March Light Brown

Lynda.com

9) When you select a course it opens up like this

Page 33: Basic Statistics · the types of data collected ... Column graphs can be combined to compare data Date Colour 1 March Blue 1 March Light Brown 1 March Dark brown 1 March Light Brown

Lynda.com

10) It is suggested that you save it to your playlist so that it is easy to find again

Page 34: Basic Statistics · the types of data collected ... Column graphs can be combined to compare data Date Colour 1 March Blue 1 March Light Brown 1 March Dark brown 1 March Light Brown

Lynda.com

11) To find the course again click on My Courses located on the left side of the screen

Page 35: Basic Statistics · the types of data collected ... Column graphs can be combined to compare data Date Colour 1 March Blue 1 March Light Brown 1 March Dark brown 1 March Light Brown

Lynda.com

12) When you select My Playlist your saved course(s) appear

Page 36: Basic Statistics · the types of data collected ... Column graphs can be combined to compare data Date Colour 1 March Blue 1 March Light Brown 1 March Dark brown 1 March Light Brown

http://www.abs.gov.au/websitedbs/a3121120.nsf/home/statistical+language

Image accessed: http://apafolchitorres.org//

References