+ All Categories
Home > Documents > Statistick á analýza dat

Statistick á analýza dat

Date post: 18-Mar-2016
Category:
Upload: moke
View: 43 times
Download: 3 times
Share this document with a friend
Description:
Statistick á analýza dat. Daniel Svozil Laboratoř informatiky a chemie, FCHT Vojtěch Spiwok, ÚBM, FPBT. Informace. přednášky – základy, opáčko, cvičení – R http ://ich.vscht.cz/~ svozil/teaching.html Další literatura D. J. Rumsey, Statistics for Dummies, 2011 - PowerPoint PPT Presentation
27
STATISTICKÁ ANALÝZA DAT Daniel Svozil Laboratoř informatiky a chemie, FCHT Vojtěch Spiwok, ÚBM, FPBT
Transcript
Page 1: Statistick á analýza dat

STATISTICKÁ ANALÝZA DATDaniel SvozilLaboratoř informatiky a chemie, FCHT

Vojtěch Spiwok, ÚBM, FPBT

Page 2: Statistick á analýza dat

Informace• přednášky – základy, opáčko, cvičení – R• http://ich.vscht.cz/~svozil/teaching.html• Další literatura

• D. J. Rumsey, Statistics for Dummies, 2011• D. J. Rumsey, Intermediate Statistics for Dummies, 2007

• zápočet, zkouška – bude oznámeno

Page 3: Statistick á analýza dat

Valuing houses

SIZE [ft2] COST [$]1 400 112 0002 400 192 0001 800 144 0001 900 152 0001 300 104 0001 100 88 000

How much money should you expect to pay for 1 300 ft2 house?

104 000 $

Same question now with 1 800 ft2 ?

144 000 $

Page 4: Statistick á analýza dat

Valuing houses

SIZE [ft2] COST [$]1 400 112 0002 400 192 0001 800 144 0001 900 152 0001 300 104 0001 100 88 000

How much money should you expect to pay for 2 100 ft2 house?

168 000 $21 is just a half between 18 and 24.

Same question now with 1 500 ft2 ?

120 000 $

Page 5: Statistick á analýza dat

What a statistician does?

• Look at data• Program computers• Run statistics software• Drink beer

Page 6: Statistick á analýza dat

Linear relationship

SIZE [ft2] COST [$]1 400 98 0002 400 168 0001 800 126 0001 900 133 0001 400 91 0001 100 77 000

Is there a fixed amount per square foot?

No

What if I change 1 400 to 1 300? What is the answer now?

Yes

Page 7: Statistick á analýza dat

Scatter plots• Please, take a pen and a

paper and draw a scatter plot of these data.

SIZE [ft2] COST [$]1 400 98 0002 400 168 0001 800 126 0001 900 133 0001 300 91 0001 100 77 000

SIZE

PR

ICE

Page 8: Statistick á analýza dat

Scatter plots

SIZE [ft2] COST [$]1 700 53 0002 100 65 0001 900 59 0001 300 41 0001 600 50 0002 200 68 000

Do we believe there is a fixed price per square foot?No

Page 9: Statistick á analýza dat

Scatter plots

SIZE [ft2] COST [$] $/ft2

1 700 53 000 31.17652 100 65 000 30.95241 900 59 000 31.05261 300 41 000 31.53851 600 50 000 31.25002 200 68 000 30.9091

What do you think, is the data linear?

Let’s make a scatter plot.

Surprisingly, the data is linear, even if there is no fixed price per square foot!

PRICE = ???? x SIZE + ????

PRICE = 30 x SIZE + 2 000

Page 10: Statistick á analýza dat

Scatter plots

SIZE [ft2] COST [$]1 700 53 0002 100 44 0001 900 59 0001 300 82 0001 600 50 0002 200 68 000

Draw scatterplot and tell me if these data are linear (i.e., do they lie in a line?).

outliers

Page 11: Statistick á analýza dat

Bar chart

SIZE [ft2] COST [$]1 300 88 0001 400 72 0001 600 94 0001 900 86 0002 100 112 0002 300 98 000

Warm up. Are these data linear?

No

How much to pay for a 2 200 ft2 house? Just simply interpolate.

105 000

Do you have trust in this number?

Page 12: Statistick á analýza dat

Bar chart• Take your data and pull them together.

Page 13: Statistick á analýza dat

Bar chart

SIZE [ft2] COST [$]1 300 88 0001 400 72 0001 600 94 0001 900 86 0002 100 112 0002 300 98 000

Page 14: Statistick á analýza dat

Bar chart• Much finer representation of the data• Bar chart allows you to understand global trends• Statistician uses cumulative tools (such as bar graph) to

gain the understanding of the underlying data.

Let me ask youAre bar charts cool?

Page 15: Statistick á analýza dat

Histograms• Special case of bar chart.• Bar chart looks at 2D data, histogram to 1D data. That is

the main difference.

132 784

137 192

122 177

147 121

143 000

126 010

129 200

124 312

128 132

Page 16: Statistick á analýza dat

Age distribution• Draw a histogram at the paper

with the bins by 10 years (i.e. 0-10, 11-20, …)

21

179

27

12

39

4

32

14

389

21

143

8 31

29

15

33

29

Page 17: Statistick á analýza dat

Věková pyramidavěková pyramida (strom života) grafické znázornění věkové struktury obyvatelstva

source: http://cs.wikipedia.org/wiki/V%C4%9Bkov%C3%A1_pyramida

Page 18: Statistick á analýza dat

Pie charts• koláčový graf

• elections• Party A – 50%• Party B – 50%

• Party A – 724 000 votes• Party B – 181 000 votes

• Party A – 175 000• Party B – 50 000• Party C – 25 000• Party D – 50 000

Page 19: Statistick á analýza dat

Male

Applied Admitted Rate [%]MAJOR A 900 450MAJOR B 100 10

Page 20: Statistick á analýza dat

Male

Applied Admitted Rate [%]MAJOR A 900 450 50MAJOR B 100 10

Page 21: Statistick á analýza dat

Male

Applied Admitted Rate [%]MAJOR A 900 450 50MAJOR B 100 10 10

Page 22: Statistick á analýza dat

Female

Applied Admitted Rate [%]MAJOR A 100 80MAJOR B 900 180

Page 23: Statistick á analýza dat

Female

Applied Admitted Rate [%]MAJOR A 100 80 80MAJOR B 900 180

Page 24: Statistick á analýza dat

Female

Applied Admitted Rate [%]MAJOR A 100 80 80MAJOR B 900 180 20

Page 25: Statistick á analýza dat

Gender bias

What do you think, is there a gender bias?

Who do you think is favored? Male or female?

Applied Admitted Rate [%]MAJOR A 900 450 50MAJOR B 100 10 10

Applied Admitted Rate [%]MAJOR A 100 80 80MAJOR B 900 180 20

Page 26: Statistick á analýza dat

Gender bias

Look at the data independent of major.

Applied Admitted Rate [%]MAJOR A 900 450 50MAJOR B 100 10 10

Applied Admitted Rate [%]MAJOR A 100 80 80MAJOR B 900 180 20

Page 27: Statistick á analýza dat

Statistics is ambiguous• This example ilustrates how ambiguous the statistics is.

• In choosing how to graph your data you may majorily impact what people believe to be the case.

“I never believe in statistics I didn’t doctor myself.”

Who said that?Winston Churchill


Recommended