Skip to content

incorrect treatment of sigma?? #7

Open
@vvaidy

Description

@vvaidy

Hi,

I suspect in your CIR model you are forgetting to scale the brownian motion term. If I am reading your code correctly, instead of:

dr = K*(theta-rates[-1])*dt + sigma*np.sqrt(rates[-1])*np.random.normal()

I would have said:

dr = K*(theta-rates[-1])*dt + sigma*np.sqrt(rates[-1])*np.sqrt(dt)*np.random.normal()

What am I missing?

-VV

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions