Question
URGENT: Please provide R script and mathematically - Problem : 6 Use the beetle data, do the following: (a) Find the classification function and cutoff
URGENT: Please provide R script and mathematically -
Problem : 6
Use the beetle data, do the following: (a) Find the classification function and cutoff point.
(b) Find the classification table using the nearest neighbor method by setting k = 3.
(c) Calculate misclassification rate.
Problem 7:
Use the above beetle data, do the following: (a) Use LDA by setting probability of 50% and 50% to train model.
(b) Predict new observation (189,245,138,164).
(c) Calculate misclassification rate.
Dataset for Problem 6 & 7 below:
189 245 137 163 192 260 132 217 217 276 141 192 221 299 142 213 171 239 128 158 192 262 147 173 213 278 136 201 192 255 128 185 170 244 128 192 201 276 146 186 195 242 128 192 205 263 147 192 180 252 121 167 192 283 138 183 200 294 138 188 192 277 150 177 200 287 136 173 181 255 146 183 192 287 141 198 181 305 184 209 158 237 133 188 184 300 166 231 171 273 162 213 181 297 163 224 181 308 160 223 177 301 166 221 198 308 141 197 180 286 146 214 177 299 171 192 176 317 166 213 192 312 166 209 176 285 141 200 169 287 162 214 164 265 147 192 181 308 157 204 192 276 154 209 181 278 149 235 175 271 140 192 197 303 170 205
Haltica carduorum Haltica oleracea Experiment Experiment Number ys y 181 305 184 209 158 237 133 188 184 300 166 23 171 273 162 213 181 297 163 224 181 308 160 223 177 301 166 221 198 308 141 197 180 286 146 214 177 299 171 192 176 317 166 213 192 312 166 209 176 285 141 200 169 287 162 214 164 265 147 192 181 308 157 204 192 276 154 209 181 278 149 235 175 271 140 192 197 303 170 205 2 189 245 137 163 192 260 132 217 217 276 141 192 221 299 142 213 171 239 128 158 192 262 147 173 213 278 136 201 192 255 128 185 170 244 128 192 201 276 146 186 195 242 128 192 205 263 147 192 180 252 121 167 192 283 138 183 200 294 138 188 192 277 150 177 200 287 136 173 181 255 146 183 192 287 141 198 10 12 13 14 15 16 17 18 19 12 15 20 Haltica carduorum Haltica oleracea Experiment Experiment Number ys y 181 305 184 209 158 237 133 188 184 300 166 23 171 273 162 213 181 297 163 224 181 308 160 223 177 301 166 221 198 308 141 197 180 286 146 214 177 299 171 192 176 317 166 213 192 312 166 209 176 285 141 200 169 287 162 214 164 265 147 192 181 308 157 204 192 276 154 209 181 278 149 235 175 271 140 192 197 303 170 205 2 189 245 137 163 192 260 132 217 217 276 141 192 221 299 142 213 171 239 128 158 192 262 147 173 213 278 136 201 192 255 128 185 170 244 128 192 201 276 146 186 195 242 128 192 205 263 147 192 180 252 121 167 192 283 138 183 200 294 138 188 192 277 150 177 200 287 136 173 181 255 146 183 192 287 141 198 10 12 13 14 15 16 17 18 19 12 15 20Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started