TU Wien:Statistik und Wahrscheinlichkeitstheorie UE (Bura)/Übungen 2019W/5.1: Unterschied zwischen den Versionen

Aus VoWi
Zur Navigation springen Zur Suche springen
(Die Seite wurde neu angelegt: „;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…“)
 
Zeile 6: Zeile 6:
 
Find all empirical (a) medians, (b) first quartiles and (c) 2/3-quantiles.
 
Find all empirical (a) medians, (b) first quartiles and (c) 2/3-quantiles.
  
{{ungelöst}}
+
== Lösungsvorschlag von [[Benutzer:Gittenburg|Gittenburg]] ==
 +
--[[Benutzer:Gittenburg|Gittenburg]] 19:47, 9. Nov. 2019 (CET)
 +
 
 +
<syntaxhighlight lang=r>
 +
workloads = c(25, 13, 7, 9, 44, 3, 2, 33)
 +
median(workloads)
 +
# 11
 +
quantile(workloads, c(0.25, 2/3))
 +
#      25% 66.66667%
 +
#        6        21
 +
</syntaxhighlight>

Version vom 9. November 2019, 19:48 Uhr

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

--Gittenburg 19:47, 9. Nov. 2019 (CET)

workloads = c(25, 13, 7, 9, 44, 3, 2, 33)
median(workloads)
# 11
quantile(workloads, c(0.25, 2/3))
#      25% 66.66667%
#        6        21