(Please do it on R-Studio) Fish carry some information about their…
Question (Please do it on R-Studio) Fish carry some information about their… (Please do it on R-Studio) Fish carry some information about their birthplace in their growth rings for their scales. Typically the rings associated with freshwater growth are smaller for the Alaskan-born than for the Canadian-born salmon. The following data gives the diameters of the growth ring regions, Y1 and Y2, magnified 100 by the birthplace (X1) and Gender of the fish (X2) X1= The fish caught in Alaskan waters is coded 1 and the fish caught in Canadian waters is coded 2. X2= Gender of the fish caught where females are coded 1 and males are coded 2. Y1= the diameter of rings for the first-year (fresh-water growth). Y2= the diameter of rings for the first-year (marine growth). (Both are in hundredth of an inch) a. Provide a side-by-side boxplot for the diameter of rings of the fish caught in Freshwater and describe t heist of each. b. Perform an independent samples t-test to see if the average diameter of rings for the first-year growth is smaller for Alaskan-born than for the Canadian-born . Use the data provided with Y2 as the independent variable i.e. marine fish only e. Find a logistic regression model that can be used to classify the Marine salmon caught by Alaskan commercial fisherman and Canadian commercial fisherman. f. Use your model to estimate the log of odds of having a Marine fish with diameter of rings of 469 of being an Alaskan to that of being a Canadian fish (meaning the birthplace is Alaska as opposed to Canada) g. Classify the fish you used in (b) as being Canadian or Alaskan. h. Classify all marine fish using your model. k. Find the error rate (use the classification table ) Data for this question: X1 X2 Y1 Y21 2 108 3681 1 131 3551 1 105 4691 2 86 5061 1 99 4021 2 87 4231 1 94 4401 2 117 4891 2 79 4321 1 99 4031 1 114 4281 2 123 3721 1 123 3721 2 109 4201 2 112 3941 1 104 4071 2 111 4221 2 126 4231 2 105 4341 1 119 4741 1 114 3961 2 100 4701 2 84 3991 2 102 4291 2 101 4691 2 85 4441 1 109 3971 2 106 4421 1 82 4311 2 118 3811 1 105 3881 1 121 4031 1 85 4511 1 83 4531 1 53 4271 1 95 4111 1 76 4421 1 95 4261 2 87 4021 1 70 3971 2 84 5111 2 91 4691 1 74 4511 2 101 4741 1 80 3981 1 95 4331 2 92 4041 1 99 4811 2 94 4911 1 87 4802 1 129 4202 1 148 3712 1 179 4072 2 152 3812 2 166 3772 2 124 3892 1 156 4192 2 131 3452 1 140 3622 2 144 3452 2 149 3932 1 108 3302 1 135 3552 2 170 3862 1 152 3012 1 153 3972 1 152 3012 2 136 4382 2 122 3062 1 148 3832 2 90 3852 1 145 3372 1 123 3642 2 145 3762 2 115 3542 2 134 3832 1 117 3552 2 126 3452 1 118 3792 2 120 3692 1 153 4032 2 150 3542 1 154 3902 1 155 3492 2 109 3252 2 117 3442 1 128 4002 1 144 4032 2 163 3702 2 145 3552 1 133 3752 1 128 3832 2 123 3492 1 144 3732 2 140 3882 2 150 3392 2 124 3412 1 125 3462 1 153 3522 1 108 339 Math Statistics and Probability MATH 268 Share QuestionEmailCopy link Comments (0)


