Created
May 27, 2020 18:34
-
-
Save allatambov/9d902a392507774f662f352cef827bc4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# вероятности для t-распределения | |
pt(0, df = 10) | |
pt(2, df = 10) | |
1 - pt(0, df = 10) | |
pt(1.11, df = 10) | |
(1 - pt(1.11, df = 10)) * 2 | |
# загружаем данные | |
chipdale <- read.csv("https://allatambov.github.io/psms/chip-n-dale.csv") | |
chipdale <- na.omit(chipdale) | |
# описательные статистики | |
summary(chipdale) | |
# проверка гипотезы о доли | |
prop.test(24, 66, p = 0.25) | |
prop.test(24, 66, p = 0.25, alternative = "greater") | |
# проверка гипотезы о среднем | |
t.test(chipdale$cheeze, mu = 70) | |
# проверка гипотезы о равенстве средних | |
t.test(chipdale$tech ~ chipdale$spec) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment