Basics Flashcards

(51 cards)

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
table(v)
absolute Häufigkeiten
26
mean(v)
arithmetisches Mittel
27
median(v)
Median
28
ecdf(v)
empirische kumulative Verteilungsfunktion von v
29
quantile(v, p)
empirical p quantile of v (smallest using type=1)
30
min(v), max(v)
minimum, maximum of v
31
var(v), sd(v)
empirical variance, standard deviation of v
32
summary(v)
important parameters of v
33
cov(v, w), cor(v, w)
covariance, correlation coefficient of v,w
34
lm
linear model (see also summary, predict)
35
nlm, nls
non-linear minimisation and least squares
36
sample
drawing with or without replacement
37
data
shows data sets in R
38
boxplot(v)
box plot of v
39
barplot(table(v)
bar plot of v
40
hist(v)
histogram of v
41
plot.ecdf(v)
empirical cumulative distribution function of v
42
qqnorm(v)
qq plot v against normal distribution, compare qqPlot() in package car
43
abline(a,b)
add line a+bx to existing graphics
44
plot(v, w)
scatter plot w against v
45
qqplot(v, w)
qq plot w against v
46
pairs(M)
mutual scatter plots of the columns of M
47
plot(sin)
graph of sin
48
curve(cos(x), add=TRUE)
add cos to existing plot
49
par(mfrow=c(3,2))
3×2 plots in graphics window
50
t.test, binom.test, chisq.test, shapiro.test, ks.test, lillie.test, runs.test, var.test
``` 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
xnorm, etc
The first letter x can take values d,p,q,r: density, probability (i.e., cdf), quantile, random number.