Basics Flashcards

1
Q

(D) p-th moment, q-th centered moment

A
  1. p-th moment: E[|X|^p]

2. q-th centered moment: E[|X - µ|^q]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

“Wall against ground”

A

Falls in Aufgabenstellung auftaucht: “plot a against b”, dann gehört a auf die y-Achse und b auf die x-Achse.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

rep(1,5)

A

1, 1, 1, 1, 1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

1:4

A

1, 2, 3, 4

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

seq(1,25,4)

A

1, 5, 9, 13, 17, 21, 25

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

v=c(1,2,3)

A

combine 1, 2, 3 into a vector v

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

v[i]

A

i-tes Element von v

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

length(v)

A

Länge von v

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

sort(v)

A

Einträge von v sortieren

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

sapply(v,f)

A

wende Funktion f auf alle Einträge von v an

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

cbind(v,w), rbind(v,w)

A

kombiniere v, w zu einer Matrix

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

matrix(v,3,5)

A

Matrix von v mit 3 Reihen und 5 Spalten

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

M %*% N

A

Matrizenprodukt M*N

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

t(M)

A

M transponiert

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

det(M)

A

Determinante von M

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

solve(M), solve(M,b)

A

Inverse von M, Lösung von Mx=b

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

eigen(M)

A

Eigenwerte und Eigenvektoren von M

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

apply(M,i,f)

A

wende f auf die Reihen (i=1) oder Spalten (i=2) der Matrix M an

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

write(v,“file.dat”)

A

schreibe Vektor v in die Datei “file.dat”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

scan(“file.dat”)

A

lese die Datei “file.dat” und speichere als Vektor

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

write.table(t,“table.table”)

A

speichere die Tabelle t in die Datei “table.table”

22
Q

read.table(“table.table”)

A

lese die Datei “table.table” und speichere als Vektor

23
Q

sum(v), prod(v)

A

Summe/Produkt der Einträge

24
Q

cumsum(v), cumprod(v)

A

kummulative Summe/Produkt der Einträge

25
Q

table(v)

A

absolute Häufigkeiten

26
Q

mean(v)

A

arithmetisches Mittel

27
Q

median(v)

A

Median

28
Q

ecdf(v)

A

empirische kumulative Verteilungsfunktion von v

29
Q

quantile(v, p)

A

empirical p quantile of v (smallest using type=1)

30
Q

min(v), max(v)

A

minimum, maximum of v

31
Q

var(v), sd(v)

A

empirical variance, standard deviation of v

32
Q

summary(v)

A

important parameters of v

33
Q

cov(v, w), cor(v, w)

A

covariance, correlation coefficient of v,w

34
Q

lm

A

linear model (see also summary, predict)

35
Q

nlm, nls

A

non-linear minimisation and least squares

36
Q

sample

A

drawing with or without replacement

37
Q

data

A

shows data sets in R

38
Q

boxplot(v)

A

box plot of v

39
Q

barplot(table(v)

A

bar plot of v

40
Q

hist(v)

A

histogram of v

41
Q

plot.ecdf(v)

A

empirical cumulative distribution function of v

42
Q

qqnorm(v)

A

qq plot v against normal distribution, compare qqPlot() in package car

43
Q

abline(a,b)

A

add line a+bx to existing graphics

44
Q

plot(v, w)

A

scatter plot w against v

45
Q

qqplot(v, w)

A

qq plot w against v

46
Q

pairs(M)

A

mutual scatter plots of the columns of M

47
Q

plot(sin)

A

graph of sin

48
Q

curve(cos(x), add=TRUE)

A

add cos to existing plot

49
Q

par(mfrow=c(3,2))

A

3×2 plots in graphics window

50
Q

t.test, binom.test, chisq.test, shapiro.test, ks.test, lillie.test, runs.test, var.test

A
t test, power using power.t.test
binomial test
chi-square test
Shapiro-Wilk test
Kolmogorov-Smirnov test
Lilliefors test, package nortest
runs test using normal approximation, package tseries test of variance
51
Q

xnorm, etc

A

The first letter x can take values d,p,q,r: density, probability (i.e., cdf), quantile, random number.