Académique Documents
Professionnel Documents
Culture Documents
Our Senators
Reinabelle Reyes, Ph.D.
AdMU • 12 May 2017
Outline
• Senatorial Elections Dataset:
COMELEC precinct-level election returns
Senatorial
candidates
Items in your
supermarket
shopping cart
• Confidence
• Lift
Market Basket Analysis
Applied to Senatorial Candidates:
Top
12
High-confidence Combos
High-lift Combos
Q: Which provinces voted
similarly?
% of Votes
No. of purchases
for an item
• Cosine Similarity
• sim = (u • v) / |u||v|
• Cosine Similarity
• sim = (u • v) / |u||v|
Customer Voting
Segmentation Clusters
15 Voting Clusters
Q: How did
the different
clusters
vote?
Red: fewer votes
Blue: more votes
w/ z-score >= 0.5
How
Mindanao
voted
How
OFWs
voted
How
Pacquiao’s
hometown
voted
How
Mindanao
didn’t
vote
Who
didn’t
vote for
Pacquiao
#clap
Summary
• Precinct-level voting patterns