This project is a demonstration for current cohort of accounting students that undertaking Chartered Accounting Data Analytics elective to demonstrate a combination of predictive analytics with traditional financial analysis techniques for comprehensive accounting insights.
-
Revenue Prediction
- Linear Regression model
- ARIMA time series forecasting
-
Financial Statement Analysis
- Trend Analysis
- Horizontal Analysis
- Vertical Analysis
- Key Financial Ratios
-
Data Generation
- Revenue time series
- Financial statement data
-
Visualizations
- Interactive Plotly graphs
- Revenue forecasting
- Historical financial performance trends
- Profitability and efficiency metrics
- Financial structure composition
- Comparative period analysis
- Python
- Pandas, NumPy
- Scikit-learn, Statsmodels
- Plotly
- Clone this repository
- Create a virtual environment:
python -m venv venv
- Activate the virtual environment:
- Windows:
venv\Scripts\activate
- macOS/Linux:
source venv/bin/activate
- Windows:
- Install requirements:
pip install -r requirements.txt
- Generate sample data:
python src/data/generate_data.py
- Run revenue prediction models:
python src/models/revenue_prediction.py
- Explore the Jupyter notebook for detailed analysis:
jupyter notebook notebooks/revenue_analysis.ipynb
data/
: Contains raw and processed datanotebooks/
: Jupyter notebooks for analysissrc/
: Source code for data generation, models, and visualizationresults/
: Output figures and analysis results
intro-predictive-accounting-analytics/ │ ├── data/ │ ├── raw/ │ │ ├── revenue_data.csv │ │ └── financial_data.csv │ └── processed/ │ ├── notebooks/ │ ├── revenue_analysis.ipynb │ └── financial_analysis.ipynb │ ├── src/ │ ├── data/ │ │ ├── generate_data.py │ │ └── generate_financial_data.py │ ├── models/ │ │ └── revenue_prediction.py │ └── visualization/ │ └── plots.py │ ├── results/ │ └── figures/ │ ├── requirements.txt └── README.md
- Create the folder structure as shown above.
- Copy and paste the provided code into the respective files.
- Open a terminal and navigate to the project root directory.
- Run the following commands in order:
python src/data/generate_data.py
python src/data/generate_financial_data.py
python src/models/revenue_prediction.py
jupyter notebook notebooks/revenue_analysis.ipynb
- This will generate the data files and run the analyses, creating output in the results directory.
- Remember, you don't run the Python files to create them - you create them first, then run them to execute the code they contain.
- For the Jupyter notebooks, you would typically open them using Jupyter Lab or Jupyter Notebook and add content interactively.
- This process will set up the basic structure of your project. You can then start filling in the details, writing more code, and expanding the analysis as needed.
- Trend Analysis
- Horizontal Analysis
- Vertical Analysis
- Financial Ratios
- You can add more data and models to the project as needed.
- You can also use this as a template for your own projects.
- Or deactivate the virtual environment using the command
deactivate
.
-
This is a simple example to get you started. In a real-world scenario, you would likely use more sophisticated models and techniques.
-
This project is not intended to be a comprehensive analysis of accounting data. It is simply a demonstration of the basic techniques.
-
You need to activate the virtual environment every time you open a new terminal window and want to work on this project. Make sure you're in the project root directory when activating the virtual environment and running the scripts.
-
If you're using an IDE like PyCharm or VS Code, you may need to select the virtual environment as the Python interpreter for your project.
-
If you're still having trouble, please let me know what specific error you're encountering, and I'll be happy to help further.