A stochastic system is a system which state depends or some random elements making its behavior non-deterministic. Questions with this tag should cover topics regarding random variables and non-determenistic systems.
Questions tagged [stochastic]
256 questions
5
votes
1 answer
How to solve / fit a geometric brownian motion process in Python?
For example, the below code simulates Geometric Brownian Motion (GBM) process, which satisfies the following stochastic differential equation:
The code is a condensed version of the code in this Wikipedia article.
import numpy as…

Greg
- 8,175
- 16
- 72
- 125
5
votes
1 answer
Stochastic Search to lambda expression
Thanks for all your help and sharing.
My question is in regards of the Stochastic Search. This technique is used to do approximations of data through a defined amount of cicles over a, an in general, mathematical calculation. Please see following…

ouribeb930
- 63
- 4
5
votes
1 answer
pymc MAP warning : Stochastic tau's value is neither numerical nor array with floating-point dtype. Recommend fitting method fmin (default)
I have looked at a similar question here
pymc warning: value is neither numerical nor array with floating-point dtype
but there are no answers, can someone please tell me whether I should ignore this warning or what to do otherwise ?
The model has a…

turing
- 577
- 1
- 4
- 12
5
votes
1 answer
PyMC: Setting Constraints when fitting Models
I am trying to set constraints when fitting variables via a MCMC approach with PyMC
For instance, I defined the following stochastic models in PyMC
import pymc as…

user3695689
- 71
- 5
5
votes
2 answers
Programing Logistic regression with Stochastic gradient descent in R
I’m trying to program the logistic regression with stochastic descending gradient in R. For example I have followed the example of Andrew Ng named: “ex2data1.txt”.
The point is that the algorithm works properly, but thetas estimation is not exactly…

user3488416
- 51
- 1
- 3
5
votes
2 answers
Tutorial on stochastic simulation in Haskell
I'd like to use Haskell for stochastic simulation, but I don't know how. I've read Hutton's 'Programming in Haskell', and I'm comfortable writing deterministic functional programs. However, I don't know how to start writing stochastic simulations of…

Marius Kempe
- 423
- 3
- 9
4
votes
3 answers
Stochastic hill climbing vs first-choice hill climbing algorithms
What is the difference between stochastic hill climbing and first-choice hill climbing algorithms?

user5492770
- 357
- 3
- 5
- 13
4
votes
1 answer
Gradient descent stochastic update - Stopping criterion and update rule - Machine Learning
My dataset has m features and n data points. Let w be a vector (to be estimated). I'm trying to implement gradient descent with stochastic update method. My minimizing function is least mean square.
The update algorithm is shown below:
for i = 1 ...…

code muncher
- 1,592
- 2
- 27
- 46
3
votes
2 answers
Modifying SIR model to include stochasticity
I am trying to establish a method of estimating infectious disease parameters by comparing real epidemic curves with simulations of a stochastic SIR model. To construct the stochastic SIR model, I am using the deSolve package and instead of using…

fil0607
- 101
- 5
3
votes
1 answer
Struggling to understand Q1 calculation
suppose we have the following data set (length 24):
x <- c(30L, 49L, 105L, 115L, 118L, 148L, 178L, 185L, 196L, 210L, 236L, 236L,
278L, 287L, 329L, 362L, 366L, 399L, 430L, 434L, 451L, 451L, 477L, 488L, 508L,
531L, 533L, 542L)
If we calculate the…

RAKY
- 51
- 2
3
votes
0 answers
Vanishing gradient problem for recent stochastic recurrent neural networks
Recently, I've found some papers about generative recurrent models. All have attached sub-networks like prior/encoder/decoder/etc. to well-known LSTM cell for composing an aggregation of new-type RNN cell.
I am just curious about whether the…

Sehee Park
- 31
- 3
3
votes
1 answer
How do I solve stochastic differential equations in Julia?
I try to understand how to solve stochastic differential equations (SDEs) numerically (I have no experience in any language, but for some reasons I chose Julia). As a starting model, I decided to use Lotka-Volterra equations. I read manual and…

zlon
- 812
- 8
- 24
3
votes
1 answer
Stochastic gradient descent Vs Mini-batch size 1
Is stochastic gradient descent basically the name given to mini-batch training where batch size = 1 and selecting random training rows? i.e. it is the same as 'normal' gradient descent, it's just the manner in which the training data is supplied…

BigBadMe
- 1,754
- 1
- 19
- 27
3
votes
1 answer
Have I implemented Milstein's method/Euler-Maruyama correctly?
I have an stochastic differential equation (SDE) that I am trying to solve using Milsteins method but am getting results that disagree with experiment.
The SDE is
which I have broken up into 2 first order equations:
eq1:
eq2:
Then I have used…

SomeRandomPhysicist
- 1,531
- 4
- 19
- 42
3
votes
1 answer
Preventing a Gillespie SSA Stochastic Model From Running Negative
I have produce a stochastic model of infection (parasitic worm), using a Gillespie SSA. The model used the "GillespieSSA"package (https://cran.r-project.org/web/packages/GillespieSSA/index.html).
In short the code models a population of discrete…

Rnought
- 33
- 3