宠辱不惊淡看庭前花开花谢, 去留 ...分享 http://blog.sciencenet.cn/u/zhangshibin 专业: 概率论与数理统计 研究方向: 时空数据统计分析,包括随机过程统计、时间序列分析、空间统计、统计计算、贝叶斯统计等

博文

R functions for Exact simulation of gamma Ornstein-Uhlenbeck processes

已有 4109 次阅读 2010-4-20 15:42 |个人分类:学术交流|系统分类:科研笔记|关键词:学者

R functions for Exact simulation of gamma Ornstein-Uhlenbeck processes
 
1 Introduction

Type: R functions for Exact simulation of gamma Ornstein-Uhlenbeck processes
Date: 2010-4-20
Author: Shibin Zhang
Maintainer: Shibin Zhang <sbzhang@shmtu.edu.cn>
Description: This document provides R functions for the exact simulation method
of gamma Ornstein-Uhlenbeck processes.
Usage: To use the software, you will need to download the file gou.R into a
suitable directory on your computer. This contains the functions listed below
and various supporting functions. You should not need to look at the R code
in this file unless you want to see the details of what’s going on.

2 The functions

GOU(x=nu/alpha, lambda=1, nu=1, alpha=1, T=1, N=100)
plot.GOU(x=nu/alpha, lambda=1, nu=1, alpha=1, T=1, N=100)

The function GOU is the simulations of the O-U process with
marginal gamma(nu,alpha), where nu is a shape and alpha is a scale. lambda is
the intensity parameter of the O-U process. x is the initial value of the process
at time t0. T is the final time. N is the number of intervals in which to split [t0,T].
The returns of the function GOU is a N*2 matrix. The first column of the matrix is
the values of the background driving Levy process Z(lambda t) and the second column
is the values of the Gamma O-U process X(t).

The function plot.GOU gives the figures of the Z(lambda t) and X(t).

 

gou.R

https://m.sciencenet.cn/blog-116301-314118.html

上一篇:R functions for ‘Exact simulation of TS O-U processes'
下一篇:New Work: Transition Law-based Simulation of Generalized Inverse Gaussian Ornste

0

发表评论 评论 (0 个评论)

数据加载中...
扫一扫,分享此博文

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-6-3 07:08

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部