Sampling with replacement Hello! It’s me once again attempting to explain things from first principles - a term popularized by Elon Musk.
I will use some psudeo code - on sampling with replacement for weights - to aid my explanation.
Earlier in the week, I attempted to write a simple function from scratch but I gave up after realising that it will take me more than 15 mins! Difficulties lies in the multiple switch statements in defining the intervals.