Python Tutorial: Statistical Simulation in Python

preview_player
Показать описание

---
Hi, I'm Tushar Shanker, your instructor for this course. I'm a Data Scientist and have worked at companies like Uber, Airbnb, and LinkedIn. In this course, we'll learn about statistical simulation using Python. Simulations are a powerful and practical tool for solving a wide variety of data science problems. I have personally utilized simulations for addressing many complex challenges and would highly recommend adding it to your arsenal of statistical methods.

In this course we'll start with the basics of random variables and run our first simulation. We'll then learn to use simulations for estimating probability. Following that, we'll familiarize ourselves with extremely useful bootstrapping and resampling methods for data analysis. Finally we'll dive deeper into more advanced applications. Let's start with some basics.

A random variable is a quantity that can take on multiple values based on random chance. When the variable can take on infinitely many values, it's called a continuous random variable. Think about the height of a person. Although the height lies within some reasonable limits on average, the actual value could have infinite possibilities in that interval. That is why we term it as a continuous random variable.

Similarly, if the variable can only take a finite set of values, it is called a discrete random variable. The roll of a six-sided die can have only one of six possible outcomes and is thus, considered a discrete random variable. Next, let's look at probability distributions.

A probability distribution is a mapping from the set of possible outcomes of a random variable to the probability of observing that outcome. It tells you how likely you are to observe a given outcome or a set of outcomes. Just like random variables, probability distributions are either discrete or continuous depending on the type of random variable they represent. For continuous random variables, the distribution is represented by a probability density function and probability is typically defined over an interval. The normal distribution is an example of a continuous distribution.

For discrete random variables, the distribution is represented by a probability mass function and probability can be defined at a single point or over an interval. Among discrete distributions, binomial and Poisson distributions are widely used. Python's numpy random module is a robust and flexible tool that lets us work with random variables.

By now you should have a good understanding of random variables and their relation to probability distributions. Let's put these concepts to practice and work through some exercises.

#PythonTutorial #Statistical #Simulation #Python #DataCamp
Рекомендации по теме
Комментарии
Автор

Now i can test if dream cheated. Pretty good content

coloquen