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 →

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 →

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 […]

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 →

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 →

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 […]

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 →

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, […]