Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Help Please 5. (12 points) Consider a sample dataset with the binary response y that takes possible values of 0 and 1 and a single
Help Please
5. (12 points) Consider a sample dataset with the binary response y that takes possible values of 0 and 1 and a single predictor :3. We assume 3 follows a normal distribution with density function mm = k) = 1 exp (o M). 27m where we is the mean of the k-th class, k = 0, 1, or is the variance for both classes. The estimated parameter values for a training data are m = 2, fig = 4, 62 = 3, in = 0.25, fro = 0.75. We now use Linear Discriminant Analysis (LDA) to answer the following question: (a). Predict the posterior probability 15(y = 1|$ = 0). (b). Using your results from (a), make a prediction for the class for x = 0. (Use the default 0.5 as probability threshold for classication) Hint: The formulas for discriminant scores are: 30(93) = a: - '53 7 35 + log(:='rg), 51(56) = :c- 0% 7 2 2&1: + log(fr1). The posterior probability can be written as a 1 emllz . . . 3 as; = llss) = '\"1\\/2_6 \"minted _'3 1'\") fro 1 e'mnlz + 1'71 1 e_%f($_f'1)2 can\") + emf) 2776 2176' Note: the function log() is the natural logarithmic functionStep 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