# Statistical Simulation in Python

Learn to solve increasingly complex problems using simulations to generate and analyze data.

Start Course for Free4 Hours16 Videos58 Exercises14,071 Learners

4800 XP## Create Your Free Account

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA. You confirm you are at least 16 years old (13 if you are an authorized Classrooms user).## Loved by learners at thousands of companies

## Course Description

Simulations are a class of computational algorithms that use the relatively simple idea of random sampling to solve increasingly complex problems. Although they have been around for ages, they have gained in popularity recently due to the rise in computational power and have seen applications in multiple domains including Artificial Intelligence, Physics, Computational Biology and Finance just to name a few. Students will use simulations to generate and analyze data over different probability distributions using the important NumPy package. This course will give students hands-on experience with simulations using simple, real-world applications.

- 1
### Basics of randomness & simulation

**Free**This chapter gives you the tools required to run a simulation. We'll start with a review of random variables and probability distributions. We will then learn how to run a simulation by first looking at a simulation workflow and then recreating it in the context of a game of dice. Finally, we will learn how to use simulations for making decisions.

Introduction to random variables50 xpnp.random.choice()50 xpPoisson random variable100 xpShuffling a deck of cards100 xpSimulation basics50 xpThrowing a fair die100 xpThrowing two fair dice100 xpSimulating the dice game100 xpUsing simulation for decision-making50 xpSimulating one lottery drawing100 xpShould we buy?100 xpCalculating a break-even lottery price100 xp - 2
### Probability & data generation process

This chapter provides a basic introduction to probability concepts and a hands-on understanding of the data generating process. We'll look at a number of examples of modeling the data generating process and will conclude with modeling an eCommerce advertising simulation.

Probability basics50 xpQueen and spade50 xpTwo of a kind100 xpGame of thirteen100 xpMore probability concepts50 xpThe conditional urn100 xpBirthday problem100 xpFull house100 xpData generating process50 xpDriving test100 xpNational elections100 xpFitness goals100 xpeCommerce Ad Simulation50 xpSign up Flow100 xpPurchase Flow100 xpProbability of losing money100 xp - 3
### Resampling methods

In this chapter, we will get a brief introduction to resampling methods and their applications. We will get a taste of bootstrap resampling, jackknife resampling, and permutation testing. After completing this chapter, students will be able to start applying simple resampling methods for data analysis.

Introduction to resampling methods50 xpSampling with replacement50 xpProbability example100 xpBootstrapping50 xpRunning a simple bootstrap100 xpNon-standard estimators100 xpBootstrapping regression100 xpJackknife resampling50 xpBasic jackknife estimation - mean100 xpJackknife confidence interval for the median100 xpPermutation testing50 xpGenerating a single permutation100 xpHypothesis testing - Difference of means100 xpHypothesis testing - Non-standard statistics100 xp - 4
### Advanced Applications of Simulation

In this chapter, students will be introduced to some basic and advanced applications of simulation to solve real-world problems. We'll work through a business planning problem, learn about Monte Carlo Integration, Power Analysis with simulation and conclude with a financial portfolio simulation. After completing this chapter, students will be ready to apply simulation to solve everyday problems.

Simulation for Business Planning50 xpModeling Corn Production100 xpModeling Profits100 xpOptimizing Costs100 xpMonte Carlo Integration50 xpIntegrating a Simple Function100 xpCalculating the value of pi100 xpSimulation for Power Analysis50 xpFactors influencing Statistical Power50 xpPower Analysis - Part I100 xpPower Analysis - Part II100 xpApplications in Finance50 xpPortfolio Simulation - Part I100 xpPortfolio Simulation - Part II100 xpPortfolio Simulation - Part III100 xpWrap Up50 xp

In the following tracks

Statistics FundamentalsPrerequisites

Statistical Thinking in Python (Part 2)#### Tushar Shanker

Data Science Manager at Uber

Tushar currently leads the UberEats Marketing Data Science team at Uber, with a focus on improving global marketing efficiency across various channels like Facebook and Google. Before Uber, Tushar learned from and contributed to world class data science teams at Airbnb and LinkedIn. Tushar's career so far has involved combining his engineering background, MBA and PhD training in Platform Strategy & Economics to consistently help businesses solve complex problems. He has benefited from rigorous academic training with experts at Harvard, MIT and BU, in particular, with the platform guru Prof. Marshall Van Alstyne.

## What do other learners have to say?

“I've used other sites—Coursera, Udacity, things like that—but DataCamp's been the one that I've stuck with.”

Devon Edwards Joseph

Lloyds Banking Group

“DataCamp is the top resource I recommend for learning data science.”

Louis Maiden

Harvard Business School

“DataCamp is by far my favorite website to learn from.”

Ronald Bowers

Decision Science Analytics, USAA

## Join over 8 million learners and start Statistical Simulation in Python today!

### Create Your Free Account

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA. You confirm you are at least 16 years old (13 if you are an authorized Classrooms user).