mardi 3 mai 2016

How to simulate random returns with numpy

What is a quick way to simulate random returns. I'm aware of numpy.random. However, that doesn't guide me towards how to model asset returns.

I've tried:

import numpy as np

r = np.random.rand(100)

But this doesn't feel accurate. How are others dealing doing this?




Aucun commentaire:

Enregistrer un commentaire