C9_presentation

Heyang Gong
12/27/2015

Prediction of Democratic or Republican

My shiny app is to predict whether the person is a democratic or republican, click prediction of democratic or republican to see the application. It includes 3 ways of prediction.

  • predict with the person's IQ
  • predict according whether she or he likes Donald Trump
  • predict with the person's age

predict with the person's IQ

The republicans usually have higher IQ, So we predict the person is a republic when he/she has a IQ of 120 otherwise democratic.

id<- function(id1) {
                if (id1==80) {"Democratic"} 
                else {"Republican"}
}
id(120)
[1] "Republican"
# prediction of democratic or republican

Predict according whether she or he likes Donald Trump

Republicans are often likes Donald Trump while democratics hate him so much. So we make a prediction on whether the person likes Donald Trump or not. In 11/9/2001, I wittnessed the mojority of chinese were celebrating the terror attack including myself who was a totally fool at that time. Now, I, together with so many chinese who are getting closer to the truth, feel really sorry for our innocence in the past. The democratics are so naive and stupid to question that Muslims were celebrating the 9.11 terror attack said by Donald Trump. Their Politcal Correct and good wishes just make the world much more worse and people who suffered a lot are paying for their stupidities.

Here is introduction of Donald Trump

predict with the person's age

Democratics are usuall young idealistic students, or losers who needed the government to be a babysitter. So age is one of predictor for their political believes.

plot of chunk unnamed-chunk-2