• Keine Ergebnisse gefunden

Writing Hand Non−Writing Hand

N/A
N/A
Protected

Academic year: 2022

Aktie "Writing Hand Non−Writing Hand"

Copied!
2
0
0

Wird geladen.... (Jetzt Volltext ansehen)

Volltext

(1)

Dr. Marcel Dettling Applied Statistical Regression AS 2012

Solution to Series 1

1. a) We can get a first overview of the data by looking at the summary statistics:

R-Output:(excerpt)

> library(MASS)

> summary(survey)

Wr.Hnd NW.Hnd

"Min. :13.00 " "Min. :12.50 "

"1st Qu.:17.50 " "1st Qu.:17.50 "

"Median :18.50 " "Median :18.50 "

"Mean :18.67 " "Mean :18.58 "

"3rd Qu.:19.80 " "3rd Qu.:19.73 "

"Max. :23.20 " "Max. :23.50 "

"NA's :1 " "NA's :1 "

The summary statistics are very similar and don’t give us any evidence for differences between the two hands. This becomes even more clear if we look at the boxplots:

> boxplot(survey$Wr.Hnd, survey$NW.Hnd,

ylab="Span Width", names=c("Writing Hand", "Non-Writing Hand"), cex.lab = 1.5, cex.axis = 1.5)

Writing Hand Non−Writing Hand

14 18 22

Span Width

We conclude that, just using descriptive statistics, we cannot make out any difference between the span widths of the writing and the non-writing hand.

b) We can e.g. use one of these commands:

> survey[rev(order(survey$Age))[1:2],]

Sex Wr.Hnd NW.Hnd W.Hnd Fold Pulse Clap Exer 171 Female 16.5 17.0 Right L on R NA Right Some 154 Male 21.5 21.6 Right R on L 69 Right Freq

Smoke Height M.I Age

171 Never 168.00 Metric 73.000 154 Never 172.72 Imperial 70.417

> survey[rev(order(survey$Age))[1:2],"Smoke"]

[1] Never Never

Levels: Heavy Never Occas Regul So the two oldest students do not smoke.

(2)

2

c) We can get pairwise plots of all the variables with the commandpairs(survey)(result not shown for space reasons). From this we see that e.g. the gender of the student, which seems plausible.

Surprisingly, the plots don’t show a strong dependence between exercise level and pulse. Also, there seem to be differences between left and right handed people. Of course this is not a thorough statistical analysis, but rather a good way to get a first impression of the data.

d) The first line finds all people under 30 and plots their pulse against age. The second line then fits a linear regression model of this restricted data set and adds the regression line to the plot.

Referenzen

ÄHNLICHE DOKUMENTE

Nevertheless, we used three diferent feature modeling languages and some of the largest pub- licly available product lines, which relects that complex real-world feature models

Results: We present preterm twins whose mother was treated with venlafaxine, a nonselective serotonin reuptake inhibitor, throughout pregnancy until delivery.. The twins

The within-subject associations revealed three important findings: first, only positive affective valence was positively associated with exercise duration on a day level; second,

The cholesteric structure of certain liquid crystals can be converted to nematic by application of elec- tric or magnetic fields (see e.g. That means that the helical arrangement

Currency crises are (at least at the ten percent level of significance) more likely, with a lower budget balance, with lower debt service paid and with higher public commercial

However, a p revious meta analysis comparing differences in size and reproduction between invasive alien species and native species from 15 studies found that

Surprisingly, the plots don’t show a strong dependence between exercise level and pulse. Also, there seem to be differences between left and right handed people. Of course, this is

In a best-case scenario, Russia would continue to be a “frenemy” (neither friend nor foe) for NATO ‒ remain- ing engaged in cooperation where mutually beneficial