June Projects

Another quick update to notify that the projects for month of June are now uploaded on the website.

This month’s projects include:

  1. Kaggle project – SFO Crime classification
  2. Interactive R presentations.


A. Kaggle Project:

In this Kaggle competition, the goal is to correctly classify the probabilities for crime categories (Arson, larceny, vehicle theft, drugs, etc.) based on factors like x/y coordinates, district, dates, streets and others.

So the github folder contains complete code for data exploration, graphical analysis and of course predictive analytics. Feature engineering is an important part of scoring well on the Kaggle leaderboard, but to do so you need to know which variables are important. Hence I’ve included graphical charts and chi-square hypothesis testing to help with testing just that.

A short explanation of the programs and their functions are given in the readme.md file, but here is a short summary:

  • relations.R = chi-square tests to check dependencies and code for correlation visualization. cov_variables
  • heatmaps.R = graphical analysis of crime categories by district (which was the most significant factor). heatmap_SFO
  • multinom_pgm.R = R program to calculate the predictive probabilities using multinomial regression, which is the best algorithm for such problems.


B. Attractive presentations:

NO matter how well you code, managers still expect presentations to show their bosses what you actually did or how you came up with a particular pattern in the data that everyone else missed! So you’ll often need to supplement your presentation with the codes, charts and analytical work that you’ve so painstakingly completed, without the luxury of running the code! (Ughhh… ) However, have no fears! This is where recent additions to the R ecosystem, namely RMarkdown documents and RPubs, come handy.

They allow you to create attractive powerpoint-style presentations where you have the option of hiding/showing your R-code. You can also add HTML code for headers, tables, bulleted lists. Essentially everything a webpage can have, plus the benefits of being able to run your R program without having RStudio! 🙂  Did I mention you can even embed Shiny webapps?  (A minute please, while I dance with joy! )

Basic Rmarkdown documents are provided on my RPubs account (free for all! ) at http://rpubs.com/anupamaprv while a ppt with embedded Shiny app is linked to my Shiny.io account here.



Hope you find these projects useful and worthy additions to your own online portfolios. If you have any feedback or questions, please do leave a comment. If you just want help with your own projects, share those questions too or connect with me through the contact form and I’d be glad to help out.



Please share your feedback and opinions. Thanks!

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s