Preface

This book contains a translation and re-development of past readings from MTH107. Thus, it contains all, but only, information that I expect you to know from this course. I have made every attempt to make it easy to read, provide visuals and explanations for all concepts, and grammatically correct. However, there are likely still errors or descriptions that don’t make sense. Please feel free to ask questions or post errors on the appropriate channel of the course MS Team.

The book highlights definitions and tips in special boxes.

Definition: This is a definition.

This is a tip.

R Code and results are also shown in special boxes. R code is shown in a slight orange shade with the output in gray. Code in the R box can be copied from the box with the icon that appears when you hover over the upper right corner of the code box.

dat <- c(3,4,5,2,8)
mean(dat)
#R>  [1] 4.4

Error results are shown in a reddish box.

3*x
#R>  Error in eval(expr, envir, enclos): object 'x' not found

Results with a warning are shown in a goldish box.

c(2,2)*c(3,3,3)
#R>  Warning in c(2, 2) * c(3, 3, 3): longer object length is not a multiple of
#R>  shorter object length
#R>  [1] 6 6 6

The material presented in this book can be challenging to master. Please don’t hesitate to ask me questions as you have them!