O'Reilly logo

Clojure for Finance by Timothy Washington

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

When refactoring the generate-prices function, we took a step back and considered some useful math equations that could help us generate a list of prices. Indeed, the central moral of Clojure is that it should be a building material or simply the building blocks we use when engineering our systems. We were able to confidently combine results from polynomial and sine equations to our pre-existing stochastic oscillating function.

For the new functions, we were able to vary the vertical dilation, horizontal dilation, and granularity of the samples we took. We were also able to combine these results within a beta probability distribution that we configured to our needs. Much of the work was this kind of math-based consideration. Fleshing out ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required