From the course: Python Data Analysis
Unlock the full course today
Join today to access over 24,500 courses taught by industry experts.
Testing hypotheses with Monte Carlo - Python Tutorial
From the course: Python Data Analysis
Testing hypotheses with Monte Carlo
- [Instructor] In this chapter, we have seen how modeling can help us understand data by giving us estimates of model parameters. This understanding is necessarily imperfect, because models are never faithful representations of reality. Nevertheless, they can be very useful. But we can also ask a different type of question, a question about the real property of an underlying population to which we have access only through a sample, for instance, the number of voters in a district that support a certain politician. This number really exists, and we could compute it if we could ask any single voter, and if they replied, of course. But in practice, we will have access only to a limited sample, say 1,000 randomly chosen voters. So our estimate is going to be uncertain, but how uncertain? Statistics offers sophisticated mathematical methods to tackle these kinds of questions. Since, however, this is not a course about statistics, what I want to show you is that we can get answers with a…