Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Irfan Nadiadi Learning Challenge 7 #20

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added Challenges/Challenge 2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Challenges/Challenge 3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Checkpoints/Check 1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Checkpoints/Check 3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Checkpoints/Check 4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Checkpoints/Check 5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions ClimateMarch/mergeCSV.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
var fs = require( 'fs' );

// Have to specify encoding to read in as string
var headers = fs.readFileSync( 'CSV.header.dailyupdates.csv', { encoding: 'utf8' });
var dayBeforeMarches = fs.readFileSync( '20140922.export.CSV', { encoding: 'utf8' });
var dayOfMarches = fs.readFileSync( '20140923.export.CSV', { encoding: 'utf8' });
var dayAfterMarches = fs.readFileSync( '20140924.export.CSV', { encoding: 'utf8' });

// Combine files
var merged = headers + dayBeforeMarches + dayOfMarches + dayAfterMarches;

// Write to new file, merged.csv
fs.writeFile( 'merged.csv', merged, function ( err ) {
if ( err ) {
throw err;
} else {
console.log( 'Files Merged' );
}
});
44 changes: 28 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,70 +1,82 @@
# Name

write-your-name
Irfan Nadiadi

# How many points have you earned?

0/100
100/100

(Make your own calculation and replace the number 0 with the points you think you've earned.)

# How many hours have you spent on this?

fill-in-your-answer
3.5

# What is the most difficult part about this week's challenge?

fill-in-your-answer
Nothing was too difficult, though it took me longer than expected to grasp the organization of the GDELT dataset.

# Show and tell (10 points)

## Link (2 points)

[title-of-the-article](http://link-to-an-article-using_data_to_solve_a_social_problem)
[Extreme Event Detection in Online Social Media using Social Focus](https://sites.google.com/site/kddlesi2014/program/papers)

## Explain why you found the project interesting. (8 points)

fill-in-your-answer
Note: You will have to click the accepted papers link. This paper is on page 5.

This was a paper presented at a KDD 2014 workshop focused on learning about emergencies from social information. Researchers were interested in using Twitter to identify focused discussion as it related to extreme events/emergencies. For example, researchers used the Twitter API to pull tweets around the time of Occupy Wall Street. Since Tweets can be geotagged, they were able to create heat maps showing increased Twitter activity using hashtags such as #OccupyWallStreet, which coincided with cases of police abuse, and particularly when the NYPD tried to remove protestors from Zucotti park.

Social Media is a very versatile outlet, especially in the context of data science. It allows people to very rapidly communicate with each other, and when this data can be analyzed in real-time, powerful applications can be developed to have a positive social impact.

# GDELT (I) (5 points x 6 + 20 points x 3 = 90 points)

## Checkpoints

### 1 (5 points)

![image](image.png?raw=true)
![image](Checkpoints/Check\ 1.png)

### 2 What types of questions do you think this database could provide insight into? (5 points)

fill-in-your-answer
The different CAMEO codes are very thorough in the types of events they can describe, so an obvious use of the data would be identifying locations around the world where conflict is prevalent. This database could also provide a good indicator of overall population happiness/conflict/cooperation around the world, as it relates to current events.

### 3 (5 points)

![image](image.png?raw=true)
![image](Checkpoints/Check\ 3.png)

### 4 (5 points)

![image](image.png?raw=true)
![image](Checkpoints/Check\ 4.png)

### 5a (5 points)

![image](image.png?raw=true)
![image](Checkpoints/Check\ 5.png)

### 5b Do you have any thoughts on why these events are missing geographic information? (5 points)

fill-in-your-answer
The most popular events illustrated are for events described by "Make Statement", "Appeal", or "Make/Host a visit". These are likely missing geographic information because they are not highly location-sensitive events, and may have taken place where geographic data was unavailable, or where the data was entered incomplete.

## Challenges

### 1 (20 points)
{{one-paragraph-discussion-of-your-answer}}

To show that the marches made a difference at the summit, one would want to determine how often the marches were being mentioned on and after Sept. 23rd, and how many related policy changes occurred after Sept. 23rd. If there were many relevant policy changes shortly after Sept. 23rd, this would be a good indicator that the marches had a positive effect.
The GDELT data can be helpful for this, as it can identify features such as mentions, policy changes, and goldstein scale following the marches.

### 2 (20 points)

![image](image.png?raw=true)
![image](Challenges/Challenge\ 2.png)

### 3 (20 points)

![image](image.png?raw=true)
![image](Challenges/Challenge\ 3.png)

The Left plot shows sum of articles where the actor code was ENV, or relating to environment. Over the course of four days, it is observed that the number of relevant articles significantly increases on the day of the marches, indicating higher interest in environmental concerns.

The center plot shows the goldstein index, and particularly a decreasing trend until the day of the marches, when the index takes a sharp turn and begins increasing.

The right plot is not as descriptive as was desired, but it shows the number of records with event codes pertaining to policy changes or reform. For the three days beginning on the 23rd, there is a higher number of policy events than before the marches, though more data for days prior to the marches is necessary to draw a stronger conclusion.

{{one-paragraph-discussion-of-your-answer}}
Given these three plots, the evidence suggests that the marches did have an overall positive impact. Plotting more data for days prior to and succeeding the marches could further support this conclusion.