Hacker News new | ask | show | jobs
by gbrown 2091 days ago
Definitely! Also, not just young students. If you can get over code-phobia, doing random experiments in a class can be really illustrative. When I teach hypothesis testing, I always teach it both from a simulation perspective and from a traditional perspective.

For one, by doing the simulation part directly it's easier to see the "under repeated sampling..." logic inherent in frequentist procedures. Additionally, it's possible to do simulation-based procedures where traditional methods break down (think: permutation tests).