This Jupyter notebook provides a tool to simulate and visualize daily conversion rates. By adjusting parameters like the target conversion rate, number of simulations, visitors per day, and total days, users can generate and inspect simulated data. The tool also allows users to view individual simulations and confidence intervals around the target conversion rate.
- numpy
- matplotlib
- ipywidgets
This function visualizes the simulated conversion rates. It displays:
- The sampled daily average conversion rate.
- The selected simulation's conversion rate.
- The theoretical target conversion rate.
- Confidence intervals (both 68% and 95%) around the theoretical target conversion rate.
Generates simulated conversion rate data based on the provided parameters. It initializes and populates a 3D array representing visitor data for each day, simulation, and visitor. This function also displays an interactive UI for selecting individual simulations.
Users can adjust the following parameters using sliders:
- Number of simulations.
- Visitors per day.
- Target conversion rate.
- Total days for the simulation.
- Random seed for reproducibility.
- Adjust the desired parameters using the provided sliders.
- Click the "Run Simulations" button to generate the data.
- Use the "selected_simulation" slider to view individual simulations on the graph.
Note: Ensure all dependencies are installed and the kernel is restarted before running the notebook.