Originally Posted by

**jklm1664** I'm looking for a way to get a program to generate a markov chain for me. It's a big task, which is why I need help. So far, I have gotten Mathematica to generate all possible subsets of n for a set of r, and I wanted to rename them and somehow get it to generate the probability of going from, say, a to b, then a to c, then a to d...then a to n in one step, so I could get one row, then do this for each row, then combine them to get a matrix.

I could do this by hand, sure, but when it gets up to 20x20 and larger I'd rather not be inputting 400 separate numbers...

I'm not too good in the advanced mathematics department, so I would appreciate it if anybody could be of help.

Also, I would appreciate it if you think you can be of help if you would IM me at JuliaLeigh10.

I have Mathematica and R, I just find Mathematica tons easier to use, but I'd be willing to use either of them. I just want to get this done!