• 2021
• 2020
• 2019
• 2018
• 2017
• 2016
• 2015
• 2014
• 2013
• 2012
• 2011
• 2010
• 2009
• 2008
• 2007

Rejection Sampling

about 6 years ago | Pranav Modi: pranavmodi.com

Continuing the exploration of simple sampling methods from the last post. Unlike the Normal or the Uniform distribution, arbirary p.d.f's cannot be sampled directly. If we need to calculate the expectation of $$f(x) = e^x$$ and p(x) looks like this – Here we cannot use Simple Monte Carlo, as there is no direct … Continue reading Rejection Sampling →

Simple Monte Carlo

about 6 years ago | Pranav Modi: pranavmodi.com

Often in Machine learning and Statistics, we are required to sample from a density function p(x). One of the the most commonly encountered scenarios is when the expectation of f(x) needs to be calculated. $$\mathbb{E}[f(x)] = \int_{-\infty}^\infty f(x) p(x) dx$$ If this integral is not computable analytically then approximate inference methods are the … Continue reading Simple Monte Carlo →

Cruise itinerary planning using R, LPSolve

almost 7 years ago | Pranav Modi: pranavmodi.com

Now that nearly every company collects data about its operations, it’s possible for decisions to be made in a systematic data-informed way, minimizing the use of heuristics. This applies especially to an operations-centric enterprise who’s bottom-line is improved considerably if optimal solutions are found for difficult problems. Many operations problems can be formulated as a … Continue reading Cruise itinerary planning using R, LPSolve →

Cruise itinerary planning using R, LPSolve

almost 7 years ago | Pranav Modi: pranavmodi.com

Now that nearly every company collects data about its operations, it’s possible for decisions to be made in a systematic data-informed way, minimizing the use of heuristics. This applies especially to an operations-centric enterprise who’s bottom-line is improved considerably if optimal solutions are found for difficult problems. Many operations problems can be formulated as a […]

Book review: Safe Area Gorazde

over 7 years ago | Pranav Modi: pranavmodi.com

Safe Area Gorazde is an account of a journalist/cartoonist visiting Bosnia during the breakup of Yugoslavia in 1992-1995. Gorazde then was a UN designated safe area surrounded by Serb controlled territory and was on the verge of obliteration many times during the war. The book is beautifully illustrated. The most fascinating  drawings were not the ones […]

Book review: Safe Area Gorazde

over 7 years ago | Pranav Modi: pranavmodi.com

Safe Area Gorazde is an account of a journalist/cartoonist visiting Bosnia during the breakup of Yugoslavia in 1992-1995. Gorazde then was a UN designated safe area surrounded by Serb controlled territory and was on the verge of obliteration many times during the war. The book is beautifully illustrated. The most fascinating  drawings were not the ones … Continue reading Book review: Safe Area Gorazde →

Slicing, Selecting from pandas dataframes

about 8 years ago | Pranav Modi: pranavmodi.com

I’m exploring Pandas DataFrame capabilities; It makes sense to devote some time in understanding the commonly used capabilities well. These are the topics covered in this post – 1. Ways to create a dataframe – using a dict, using an ndarray 2. Creating a dataframe with indexes 3. Slicing and selecting rows filtering the data, […]

Slicing, Selecting from pandas dataframes

about 8 years ago | Pranav Modi: pranavmodi.com

I’m exploring Pandas DataFrame capabilities; It makes sense to devote some time in understanding the commonly used capabilities well. These are the topics covered in this post – 1. Ways to create a dataframe – using a dict, using an ndarray 2. Creating a dataframe with indexes 3. Slicing and selecting rows filtering the data, … Continue reading Slicing, Selecting from pandas dataframes →