Serving the Quantitative Finance Community

Search found 5 matches

by avishalom
June 29th, 2010, 7:14 pm
Forum: Brainteaser Forum
Topic: Stochastic Puzzle
Replies: 12
Views: 31286

Stochastic Puzzle

i'm gonna go with 0.6 vs 0.4 for the random walk. for the brownian , how do you define the motion ? pick a side at random, and then move a distance taken from 1/f ?
by avishalom
March 4th, 2010, 3:21 pm
Forum: Brainteaser Forum
Topic: Simple Random Walk
Replies: 10
Views: 35516

Simple Random Walk

<t>well, if p=0.5 the problem is a lot simpler. if you pair the moves (since it will never be an odd number) you can reduce the problem down to being at point C or AHeads, you go to A ,(or stay, if it is the first)tails - go to C . (or stay)how many times do you have to through a coin until you see ...
by avishalom
February 22nd, 2010, 9:02 am
Forum: Brainteaser Forum
Topic: Newborns brainteaser
Replies: 18
Views: 41065

Newborns brainteaser

Cool so the original number of girls in the room does not matter at all. it cancels out. so if you originally had 0 girls or 1miliion girls doesn't matter.
by avishalom
February 8th, 2010, 10:12 am
Forum: Brainteaser Forum
Topic: Random Walk Triangle, Square, etc.
Replies: 5
Views: 42179

Random Walk Triangle, Square, etc.

<t>matlab code. split the last vertex into 2, stochastic matrixN=3; % 3 is for triangle, it actually creates 4 vertices, another termination pointstoc=diag(.5*ones(1,N),-1)+... diag(.5*ones(1,N),1);stoc(:,1)=[1;zeros(N,1)];stoc(:,end)=[zeros(N,1);1];startvertex=[0;1;zeros(N-1,1)];final_distribution=...
by avishalom
January 18th, 2010, 1:43 pm
Forum: Technical Forum
Topic: How do I do generalized least squared in MATLAB?
Replies: 3
Views: 38791

How do I do generalized least squared in MATLAB?

MATLAB does have it built in look up "rdivide"the logic is that if y=x*b +errorb(minimum (least square) error) b= x\y(y, x are in columns , the first row is the first observation, t=1, so the dimensions are y(MxN) , x(MxK) , and B(KxN))