Monte Carlo simulation system for software development effort estimation
Project description
Monte Carlo Project Simulator (mcprojsim)
| Category | Link |
|---|---|
| Package | |
| Documentation | |
| License | |
| Release | |
| CI/CD | |
| Code Quality | |
| Repo URL |
Overview
mcprojsim is a Monte Carlo simulation tool for project with empahsis on agile software project estimation.
Instead of producing a single deadline, it models uncertainty in task duration, dependencies, risks, and other schedule drivers to produce confidence-based forecast ranges.
It is intended for teams that want answers such as:
- What is the likely completion range for this project?
- What is the $P50$, $P80$, or $P90$ delivery date?
- Which tasks most often drive schedule risk?
- How do risks and uncertainty factors change the forecast?
Key features
- Monte Carlo schedule simulation with configurable iteration counts
- Range-based task estimates using triangular and log-normal distributions
- Unit-aware estimation: supports hours, days, and weeks with automatic conversion to a canonical hours-based internal representation
- Configurable
hours_per_dayper project, with working-day and delivery-date reporting - Task dependencies and schedule-aware project duration calculation
- Task-level and project-level risk modeling
- Configurable uncertainty factors such as team experience and requirements maturity
- T-shirt size and story point symbolic estimates with configurable unit defaults
- Exported results in JSON, CSV, and HTML formats
- Critical path and sensitivity-oriented analysis outputs
- Reproducible runs with explicit random seeds
Recommended installation
For most end users, pipx is the simplest way to install mcprojsim as a CLI tool.
python3 -m pip install --user pipx
python3 -m pipx ensurepath
pipx install mcprojsim
Then verify the installation:
mcprojsim --help
mcprojsim --version
For a first-run walkthrough, see the 10-min QUICKSTART.md. After this we recommend going through the User Guide
Minimal example
Create a file named project.yaml:
project:
name: "My Project"
description: "Sample project for estimation"
start_date: "2025-11-01"
confidence_levels: [50, 80, 90]
tasks:
- id: "task_001"
name: "Database schema design"
estimate:
min: 3
most_likely: 5
max: 10
unit: "days"
dependencies: []
uncertainty_factors:
team_experience: "high"
requirements_maturity: "medium"
technical_complexity: "low"
Validate the file:
mcprojsim validate project.yaml
Run a simulation:
mcprojsim simulate project.yaml --seed 12345
Typical outputs (see the --help for how to specify output) include:
*_results.jsonfor full machine-readable output*_results.csvfor tabular summaries*_results.htmlfor a browsable report
Documentation map
Use the local document that matches your goal:
- QUICKSTART.md — installation paths, first commands, container usage, and local setup
- docs/getting_started.md — first simulation walkthrough
- docs/user_guide/introduction.md — concepts behind Monte Carlo estimation
- docs/user_guide/your_first_project.md — build a project file step by step
- docs/user_guide/project_files.md — project file reference
- docs/configuration.md — uncertainty factors and runtime configuration
- docs/examples.md — example projects and usage patterns
- docs/api_reference.md — Python API usage
The full published documentation is also available at https://johan162.github.io/mcprojsim/.
Example commands
# Validate an input file
mcprojsim validate examples/sample_project.yaml
# Run a default simulation
mcprojsim simulate examples/sample_project.yaml
# Use a custom configuration
mcprojsim simulate examples/sample_project.yaml --config examples/sample_config.yaml
# Reproduce a run exactly
mcprojsim simulate examples/sample_project.yaml --seed 42
For developers
If you want to work from a source checkout, run tests, build docs, or use containers, start with:
The deatiled developer documentation (including how to configure and build the container) is available at
Contributing
Contributions are welcome.
- Fork the repository
- Create a feature branch
- Make your changes with tests
- Run the test suite
- Submit a pull request
Support
- GitHub Issues: https://github.com/johan162/mcprojsim/issues
- Documentation site: https://johan162.github.io/mcprojsim/
Citation
If you use this tool in research or project planning, please cite:
@software{mcprojsim,
title = {Monte Carlo Project Simulator},
author = {Johan Persson},
year = {2026},
url = {https://github.com/johan162/mcprojsim},
version = {0.3.0}
}
License
MIT License - see LICENSE.
Acknowledgments
Inspired by the work of:
- Steve McConnell - Software Estimation: Demystifying the Black Art
- Frederick Brooks - The Mythical Man-Month
- Douglas Hubbard - How to Measure Anything in Cybersecurity Risk
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mcprojsim-0.3.0.tar.gz.
File metadata
- Download URL: mcprojsim-0.3.0.tar.gz
- Upload date:
- Size: 36.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.2 CPython/3.12.3 Linux/6.14.0-1017-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
025d7bb649693f9f2a9553e97e589c83fb7f0212385762269fb0888e21b02465
|
|
| MD5 |
d4675277c3beb27ece6bdb6829ba920b
|
|
| BLAKE2b-256 |
873c9e36a49acdc622f3b1b74b2fb4ae9076ab8fc3fd3faf077182b6f29a70b1
|
File details
Details for the file mcprojsim-0.3.0-py3-none-any.whl.
File metadata
- Download URL: mcprojsim-0.3.0-py3-none-any.whl
- Upload date:
- Size: 45.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.2 CPython/3.12.3 Linux/6.14.0-1017-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c73a6efca04edd3a83a511c8d128f88a14b07cda564d44efe9e53fd5bbfa4e96
|
|
| MD5 |
79e903cc472b7f9f610bca5bc6771ea5
|
|
| BLAKE2b-256 |
aea2a1637e76ef5fda08b6cab668b095ec879e6ad26609add51a1d6594fe3e6c
|