Articles by MK

R FAQs for the fresh starters

December 4, 2012 | MK

R, which was largely predominant in the academic world, has started picking up a lot in businesses as well. At least that is what I am witnessing among my colleagues. Lot of people have started experimenting with R, choosing the path to enlightenment. ... [Read more...]

Kaggle Prospect – Harvard Business Review

August 25, 2012 | MK

This post is meant for submitting visual analysis for the Harvard Business Review Contest on KaggleI used the subject lines for all the articles and all the years and mapped the articles into one of the following 18 categories  Business Ethics  Business Management  Crisis  Emerging Markets  Financial Performance  Health Care  Information ... [Read more...]

Project Euler: Problem 20

March 22, 2012 | MK

n! means n x (n - 1) x ... x 3 x 2 x 1For example, 10! = 10 x 9 x ... x 3 x 2 x 1 = 3628800,and the sum of the digits in the number 10! is 3 + 6 + 2 + 8 + 8 + 0 + 0 = 27.Find the sum of the di... [Read more...]

Project Euler: Problem 16

March 15, 2012 | MK

215 = 32768 and the sum of its digits is 3 + 2 + 7 + 6 + 8 = 26.What is the sum of the digits of the number 21000?Handling large numbers or rather, very large numbers, can be a pain at times. But have no fear, for GMP is here.GMP  makes the s... [Read more...]

Create your own Beamer template

November 14, 2011 | MK

For the past couple of days, I had been searching for a tutorial that would show how to create a custom Beamer template. I found some great resources and some really great customized templates (I have listed the ones that I referred to below) but none ... [Read more...]

Modelling with R: part 5

October 30, 2011 | MK

In our exercise of learning modelling in R, we have till now succeeded in doing the following:Importing the dataPreparing and transforming the dataRunning a logistic regressionCreating a decision treeSpecifically, we created a decision tree using the r... [Read more...]

Modelling with R: part 4

October 13, 2011 | MK

In part 3, we ran a logistic model to determine the probability of default of a customer. We also saw the outputs and tried to judge the performance of the model b plotting the ROC curve. Let's try a different approach today. How about a decision tree?... [Read more...]

Modelling with R: part 3

October 5, 2011 | MK

The previous posts, part 1 and part 2, detailed the procedure to successfully import the data and transform the data so that we can extract some useful information from them. Now it's time to get our hands dirty with some predictive modelling. The dependent variable here is a binary variable taking values "0" ... [Read more...]

Modelling with R: part 2

October 2, 2011 | MK

I apologize for the delay in the second post (just in case anybody was waiting), I had been vary involved with work the past week. I shall try to be more regular. Well, in the previous post, we successfully imported data into R and got a basic "feel" o...
[Read more...]

Modelling with R: part 1

September 29, 2011 | MK

When I started work about 3 months ago, I didn't know much more than loading data and executing standard Econometric commands in R. But now I feel much much much more confident in using R for work, for research, for puzzles, and sometimes just for fun....
[Read more...]

Project Euler: problem 6

September 27, 2011 | MK

The sum of the squares of the first ten natural numbers is,12 + 22 + ... + 102 = 385The square of the sum of the first ten natural numbers is,(1 + 2 + ... + 10)2 = 552 = 3025Hence the difference between the sum of the squares o...
[Read more...]

Project Euler: problem 3

September 21, 2011 | MK

The prime factors of 13195 are 5, 7, 13 and 29.What is the largest prime factor of the number 600851475143 ?This one was quite easy, and much easier in R as it turns out.The GNU Multi-Precision Library (GMP) is available as a package in R. So the only ...
[Read more...]

Introduction to Beamer

September 17, 2011 | MK

A friend of mine, who is quite smart by the way (she is a PhD. student in Physics at Cambridge), recently asked me for some help with Beamer. Well most of my knowledge and code came from Utkarsh when I had started about a year ago. Initially, I ha...
[Read more...]

Project Euler: problem 2

September 16, 2011 | MK

Each new term in the Fibonacci sequence is generated by adding the previous two terms. By starting with 1 and 2, the first 10 terms will be:1, 2, 3, 5, 8, 13, 21, 34, 55, 89, ...By considering the terms in the Fibonacci sequence whose values do not exc...
[Read more...]

Project Euler: problem 1

September 15, 2011 | MK

To be fairly honest (assuming there are degrees of honesty), I do know a little about math and programming but I don't know much math or any programming. I've loved math for a long time, but started to learn and understand fairly recently. So during th...
[Read more...]

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)