Skip to content

Analysis of voter demographic data to provide political parties with key insights

Notifications You must be signed in to change notification settings

hashimr1/Analysing-Voter-Demographics

Repository files navigation

Analysing Voter Demographics

Table of Contents
  1. About The Project
  2. Statistical Methods
  3. Visualizations
  4. Contributers

About The Project

Data analytics are a large part of decisions made by politicians and political parties. Here, we use R and statistical analysis methods to provide key insight to the Liberal Party about their current standing in voter opinions. We use past data and manipulate it to make predictions on the Liberal party's voter demographics. The three questions answered in this project are the following;

  1. What percentage of votes should the Liberal party expect from people born in Canada during the election at this point in time?

  2. Is the proportion of male people who voted for the Liberal Party 50%?

  3. What is the range of plausible values of the difference in median age of Canadians who would vote for the Liberal party verses the National Democratic Party as their first choice?

Built With

Data

  • Canadian Election Study 2019 The data set used in this analysis is from the 2019 Online Canadian Election Survey with a representative sample of 25850 of the population of eligible voters in Canada.

(back to top)

Statistical Methods

  • Data Wrangling
    • filtering
    • grouping
    • mutating variables
  • Bootstrapping
    • drew 1000 bootstrap samples from original sample to explore variability from the original sample to create a range of plausible values
  • One-sample Hypothesis Test
    • tested the null hypothesis against the alternative hypothesis to see how unlikely it is that the result occoured by chance
  • Confidence Intervals
    • created several 95% confidence intervals to determine a range of values that would contain value 95% of the time

For more information, see Voter Demographics.pdf

(back to top)

Visualizations

Visulizations of the data created using R include bar graphs, histograms and box plots.

Plot Plot Plot Plot

(back to top)

Contributers

  • Raazia Hashim
  • Chetanya Saxena
  • Maryam Ansari
  • Suchi Aidasani

STA130 - An Introduction to Statistical Reasoning and Data Science

(back to top)

About

Analysis of voter demographic data to provide political parties with key insights

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages