TU Wien:Statistik und Wahrscheinlichkeitstheorie UE (Bura)/Übungen 2020W/HW10.2
Zur Navigation springen
Zur Suche springen
Processors - Part 1[Bearbeiten | Quelltext bearbeiten]
The heating of five different types of processors is to be compared. For each type of processor the temperature (in celsius) was measured multiple times (each time a new processor of the same type was used). The technical setup was the same throughout. The data is stored in the file temperatures.Rdata
- (a) Plot the data using a stripchart
- (b) For each group add the mean and the standard error of the mean
- (c) From what you see in the plot, would you say that the shift between the groups happened easily if the data was sampled from the same distribution?
Lösungsvorschlag von Friday[Bearbeiten | Quelltext bearbeiten]
--Friday Sa 30 Jan 2021 17:41:53 CET
# Statistics and Probability - HW #10
# Friday
# Duedate: 14.12.2020
# Problem 2 - Processors - Part 1
# The heating of five different types of processors is to be compared. For
# each type of processor the temperature (in celsius) was measured multiple
# times (each time a new processor of the same type was used). The technical
# setup was the same throughout. The data is stored in the file
# temperatures.Rdata
load("temperatures.Rdata")
(par(mfrow=c(1,1)))
# Problem 2a)
# Plot the data using a stripchart
stripchart(temp,
main = "Processors Temperatures",
ylab= "processors",
xlab= "temperatures (in °C)",
jitter = 0.1,
method='jitter',
pch=1,
col = rainbow(5, v=0.7)
#col = c('blue', 'seagreen', 'tan3', 'purple', 'slategray')
)
# Problem 2b)
# For each group add the mean and the standard error of the mean
for (i in 1:5) {
md = mean(temp[[i]])
sem = sd(temp[[i]])/sqrt(length(temp[[i]]))
rect(md-sem, i-0.15, md+sem, i+0.15, density=10, col='pink')
lines(c(md,md), c(i-0.2, i+0.2), col='red', lwd=2)
}
# Problem 2c)
# From what you see in the plot, would you say that the shift between the
# groups happened easily if the data was sampled from the same distribution?
# No, as as the means are quite "far" apart (multiple sem).