21
KEEPING GOVERMENTS ACCOUNTABLE WITH OPEN DATA SCIENCE Cezary Podkul, ProPublica | @Cezary 5/31/2015 ODSC 2015 | Boston 1

Boston

Embed Size (px)

Citation preview

Page 1: Boston

KEEPING GOVERMENTS ACCOUNTABLE WITH OPEN DATA SCIENCE

Cezary Podkul, ProPublica | @Cezary

5/31/2015 ODSC 2015 | Boston 1

Page 2: Boston

Quick Word About ProPublica

• We are a non-profit investigative news-room focused on accountability journalism

• We publish stories, develop news apps, tools and open source a lot of our code at: github.com/propublica

5/31/2015 ODSC 2015 | Boston 2

Page 4: Boston

The Good News

5/31/2015 ODSC 2015 | Boston 4

• A lot of data already exists on the finances of state and local governments: – Governments that borrow money from

investors provide bond offering documents and other disclosures on EMMA

– They must also produce annual filings called “Comprehensive Annual Financial Reports” which detail all of their financials

Page 5: Boston

The Good News: EMMA

• What is EMMA? – Electronic Municipal Market Access

• Since 2009, the official repository for muni bond offering documents and continuing disclosures

• Run by the Municipal Securities Rulemaking Board (MSRB)

5 5/31/2015 ODSC 2015 | Boston

Page 6: Boston

• What’s in EMMA?

– Data on more than 1.2 million muni bonds:

• Official statements; ongoing financial disclosures; advance refunding documents; event notices, voluntary disclosures, and more

– Real-time trade data for nearly every municipal bond bought and sold

– Political contribution disclosures (here)

– Documents, documents, more documents

6

The Good News: EMMA

5/31/2015 ODSC 2015 | Boston

Page 7: Boston

The Bad News

5/31/2015 ODSC 2015 | Boston 7

• EMMA is great repository of info, but little of it is easily accessible: – PDFs, PDFs and more PDFs

• Sell a bond? Submit a PDF

• Material event happened? Tell us via PDF

• File financials? File a PDF

– No standardized reporting templates • Important info scattered in different places

– No machine-readable bulk download • XBRL? You wish

Page 8: Boston

Things Could Be Better

5/31/2015 ODSC 2015 | Boston 8

• The SEC’s EDGAR database makes a wealth of info available about corporations: – Bulk download of filings available via FTP:

• http://datahub.io/dataset/edgar • ftp://ftp.sec.gov/

– The agency is also moving away from text-based submissions to XBRL filings: • http://www.sec.gov/info/edgar/edgartaxonomies.shtml

– No PDFs … seriously: • “Only documents submitted to the EDGAR system in

either plain text or HTML are official filings. PDF documents are unofficial copies of filings. Filers may not use the unofficial PDF copies instead of plain text or HTML documents to meet filing requirements.”

Page 10: Boston

The Result

• When Detroit files its Comprehensive Annual Financial Report with EMMA, you get this:

– http://emma.msrb.org/ER789294-ER614016-ER1015978.pdf

5/31/2015 ODSC 2015 | Boston 10

Page 11: Boston

Happy Hunting

5/31/2015 ODSC 2015 | Boston 11

• So how do you spot anomalies like these and write about them in a systematic way?

$0

$500,000,000

$1,000,000,000

$1,500,000,000

$2,000,000,000

$2,500,000,000

$3,000,000,000

$3,500,000,000

10

/20

07

1

0/2

00

8

10

/20

09

1

0/2

01

0

10

/20

11

1

0/2

01

2

10

/20

13

1

0/2

01

4

10

/20

15

1

0/2

01

6

10

/20

17

1

0/2

01

8

10

/20

19

1

0/2

02

0

10

/20

21

1

0/2

02

2

10

/20

23

1

0/2

02

4

10

/20

25

1

0/2

02

6

10

/20

27

1

0/2

02

8

10

/20

29

1

0/2

03

0

10

/20

31

1

0/2

03

2

10

/20

33

1

0/2

03

4

10

/20

35

1

0/2

03

6

10

/20

37

1

0/2

03

8

10

/20

39

1

0/2

04

0

10

/20

41

1

0/2

04

2

10

/20

43

1

0/2

04

4

10

/20

45

1

0/2

04

6

Am

ou

nt

ow

ed

ove

r ti

me

Ohio Series 2007B Tobacco Settlement Bonds

Principal Accreted Interest

$191.3m borrowed, with $3.2bn due at maturity in 2047. Interest accrues at 7.25% interest rate, compounded. No option to redeem until 2017

Page 12: Boston

Example: Tobacco Bonds

5/31/2015 ODSC 2015 | Boston 12

• That’s what I wanted to do for my series on tobacco bonds – state and local debts backed by payments from the 1998 legal settlement with Big Tobacco

Page 13: Boston

Example: Tobacco Bonds

5/31/2015 ODSC 2015 | Boston 13

• Problem: How do you define the sample universe?

– How many bonds are there, which ones are the anomalies?

– Searching on EMMA wasn’t much help; just links to PDFs

• Solution: Asked a data vendor, Thomson Reuters SDC, for their list:

Source: Thomson Reuters SDC

Page 14: Boston

Example: Tobacco Bonds

5/31/2015 ODSC 2015 | Boston 14

• Problem: How do you vet the data?

– Need to ensure completeness and accuracy

• Solution: Lots, and lots of reading

– Re-created Thomson Reuters database from paper filings, zeroing-in on 38 deals that included the anomalous bonds

– Logged all the terms and conditions we needed to calculate the amounts owed on the debt

Page 15: Boston

Example: Tobacco Bonds

• Why not do it programmatically?

Wish we could have, but:

– Data often buried in scanned PDFs like this ->

– Even if you OCR, data do not appear in same place across documents

– Different labels, different conventions for reporting

– Sometimes, repayment amounts not reported at all

5/31/2015 ODSC 2015 | Boston 15

Page 16: Boston

Example: Tobacco Bonds

5/31/2015 ODSC 2015 | Boston 16

• Results:

– Calculated that, in aggregate, state and local governments promised to repay $64 billion on $3 billion they raised by borrowing using these bonds

– Money from tobacco settlement was supposed to go for healthcare, instead turned into multi-generational debt

– The bonds are now heading for default, prompting some state and local governments to bail out bondholders

– Focused attention on this issue, spurred additional local, state and national media coverage

Source: GoComics

Page 17: Boston

Next Steps

• The Financial Transparency Act of 2015 (HR 2477) has some helpful provisions in it:

• But for now it’s up to us to liberate the data

5/31/2015 ODSC 2015 | Boston 17

Source: Data Transparency Coalition

Page 18: Boston

Example: Treasury.io

• API for daily spending, revenue and debt operations data for U.S. Treasury

5/31/2015 ODSC 2015 | Boston 18

Developed by csv soundsystem with grant from Knight-Mozilla Open News Code Sprint Grant

Page 21: Boston

Questions?

5/31/2015 ODSC 2015 | Boston 21

[email protected]

@Cezary