एक स्थिति की कल्पना करें: हमारे पास तीन खानों के ऐतिहासिक रिकॉर्ड (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)