zajecia13

This commit is contained in:
Jakub Adamski 2021-06-14 18:01:34 +02:00
parent 2b0e1c52ab
commit 4a667af647
7 changed files with 63 additions and 1 deletions

View File

@ -121,3 +121,5 @@ mean(pca_3$sdev^2)

21
zajecia13/.Rhistory Normal file
View File

@ -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

5
zajecia13/README.md Normal file
View File

@ -0,0 +1,5 @@
# Zajęcia 13
Analiza korelacji
## Notatki

BIN
zajecia13/Zajęcia13.pdf Normal file

Binary file not shown.

21
zajecia13/zadania.R Normal file
View File

@ -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

13
zajecia13/zajecia13.Rproj Normal file
View File

@ -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

View File

@ -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)