zajecia13
This commit is contained in:
parent
2b0e1c52ab
commit
4a667af647
|
@ -121,3 +121,5 @@ mean(pca_3$sdev^2)
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,21 @@
|
|||
head(mtcars)
|
||||
plot(mtcars$mpg, mtcars$wt, xlab = "mpg", ylab = "wt", pch = 16)
|
||||
shapiro.test(mtcars$mpg)$p.value
|
||||
qqnorm(mtcars$mpg)
|
||||
qqline(mtcars$mpg, col = "red")
|
||||
shapiro.test(mtcars$wt)$p.value
|
||||
qqnorm(mtcars$wt)
|
||||
qqline(mtcars$wt, col = "red")
|
||||
shapiro.test(mtcars$mpg)$p.value
|
||||
qqnorm(mtcars$mpg)
|
||||
qqline(mtcars$mpg, col = "red")
|
||||
shapiro.test(mtcars$wt)$p.value
|
||||
qqnorm(mtcars$wt)
|
||||
qqline(mtcars$wt, col = "red")
|
||||
cor.test(mtcars$mpg, mtcars$wt, method = "pearson")$p.value
|
||||
cor.test(mtcars$mpg, mtcars$wt, method = "pearson")$est
|
||||
cor.test(mtcars$mpg, mtcars$wt, method = "pearson")$conf.int
|
||||
cor.test(mtcars$mpg, mtcars$wt, method = "kendall")$p.value
|
||||
cor.test(mtcars$mpg, mtcars$wt, method = "kendall")$est
|
||||
cor.test(mtcars$mpg, mtcars$wt, method = "spearman")$p.value
|
||||
cor.test(mtcars$mpg, mtcars$wt, method = "spearman")$est
|
|
@ -0,0 +1,5 @@
|
|||
# Zajęcia 13
|
||||
Analiza korelacji
|
||||
|
||||
|
||||
## Notatki
|
Binary file not shown.
|
@ -0,0 +1,21 @@
|
|||
# ZAD1
|
||||
|
||||
head(mtcars)
|
||||
|
||||
plot(mtcars$mpg, mtcars$wt, xlab = "mpg", ylab = "wt", pch = 16)
|
||||
|
||||
shapiro.test(mtcars$mpg)$p.value
|
||||
qqnorm(mtcars$mpg)
|
||||
qqline(mtcars$mpg, col = "red")
|
||||
shapiro.test(mtcars$wt)$p.value
|
||||
qqnorm(mtcars$wt)
|
||||
qqline(mtcars$wt, col = "red")
|
||||
|
||||
cor.test(mtcars$mpg, mtcars$wt, method = "pearson")$p.value
|
||||
cor.test(mtcars$mpg, mtcars$wt, method = "pearson")$est
|
||||
cor.test(mtcars$mpg, mtcars$wt, method = "pearson")$conf.int
|
||||
|
||||
cor.test(mtcars$mpg, mtcars$wt, method = "kendall")$p.value
|
||||
cor.test(mtcars$mpg, mtcars$wt, method = "kendall")$est
|
||||
cor.test(mtcars$mpg, mtcars$wt, method = "spearman")$p.value
|
||||
cor.test(mtcars$mpg, mtcars$wt, method = "spearman")$est
|
|
@ -0,0 +1,13 @@
|
|||
Version: 1.0
|
||||
|
||||
RestoreWorkspace: Default
|
||||
SaveWorkspace: Default
|
||||
AlwaysSaveHistory: Default
|
||||
|
||||
EnableCodeIndexing: Yes
|
||||
UseSpacesForTab: Yes
|
||||
NumSpacesForTab: 2
|
||||
Encoding: UTF-8
|
||||
|
||||
RnwWeave: Sweave
|
||||
LaTeX: pdfLaTeX
|
|
@ -20,7 +20,7 @@ Wartość p, p-wartość, prawdopodobieństwo testowe.
|
|||
|
||||
|
||||
## Wykres Q-Q
|
||||
Ten wykres (kwantyl - kwantyl) słuzy do porównania wartości estymowanej - linia z prawdziwymi zmierzonymi wartościami - kropki.
|
||||
Ten wykres (kwantyl - kwantyl) słuzy do porównania wartości estymowanej - linia, z prawdziwymi zmierzonymi wartościami - kropki.
|
||||
W tych ćwiczeniach ta wartość przewidziana to po prostu najlepiej pasująca linia do punktów.
|
||||
<br/><br/>
|
||||
![QQ](q-q.png)
|
||||
|
|
Loading…
Reference in New Issue