TU Wien:Statistik und Wahrscheinlichkeitstheorie UE (Bura)/Übungen 2019W/5.1
Zur Navigation springen
Zur Suche springen
- CPU workload
The CPU workloads (in %) of a processor were observed eight times and gave
25, 13, 7, 9, 44, 3, 2, 33
Find all empirical (a) medians, (b) first quartiles and (c) 2/3-quantiles.
Lösungsvorschlag von Gittenburg[Bearbeiten | Quelltext bearbeiten]
--Gittenburg 19:47, 9. Nov. 2019 (CET)
Wir sortieren die Werte:
2, 3, 7, 9, 13, 25, 33, 44
(a): Jede Zahl im Intervall [9,13] ist ein Median. Der eindeutige Median ist (9+13)/2 = 11.
(b): Jede Zahl im Intervall [3,7] ist ein 1/4-Quantil. Das eindeutige Quartil ist (3+7)/2 = 5.
(c): 2/3-Quantil ist 25.
Das gleiche in R:
workloads = c(25, 13, 7, 9, 44, 3, 2, 33)
median(workloads)
# 11
quantile(workloads, c(0.25, 2/3), type=2)
# 25% 66.66667%
# 5 25