Class Notes (836,147)
Canada (509,656)
Statistics (120)
STA302H5 (12)
Lecture 2

# Lecture 2 - 20130909_111242.pdf

38 Pages
139 Views

Department
Statistics
Course
STA302H5
Professor
Jerry Brunner
Semester
Fall

Description
Page 3A Brief Introduction to R 111 2 23Two to the power 31 8 130 1123456789 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 2526 26 27 28 29 30 gamma52 Gamma12SqrtPi1 3141593 x1Assigns the value 1 to x y2 xy1 3 zxy z1 3 xc123456Collect these numbers x is now a vector zNo dynamic updating its not a spreadsheet1 3 xy1 3 4 5 6 7 8 y12xAnother way to do assignment cbindxy xy1 132 253 374 495 5 116 6 13 zyx4z gets y such that x4 z1 11 13If you put an array of integers inside the brackets you get those elements in the order indicatedyc654321y in opposite order1 13 119753 yc22234Repeats are okay1 5 5 5 7 9 y7There is no seventh elementNA is the missing value code1 NAPage 1 of 6Page 4Computing probabilities etcpnorm0Area less than zero for a standard normal1 05pnorm160mean100sd15 IQ of 1601 09999683pcauchy41 09220209dnorm0height of the curve1 03989423dpois0lambda3PY0 for YPoisson31 004978707qnorm0975z value with PZz09751 1959964qf0975df16df2122Critical value for F not in any table1 2513606CriticalValueqchisq095df18 df18 cbinddfCriticalValue df CriticalValue11384145922599146533781472844948772955 1107049866 1259158777 1406714088 15507313Page 2 of 6Page 5data lists available data sets trees Girth Height Volume183 70 103286 65 103388 63 1024 105 72 1645 107 81 1886 108 83 1977 110 66 1568 110 75 1829 111 80 22610112 75 19911113 79 24212114 76 21013114 76 21414117 69 21315120 75 19116129 74 22217129 85 33818133 86 27419137 71 25720138 64 24921140 78 34522142 80 31723145 74 36324160 72 38325163 77 42626173 81 55427175 82 55728179 80 58329180 80 51530180 80 51031206 87 770 meantreesHeight vartreesHeight1 761 406 cortrees GirthHeightVolumeGirth10000000 05192801 09671194Height 05192801 10000000 05982497Volume 09671194 05982497 10000000Page 3 of 6
More Less

Related notes for STA302H5
Me

Log In

OR

Join OneClass

Access over 10 million pages of study
documents for 1.3 million courses.

Sign up

Join to view

OR

By registering, I agree to the Terms and Privacy Policies
Already have an account?
Just a few more details

So we can recommend you notes for your school.

Reset Password

Please enter below the email address you registered with and we will send you a link to reset your password.

Add your courses

Get notes from the top students in your class.

Request Course
Submit