stochastic

Stochastic hill climbing vs first-choice hill climbing algorithms

情到浓时终转凉″ 提交于 2019-12-07 11:59:23
What is the difference between stochastic hill climbing and first-choice hill climbing algorithms? Gusti Ahmad Fanshuri Alfarisy Hill Climbing Search Algorithm is one of the family of local searches that move based on the better states of its neighbors. Stochastic Hill Climbing chooses a random better state from all better states in the neighbors while first-choice Hill Climbing chooses the first better state from randomly generated neighbors. First-Choice Hill Climbing will become a good strategy if the current state has a lot of neighbors. I am quoting from Artificial Intelligence: A Modern

How to perform rank based selection in a genetic algorithm?

泪湿孤枕 提交于 2019-12-06 23:08:56
问题 I am implementing a small genetic algorithm framework - primarily for private use, unless I manage to make something reasonable at which time I will post it as open source. Right now I am focusing on selection techniques. So far I have implemented roulette wheel selection, stochastic universal sampling and tournament selection. Next on my list is rank based selection. I had a little more difficulty finding information about that than the other techniques that I've already implemented, but

Is there a python module to solve/integrate a system of stochastic differential equations?

与世无争的帅哥 提交于 2019-12-05 04:17:09
I have a system of stochastic differential equations that I would like to solve. I was hoping that this issue was already address. I am a bit concerned about constructing my own solver because I fear my solver would be too slow, and there could be the issues with numerical stability. Is there a python module for such problems? If not, is there a standard approach for solving such systems. There is one: http://diffusion.cgu.edu.tw/ftp/sde/ Example from the site: """ add required Python packages """ from pysde import * from sympy import * """ Variables acclaimed """ x,dx=symbols('x dx') r,G,e,d

How to code a slider in Octave to have interactive plot?

安稳与你 提交于 2019-12-03 20:28:50
my target is to have a plot that shows Stochastic oscillator on forex market, and in order to validate which parameter is the best one to setup it, I would use a slider to modify it and show updated result on plot. I have my historical data, for a defined pair (let say AUDUSD) and after loading it, I calculate Stocastic oscillator: function [stoch, fk, dk] = stochastic(n, k, d) X=csvread("AUDUSD_2017.csv"); C=X(2:length(X),5); L=X(2:length(X),4); H=X(2:length(X),3); O=X(2:length(X),2); for m=n:length(C)-n stoch(m)=((C(m)-min(L(m-n+1:m)))/(max(H(m-n+1:m))-min(L(m-n+1:m))))*100; endfor for m=n

Python Code: Geometric Brownian Motion - what's wrong?

╄→尐↘猪︶ㄣ 提交于 2019-12-03 06:22:52
问题 I'm pretty new to Python, but for a paper in University I need to apply some models, using preferably Python. I spent a couple of days with the code I attached, but I can't really help, what's wrong, it's not creating a random process which looks like standard brownian motions with drift. My parameters like mu and sigma (expected return or drift and volatility) tend to change nothing but the slope of the noise process. That's my problem, it all looks like noise. Hope my problem is specific