Tag Archives: estimate

Importance Sampling – A Tutorial

Problem: Compute an expectation over a probability density function , given only samples generated from a different probability density function . We call and the target distribution and proposal distribution respectively. Solution: Draw samples from Calculate the probability of each … Continue reading

Posted in Machine Learning, MATLAB, Optimization, Reinforcement Learning, Robotics, Software, Statistics | Tagged , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , | 1 Comment

What is Expected Value? (simply explained with example)

If we have a random variable, that can take value with probability , value with probability and so on, then the expected value for this random variable can be calculated as: To simplify the problem, we can consider rolling a … Continue reading

Posted in Linux, Machine Learning, MATLAB, Statistics, Ubuntu | Tagged , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , | Leave a comment

Estimating the value of Pi using Python (For educational Purposes)

You can estimate the value of `Pi` up to specific precision with the following method: 1- draw a square and draw the corresponding circle inside it (a quarter of the circle inscribed inside the square). So the edge length of … Continue reading

Posted in Linux, programming, Python, Software, Ubuntu | Tagged , , , , , , , , , , , , , , , , , , , , , | Leave a comment