Skip to content

Niall O'Connor

Gentlemanly things

Menu
  • Home
  • ME

Category: Coding

200 paths of 80 points

Monte Carlo simulations in python

  • Posted onFebruary 9, 2015March 17, 2020
  • Coding

You will require matplotlib for python. import random from matplotlib import pyplot Monte-Carlo simulations are based on random numbers.  Roll a dice which will give a value between 1-6.  You can either add or subtract that value to a running total.  You flip a coin…

Continue Reading

Test driven development

  • Posted onJanuary 4, 2013March 17, 2020
  • Coding

Test driven development is simply the process of defining what you expect to happen first before coding.  This presents the opportunity for you to code only that which is required to pass the test. You only need to code enough.  Enough is the most precise…

Continue Reading

Recent Posts

  • Where did COVID-19 come from?
  • Mr. Quarantine
  • MR. Cat
  • 50 Books in one year!
  • Monte Carlo simulations in python

Recent Comments

    Archives

    • April 2020
    • March 2020
    • May 2019
    • February 2015
    • January 2013

    Categories

    • Coding
    • Engineering
    • Fun
    • Uncategorized

    Meta

    • Log in
    • Entries feed
    • Comments feed
    • WordPress.org
    © Copyright 2021 – Niall O'Connor
    Chip Life Theme by TutorialChip ⋅ Powered by WordPress