data100_hw5

pdf

School

University of California, Berkeley *

*We aren’t endorsed by this school

Course

MISC

Subject

Statistics

Date

Feb 20, 2024

Type

pdf

Pages

24

Uploaded by AdmiralArmadilloPerson18

Report
Graded Homework 5 Student Khankamol Chor Kongrukgreatiyos Total Points 27.75 / 32 pts
Question 1 Linear regression residuals 5.5 / 7 pts 1.1 Question 1a 2 / 2 pts + 2 pts Fully correct proof + 1 pt Sets up a key equation: either takes the average of the predictions ( ) or states that the sum/mean of residuals is zero ( ) + 0.5 pts Expands the key equation: either attempts to algebraically simplify the average of the predictions or expands the sum of residuals as + 0.5 pts Attempts proof, but no major milestones achieved + 0 pts Incorrect or blank − 0.35 pts Did not select pages in Gradescope 1.2 Question 1b 3 / 3 pts + 3 pts Fully correct proof + 1 pt Sets up the equation for simple linear regression + 1 pt Attempts to substitute + 0.5 pts Attempts proof, but no major milestones achieved + 0 pts Incorrect/blank − 0.35 pts Did not select pages in Gradescope 1.3 Question 1c 0.5 / 2 pts + 2 pts Fully correct proof + 0.5 pts Recognizes that the mean of the residuals is zero ( ) + 0.5 pts Manipulates the expression to produce the estimating equation + 0.5 pts Recognizes that the sum of the residuals is zero ( ) + 0.5 pts Attempts proof, but no major milestones achieved + 0 pts Incorrect or blank − 0.35 pts Did not select pages in Gradescope + n 1 i =1 n y ˉ r ( x σ x σ y ) x ˉ e = i =1 n i 0 i =1 n y i ^ y = i =1 n i 0 x = i x ˉ = e ˉ 0 e x i =1 n i i e = i n i 0
Question 2 Logistic regression estimating equations 6 / 6 pts 2.1 Question 2a 3 / 3 pts + 3 pts Correct/good progress towards a proof + 0 pts Blank − 0.35 pts Did not select pages in Gradescope 2.2 Question 2b 3 / 3 pts + 3 pts Fully correct proof + 1 pt Sets up the empirical risk equation, + 1 pt Attempts to take the derivatives of risk with respect to and : sets up the expressions and + 0.5 pts Successfully computes the partial derivative with respect to either or + 0.5 pts Compares the estimating equations for log-loss risk to or + 0.5 pts Attempts proof, but no major milestones achieved + 0 pts Incorrect or blank − 0.35 pts Did not select pages in Gradescope ( a , b ) = R ^ y ( a + n 1 i =1 n i bx ) − i log (1 + e ) a + bx i a b ( a , b ) a R ^ ( a , b ) b R ^ a b y n 1 i =1 n i y i ^ ( y n 1 i =1 n i ) x y i ^ i
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Question 3 Constant predictions 8 / 9 pts 3.1 Question 3a 2 / 2 pts + 2 pts Fully correct proof + 0.75 pts Sets up the risk function, + 0.5 pts Takes the derivative of risk with respect to , attempting to compute + 0.5 pts Sets the derivative of risk equal to zero + 0.5 pts Attempts proof, but no major milestones achieved + 0 pts Incorrect or blank − 0.35 pts Did not select pages in Gradescope 3.2 Question 3b 3 / 3 pts + 3 pts Fully correct proof + 0.75 pts Sets up the empirical risk, + 0.5 pts Attempts to take the derivative of loss with respect to to compute + 0.5 pts Sets derivative equal to 0 + 0.5 pts Attempts proof, but no major milestones achieved + 0 pts Incorrect or blank − 0.35 pts Did not select pages in Gradescope 3.3 Question 3c 2 / 2 pts + 2 pts Fully correct: states that is the mode of the dataset and gives appropriate reasoning + 1 pt Correctly describes how to minimize L0 loss: choose the value of that minimizes the number of times + 0.5 pts Provides reasoning for how to identify the ideal + 0.25 pts Attempts solution, but no major milestones achieved + 0 pts Incorrect or blank − 0.35 pts Did not select pages in Gradescope M SE ( a ) = ( y n 1 i =1 n i a ) 2 a M SE ( a ) a M AE = y n 1 i =1 n i a a y a i a a ^ a y = i y i ^ a ^
3.4 Question 3d 1 / 2 pts + 2 pts Fully correct: identifies the optimal as the quantile and gives appropriate justification + 0.75 pts Attempts to take the derivative of loss or risk with respect to + 0.5 pts Sets the derivative equal to 0 + 0.5 pts Attempts to provide reasoning for the choice of quantile that gives the optimal + 0.5 pts Attempts solution, but no major milestones achieved + 0 pts Incorrect or blank − 0.35 pts Did not select pages in Gradescope a ^ 1+ w 1 a a ^
Question 4 Estimating equations for L1 loss 8.25 / 10 pts 4.1 Question 4a 2 / 2 pts + 2 pts Problem completed + 0 pts Blank − 0.35 pts Did not select pages in Gradescope 4.2 Question 4b 1.25 / 2 pts + 2 pts Fully correct proof + 0.75 pts Attempts to take the derivative of empirical risk with respect to and to , computing and + 0.5 pts Sets the derivatives equal to 0 + 0.5 pts Correctly proves one of the two statements given in the prompt + 0.5 pts Attempts proof, but no major milestones achieved + 0 pts Incorrect or blank − 0.35 pts Did not select pages in Gradescope 4.3 Question 4c 3 / 3 pts + 3 pts Fully correct: (iii) is true because as becomes larger and larger in value, our estimate should also become larger to reduce L2 loss; this is achieved by increasing and without limit + 1.5 pts Selects choice (iii) without reasoning + 1.5 pts Provides thoughtful reasoning for choices (i) or (ii) + 0 pts Incorrect or blank − 0.35 pts Did not select pages in Gradescope 4.4 Question 4d 2 / 3 pts + 3 pts Correct: if the residual is positive, (i) will occur; if the residual is negative, (ii) will occur + 2 pts Chose other answer choice and gave thoughtful reasoning + 0 pts Blank/no answer choice stated − 0.35 pts Did not select pages in Gradescope a b M AE ( a , b ) a M AE ( a , b ) b y i y ^ a ^ b ^
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Questions assigned to the following page: 1.1 and 1.2
Question assigned to the following page: 1.3
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Question assigned to the following page: 2.1
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Question assigned to the following page: 2.2
Questions assigned to the following page: 3.1 and 3.2
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Questions assigned to the following page: 3.3 and 3.4
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Question assigned to the following page: 4.1
Question assigned to the following page: 4.2
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Questions assigned to the following page: 4.3 and 4.4
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
  • Access to all documents
  • Unlimited textbook solutions
  • 24/7 expert homework help