stochastic

Generate stochastic random deviates from a density object with R

I have a density object dd created like this: x1 <- rnorm(1000) x2 <- rnorm(1000, 3, 2) x <- rbind(x1, x2) dd <- density(x) plot(dd) Which produces this very non-Gaussian distribution: I would ultimately like to get random deviates from this distribution similar to how rnorm gets deviates from a normal distribution. The way I ...

Java implementation of stochastic indicator for finance

Hy, I'm searching for an API/library offering an implementation of the financial stochastic technical analysis. Does someone know a ready-do-use solution? Thanks, ...

Python/Biomolecular Physics- Trying to code a simple stochastic simulation of a system exhibiting conditional behavior!

*edited 6/17/10 I'm trying to understand how to improve my code (make it more pythonic). Also, I'm interested in writing more intuitive 'conditionals' that would describe scenarios that are commonplace in biochemistry. The conditional criteria in the below program I've explained in Answer #2, but I am not satisfied with the code- it wor...