Starting the - Actuaries Institute...Starting the Data Analytics Journey Data collection Zeming Yu...

35
1

Transcript of Starting the - Actuaries Institute...Starting the Data Analytics Journey Data collection Zeming Yu...

Page 1: Starting the - Actuaries Institute...Starting the Data Analytics Journey Data collection Zeming Yu and Leon Yan 3 Today’s agenda •Highs and lows (10 minutes – Leon) –Over the

1

Page 2: Starting the - Actuaries Institute...Starting the Data Analytics Journey Data collection Zeming Yu and Leon Yan 3 Today’s agenda •Highs and lows (10 minutes – Leon) –Over the

2

Starting the

Data Analytics Journey Data collection

Zeming Yu and Leon Yan

Page 3: Starting the - Actuaries Institute...Starting the Data Analytics Journey Data collection Zeming Yu and Leon Yan 3 Today’s agenda •Highs and lows (10 minutes – Leon) –Over the

3

Today’s agenda • Highs and lows (10 minutes – Leon)

– Over the next 90 minutes…

– It’s okay to feel…

• Theoretical case studies (20 minutes – Leon)

– When’s the best time to fly?

– How accurate are the punters?

• Real case study (60 minutes – Zem)

– Collecting Meetup data

– Analysing Meetup data and offering insights

Page 4: Starting the - Actuaries Institute...Starting the Data Analytics Journey Data collection Zeming Yu and Leon Yan 3 Today’s agenda •Highs and lows (10 minutes – Leon) –Over the

4

HIGHS AND LOWS

Act 1

Page 5: Starting the - Actuaries Institute...Starting the Data Analytics Journey Data collection Zeming Yu and Leon Yan 3 Today’s agenda •Highs and lows (10 minutes – Leon) –Over the

5

Over the next 90 minutes

We are here

Theoretical case studies

Collecting Meetup data

Analysing data and offering insights

Page 6: Starting the - Actuaries Institute...Starting the Data Analytics Journey Data collection Zeming Yu and Leon Yan 3 Today’s agenda •Highs and lows (10 minutes – Leon) –Over the

6

“The only impossible journey

is the one you never begin”

Page 7: Starting the - Actuaries Institute...Starting the Data Analytics Journey Data collection Zeming Yu and Leon Yan 3 Today’s agenda •Highs and lows (10 minutes – Leon) –Over the

7

shock

denial

anger

depression

acceptance

integration

It’s okay to feel…

Page 8: Starting the - Actuaries Institute...Starting the Data Analytics Journey Data collection Zeming Yu and Leon Yan 3 Today’s agenda •Highs and lows (10 minutes – Leon) –Over the

8

Tips • Get your hands dirty

• Be prepared to work with IT and to debug PC issues

• Choose a pet project

• Build momentum

• Avoid excess multi-tasking

• Tutorials

• Try different packages

• Google for answers

• Collaborate with colleagues

• Write notes and comment code

• Do take breaks

Page 9: Starting the - Actuaries Institute...Starting the Data Analytics Journey Data collection Zeming Yu and Leon Yan 3 Today’s agenda •Highs and lows (10 minutes – Leon) –Over the

9

THEORETICAL CASE STUDIES

Act 2

Page 10: Starting the - Actuaries Institute...Starting the Data Analytics Journey Data collection Zeming Yu and Leon Yan 3 Today’s agenda •Highs and lows (10 minutes – Leon) –Over the

10

When’s the best time to fly?

17% of industry flights were adversely delayed by 15 minutes or longer

Page 11: Starting the - Actuaries Institute...Starting the Data Analytics Journey Data collection Zeming Yu and Leon Yan 3 Today’s agenda •Highs and lows (10 minutes – Leon) –Over the

11

How accurate are the punters?

Outcome Odds Implied

Probability Comparison

Perceived Probability

Arsenal wins 1.80 56% > 45%

Draw 3.00 33% < 35%

Arsenal loses 5.50 18% < 20%

107% 100%

Page 12: Starting the - Actuaries Institute...Starting the Data Analytics Journey Data collection Zeming Yu and Leon Yan 3 Today’s agenda •Highs and lows (10 minutes – Leon) –Over the

12

INTERMISSION

(…time to get up and stretch)

Page 13: Starting the - Actuaries Institute...Starting the Data Analytics Journey Data collection Zeming Yu and Leon Yan 3 Today’s agenda •Highs and lows (10 minutes – Leon) –Over the

13

REAL CASE STUDY

Act 3

Page 14: Starting the - Actuaries Institute...Starting the Data Analytics Journey Data collection Zeming Yu and Leon Yan 3 Today’s agenda •Highs and lows (10 minutes – Leon) –Over the

14

Case Study

Page 15: Starting the - Actuaries Institute...Starting the Data Analytics Journey Data collection Zeming Yu and Leon Yan 3 Today’s agenda •Highs and lows (10 minutes – Leon) –Over the

15

Application Programming Interface

Page 16: Starting the - Actuaries Institute...Starting the Data Analytics Journey Data collection Zeming Yu and Leon Yan 3 Today’s agenda •Highs and lows (10 minutes – Leon) –Over the

16

Application Programming Interface

Page 17: Starting the - Actuaries Institute...Starting the Data Analytics Journey Data collection Zeming Yu and Leon Yan 3 Today’s agenda •Highs and lows (10 minutes – Leon) –Over the

17

Application Programming Interface

Page 18: Starting the - Actuaries Institute...Starting the Data Analytics Journey Data collection Zeming Yu and Leon Yan 3 Today’s agenda •Highs and lows (10 minutes – Leon) –Over the

18

Application Programming Interface

Page 19: Starting the - Actuaries Institute...Starting the Data Analytics Journey Data collection Zeming Yu and Leon Yan 3 Today’s agenda •Highs and lows (10 minutes – Leon) –Over the

19

Application Programming Interface

Page 20: Starting the - Actuaries Institute...Starting the Data Analytics Journey Data collection Zeming Yu and Leon Yan 3 Today’s agenda •Highs and lows (10 minutes – Leon) –Over the

20

Page 23: Starting the - Actuaries Institute...Starting the Data Analytics Journey Data collection Zeming Yu and Leon Yan 3 Today’s agenda •Highs and lows (10 minutes – Leon) –Over the

23

Page 24: Starting the - Actuaries Institute...Starting the Data Analytics Journey Data collection Zeming Yu and Leon Yan 3 Today’s agenda •Highs and lows (10 minutes – Leon) –Over the

24

JavaScript Object Notation • Plain text format

• De facto data format for web and mobile

apps

• Very flexible - great for unstructured data

• Supported by most programming languages

Page 25: Starting the - Actuaries Institute...Starting the Data Analytics Journey Data collection Zeming Yu and Leon Yan 3 Today’s agenda •Highs and lows (10 minutes – Leon) –Over the

25

Page 26: Starting the - Actuaries Institute...Starting the Data Analytics Journey Data collection Zeming Yu and Leon Yan 3 Today’s agenda •Highs and lows (10 minutes – Leon) –Over the

26

• Key: “name” • Value: “Social Networking Actuaries Group”

Page 27: Starting the - Actuaries Institute...Starting the Data Analytics Journey Data collection Zeming Yu and Leon Yan 3 Today’s agenda •Highs and lows (10 minutes – Leon) –Over the

27

• Key: “urlname” • Value: “Actuaries-Social-Networking-Group”

Page 28: Starting the - Actuaries Institute...Starting the Data Analytics Journey Data collection Zeming Yu and Leon Yan 3 Today’s agenda •Highs and lows (10 minutes – Leon) –Over the

28

• Key: “0” • Value: nested JSON object

• Key: “1” • Value: nested JSON object

• Key: “2” • Value: nested JSON object

Page 29: Starting the - Actuaries Institute...Starting the Data Analytics Journey Data collection Zeming Yu and Leon Yan 3 Today’s agenda •Highs and lows (10 minutes – Leon) –Over the

29

$url = 'https://api.meetup.com/find/groups?&sign=true&photo-host=public&country=Australia&upcoming_events=1&text=actuarial&page=100&key=INSERTYOURKEY' Invoke-WebRequest $url | ConvertFrom-Json | format-table urlname, name, description | tee 'd:\output.txt'

Powershell

Page 30: Starting the - Actuaries Institute...Starting the Data Analytics Journey Data collection Zeming Yu and Leon Yan 3 Today’s agenda •Highs and lows (10 minutes – Leon) –Over the

30

Jupyter Notebook

Demonstration

This notebook will be published on Actuaries Digital as part of the Analytics Snippet series.

Page 32: Starting the - Actuaries Institute...Starting the Data Analytics Journey Data collection Zeming Yu and Leon Yan 3 Today’s agenda •Highs and lows (10 minutes – Leon) –Over the

32

Association analysis (2) Confidence. This says how likely item Y is purchased when item X is purchased, expressed as {X -> Y}.

Page 33: Starting the - Actuaries Institute...Starting the Data Analytics Journey Data collection Zeming Yu and Leon Yan 3 Today’s agenda •Highs and lows (10 minutes – Leon) –Over the

33

Association rules (3) Lift: How likely item Y is purchased when item X is purchased, while controlling for how popular item Y is.

Page 34: Starting the - Actuaries Institute...Starting the Data Analytics Journey Data collection Zeming Yu and Leon Yan 3 Today’s agenda •Highs and lows (10 minutes – Leon) –Over the

34

Zeming Yu Actuarial Manager 8907 5209 [email protected]

www.linkedin.com/in/zeming-yu/ Leon Yan Actuarial Manager 8907 5219 [email protected]

www.linkedin.com/in/leon-yan/

Page 35: Starting the - Actuaries Institute...Starting the Data Analytics Journey Data collection Zeming Yu and Leon Yan 3 Today’s agenda •Highs and lows (10 minutes – Leon) –Over the

35