# Difference between revisions of "TU Wien:Statistik und Wahrscheinlichkeitstheorie UE (Bura)/Übungen 2019W/5.2"

(2) Boxplot

Two novel randomized algorithms (A and B) are to be compared regarding their running time. Both algorithms were executed n times. The running times (in seconds) are stored in the file algorithms.Rdata

(a) Set the working directory and load the data using load(). Create a boxplot to compare the running times. Color the boxes and add proper notations (axes notations, title etc.). More info via ?boxplot
(b) Comment on the following statements / questions only using the graphic
(a) The first quartile of the times in A was about?
(b) the interquartile range of the times in B is about trice the interquartile range of A
(c) Is n = 100?
(d) More than half of the running times in B were faster than 3/4 of the running times in A
(e) At least 50% in A were faster than the 25% slowest in B
(f) At least 60% in A were faster than the 25% slowest in B

## Lösungsvorschlag von Draggy

setwd(dir ="/YourMama/TU-WIEN/ws-2019/statistik-und-wahrschienlichkeitstheorie/")


Boxplot erstellen:

boxplot(runningtimes,ylab = "Runtime")


(b)

(a) The first quartile of the times in A was about? $\rightarrow 20$
(b) the interquartile range of the times in B is about trice the interquartile range of A $\rightarrow$ ich würde sagen eher doppelt so groß statt drei mal so groß
(c) Is n = 100? $\rightarrow$ Der Boyplot gibt keine auskunft über die größe der Datenmenge
(d) More than half of the running times in B were faster than 3/4 of the running times in A $\rightarrow$ Stimmt , der Median von B liegt tiefer als das 1. Quantil von A
(e) At least 50% in A were faster than the 25% slowest in B $\rightarrow$ Stimmt , da das 3. Quantil von B höher liegt als der Median von A
(f) At least 60% in A were faster than the 25% slowest in B $\rightarrow$ Kann durch den Boxplot nicht gezeigt werden.