RPubs will retire in June 2027. Your existing documents will stay accessible through December 31, 2031
and Connect Cloud is the recommended home for new publishing. Read the blog post
gravatar

BahgatNassour

Bahgat Nassour

Recently Published

From expand.grid Cartesian Explosion to Compact Knapsack Dynamic Programming
This report demonstrates how a multiple-choice knapsack dynamic programming (DP) approach finds optimal budget allocations without enumerating massive Cartesian products that make expand.grid() blow up RAM.
Computing Posterior (Kernel) Density Mathematically and Numerically
In this post, you'll learn how to compute the posterior distribution of simple and complex models both mathematically and numerically. Before diving into the computations, we'll review essential statistical concepts to build a solid understanding of the posterior and Bayesian inference in general. We assume that readers are familiar with probability theory, calculus, set theory and the R programming language