Question: Random Walk Filename: walkLikeABel . m Write a function: ` ` ` function [ finalProbabilities ] = walkLikeABel ( totalBlocks , spaceG, fes , startingB
Random Walk
Filename:
walkLikeABel m
Write a function:
function finalProbabilities walkLikeABel totalBlocks spaceG, fes startingB
lock
where:
totalBlocks size of universe
spaceG likelihood Bel walks towards SpaceG lowest block
fes likelihood Bel walks towards Fes highest block
startingBlock block number Bel lives at
Bel is confused most days. Especially since he moved. He really cares more about Space G but knows that more eyes and dollars are on Fes, and so he has decided to use a random walk strategy to decide which place he will work at each day.
He has asked you to develop a function to help him understand the possibilities.
You can test with conditions like: Lives at block in a block univers. At each intersection, he has a likelihood he will go towards Fes and a likelihood that he will go towards Space G
Return the stable, final probabilities for his arrival at Fes and Space G assuming Belon starts at his home.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
