Indian election 2019 : Predictions Using Machine Learning Algo

The whole country is in exit polls fever now and curious about their party’s fate in the coming elections and I am not the exception of this band. All exit polls are the predictions from the people’s opinion and a thought stuck in my mind that what would be Artificial Intelligence’s opinion. Machine learning strike the chord and I made hand dirty over the weekend and have done some research on the data then identified some feature list to predict the Election 2019 winner using Machine learning.

Election commission of India

I have collected the data from the election commission of India for the past 5 terms of data spanning from 1998 to 2014 results. Below is the dataset that I have captured with various features includes State, constituency, Gender, Caste, Votes polled, Votes majority and finally Party Won. Below is the dataset that is obtained from the

Election Results India Data
Election Results India Data

Machine Learning Algorithms

Now time to choose the machine learning algorithms for the prediction so I have implemented two different algorithms and surprisingly both the results are completely different. Below are the algorithms that are implemented:

  1. Multi-class Logistic regression
  2. Multi-class Neural networks

I wanted to do the exclusive classification algorithms but ML studio is providing all advanced blended algorithms so used the above to obtain the result. Finally after running the entire flow below are the resultant CSV that I have received.


The results time, Initially I thought of publishing the complete result but sticking to high level number rather hurting the local sentiments. Below is the final result of the experiment :

Using Multi-class Neural networks:

BJP — 337

INC — 110

Others — 96

Using Multi-class Logistic Regression:

BJP -208



India Election Results Prediction
India Election Results Prediction

Agree? Disagree?

[Analyzed by Ashok Boddeda]

Signup for NextBigWhat’s AI newsletter

#mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif; }
/* Add your own Mailchimp form style overrides in your site stylesheet or in this style block.
We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */


* indicates required

(function($) {window.fnames = new Array(); window.ftypes = new Array();fnames[0]=’EMAIL’;ftypes[0]=’email’;fnames[1]=’FNAME’;ftypes[1]=’text’;fnames[3]=’ADDRESS’;ftypes[3]=’address’;fnames[4]=’PHONE’;ftypes[4]=’phone’;}(jQuery));var $mcj = jQuery.noConflict(true);

Sign Up for nextbigwhat newsletter

The smartest newsletter, partly written by AI.

Download, the short news app for busy professionals