Distributions, assumptions and statistical tests

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/10

encourage image

There's no tags or description

Looks like no tags are added yet.

11 Terms

1
New cards

H

distribution of data deviates from normality

2
New cards

H0

distribution of data statistically indistinguishable from normality

3
New cards

Test whether data normally distributed

shapiro.test(dataframe[dataframe<em>anothercolumnname</em>==”<em>rowname</em>"]<em>anothercolumnname</em>==”<em>rowname</em>"]columnname)

4
New cards

Example: shapiro test for

shapiro.test(penguins[penguinsspecies==”Gentoo”,]species==”Gentoo”,]body_mass)

5
New cards

Reject null hypothesis

p-value < 0.05

6
New cards

Fail to rejcet null hypothesis

p-value > 0.05

7
New cards

Non-parametric test

wilcox.test()

8
New cards

Example: Wilcox test for body mass of famle and female penguins

wilcox.test(penguins[penguinssex==”male”,]sex==”male”,]body_mass ,penguins[penguinssex==”female”,]sex==”female”,]body_mass)

9
New cards

Modelling relationships between columns of data

mymodel<- lm(dataframe<em>columnname</em> <em>dataframe</em><em>columnname</em>~<em>dataframe</em>anothercolumnname)

10
New cards

Example of modelling: flipper length and body mass of penguins

mymodel<- lm(penguinsflipperlength penguinsflipper_length~penguinsbody_mass)

11
New cards

Adding a line into a plot with the estimated coefficients of the model

abline(mymodel)