想象一个情况:我们有三个矿山的历史记录(已有20年)。白银的存在是否会增加明年发现黄金的可能性?如何测试这样的问题?
这是示例数据:
mine_A <- c("silver","rock","gold","gold","gold","gold","gold",
"rock","rock","rock","rock","silver","rock","rock",
"rock","rock","rock","silver","rock","rock")
mine_B <- c("rock","rock","rock","rock","silver","rock","rock",
"silver","gold","gold","gold","gold","gold","rock",
"silver","rock","rock","rock","rock","rock")
mine_C <- c("rock","rock","silver","rock","rock","rock","rock",
"rock","silver","rock","rock","rock","rock","silver",
"gold","gold","gold","gold","gold","gold")
time <- seq(from = 1, to = 20, by = 1)
1
您可能对计算转移矩阵感兴趣。
—
安迪W
嗨@AndyW!感谢您的评论。我熟悉过渡矩阵包:makkovchain-markovchainFit()。我可以将转换矩阵中的概率值用作p值吗?有什么方法可以检验假设:“存在“银金”关系。” (p值= xx)?
—
LadislavNaďo2015年
@LadislavNado转换概率不能解释为p值(它们不会告诉您有关拒绝任何H0的任何信息),请参阅stats.stackexchange.com/questions/31/…了解有关p值的更多信息。
—
蒂姆