• 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 2014

Solution to Series 1

1. 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 "

a) 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.

b) We can get pairwise plots of all the variables with the commandpairs(survey)(result not shown for space reasons). From this we see that the gender of the student seems to have some influence.

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.

Note that these pairwise comparisons do not necessarily reveal more complex relations. For example, when several variables contribute to the variation inPulse. That will be discussed in the context of multiple regressions.

c) 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)

(2)

2

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.

d) The first line finds all people under 30 and also removes the NA values. Then we check the correlation between their age and pulse. Finally, the scatter plot contains a loess smoother and the regression line.

Referenzen

ÄHNLICHE DOKUMENTE

Schreiben: den Aufbau von Anfrage/Angebot kennen, eine fehlerhafte E-Mail korrigieren, eine Anfrage/ein Angebot verfassen, auf eine Anfrage mit einem Angebot antworten;..

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

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

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

During this analysis we classified tests into unit and integration tests according to the definitions of the Institute of Electrical and Electronics Engineers (IEEE) and

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

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