Archives
All Posts
Everything I’ve written on pythonandr.com, newest first — ten years of the maths, worked in code.
-
Statistics: The Sexiest Job of the Decade
Anyone who’s got a formal education in economics knows who Hal Varian is. He’s most popularly known for his book Intermediate Economics. He’s also the Chief Economist at Google. He is known to have famously stated more or less, that…
-
Algorithmic Game Theory Lecture Videos and Notes
Originally posted on Turing's Invisible Hand: I’m teaching my algorithmic game theory course at Stanford this quarter, and this time around I’m posting lecture videos and notes. The videos are a static shot of my blackboard lectures, not MOOC-style videos.…
-
The Merge Sort — Python Code
I have just begun working on a MOOC on algorithms offered by Stanford. Since this course gives us the liberty to choose a programming language, there isn’t any code discussed in those lectures. I plan to convert any algorithm discussed…
-
Review: An Introduction to Interactive Programming in Python (Part 1)
This class (Part 1 of a 2-part course on interactive programming using Python – and the first course of the Fundamentals of Computing Specialization offered by RICE Unviersity) was an excellent introduction to programming because of its focus on building…
-
Solution to [Viral] Math Puzzle for Vietnamese Eight-Year-Olds (Using R)
There was this math problem that went viral recently – it was a Singapore Math Olympiad problem meant for 14-year olds which surprisingly many adults couldn’t solve. A friend sent me a link to that problem and I solved it…
-
How to become a programmer, or the art of Googling well
Originally posted on okepi: *Note: Please read all italicized technical words as if they were in a foreign language. The fall semester of my senior year, I was having some serious self-confidence issues. I had slowly come to realize that…
-
Excel using R
Very often we find ourselves caught up with really mundane tasks involving voluminous excel data — in business and yes, even in research! The story keeps repeating everywhere. I’ll talk about how to automate some mechanical and brain-dead spreadsheet operations using…
-
Code for my First Text-Based Game
I started learning Python from Learn Python the Hard Way, 10 days ago. The last scripting language I learnt was C++, but it was ages ago – and never took to it with as much interest as I am taking…
-
One-Month-Old Blog
UPDATE: While I’m already half way through the much recommended book by Zed A. Shaw – Learn Python The Hard Way, I’m still doing my research on other great resources to help me get started with Python. This page listing…
-
Upgrading R / Installing R-3.2.0 on Ubuntu
Till recently, I was using R-3.1.1 on Windows OS. Then on April 16, 2015 (10 days ago), they released R-3.2.0. Upgrading it on Windows was easy peasy, not like the headache Ubuntu gave me. I recently got a Dell Vostro…
-
Visualizing Macroeconomic Data using Choropleths in R
Choropleths are thematic maps shaded or patterned in proportion to the measurement of the statistical variable being displayed on the map, such as population density or per-capita-income. This post is about creating quick choropleth maps in R, with macroeconomic data across…
-
Getting Started
I have been searching for good MOOCs to get me started with R and Python programming languages. I’ve already begun the Johns Hopkins University Data Science Specialization on Coursera. It consists of 9 courses (including Data Scientist’s Toolbox, R programming,…
-
Hello World!
Hi all! This website would be a most unusual way to blog about programming languages, that too coming from someone who hasn’t done much coding. In the next few minutes, I offer an introduction. It’s divided into 2 parts. (i)…