Giter Club home page Giter Club logo

monte-carlo's Introduction

Monte Carlo Simulator

This notebook runs Monte Carlo simulations in two dimensions. Try it live at https://colab.research.google.com/github/controversy187/monte-carlo/blob/main/monte-carlo.ipynb

The first model forecasts how long it will take to complete a given backlog, given the historical amount of work completed.

The second model forecasts how many work items you can expect to complete in a given number of iterations.

The "work items" themselves are irrelevant. They could be User Stories, Features, Epics, Tasks, or any similar-sized bodies of work. Likewise, the iterations could be hours, days, weeks, sprints, quarters, or any other timebox, as long as it is consistent across the model.

How does a Monte Carlo Simulation work?

Unlike averaging work, which tends to hide details and nuance, the Monte Carlo simulation actually runs sample events, based on historic data. Lets say that your team has gotten 14 tasks done this week, 12 the week before, 8 the week prior, and 22 the week prior to that. So your team's data looks like:

Week 1: 22
Week 2: 8
Week 3: 12
Week 4: 14

You can continue to gather as much data as you believe is relevant to the way your team is operating currently, whether that's the past 3 weeks or the past 50. Next, lets say you want to know how long it will take your team to complete a project that has 200 tasks in it, assuming that your team is dedicated to this project and they don't experience any abnormal dependencies or interruptions that they didn't experience during your past data set. We then randomly select one past week from our data set and grab the number of tasks we completed in that week, and subtract it from our total of 200 tasks. We keep doing that until the remaining tasks is 0, and then count how many times we had to pull a random week's completed task count. That total would be the number of weeks it took us to complete the project in a single trial.

Next, we repeat that process many times, like 1000 or more. Once we have that full data set, of 1000 trials of completing the project, we start to gather our data points across those trials. We can start to see thresholds of success, such as "89% of the trials completed in 16 or fewer weeks. 97% completed in 17 or fewer." This allows us to talk about risks around deadlines as opposed to estimated completions which hide the potential variances of work.

The second model in this notebook is similar, but instead of forecasting the time to complete a body of work, it forecasts how much work can be completed in a given timeframe.

monte-carlo's People

Contributors

controversy187 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.