What Finance can learn from Dating Sites Max De Marzi GOTO - - PowerPoint PPT Presentation

what finance can learn from dating sites
SMART_READER_LITE
LIVE PREVIEW

What Finance can learn from Dating Sites Max De Marzi GOTO - - PowerPoint PPT Presentation

What Finance can learn from Dating Sites Max De Marzi GOTO Chicago About Me Max De Marzi - Neo4j Field Engineer My Blog: http://maxdemarzi.com


slide-1
SLIDE 1

What ¡Finance ¡can ¡learn ¡from ¡Dating ¡Sites


Max ¡De ¡Marzi
 GOTO ¡Chicago

slide-2
SLIDE 2

About ¡Me

  • Max ¡De ¡Marzi ¡-­‑ ¡Neo4j ¡Field ¡Engineer ¡ ¡
  • My ¡Blog: ¡http://maxdemarzi.com ¡
  • Find ¡me ¡on ¡Twitter: ¡@maxdemarzi ¡
  • Email ¡me: ¡maxdemarzi@gmail.com ¡
  • GitHub: ¡http://github.com/maxdemarzi
slide-3
SLIDE 3

TLDR:

slide-4
SLIDE 4

http://www.gartner.com/id=2081316

Consumer ¡Web ¡Giants ¡Depend ¡on ¡Five ¡Graphs

Social
 Graph Mobile
 Graph Intent
 Graph Interest
 Graph Payment
 Graph

slide-5
SLIDE 5

Friends ¡of ¡Friends ¡Graph ¡

  • Real ¡World ¡Basis ¡
  • Its ¡Weighted ¡(BFF ¡vs ¡

Family) ¡

  • Awesome ¡or ¡Awkward

The ¡Five ¡Graphs ¡of ¡Love

Location ¡Graph ¡

  • Long ¡Distance ¡Sucks ¡
  • Where ¡are ¡the ¡single ¡

people ¡

  • Where ¡should ¡we ¡meet

Passion ¡Graph ¡

  • Shared ¡Interests ¡
  • Desired ¡Traits ¡
  • Long ¡vs ¡Short ¡Term

Safety ¡Graph ¡

  • True ¡Identity ¡
  • Liers ¡and ¡Cheaters ¡
  • Balancing ¡Privacy

SPAM ¡Graph ¡

  • Click ¡Bait ¡
  • Wanna ¡Cam? ¡
  • Professionals

1 2 3 4 5

slide-6
SLIDE 6

The ¡Five ¡Graphs ¡of ¡Love

1

Friends

2

Passion

3

Location

4

Safety

5

SPAM

slide-7
SLIDE 7

Meet ¡Jeremy

  • Single ¡
  • Handsome ¡
  • Friendly ¡
  • etc

Jeremy

slide-8
SLIDE 8

Friends

Johan Kerstin Allison Andreas Michael Madelene Jeremy

Peter

slide-9
SLIDE 9

Bang ¡With ¡Friends ¡=> ¡Down

slide-10
SLIDE 10

Better ¡Idea

slide-11
SLIDE 11

Friends ¡of ¡Friends

Joh Kers Allis An Ad Andr Mich Madel Jere

Pet

slide-12
SLIDE 12

Deeper

slide-13
SLIDE 13

Friends ¡of ¡Friends ¡of ¡Friends FOFOFs

slide-14
SLIDE 14

MATCH ¡(:Person ¡{ ¡name:“Dan”} ¡) ¡-­‑[:FRIENDS]-­‑> ¡(:Person ¡{ ¡name:“Ann”} ¡) ¡

FRIENDS

Dan Ann

Label Property Label Property Node Node

Cypher ¡Query ¡Language

slide-15
SLIDE 15

MATCH ¡(boss)-­‑[:MANAGES*0..3]-­‑>(sub), ¡ ¡ ¡ ¡ ¡ ¡ ¡(sub)-­‑[:MANAGES*1..3]-­‑>(report) ¡ WHERE ¡boss.name ¡= ¡“John ¡Doe” ¡ RETURN ¡sub.name ¡AS ¡Subordinate, ¡
 ¡ ¡count(report) ¡AS ¡Total

Express ¡Complex ¡Queries ¡Easily ¡with ¡Cypher

Find ¡all ¡direct ¡reports ¡and ¡
 how ¡many ¡people ¡they ¡manage, ¡
 up ¡to ¡3 ¡levels ¡down

Cypher ¡Query SQL ¡Query

slide-16
SLIDE 16

The ¡Five ¡Graphs ¡of ¡Love

1

Friends

2

Passion

3

Location

4

Safety

5

SPAM

2

Passion
 Graph

slide-17
SLIDE 17

Interests

Jonathan :REPORTED_INTEREST

slide-18
SLIDE 18

Likes

slide-19
SLIDE 19

Traits

slide-20
SLIDE 20

The ¡Five ¡Graphs ¡of ¡Love

1

Friends

2

Passion

3

Location

4

Safety

5

SPAM3

Location

slide-21
SLIDE 21

Location

slide-22
SLIDE 22

Three ¡Dots ¡and ¡a ¡Dash

slide-23
SLIDE 23

Recommend ¡Love

Find ¡your ¡soulmate ¡in ¡the ¡graph ¡ ¡

  • Are ¡they ¡energetic? ¡
  • Do ¡they ¡like ¡dogs? ¡
  • Have ¡a ¡good ¡sense ¡of ¡humor? ¡
  • Neat ¡and ¡tidy, ¡but ¡not ¡crazy ¡about ¡it?

What ¡are ¡the ¡Top ¡10 ¡Potential ¡Mates ¡for ¡me ¡

  • that ¡are ¡in ¡the ¡same ¡location ¡
  • are ¡sexually ¡compatible ¡
  • have ¡traits ¡I ¡want ¡ ¡
  • want ¡traits ¡I ¡have
slide-24
SLIDE 24

Cypher ¡Query: ¡Love ¡Recommendation

slide-25
SLIDE 25

Love ¡Recommendation ¡Results

slide-26
SLIDE 26

The ¡Five ¡Graphs ¡of ¡Love

1

Friends

2

Passion

3

Location

4

Safety

5

SPAM

4

Safety

slide-27
SLIDE 27

Awkward ¡Graph

:WANTS_TO_DATE :WANTS_TO_DATE

Jake Peter Andreas

:WORKS_FOR

:FRIENDS :FRIENDS

:NO_DATE :NO_DATE :WANTS_TO_DATE :WANTS_TO_DATE

Jennifer

slide-28
SLIDE 28

Liars

slide-29
SLIDE 29

Cheaters ¡Graph

:WANTS_TO_DATE

Jake Lucy Andreas

:LIKES

:MARRIED :FRIENDS

:NO_DATE :WANTS_TO_DATE :WANTS_TO_DATE

Jennifer

slide-30
SLIDE 30

Let’s ¡take ¡a ¡closer ¡look ¡at ¡Jonathan

Jonathan

slide-31
SLIDE 31

Follows

slide-32
SLIDE 32

Tweets

slide-33
SLIDE 33

Real ¡Interests

:DEMONSTRATED_INTEREST

Jonathan

slide-34
SLIDE 34

The ¡Five ¡Graphs ¡of ¡Love

1

Friends

2

Passion

3

Location

4

Safety

5

SPAM

5

SPAM

slide-35
SLIDE 35

Click ¡Bait

slide-36
SLIDE 36

Cam ¡Girls/Boys

slide-37
SLIDE 37

Professionals

slide-38
SLIDE 38

Payment ¡Graph ¡

  • Fraud ¡detection ¡
  • Credit ¡risk ¡analysis ¡
  • Chargebacks

Financial ¡Giants ¡Depend ¡on ¡Five ¡Graphs ¡As ¡Well ¡

Asset ¡Graph ¡

  • Portfolio ¡analytics ¡
  • Risk ¡management ¡
  • Market/sentiment ¡analysis ¡
  • Compliance

Customer ¡Graph ¡

  • Org ¡drill-­‑through ¡
  • Product ¡

recommendations ¡

  • Mobile ¡payments

Entitlement ¡Graph ¡

  • Identity ¡management ¡
  • Access ¡management ¡
  • Authorization

Master ¡Data ¡Graph ¡

  • Enterprise ¡collaboration ¡
  • Corporate ¡hierarchy ¡
  • Data ¡governance

1 2 3 4 5

slide-39
SLIDE 39

The ¡Five ¡Graphs ¡of ¡Finance

1

Payment

2

Customer

3

Entitlement

4

Asset

5

Master ¡Data

1

Payment
 Graph

slide-40
SLIDE 40

Intuit ¡Payment ¡Graph

Discover ¡latent ¡network ¡from ¡multiple ¡
 product ¡data ¡stores ¡

  • Uniquely ¡identify ¡entities ¡and ¡their ¡

connections ¡

  • Connections ¡scored ¡by ¡volume ¡of ¡trade ¡

Empower ¡business-­‑unit ¡teams ¡to ¡leverage ¡the ¡ Intuit ¡Payment ¡Graph ¡to ¡build ¡applications ¡

  • Graph ¡to ¡be ¡available ¡for ¡real-­‑time ¡queries

1

Payment

slide-41
SLIDE 41

Consumer ¡Profile ¡Facets

Identity ¡

Name
 Address
 Phone
 Email

Social ¡

Facebook
 Yelp
 Twitter
 …

Demographics ¡

Age
 Gender
 …

Business ¡Profile ¡Facets

Identity ¡

Name
 Address
 Phone
 Email


Social ¡

Facebook
 Yelp
 Twitter
 …

Demographics ¡

Category
 Revenue
 Employees
 …

1

Payment

Payment ¡Graph ¡Depends ¡on ¡the ¡Customer ¡Graph

slide-42
SLIDE 42

1

Payment

Capturing ¡C2B ¡and ¡B2B ¡Transactions

BUSINESS BUSINESS CONSUMER

June
 1 ¡purchase
 $25.95 June
 3 ¡purchases
 $650.25

slide-43
SLIDE 43

PRODUCT ¡ Name: ¡Zeta
 … PRODUCT ¡ Name: ¡Payroll
 … COMPANY ¡ Name: ¡Viva ¡LLC
 Zip: ¡94040
 … COMPANY ¡ Name: ¡Beta ¡LLC
 Zip: ¡94043
 … COMPANY ¡ Name: ¡Acme, ¡Inc.
 Zip: ¡95134
 …

Relationship
 CUSTOMER ¡ Transactions: ¡467
 Years: ¡ ¡3 Relationship
 LICENSE
 Years: ¡8 Relationship
 CUSTOMER ¡ Transactions: ¡125
 Years: ¡ ¡1 Relationship
 LICENSE
 Years: ¡ ¡3

#1: ¡Payment ¡Graph ¡Example

slide-44
SLIDE 44

Streamlining ¡
 credit ¡card
 chargebacks

Cardholder ¡calls
 card ¡issuer ¡to ¡dispute ¡ transaction Cardholder ¡receives ¡
 credit ¡card ¡statement Card ¡issuer ¡returns ¡ transaction ¡through ¡ card ¡network Acquirer ¡resolves ¡chargeback ¡


  • r ¡forwards ¡it ¡to ¡merchant

Merchant ¡receives ¡chargeback ¡
 and ¡accepts ¡or ¡challenges ¡it Acquirer ¡forwards ¡ representation ¡
 to ¡card ¡network Card ¡issuer ¡verifies ¡ representation ¡and ¡
 credits ¡cardholder Network ¡verifies ¡and ¡
 forwards ¡representation ¡
 to ¡card ¡issuer

#1: ¡Payment ¡Graph ¡Example

1

Payment

slide-45
SLIDE 45

1

Payment

2

Customer

3

Entitlement

4

Asset

5

Master ¡Data

The ¡Five ¡Graphs ¡of ¡Finance

2

Customer
 Graph

slide-46
SLIDE 46

All ¡Companies ¡and ¡Customers ¡Are ¡Related

2

Customer

slide-47
SLIDE 47

The ¡Corporate ¡ Hierarchy ¡is ¡
 really ¡a ¡graph

2

Customer

Corporate ¡Hierarchy ¡is ¡Really ¡a ¡Graph

slide-48
SLIDE 48

Name ¡ Windsor ¡Press, ¡Inc. ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ Address ¡ 6 ¡North ¡Third ¡St
 ¡ ¡ ¡ ¡ ¡ ¡ City ¡ Hamburg ¡ State ¡ PA ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ Zip ¡ 19526
 ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ Phone ¡ 610-­‑562-­‑2267 Name ¡ The ¡Windsor ¡Press
 ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ Address ¡ 6 ¡North ¡3rd ¡Street
 City ¡ Hamburg ¡ State ¡ PA ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ Zip ¡ 19526-­‑0465
 ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ Phone ¡ 610-­‑562-­‑2267 ID ¡ 002114902
 ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ Name ¡ Windsor ¡Press, ¡Inc. ¡ Address ¡ 6 ¡N ¡3rd ¡St
 ¡ ¡ ¡ ¡ ¡ ¡ City ¡ Hamburg ¡ State ¡ PA ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ Zip ¡ 19526-­‑1502
 ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ ¡ Phone ¡ 610-­‑562-­‑2267

Both ¡of ¡the ¡records ¡ above ¡map ¡to ¡the ¡ same ¡record

2

Customer

Cleaning ¡and ¡Matching ¡for ¡360-­‑Degree ¡Master ¡View

slide-49
SLIDE 49

Synthetic ¡Identities ¡and ¡Fraud ¡Rings

145 ¡Hickory ¡Rd
 Pasadena, ¡CA 415 ¡Hickory ¡St
 Pasadena, ¡CA 626-­‑407-­‑1234 626-­‑814-­‑6532

Quickly ¡see ¡which ¡customers ¡share ¡the ¡ same ¡contact ¡information

2

Customer

slide-50
SLIDE 50

3 ¡fake ¡addresses ¡and ¡
 3 ¡fake ¡phone ¡addresses
 can ¡create ¡9 ¡fake ¡customers

2

Customer

Bank ¡Fraud ¡Using ¡False ¡Personas

slide-51
SLIDE 51

High ¡Speed ¡Fraud ¡-­‑ ¡1000 ¡R/S

http://maxdemarzi.com/2014/02/12/online-­‑payment-­‑risk-­‑management-­‑with-­‑neo4j/ ¡

slide-52
SLIDE 52

High ¡Speed ¡Fraud ¡-­‑ ¡8000 ¡R/S

http://maxdemarzi.com/2014/02/27/neo4j-­‑at-­‑ludicrous-­‑speed/

slide-53
SLIDE 53

High ¡Speed ¡Fraud ¡-­‑ ¡28000 ¡R/S

http://maxdemarzi.com/2014/03/10/its-­‑over-­‑9000-­‑neo4j-­‑on-­‑websockets/

slide-54
SLIDE 54

1

Payment

2

Customer

3

Entitlement

4

Asset

5

Master ¡Data

The ¡Five ¡Graphs ¡of ¡Finance

3

Entitlement
 Graph

slide-55
SLIDE 55

http://blogs.gartner.com/ian-­‑glazer/2013/02/08/killing-­‑iam-­‑in-­‑order-­‑to-­‑save-­‑it/

Killing ¡IAM ¡in ¡Order ¡to ¡Save ¡It

3

Entitlement

slide-56
SLIDE 56

Access ¡Control

slide-57
SLIDE 57

Permission ¡Resolution

http://maxdemarzi.com/2013/03/18/permission-­‑resolution-­‑with-­‑neo4j-­‑part-­‑1/ ¡

slide-58
SLIDE 58

1

Payment

2

Customer

3

Entitlement

4

Asset

5

Master ¡Data

The ¡Five ¡Graphs ¡of ¡Finance

4

Asset
 Graph

slide-59
SLIDE 59

Portfolio ¡Analytics

Asset ¡Graph ¡Examples

IT ¡Asset ¡Management Risk ¡Analysis

4

Asset

slide-60
SLIDE 60

Express ¡Complex ¡Relationship ¡Queries ¡Easily

For ¡a ¡given ¡fund, ¡return ¡all ¡assets ¡ that ¡are ¡made ¡up ¡of ¡other ¡assets, ¡

  • rdered ¡by ¡the ¡total ¡number ¡of ¡

included ¡assets Cypher ¡Query SQL ¡Query

MATCH ¡(fund)-­‑[:INCLUDES*0..n]-­‑>(sub), ¡ ¡ ¡ ¡ ¡ ¡ ¡(sub)-­‑[:INCLUDES*1..n]-­‑>(asset) ¡ WHERE ¡fund.ticker ¡= ¡“TRLGX” ¡ RETURN ¡sub.ticker ¡AS ¡Asset_Group, ¡
 ¡ ¡ ¡ ¡ ¡ ¡count(asset) ¡AS ¡Total ¡ ORDER ¡BY ¡Total ¡DESC

slide-61
SLIDE 61

The ¡Five ¡Graphs ¡of ¡Finance

1

Payment

2

Customer

3

Entitlement

4

Asset

5

Master ¡Data

5

Master ¡Data
 Graph

slide-62
SLIDE 62

Research ¡Management

slide-63
SLIDE 63

High ¡Frequency ¡Lies

slide-64
SLIDE 64

Research ¡in ¡Context

slide-65
SLIDE 65

Linked ¡Data

Connect ¡to ¡the ¡ ¡ Semantic ¡Web

slide-66
SLIDE 66

Technology ¡for ¡Managing
 the ¡Five ¡Graphs ¡of ¡Finance

1

Payment

2

Customer

3

Entitlement

4

Asset

5

Master ¡Data

slide-67
SLIDE 67

Intercontinental ¡Exchange

Social ¡network
 for ¡brokers

5

Master
 Data

slide-68
SLIDE 68

Hello ¡World ¡Recommendation

slide-69
SLIDE 69

Hello ¡World ¡Recommendation

slide-70
SLIDE 70

Movie ¡Data ¡Model

slide-71
SLIDE 71

Cypher ¡Query: ¡Movie ¡Recommendation

MATCH ¡(watched:Movie ¡{title:"Toy ¡Story”}) ¡<-­‑[r1:RATED]-­‑ ¡() ¡-­‑[r2:RATED]-­‑> ¡(unseen:Movie) ¡ WHERE ¡r1.rating ¡> ¡7 ¡AND ¡r2.rating ¡> ¡7 ¡ AND ¡watched.genres ¡= ¡unseen.genres ¡ AND ¡NOT( ¡(:Person ¡{username:”maxdemarzi"}) ¡-­‑[:RATED|WATCHED]-­‑> ¡(unseen) ¡) ¡ RETURN ¡unseen.title, ¡COUNT(*) ¡ ORDER ¡BY ¡COUNT(*) ¡DESC ¡ LIMIT ¡25

What ¡are ¡the ¡Top ¡25 ¡Movies ¡

  • that ¡I ¡haven't ¡seen ¡
  • with ¡the ¡same ¡genres ¡as ¡Toy ¡Story ¡ ¡
  • given ¡high ¡ratings ¡
  • by ¡people ¡who ¡liked ¡Toy ¡Story
slide-72
SLIDE 72

Relational ¡Databases ¡Can’t ¡Handle ¡Relationships ¡Well

  • Cannot ¡model ¡or ¡store ¡data ¡and ¡relationships ¡

without ¡complexity ¡

  • Performance ¡degrades ¡with ¡number ¡& ¡levels ¡of ¡

relationships, ¡and ¡database ¡size ¡

  • Query ¡complexity ¡grows ¡with ¡need ¡for ¡JOINs ¡
  • Adding ¡new ¡types ¡of ¡ ¡data ¡and ¡relationships ¡

requires ¡schema ¡redesign, ¡increasing ¡time ¡to ¡ market ¡

… ¡making ¡traditional ¡databases ¡inappropriate ¡when ¡ relationships ¡are ¡valuable ¡in ¡real-­‑time Slow ¡development
 Poor ¡performance
 Low ¡scalability
 Hard ¡to ¡maintain

slide-73
SLIDE 73

NoSQL ¡Databases ¡Don’t ¡Handle ¡Relationships

  • No ¡data ¡structures ¡to ¡model ¡or ¡store ¡

relationships ¡

  • No ¡query ¡constructs ¡to ¡support ¡

relationships ¡

  • Relating ¡data ¡requires ¡“JOIN ¡logic” ¡in ¡the ¡

application ¡

  • No ¡ACID ¡support ¡for ¡transactions ¡

… ¡making ¡NoSQL ¡databases ¡inappropriate ¡when ¡ relationships ¡are ¡valuable ¡in ¡real-­‑time

slide-74
SLIDE 74

Real-­‑Time ¡Query ¡Performance


Performance ¡must ¡hold ¡steady ¡with ¡scale

Connectedness ¡and ¡Size ¡of ¡Data ¡Set Response ¡Time

0 ¡to ¡2 ¡hops
 0 ¡to ¡3 ¡degrees
 Thousands ¡of ¡connections Tens ¡to ¡hundreds ¡of ¡hops
 Thousands ¡of ¡degrees
 Billions ¡ ¡of ¡connections

Relational ¡and
 Other ¡NoSQL
 Databases Neo4j

Neo4j ¡is ¡
 1000x ¡faster
 Reduces ¡minutes ¡
 to ¡milliseconds

slide-75
SLIDE 75

Re-­‑Imagine ¡Your ¡Data ¡as ¡a ¡Graph

Neo4j ¡is ¡an ¡enterprise-­‑grade ¡graph ¡ database ¡that ¡enables ¡you ¡to: ¡

  • Model ¡and ¡store ¡your ¡data ¡as ¡a ¡

graph ¡

  • Query ¡relationships ¡with ¡ease ¡

and ¡in ¡real-­‑time ¡

  • Seamlessly ¡evolve ¡applications ¡

to ¡support ¡new ¡requirements ¡by ¡
 adding ¡new ¡kinds ¡of ¡data ¡and ¡ relationships

Agile ¡development
 High ¡performance
 Vertical ¡and ¡horizontal ¡scale
 Seamless ¡evolution

slide-76
SLIDE 76

THANK ¡YOU