Making an app from scratch
Now that we've tried out the apps others have made, let's make our own! This app is going to focus on using the central limit theorem, which is a fundamental theorem of statistics that says that if we randomly sample with replacement enough from any distribution, then the distribution of the mean of our samples will approximate the normal distribution.
We are not going to prove this with our app, but instead, let's try to generate a few graphs that help explain the power of the central limit theorem. First, let's make sure that we're in the correct directory (in this case, the streamlit_apps
folder that we created earlier), make a new folder called clt_app
, and toss in a new file.
The following code makes a new folder called clt_app
, and again creates an empty Python file, this time called clt_demo.py
:
mkdir clt_app
cd clt_app
touch clt_demo.py
Whenever we start a new Streamlit app, we want to make sure to...