Demo: Comparing Types of Campaign Money by State

From Data-gov Wiki

Jump to: navigation, search

Infobox (stable demo) edit with form
  • name: Comparing Types of Campaign Money by State

  • description: Compare the disbursements, receipts, and loans of Democratic and Republican candidates by state. See how these variables are or aren't correlated.
  • keyword(s): campaign,contributions,elections
  • creator(s): Sarah Magidson
  • created: 2010/08/05
  • modified: 2010-8-6

live demo here

Contents

Facts about this Demonstration

Live Demo(s)
Video Demo(s)
Data.gov Data source(s)
Other Data source(s)
Technology Used
Related SPARQL
Related Demo(s)


How to use

Pick two variables of the six provided to compare. You can do this by:

  • Using the pull-out lists on the X or Y axis of the scatterplot to the left.
  • Clicking on the appropriate cell in the correlation matrix.


  • On the left is a scatterplot of your chosen variables. The amount of money for one variable is the Y axis, the amount of money for the other variable is the X axis. Each point represents a state.
  • On the top-right are two maps, one per variable. The darker a state is, the higher the quantity of money.
  • In the middle is a gauge showing the correlation between the two variables (1 - strong positive correlation; -1 - strong negative correlation; 0 - no correlation)
  • On the bottom-right is a table showing the correlation between every pair of variables.
Please note that this demo currently does not work properly in Internet Explorer.

Interesting Observations

Disbursements and receipts are highly correlated within the same party (e.g. Democratic receipts and Democratic disbursements), and both variables are pretty strongly correlated cross-party (e.g. Republican receipts and Democratic receipts). Loans do not seem to have a strong correlation with other variables or across parties.

While state population is not included in this demo, that, too seems to related pretty strongly to disbursements and receipts.

Technology Highlights

This demo uses the State Variable Comparison Javascript API to allow comparison of the various campaign money variables.

It creates a Google datatable via a SPARQL query and then passes the table on to the API for processing.

Dataset 10011 is used to connect state abbreviations to state names.

Facts about Demo: Comparing Types of Campaign Money by StateRDF feed
Data sourceDataset 1930  +, and Dataset 10011  +
Dcterms:created5 August 2010  +
Dcterms:creatorSarah Magidson  +
Dcterms:descriptionCompare the disbursements, receipts, and loans of Democratic and Republican candidates by state. See how these variables are or aren't correlated.
Dcterms:modified2010-8-6
Dcterms:subjectcampaign  +, contributions  +, and elections  +
Foaf:depictionhttps://data-gov.tw.rpi.edu/w/images/9/96/State-vars-compare-jsapi.png  +
Foaf:nameComparing Types of Campaign Money by State
ImageState-vars-compare-jsapi.png  +
Live demohttp://data-gov.tw.rpi.edu/demo/stable/demo-1930-campaign-contribs-jsapi.html  +
Skos:altLabelComparing Types of Campaign Money by State  +, comparing types of campaign money by state  +, and COMPARING TYPES OF CAMPAIGN MONEY BY STATE  +
Sparqlhttp://data-gov.tw.rpi.edu/demo/stable/demo-1930-campaign-contribs.sparql  +
Technology usedRDF  +, SPARQL  +, SparqlProxy  +, Google Visualization API  +, TDB Triple Store  +, and State Variable Comparison JS API  +
Personal tools
internal pages