SlideShare a Scribd company logo
Uncovering political connections of firms using
machine learning methods
BURN meetup, 9th February 2016
» János Divényi @janosdivenyi « » Jenő Pál @paljenczy «
CEU Microdata
Ádám SzeidlMiklós Koren
CEU Microdata
Ádám SzeidlMiklós Koren
Political connections
and favoritism in
Hungary
Political connections matter
Political connections matter
Guess the color: left or right
Altus Zrt. Fittelina Kft. Mahír Zrt. Közgép Zrt.
Guess the color: left or right
Altus Zrt. Fittelina Kft. Mahír Zrt. Közgép Zrt.
Guess the color: left or right
Altus Zrt. Fittelina Kft. Mahír Zrt. Közgép Zrt.
Guess the color: left or right
How to automate the process
for each firm?
Framework
Information Decision rule
Information
Firm register Election data
Information
Firm register Election data
Information
Firm register Election data
~5M rows ~350k rows
Information
Firm register Election data
~5M rows ~350k rows
data.table
Decision rule
~1B rows ~1B rows
The firm is right
if there are
more right than left politicians
in the firm
Guess the color: left or right
Altus Zrt. Fittelina Kft.Mahír Zrt. Közgép Zrt.
Guess the color: left or right
Altus Zrt. Fittelina Kft. Mahír Zrt. Közgép Zrt.
firm1 firm6 firm11 firm16 firm21 firm26 firm31 firm36 firm41 firm46
firm2 firm7 firm12 firm17 firm22 firm27 firm32 firm37 firm42 firm47
firm3 firm8 firm13 firm18 firm23 firm28 firm33 firm38 firm43 firm48
firm4 firm9 firm14 firm19 firm24 firm29 firm34 firm39 firm44 firm49
firm5 firm10 firm15 firm20 firm25 firm30 firm35 firm40 firm45 firm50
Guess the color: left or right
firm1 firm6 firm11 firm16 firm21 firm26 firm31 firm36 firm41 firm46
firm2 firm7 firm12 firm17 firm22 firm27 firm32 firm37 firm42 firm47
firm3 firm8 firm13 firm18 firm23 firm28 firm33 firm38 firm43 firm48
firm4 firm9 firm14 firm19 firm24 firm29 firm34 firm39 firm44 firm49
firm5 firm10 firm15 firm20 firm25 firm30 firm35 firm40 firm45 firm50
Guess the color: left or right
firm1 firm6 firm11 firm16 firm21 firm26 firm31 firms36 firm41 firm46
firm2 firm7 firm12 firm17 firm22 firm27 firm32 firm37 firm42 firm47
firm3 firm8 firm13 firm18 firm23 firm28 firm33 firm38 firm43 firm48
firm4 firm9 firm14 firm19 firm24 firm29 firm34 firm39 firm44 firm49
firm5 firm10 firm15 firm20 firm25 firm30 firm35 firm40 firm45 firm50
Guess the color: left or right
Ferenc Gyurcsány
PM of left coalition
2004-2009
Ferenc Gyurcsány
PM of left coalition
2004-2009
Ferenc Gyurcsán
local representative at Nyíregyháza
1998
Framework
Information Decision rule
Improve data
What is the chance that
firm person & politician
is the same?
Improve data
What is the chance that
firm person & politician
is the same?
Probabilistic
coloring
Improve data
What is the chance that
firm person & politician
is the same?
69% left 31% other
Probabilistic
coloring
Decision rule
~1B rows ~1B rows
The firm is right
if the average right probability
is larger
than the average left probability
Guess the color: left or right
Altus Zrt. Fittelina Kft. Mahír Zrt. Közgép Zrt.
Guess the color: left or right
Altus Zrt. Fittelina Kft. Mahír Zrt. Közgép Zrt.
firm1 firm6 firm11 firm16 firm21 firm26 firm31 firm36 firm41 firm46
firm2 firm7 firm12 firm17 firm22 firm27 firm32 firm37 firm42 firm47
firm3 firm8 firm13 firm18 firm23 firm28 firm33 firm38 firm43 firm48
firm4 firm9 firm14 firm19 firm24 firm29 firm34 firm39 firm44 firm49
firm5 firm10 firm15 firm20 firm25 firm30 firm35 firm40 firm45 firm50
Guess the color: left or right
Framework
Information Decision rule
Improve information
Improve information
Improve information
Links: common ownership or location
Improve information
Oligarchopedia
Improve information
Improve information
Improve information
Improve information
igraph
Improve decision rule
use machine learning
instead of ad hoc algorithms
Improve decision rule
use machine learning
instead of ad hoc algorithms
need training data
Improve decision rule
Improve decision rule
Improve decision rule
one interface to many algorithms
streamlines the process of machine learning
parallel computation with reproducibility
Improve decision rule
caret
classification and
regression training
one interface to many algorithms
streamlines the process of machine learning
parallel computation with reproducibility
Improve decision rule
caret
classification and
regression training
doParallel
The train function
Parallel computation
Seeds for parallel stochastic models
firm1 firm6 firm11 firm16 firm21 firm26 firm31 firm36 firm41 firm46
firm2 firm7 firm12 firm17 firm22 firm27 firm32 firm37 firm42 firm47
firm3 firm8 firm13 firm18 firm23 firm28 firm33 firm38 firm43 firm48
firm4 firm9 firm14 firm19 firm24 firm29 firm34 firm39 firm44 firm49
firm5 firm10 firm15 firm20 firm25 firm30 firm35 firm40 firm45 firm50
Guess the color: left or right
iterative process
involving manipulation, visualization, modelling, etc
Takeaways
iterative process
involving manipulation, visualization, modelling, etc
data.table
Takeaways
igraph
ggplot2
caret
ROCR
doParallel
Miklós Koren, Ádám Szeidl, Márta Bisztray, Anna Csonka,
Krisztián Fekete, Attila Gáspár, Dániel Molnár, Gábor Nyéki,
Krisztina Orbán, Rita Pető, Balázs Reizer, Mátyás Steiner,
Bálint Szilágyi, Ferenc Szűcs, András Vereckei, Zsófia
Kőműves, Olivér Kiss, Dániel Pass, Dávid Popper and others...
Thanks for the attention

More Related Content

More from János Divényi

Slide4 bme adat_2015
Slide4 bme adat_2015Slide4 bme adat_2015
Slide4 bme adat_2015
János Divényi
 
Slide3 bme adat_2015
Slide3 bme adat_2015Slide3 bme adat_2015
Slide3 bme adat_2015
János Divényi
 
Slide2 bme adat_2015
Slide2 bme adat_2015Slide2 bme adat_2015
Slide2 bme adat_2015
János Divényi
 
Slide1 bme adat_2015
Slide1 bme adat_2015Slide1 bme adat_2015
Slide1 bme adat_2015
János Divényi
 
Why code
Why codeWhy code
Why code
János Divényi
 
How to-code-r
How to-code-rHow to-code-r
How to-code-r
János Divényi
 
How to code?
How to code?How to code?
How to code?
János Divényi
 
Why code?
Why code?Why code?
Why code?
János Divényi
 

More from János Divényi (8)

Slide4 bme adat_2015
Slide4 bme adat_2015Slide4 bme adat_2015
Slide4 bme adat_2015
 
Slide3 bme adat_2015
Slide3 bme adat_2015Slide3 bme adat_2015
Slide3 bme adat_2015
 
Slide2 bme adat_2015
Slide2 bme adat_2015Slide2 bme adat_2015
Slide2 bme adat_2015
 
Slide1 bme adat_2015
Slide1 bme adat_2015Slide1 bme adat_2015
Slide1 bme adat_2015
 
Why code
Why codeWhy code
Why code
 
How to-code-r
How to-code-rHow to-code-r
How to-code-r
 
How to code?
How to code?How to code?
How to code?
 
Why code?
Why code?Why code?
Why code?
 

Recently uploaded

一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
nuttdpt
 
"Financial Odyssey: Navigating Past Performance Through Diverse Analytical Lens"
"Financial Odyssey: Navigating Past Performance Through Diverse Analytical Lens""Financial Odyssey: Navigating Past Performance Through Diverse Analytical Lens"
"Financial Odyssey: Navigating Past Performance Through Diverse Analytical Lens"
sameer shah
 
原版一比一利兹贝克特大学毕业证(LeedsBeckett毕业证书)如何办理
原版一比一利兹贝克特大学毕业证(LeedsBeckett毕业证书)如何办理原版一比一利兹贝克特大学毕业证(LeedsBeckett毕业证书)如何办理
原版一比一利兹贝克特大学毕业证(LeedsBeckett毕业证书)如何办理
wyddcwye1
 
A presentation that explain the Power BI Licensing
A presentation that explain the Power BI LicensingA presentation that explain the Power BI Licensing
A presentation that explain the Power BI Licensing
AlessioFois2
 
在线办理(英国UCA毕业证书)创意艺术大学毕业证在读证明一模一样
在线办理(英国UCA毕业证书)创意艺术大学毕业证在读证明一模一样在线办理(英国UCA毕业证书)创意艺术大学毕业证在读证明一模一样
在线办理(英国UCA毕业证书)创意艺术大学毕业证在读证明一模一样
v7oacc3l
 
DATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docx
DATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docxDATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docx
DATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docx
SaffaIbrahim1
 
Monthly Management report for the Month of May 2024
Monthly Management report for the Month of May 2024Monthly Management report for the Month of May 2024
Monthly Management report for the Month of May 2024
facilitymanager11
 
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
ihavuls
 
UofT毕业证如何办理
UofT毕业证如何办理UofT毕业证如何办理
UofT毕业证如何办理
exukyp
 
Predictably Improve Your B2B Tech Company's Performance by Leveraging Data
Predictably Improve Your B2B Tech Company's Performance by Leveraging DataPredictably Improve Your B2B Tech Company's Performance by Leveraging Data
Predictably Improve Your B2B Tech Company's Performance by Leveraging Data
Kiwi Creative
 
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
sameer shah
 
End-to-end pipeline agility - Berlin Buzzwords 2024
End-to-end pipeline agility - Berlin Buzzwords 2024End-to-end pipeline agility - Berlin Buzzwords 2024
End-to-end pipeline agility - Berlin Buzzwords 2024
Lars Albertsson
 
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
nyfuhyz
 
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data LakeViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
Walaa Eldin Moustafa
 
The Ipsos - AI - Monitor 2024 Report.pdf
The  Ipsos - AI - Monitor 2024 Report.pdfThe  Ipsos - AI - Monitor 2024 Report.pdf
The Ipsos - AI - Monitor 2024 Report.pdf
Social Samosa
 
Challenges of Nation Building-1.pptx with more important
Challenges of Nation Building-1.pptx with more importantChallenges of Nation Building-1.pptx with more important
Challenges of Nation Building-1.pptx with more important
Sm321
 
一比一原版南十字星大学毕业证(SCU毕业证书)学历如何办理
一比一原版南十字星大学毕业证(SCU毕业证书)学历如何办理一比一原版南十字星大学毕业证(SCU毕业证书)学历如何办理
一比一原版南十字星大学毕业证(SCU毕业证书)学历如何办理
slg6lamcq
 
一比一原版英属哥伦比亚大学毕业证(UBC毕业证书)学历如何办理
一比一原版英属哥伦比亚大学毕业证(UBC毕业证书)学历如何办理一比一原版英属哥伦比亚大学毕业证(UBC毕业证书)学历如何办理
一比一原版英属哥伦比亚大学毕业证(UBC毕业证书)学历如何办理
z6osjkqvd
 
原版一比一弗林德斯大学毕业证(Flinders毕业证书)如何办理
原版一比一弗林德斯大学毕业证(Flinders毕业证书)如何办理原版一比一弗林德斯大学毕业证(Flinders毕业证书)如何办理
原版一比一弗林德斯大学毕业证(Flinders毕业证书)如何办理
a9qfiubqu
 
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
bopyb
 

Recently uploaded (20)

一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
一比一原版(UCSF文凭证书)旧金山分校毕业证如何办理
 
"Financial Odyssey: Navigating Past Performance Through Diverse Analytical Lens"
"Financial Odyssey: Navigating Past Performance Through Diverse Analytical Lens""Financial Odyssey: Navigating Past Performance Through Diverse Analytical Lens"
"Financial Odyssey: Navigating Past Performance Through Diverse Analytical Lens"
 
原版一比一利兹贝克特大学毕业证(LeedsBeckett毕业证书)如何办理
原版一比一利兹贝克特大学毕业证(LeedsBeckett毕业证书)如何办理原版一比一利兹贝克特大学毕业证(LeedsBeckett毕业证书)如何办理
原版一比一利兹贝克特大学毕业证(LeedsBeckett毕业证书)如何办理
 
A presentation that explain the Power BI Licensing
A presentation that explain the Power BI LicensingA presentation that explain the Power BI Licensing
A presentation that explain the Power BI Licensing
 
在线办理(英国UCA毕业证书)创意艺术大学毕业证在读证明一模一样
在线办理(英国UCA毕业证书)创意艺术大学毕业证在读证明一模一样在线办理(英国UCA毕业证书)创意艺术大学毕业证在读证明一模一样
在线办理(英国UCA毕业证书)创意艺术大学毕业证在读证明一模一样
 
DATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docx
DATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docxDATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docx
DATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docx
 
Monthly Management report for the Month of May 2024
Monthly Management report for the Month of May 2024Monthly Management report for the Month of May 2024
Monthly Management report for the Month of May 2024
 
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
原版制作(unimelb毕业证书)墨尔本大学毕业证Offer一模一样
 
UofT毕业证如何办理
UofT毕业证如何办理UofT毕业证如何办理
UofT毕业证如何办理
 
Predictably Improve Your B2B Tech Company's Performance by Leveraging Data
Predictably Improve Your B2B Tech Company's Performance by Leveraging DataPredictably Improve Your B2B Tech Company's Performance by Leveraging Data
Predictably Improve Your B2B Tech Company's Performance by Leveraging Data
 
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
STATATHON: Unleashing the Power of Statistics in a 48-Hour Knowledge Extravag...
 
End-to-end pipeline agility - Berlin Buzzwords 2024
End-to-end pipeline agility - Berlin Buzzwords 2024End-to-end pipeline agility - Berlin Buzzwords 2024
End-to-end pipeline agility - Berlin Buzzwords 2024
 
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
 
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data LakeViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
 
The Ipsos - AI - Monitor 2024 Report.pdf
The  Ipsos - AI - Monitor 2024 Report.pdfThe  Ipsos - AI - Monitor 2024 Report.pdf
The Ipsos - AI - Monitor 2024 Report.pdf
 
Challenges of Nation Building-1.pptx with more important
Challenges of Nation Building-1.pptx with more importantChallenges of Nation Building-1.pptx with more important
Challenges of Nation Building-1.pptx with more important
 
一比一原版南十字星大学毕业证(SCU毕业证书)学历如何办理
一比一原版南十字星大学毕业证(SCU毕业证书)学历如何办理一比一原版南十字星大学毕业证(SCU毕业证书)学历如何办理
一比一原版南十字星大学毕业证(SCU毕业证书)学历如何办理
 
一比一原版英属哥伦比亚大学毕业证(UBC毕业证书)学历如何办理
一比一原版英属哥伦比亚大学毕业证(UBC毕业证书)学历如何办理一比一原版英属哥伦比亚大学毕业证(UBC毕业证书)学历如何办理
一比一原版英属哥伦比亚大学毕业证(UBC毕业证书)学历如何办理
 
原版一比一弗林德斯大学毕业证(Flinders毕业证书)如何办理
原版一比一弗林德斯大学毕业证(Flinders毕业证书)如何办理原版一比一弗林德斯大学毕业证(Flinders毕业证书)如何办理
原版一比一弗林德斯大学毕业证(Flinders毕业证书)如何办理
 
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
 

R meetup-2016-02-09-pc