Q.5. [2+2+1=5 Marks] Recall in logistic regression, probability of a response variable Y is calculated by...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Q.5. [2+2+1=5 Marks] Recall in logistic regression, probability of a response variable Y is calculated by P(Y=1) 1/(1+exp(f(x)) where, x is the set of explanatory (independent) variables. Assume, f(x) = w0+w1*x. Note, a commonly used quantity, log odds is defined as loge (P(Y=1)/P(Y=0)). An experiment was designed to examine how well a chemical kills an insect, which feeds on a plant species. The explanatory variable is the concentration (in log of milligrams per liter) of the chemical. At each concentration, approximately 50 insects were exposed. Each insect was either killed or not killed. We summarize the data using the number killed. The response variable for logistic regression is the log odds of the proportion killed. Here are the data: Q.6. Concentration (log) Number of insects Number killed 0.96 50 6 1.33 48 18 1.63 46 30 2.04 49 42 2.32 50 48 A. Estimate the logistic regression parameters w0 and w1. Concentration % Killed log Odds 0.96 1.33 0.12 0.375 -0.51083 -1.99243 1.63 0.652174 0.628609 2.04 0.857143 1.791759 2.32 0.96 3.178054 w0 and w1 can be obtained by minimizing the following w.r.t. w0 and w1 L= (w0+0.96w1+1.99243)² + (w0+1.33w1+0.51083)2 + (w0+1.63w1-0.6281)² + (w0+2.04w1-1.7918)² + (w0+2.32w1-3.1780)2 Solving we obtain, w0 = -5.4664 and w1 = 3.6748 B. If concentration (in log of milligrams per liter) = 1.5, estimate the % of insects killed. Using w0 -5.4664 and w1 = 3.6748, we get % killed = 48.86% [2+2=4 Marks] Consider the following data and regression model given by output, y = w0+w1*x + w2*x². Input x 0 Output y 0 1 1 2 4 3 3 A. Assume learning rate a=0.5. At iteration t, w0=2, w1=1 and w2=0. What will be the values of w0, w1 and w2 at next iteration t+1? Input x Output y X1=X X2=x² he(x)=w0+w1x1+w2x2 0 0 0 0 2 1 1 1 1 3 2 3 2 4 4 4 3 4 16 6 w0 = 2 – 0.5/4 [2+2+1+3] = 1 w1-1-0.5/4[2*0+2*1+1*2+3*4] = -1 w2=0-0.5/4[2*0+2*1+1*4+3*16] = -6.75 B. Assume L1 regularization with regularization constant λ=1 and learning rate a=0.5. At iteration t, w0=2, w1-1 and w2=0. What will be the values of w0, w1 and w2 at next iteration t+1? Treat zero as a positive integer, if needed! Q.5. [2+2+1=5 Marks] Recall in logistic regression, probability of a response variable Y is calculated by P(Y=1) 1/(1+exp(f(x)) where, x is the set of explanatory (independent) variables. Assume, f(x) = w0+w1*x. Note, a commonly used quantity, log odds is defined as loge (P(Y=1)/P(Y=0)). An experiment was designed to examine how well a chemical kills an insect, which feeds on a plant species. The explanatory variable is the concentration (in log of milligrams per liter) of the chemical. At each concentration, approximately 50 insects were exposed. Each insect was either killed or not killed. We summarize the data using the number killed. The response variable for logistic regression is the log odds of the proportion killed. Here are the data: Q.6. Concentration (log) Number of insects Number killed 0.96 50 6 1.33 48 18 1.63 46 30 2.04 49 42 2.32 50 48 A. Estimate the logistic regression parameters w0 and w1. Concentration % Killed log Odds 0.96 1.33 0.12 0.375 -0.51083 -1.99243 1.63 0.652174 0.628609 2.04 0.857143 1.791759 2.32 0.96 3.178054 w0 and w1 can be obtained by minimizing the following w.r.t. w0 and w1 L= (w0+0.96w1+1.99243)² + (w0+1.33w1+0.51083)2 + (w0+1.63w1-0.6281)² + (w0+2.04w1-1.7918)² + (w0+2.32w1-3.1780)2 Solving we obtain, w0 = -5.4664 and w1 = 3.6748 B. If concentration (in log of milligrams per liter) = 1.5, estimate the % of insects killed. Using w0 -5.4664 and w1 = 3.6748, we get % killed = 48.86% [2+2=4 Marks] Consider the following data and regression model given by output, y = w0+w1*x + w2*x². Input x 0 Output y 0 1 1 2 4 3 3 A. Assume learning rate a=0.5. At iteration t, w0=2, w1=1 and w2=0. What will be the values of w0, w1 and w2 at next iteration t+1? Input x Output y X1=X X2=x² he(x)=w0+w1x1+w2x2 0 0 0 0 2 1 1 1 1 3 2 3 2 4 4 4 3 4 16 6 w0 = 2 – 0.5/4 [2+2+1+3] = 1 w1-1-0.5/4[2*0+2*1+1*2+3*4] = -1 w2=0-0.5/4[2*0+2*1+1*4+3*16] = -6.75 B. Assume L1 regularization with regularization constant λ=1 and learning rate a=0.5. At iteration t, w0=2, w1-1 and w2=0. What will be the values of w0, w1 and w2 at next iteration t+1? Treat zero as a positive integer, if needed!
Expert Answer:
Answer rating: 100% (QA)
The L1 regularization term in the gradient descent update will be used to fix this issue A penalty t... View the full answer
Related Book For
Numerical Methods For Engineers
ISBN: 9780071244299
5th Edition
Authors: Steven C. Chapra, Raymond P. Canale
Posted Date:
Students also viewed these programming questions
-
An experiment was designed to compare several different types of air pollution monitors. Each monitor was set up and then exposed to different concentrations of ozone, ranging between 15 and 230...
-
An experiment was designed to compare several different types of air pollution monitors. The monitor was set up, and then exposed to different concentrations of ozone, ranging between 15 and 230...
-
KE- Data table Industry averages Debt ratio Times interest eamed ratio Fixed-payment coverage ratio Debt analysis Springfield Bank is evaluating Creek Enterprises, which has requested a $3,560,000...
-
Springfield Manufacturing produces electronic storage devices, and uses the following three-part classification for its manufacturing costs: direct materials, direct manufacturing labor, and indirect...
-
Describe the major differences between debt and equity financing.
-
In February 2014, defendant Ibrahim M. Shihadeh, d/b/a Creative Designs Kitchen and Baths, agreed to purchase 25% of his anticipated natural gas needs at a fixed price for the 201415 and 201516...
-
Ross Hopkins, president of Hopkins Hospitality, has developed the tasks, durations, and predecessor relationships in the following table for building new motels. Draw the AON network and answer the...
-
Amazon, Inc. Presentation Your chief executive officer (CEO) has asked you to present the company's (Amazon, Inc.) process on making decisions under risks and uncertainty at the annual shareholders'...
-
Marquis Westbury invested $19,100 in the Ternton and Rainwater partnership for ownership equity of $119,000. Prior to the investment, equipment was revalued to a market value of $77,400 from a book...
-
Find the equation satisfied by the squares of the singular values of the matrix associated with the following over-determined set of equations: 2x + 3y +z = 0 x- y - z = 1 2x + y = 0 2y + z = -2....
-
"What are the implications of empowerment for talent management and human resource development? Furthermore, what strategies can be implemented to empower employees through training, mentoring, and...
-
Discuss the challenges and opportunities associated with cross-cultural delegation, considering factors such as cultural values, communication styles, and power distance dimensions in shaping...
-
7. You want to buy a house and will need to borrow $280,000. The interest rate on your loan is 6.19 percent compounded monthly and the loan is for 20 years. What are your monthly mortgage payments?
-
Claire Gerber wants to buy 400 shares of Google, which is selling in the market for $534.14 a share. Rather than liquidate all her savings, she decides to borrow through her broker at 5 percent a...
-
An employee is arriving late to a meeting and she gets to her computer so fast that her boss s 2 8 2 . 3 Hz tenor voice is shifted 2 . 3 Hz higher. How fast was she moving?
-
SmartBackPack (SBP) is a startup company which was established in early 2011 by its founders, who invested $500,000 at that time and received 2.5 million shares of series A stocks. In the following...
-
A fast-food restaurant averages 150 customers per hour. The average processing time per customer is 90 seconds. a. Determine how many cash registers the restaurant should have if it wishes to...
-
As in Sec. 24.2, compute F using the trapezoidal rule and Simpsons 1/3 and Simpsons 3/8 rules but use the following force. Divide the mast into 5-ftintervals. -30 250z-i0 250z dz 6 +:
-
The torque transmitted to an induction motor is a function of the slip between the rotation of the stator field and the rotor speed s where slip is defined as s = n ? n R /n Where n = revolutions per...
-
In ocean engineering, the equation for a reflected standing wave in a harbor is given by ? = 16, t = 12, ? = 48 : Solve for that lowest positive value of x if h = 0.5h 0 . 2 2ntu ho sin h = COS
-
Fill in the blanks to make the following statements correct. a. Economists have designed____________ to better explain and predict the behaviour we observe in the world around us. b. A variable, such...
-
The following supply and demand schedules describe a hypothetical Canadian market for potash. a. What is the equilibrium price of potash? b. How much potash would actually be purchased if the price...
-
According to Statistics Canada, Canada's exports and imports of energy (combined totals of fossil fuels, hydro, and nuclear, all measured in petajoules) over a five-year period were as follows: a....
Study smarter with the SolutionInn App