stateProbs function

State probabilities