This repository includes the code required to generate simulations of customers in a supermarket.
The recommendation is to simply clone the repository. The environment uses Python 3.9 and basic libraries that are part of Anaconda distribution and/or can be easily pip installed. No known incompatibilities are to be expected.
- class_customer, supermarket_start, and simulate_one_day are the core files to run the simulations.
- Main_for_functions is the notebook used to calculate the Markov chain sequence of possible events based on the daily data provided by the supermarket. All the functions used by this notebook are organized in this separated file.
- class_plot_market and the visualization folder contains the required files and code for the simulation visualization and can be called from the simulate_one_day script after minor modifications.
The data is split into multiple csv files, one for each working day of the week. This is fictional data for demonstration purposes.
This repository demonstrates the use of Markov chains to generate customer behavior simulations. This was developed for educational purposes.