SlideShare a Scribd company logo
1 of 13
LEGISLATR
WILL A BILL PASS AND WHO PAID FOR IT?
CREATED BY,
ETHAN D. PECK., PH.D.
CAN YOU PREDICT THE
OUTCOME OF LEGISLATIVE BILLS?
WHERE DOES THE MONEY COME FROM FOR THE BILL?
DATA PUBLICLY AVAILABLE (~10 GB)
1) Bill data comes from govtrack.us
• JSON files, needed some adjustments.
2) Contribution data comes from senate.gov
• XML files, very messy.
THE PREDICTIVE MODEL
• Random Forest
• Reduced >2500 features to ~1300 features
• Bill Topics
• Sponsors
• Committees
• >30,000 training samples
• ~30:1 Fail:Pass class imbalance.
• Optimized against F1-Score.
Statistic Govtrack.us Legislatr
Precision 54% 51%
Recall 22% 51%
Reality
Pass Fail
Prediction Pass 110 105
Fail 106 5707
KEY TAKEAWAYS
1)You have the best prediction.
2)You know what interests resulted in the creation of
the bill.
ABOUT ME
• Ph.D. in Atmospheric and
Oceanic Science
• Space weather effects on climate
• Meteorology
• Hobbies:
• Karate, Hiking
EXTRA
WHY A RANDOM FOREST
• First try was on a logistic regression model.
• Accuracy was 78%, compared to an “all Fail” guess of 96.5%.
• Also tried SVM (lincear SVC), but accuracy was still too low.
• Govtrack.us uses a logistic regression, but has very complex features.
• Features are things like, a certain senator wrote the bill and is also the chair of the
committee the bill is sent to.
• Random forest can capture these complex interactions without having super complex
features.
• My model is able to provide the importance of different features.
• Provides insights that a NN or SVM would not be able to.
REDUCING THE FEATURE SPACE
• Used Python networkx package with Girvan-Newman algorithm.
• First removed all edges with weak connections.
• Next used Girvan-Newman algorithm. Remove edges with highest
betweeness centrality to break apart hairball.
• Essentially just showed that everything was just a hairball with no
separate clusters to be made.
THE MONEY TRAIL
1)Link legislators to lobbyists. (Pre-processing and
Levenshtein distance)
2)Identify influential lobbyists for the bill.
3)Present breakdown of funding.
THE LEGISLATIVE PROCESS
WHY NOT PREDICT USING MONEY?
• Money is one step removed from the bill.
• So you could predict using money, but that information is already
included by using the sponsors of the bill.
• Predicting with money would be an advantage if you had a new
legislator and thus no other way to make a prediction.

More Related Content

Viewers also liked

wolfgang-lugmayr.net - mein Tun
wolfgang-lugmayr.net - mein Tunwolfgang-lugmayr.net - mein Tun
wolfgang-lugmayr.net - mein TunWolfgang Lugmayr
 
Potential&opprt of trade in CAR&SA, 28Oct15
Potential&opprt of trade in CAR&SA, 28Oct15Potential&opprt of trade in CAR&SA, 28Oct15
Potential&opprt of trade in CAR&SA, 28Oct15Timur Nuratdinov
 
Load Forecasting
Load ForecastingLoad Forecasting
Load ForecastingPowerEDGE
 
Industrial training in delhi ncr with placement
Industrial training in delhi ncr with placementIndustrial training in delhi ncr with placement
Industrial training in delhi ncr with placementPriyanka Mourya
 

Viewers also liked (6)

wolfgang-lugmayr.net - mein Tun
wolfgang-lugmayr.net - mein Tunwolfgang-lugmayr.net - mein Tun
wolfgang-lugmayr.net - mein Tun
 
Potential&opprt of trade in CAR&SA, 28Oct15
Potential&opprt of trade in CAR&SA, 28Oct15Potential&opprt of trade in CAR&SA, 28Oct15
Potential&opprt of trade in CAR&SA, 28Oct15
 
Antecedentes pgm
Antecedentes pgmAntecedentes pgm
Antecedentes pgm
 
Load Forecasting
Load ForecastingLoad Forecasting
Load Forecasting
 
Pp
PpPp
Pp
 
Industrial training in delhi ncr with placement
Industrial training in delhi ncr with placementIndustrial training in delhi ncr with placement
Industrial training in delhi ncr with placement
 

Similar to Legislatr_demoSlides

Schaffner Quantum Computing and Cryptography.pptx
Schaffner Quantum Computing and Cryptography.pptxSchaffner Quantum Computing and Cryptography.pptx
Schaffner Quantum Computing and Cryptography.pptxsanta142869
 
introduction into IR
introduction into IRintroduction into IR
introduction into IRssusere3b1a2
 
lecture1-intro.ppt
lecture1-intro.pptlecture1-intro.ppt
lecture1-intro.pptIshaXogaha
 
Summarization, Approximation, Sampling: Improving Query Times on Big Data
Summarization, Approximation, Sampling: Improving Query Times on Big DataSummarization, Approximation, Sampling: Improving Query Times on Big Data
Summarization, Approximation, Sampling: Improving Query Times on Big DataDataWorks Summit
 
Era ofdataeconomyv4short
Era ofdataeconomyv4shortEra ofdataeconomyv4short
Era ofdataeconomyv4shortJun Miyazaki
 
Token Design as Optimization Design
Token Design as Optimization DesignToken Design as Optimization Design
Token Design as Optimization DesignTrent McConaghy
 
NYC Data Web (static version) - A Semantic, Open Public Data Exchange for NYC
NYC Data Web (static version) - A Semantic, Open Public Data Exchange for NYCNYC Data Web (static version) - A Semantic, Open Public Data Exchange for NYC
NYC Data Web (static version) - A Semantic, Open Public Data Exchange for NYCJoel Natividad
 
H2O World - Clustering & Feature Extraction on Text - Seth Redmore
H2O World - Clustering & Feature Extraction on Text - Seth RedmoreH2O World - Clustering & Feature Extraction on Text - Seth Redmore
H2O World - Clustering & Feature Extraction on Text - Seth RedmoreSri Ambati
 
Smart Cities, Open Data and SMW - SMWCon Spring 2012 Keynote
Smart Cities, Open Data and SMW - SMWCon Spring 2012 KeynoteSmart Cities, Open Data and SMW - SMWCon Spring 2012 Keynote
Smart Cities, Open Data and SMW - SMWCon Spring 2012 KeynoteJoel Natividad
 
SaaS and the Transformation of Research
SaaS and the Transformation of ResearchSaaS and the Transformation of Research
SaaS and the Transformation of ResearchVas Vasiliadis
 
Fiber not Just for bREAKFAST
Fiber not Just for bREAKFASTFiber not Just for bREAKFAST
Fiber not Just for bREAKFASTAnn Treacy
 
Architecting estonia
Architecting estoniaArchitecting estonia
Architecting estoniaAndres Kütt
 
Three Laws of Trusted Data Sharing: (Building a Better Business Case for Dat...
Three Laws of Trusted Data Sharing:(Building a Better Business Case for Dat...Three Laws of Trusted Data Sharing:(Building a Better Business Case for Dat...
Three Laws of Trusted Data Sharing: (Building a Better Business Case for Dat...CS, NcState
 
Big Data: What's it Really About?
Big Data: What's it Really About?Big Data: What's it Really About?
Big Data: What's it Really About?inside-BigData.com
 
Essay Writing For Elementary Students. Online assignment writing service.
Essay Writing For Elementary Students. Online assignment writing service.Essay Writing For Elementary Students. Online assignment writing service.
Essay Writing For Elementary Students. Online assignment writing service.Finni Rice
 
Curated Proof Markets & Token-Curated Identities in Ocean Protocol
Curated Proof Markets & Token-Curated Identities in Ocean ProtocolCurated Proof Markets & Token-Curated Identities in Ocean Protocol
Curated Proof Markets & Token-Curated Identities in Ocean ProtocolTrent McConaghy
 

Similar to Legislatr_demoSlides (20)

Schaffner Quantum Computing and Cryptography.pptx
Schaffner Quantum Computing and Cryptography.pptxSchaffner Quantum Computing and Cryptography.pptx
Schaffner Quantum Computing and Cryptography.pptx
 
introduction into IR
introduction into IRintroduction into IR
introduction into IR
 
lecture1-intro.ppt
lecture1-intro.pptlecture1-intro.ppt
lecture1-intro.ppt
 
lecture1-intro.ppt
lecture1-intro.pptlecture1-intro.ppt
lecture1-intro.ppt
 
Summarization, Approximation, Sampling: Improving Query Times on Big Data
Summarization, Approximation, Sampling: Improving Query Times on Big DataSummarization, Approximation, Sampling: Improving Query Times on Big Data
Summarization, Approximation, Sampling: Improving Query Times on Big Data
 
Era ofdataeconomyv4short
Era ofdataeconomyv4shortEra ofdataeconomyv4short
Era ofdataeconomyv4short
 
Token Design as Optimization Design
Token Design as Optimization DesignToken Design as Optimization Design
Token Design as Optimization Design
 
NYC Data Web (static version) - A Semantic, Open Public Data Exchange for NYC
NYC Data Web (static version) - A Semantic, Open Public Data Exchange for NYCNYC Data Web (static version) - A Semantic, Open Public Data Exchange for NYC
NYC Data Web (static version) - A Semantic, Open Public Data Exchange for NYC
 
Cook County at Chi Hack Night
Cook County at Chi Hack NightCook County at Chi Hack Night
Cook County at Chi Hack Night
 
H2O World - Clustering & Feature Extraction on Text - Seth Redmore
H2O World - Clustering & Feature Extraction on Text - Seth RedmoreH2O World - Clustering & Feature Extraction on Text - Seth Redmore
H2O World - Clustering & Feature Extraction on Text - Seth Redmore
 
Adventures in Forecasting V6
Adventures in Forecasting V6Adventures in Forecasting V6
Adventures in Forecasting V6
 
Smart Cities, Open Data and SMW - SMWCon Spring 2012 Keynote
Smart Cities, Open Data and SMW - SMWCon Spring 2012 KeynoteSmart Cities, Open Data and SMW - SMWCon Spring 2012 Keynote
Smart Cities, Open Data and SMW - SMWCon Spring 2012 Keynote
 
SaaS and the Transformation of Research
SaaS and the Transformation of ResearchSaaS and the Transformation of Research
SaaS and the Transformation of Research
 
Fiber not Just for bREAKFAST
Fiber not Just for bREAKFASTFiber not Just for bREAKFAST
Fiber not Just for bREAKFAST
 
Sensors1(1)
Sensors1(1)Sensors1(1)
Sensors1(1)
 
Architecting estonia
Architecting estoniaArchitecting estonia
Architecting estonia
 
Three Laws of Trusted Data Sharing: (Building a Better Business Case for Dat...
Three Laws of Trusted Data Sharing:(Building a Better Business Case for Dat...Three Laws of Trusted Data Sharing:(Building a Better Business Case for Dat...
Three Laws of Trusted Data Sharing: (Building a Better Business Case for Dat...
 
Big Data: What's it Really About?
Big Data: What's it Really About?Big Data: What's it Really About?
Big Data: What's it Really About?
 
Essay Writing For Elementary Students. Online assignment writing service.
Essay Writing For Elementary Students. Online assignment writing service.Essay Writing For Elementary Students. Online assignment writing service.
Essay Writing For Elementary Students. Online assignment writing service.
 
Curated Proof Markets & Token-Curated Identities in Ocean Protocol
Curated Proof Markets & Token-Curated Identities in Ocean ProtocolCurated Proof Markets & Token-Curated Identities in Ocean Protocol
Curated Proof Markets & Token-Curated Identities in Ocean Protocol
 

Recently uploaded

Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...nirzagarg
 
Aspirational Block Program Block Syaldey District - Almora
Aspirational Block Program Block Syaldey District - AlmoraAspirational Block Program Block Syaldey District - Almora
Aspirational Block Program Block Syaldey District - AlmoraGovindSinghDasila
 
Diamond Harbour \ Russian Call Girls Kolkata | Book 8005736733 Extreme Naught...
Diamond Harbour \ Russian Call Girls Kolkata | Book 8005736733 Extreme Naught...Diamond Harbour \ Russian Call Girls Kolkata | Book 8005736733 Extreme Naught...
Diamond Harbour \ Russian Call Girls Kolkata | Book 8005736733 Extreme Naught...HyderabadDolls
 
Top profile Call Girls In Indore [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Indore [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Indore [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Indore [ 7014168258 ] Call Me For Genuine Models We...gajnagarg
 
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...HyderabadDolls
 
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptxRESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptxronsairoathenadugay
 
Ranking and Scoring Exercises for Research
Ranking and Scoring Exercises for ResearchRanking and Scoring Exercises for Research
Ranking and Scoring Exercises for ResearchRajesh Mondal
 
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book nowVadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book nowgargpaaro
 
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...nirzagarg
 
Digital Transformation Playbook by Graham Ware
Digital Transformation Playbook by Graham WareDigital Transformation Playbook by Graham Ware
Digital Transformation Playbook by Graham WareGraham Ware
 
Introduction to Statistics Presentation.pptx
Introduction to Statistics Presentation.pptxIntroduction to Statistics Presentation.pptx
Introduction to Statistics Presentation.pptxAniqa Zai
 
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...Elaine Werffeli
 
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制vexqp
 
Dubai Call Girls Peeing O525547819 Call Girls Dubai
Dubai Call Girls Peeing O525547819 Call Girls DubaiDubai Call Girls Peeing O525547819 Call Girls Dubai
Dubai Call Girls Peeing O525547819 Call Girls Dubaikojalkojal131
 
High Profile Call Girls Service in Jalore { 9332606886 } VVIP NISHA Call Girl...
High Profile Call Girls Service in Jalore { 9332606886 } VVIP NISHA Call Girl...High Profile Call Girls Service in Jalore { 9332606886 } VVIP NISHA Call Girl...
High Profile Call Girls Service in Jalore { 9332606886 } VVIP NISHA Call Girl...kumargunjan9515
 
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi ArabiaIn Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabiaahmedjiabur940
 
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...nirzagarg
 
💞 Safe And Secure Call Girls Agra Call Girls Service Just Call 🍑👄6378878445 🍑...
💞 Safe And Secure Call Girls Agra Call Girls Service Just Call 🍑👄6378878445 🍑...💞 Safe And Secure Call Girls Agra Call Girls Service Just Call 🍑👄6378878445 🍑...
💞 Safe And Secure Call Girls Agra Call Girls Service Just Call 🍑👄6378878445 🍑...vershagrag
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...gajnagarg
 

Recently uploaded (20)

Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Satna [ 7014168258 ] Call Me For Genuine Models We ...
 
Aspirational Block Program Block Syaldey District - Almora
Aspirational Block Program Block Syaldey District - AlmoraAspirational Block Program Block Syaldey District - Almora
Aspirational Block Program Block Syaldey District - Almora
 
Diamond Harbour \ Russian Call Girls Kolkata | Book 8005736733 Extreme Naught...
Diamond Harbour \ Russian Call Girls Kolkata | Book 8005736733 Extreme Naught...Diamond Harbour \ Russian Call Girls Kolkata | Book 8005736733 Extreme Naught...
Diamond Harbour \ Russian Call Girls Kolkata | Book 8005736733 Extreme Naught...
 
Top profile Call Girls In Indore [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Indore [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Indore [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Indore [ 7014168258 ] Call Me For Genuine Models We...
 
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...
Charbagh + Female Escorts Service in Lucknow | Starting ₹,5K To @25k with A/C...
 
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptxRESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
RESEARCH-FINAL-DEFENSE-PPT-TEMPLATE.pptx
 
Ranking and Scoring Exercises for Research
Ranking and Scoring Exercises for ResearchRanking and Scoring Exercises for Research
Ranking and Scoring Exercises for Research
 
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book nowVadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
Vadodara 💋 Call Girl 7737669865 Call Girls in Vadodara Escort service book now
 
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...
Top profile Call Girls In Hapur [ 7014168258 ] Call Me For Genuine Models We ...
 
Digital Transformation Playbook by Graham Ware
Digital Transformation Playbook by Graham WareDigital Transformation Playbook by Graham Ware
Digital Transformation Playbook by Graham Ware
 
Introduction to Statistics Presentation.pptx
Introduction to Statistics Presentation.pptxIntroduction to Statistics Presentation.pptx
Introduction to Statistics Presentation.pptx
 
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
SAC 25 Final National, Regional & Local Angel Group Investing Insights 2024 0...
 
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
怎样办理圣地亚哥州立大学毕业证(SDSU毕业证书)成绩单学校原版复制
 
Dubai Call Girls Peeing O525547819 Call Girls Dubai
Dubai Call Girls Peeing O525547819 Call Girls DubaiDubai Call Girls Peeing O525547819 Call Girls Dubai
Dubai Call Girls Peeing O525547819 Call Girls Dubai
 
High Profile Call Girls Service in Jalore { 9332606886 } VVIP NISHA Call Girl...
High Profile Call Girls Service in Jalore { 9332606886 } VVIP NISHA Call Girl...High Profile Call Girls Service in Jalore { 9332606886 } VVIP NISHA Call Girl...
High Profile Call Girls Service in Jalore { 9332606886 } VVIP NISHA Call Girl...
 
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi ArabiaIn Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
In Riyadh ((+919101817206)) Cytotec kit @ Abortion Pills Saudi Arabia
 
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
Top profile Call Girls In Purnia [ 7014168258 ] Call Me For Genuine Models We...
 
💞 Safe And Secure Call Girls Agra Call Girls Service Just Call 🍑👄6378878445 🍑...
💞 Safe And Secure Call Girls Agra Call Girls Service Just Call 🍑👄6378878445 🍑...💞 Safe And Secure Call Girls Agra Call Girls Service Just Call 🍑👄6378878445 🍑...
💞 Safe And Secure Call Girls Agra Call Girls Service Just Call 🍑👄6378878445 🍑...
 
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Surabaya ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
Top profile Call Girls In Chandrapur [ 7014168258 ] Call Me For Genuine Model...
 

Legislatr_demoSlides

  • 1. LEGISLATR WILL A BILL PASS AND WHO PAID FOR IT? CREATED BY, ETHAN D. PECK., PH.D.
  • 2. CAN YOU PREDICT THE OUTCOME OF LEGISLATIVE BILLS? WHERE DOES THE MONEY COME FROM FOR THE BILL?
  • 3. DATA PUBLICLY AVAILABLE (~10 GB) 1) Bill data comes from govtrack.us • JSON files, needed some adjustments. 2) Contribution data comes from senate.gov • XML files, very messy.
  • 4. THE PREDICTIVE MODEL • Random Forest • Reduced >2500 features to ~1300 features • Bill Topics • Sponsors • Committees • >30,000 training samples • ~30:1 Fail:Pass class imbalance. • Optimized against F1-Score. Statistic Govtrack.us Legislatr Precision 54% 51% Recall 22% 51% Reality Pass Fail Prediction Pass 110 105 Fail 106 5707
  • 5.
  • 6. KEY TAKEAWAYS 1)You have the best prediction. 2)You know what interests resulted in the creation of the bill.
  • 7. ABOUT ME • Ph.D. in Atmospheric and Oceanic Science • Space weather effects on climate • Meteorology • Hobbies: • Karate, Hiking
  • 9. WHY A RANDOM FOREST • First try was on a logistic regression model. • Accuracy was 78%, compared to an “all Fail” guess of 96.5%. • Also tried SVM (lincear SVC), but accuracy was still too low. • Govtrack.us uses a logistic regression, but has very complex features. • Features are things like, a certain senator wrote the bill and is also the chair of the committee the bill is sent to. • Random forest can capture these complex interactions without having super complex features. • My model is able to provide the importance of different features. • Provides insights that a NN or SVM would not be able to.
  • 10. REDUCING THE FEATURE SPACE • Used Python networkx package with Girvan-Newman algorithm. • First removed all edges with weak connections. • Next used Girvan-Newman algorithm. Remove edges with highest betweeness centrality to break apart hairball. • Essentially just showed that everything was just a hairball with no separate clusters to be made.
  • 11. THE MONEY TRAIL 1)Link legislators to lobbyists. (Pre-processing and Levenshtein distance) 2)Identify influential lobbyists for the bill. 3)Present breakdown of funding.
  • 13. WHY NOT PREDICT USING MONEY? • Money is one step removed from the bill. • So you could predict using money, but that information is already included by using the sponsors of the bill. • Predicting with money would be an advantage if you had a new legislator and thus no other way to make a prediction.