965-R-Learning-Repo/test/t-code/2720049/R1008.r
2024-11-20 17:04:40 +08:00

5 lines
375 B
R
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

P=matrix(c(_______),2,2) #输入如题目中所示矩阵 (3分)
P2=P_______P #在划线处填写合适的的运算符,求出两步状态转移概率矩阵 (2分)
P0=c(0.5,0.5) #初始概率向量
___________#预测2个周期后的概率向量 (3分)
cat("2个周期后处于状态1的概率是",_______) #根据题目运行结果填写,不要四舍五入 (2分)