Archives

All Posts

Everything I’ve written on pythonandr.com, newest first — ten years of the maths, worked in code.

  • Sharing IPython / Jupyter Notebooks via WordPress

    In order to share (a static version of) your IPython / Jupyter notebook on your WordPress site, follow three straightforward steps. Step 1: Let’s say your Jupyter Notebook looks like this: Open this notebook in a text editor and copy the content…

  • Randomized Selection Algorithm (Quickselect) – Python Code

    Find the kth smallest element in an array without sorting. That’s basically what this algorithm does. It piggybacks on the partition subroutine from the Quick Sort. If you don’t know what that is, you can check out more about the…

  • Computing Work Done (Total Pivot Comparisons) by Quick Sort

    Solutions to assignment problems on Quick Sort and Week 02 of Tim Roughgarden’s course on the Design and Analysis of Algorithms

  • Quick Sort Python Code

    Quick Sort Python implementation

  • How to become a Data Scientist in 6 months

    Disclaimer: I’m not a data scientist yet. That’s still work in progress, but I’d recommend this excellent talk given by  Tetiana Ivanova to put an enthusiast’s data science journey in perspective.

  • MITx 15.071x (Analytics Edge) – 2016

    There’s still time to enroll and grab a certificate (or simply audit). The course is offered once a year. I met a bunch of people who did well at a data hackathon I had gone to recently, who had learned…

  • Detecting Structural Breaks in China’s FX Regime

    Edit: This post is in its infancy. Work is still ongoing as far as deriving insight from the data is concerned. More content and economic insight is expected to be added to this post as and when progress is made…

  • Google’s New Deep Learning MOOC Using TensorFlow

    Deep learning became a hot topic in machine learning in the last 3-4 years (see inset below) and recently, Google released TensorFlow (a Python based deep learning toolkit) as an open source project to bring deep learning to everyone. If you have…

  • Data Manipulation in R with dplyr – Part 3

    This happens to be my 50th blog post – and my blog is 8 months old. 🙂 This post is the third and last post in in a series of posts (Part 1 – Part 2) on data manipulation with…

  • My First Data Science Hackathon

    I participated in https://t.co/alLuY7JjjTFinished 24th/54. It was my first ever #datascience #hackathon. Determined to get better at this. — Anirudh (@anirudhjay) December 20, 2015 So after 8 months of playing around with R and Python and blog post after blog…

  • Data Manipulation in R with dplyr – Part 2

    Note that this post is in continuation with Part 1 of this series of posts on data manipulation with dplyr in R. The code in this post carries forward from the variables / objects defined in Part 1. In the…

  • Data Manipulation in R with dplyr – Part 1

    dplyr is one of the packages in R that makes R so loved by data scientists. It has three main goals: Identify the most important data manipulation tools needed for data analysis and make them easy to use in R.…

  • Generating Permutation Matrices in Octave / Matlab

    I have been doing Gilbert Strang’s linear algebra assignments, some of which require you to write short scripts in MatLab, though I use GNU Octave (which is kind of like a free MatLab). I was trying out this problem: To…

  • Statistical Learning – 2016

    On January 12, 2016, Stanford University professors Trevor Hastie and Rob Tibshirani will offer the 3rd iteration of Statistical Learning, a MOOC which first began in January 2014, and has become quite a popular course among data scientists. It is…

  • Sherlock and the Beast – HackerRank

    I found myself stuck on this problem recently. I must confess, I lost a couple of hours trying to get to figure the logic for this one. Here’s the problem: I’ve written 2 functions to solve this problem. The first…