PS#4

pdf

School

California Lutheran University *

*We aren’t endorsed by this school

Course

IDS575

Subject

Statistics

Date

Apr 3, 2024

Type

pdf

Pages

9

Uploaded by SuperHumanCrabPerson1153

Report
Q1 Statistics and Exponential Family Basics 31 Points Solve the following questions in order. You could find the relevant hint for solving the next questions by studying and answering to the previous questions. Q1.1 7 Points Given a set of samples , which of the following is a statistic (not necessarily sufficient)? Select ALL correct options. Q1.2 5 Points A probability density function in the exponential family is of the form: . Which of the following is incorrect? { y , ... y } (1) ( m ) (i.e., sample mean) = y ˉ y / m i =1 m ( i ) (i.e., sample variance) s = 2 ( y i =1 m ( i ) ) y ˉ 2 T = 1 max { y , y , ..., y } (1) (2) ( m ) T = 2 median { y , y , ..., y } (1) (2) ( m ) T = 3 5 p ( y ; η ) = b ( y ) exp ( η T ( y ) − T a ( η ))
Q1.3 7 Points The univariate Gaussian density function is . Recall how we transformed this density into a form of exponential family in the lecture. Choose ALL correct descriptions. Q1.4 could be a vector for a certain distribution . y p is always a scalar (i.e., is a scalar-valued function of ) b ( y ) b ( y ) y The dimension of is equal to the dimension of . T ( y ) y makes as a valid probability distribution (i.e., sum to 1) a ( η ) p is always equal to if provided with an input vector and the model parameter . η θ x T x θ p ( y ; μ , σ ) = 2 exp σ 2 π 1 ( −2 σ 2 ( y μ ) 2 ) are called the standard parameter (i.e., parameters in the standard density format) ( μ , σ ) The same density could be represented by multiple different forms. Natural parameter is the canonical parameter in the perspective of exponential family. The dimension of natural parameter could be different from the dimension of standard parameter for some distributions in the exponential family. If each outcome is a result given an input , we can think model parameter associates the input to the output (e.g., ). y x θ y = θ x T
5 Points Now each observed outcome is associated with an input . Given the form of exponential family in Q1.2, choose a correct description about sufficient statistics. Q1.5 7 Points Suppose each outcome in our dataset is generated from a distribution with the density . Note that specifies the probability of each observation given its standard parameter . Choose EVERY value that cannot be a sufficient statistic for estimating the (standard) parameter . Q2 Generalized Linear Model (GLM) Basics 15 Points GLM aims to build a forecasting model tries to predict an outcome given an input instance . Answer for the following questions. y ( i ) x ( i ) is a sufficient statistic for the natural parameter . T ( y ) η Once we evaluate , then forgetting the collected data never changes the parameter estimation. T ( y ) is a sufficient statistic for the model parameter . T ( y ) θ All of the above { y , ... y } (1) ( m ) f ( y ) = λexp (− λy ) p ( y ) ( i ) y > ( i ) 0 λ > 0 λ Σ y i =1 m ( i ) y (1) y ( m ) (where is the sample mean) m y ˉ y ˉ y x
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
Q2.1 5 Points What condition must be generally assumed to use GLM for building a prediction model? Q2.2 5 Points To follow the GLM recipe, we define the hypothesis as the conditional expectation . Q2.3 5 Points If your outcome is one of four classes , which of the following distributions you would better choose to incorporate in the GLM? Q3 Generalized Linear Model a distribution in the exponential family. y a distribution in the expoenntial family. y x None of the above. h ( x ) θ E [ y x ; θ ] True False ∈ { A , B , C , D } Poisson distribution Multinomial distribution Gaussian distribution Uniform distribution Binomial distribution
54 Points In this problem, your output will be a different type of random variable. It models the number of times that an event occurs in an interval of time or space. It's probability density is of the form: , where $\labmda$ indicates the rate of the event which occurs independently. (For example, if you receive in average 4 postal mails every day, then receiving any particular mail will not affect the arrival times of the future mails. ) Q3.1 20 Points Prove or disprove whether this distribution is in the exponential family. If so, you should derive and clearly write down natural parameter, sufficient statistic, log partition function, and the base measure. Q3.1.pdf Download p ( y ; λ ) = y ! e λ λ y λ = 4
1 of 1 Q3.2 17 Points Recall that the natural parameter of Logistic Regression was the log odd ratio of the Bernoulli parameter (e.g., ). Try to express in terms of , explaining why the logistic function is the natural choice for the binary classification. Q3.2.pdf Download η = log 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
1 of 1 Q3.3 17 Points Suppose you are given with a training data . Evaluate the partial derivative of one single example with respect to . Derive a stochastic gradient ascent algorithm for learning the model parameter . (Hint: associate the user parameter to the natural parameter , which is always assumed to be linearly hypothesized by through the model parameters and the example ) D = {( x , y )∣1 ≤ ( i ) ( i ) i m } p ( y x ; θ ) ( i ) ( i ) θ j θ λ η θ x T θ x
Q3.3.pdf Download 3 of 3 GRADED Problem Set (PS) #04
STUDENT Urvashiben Patel TOTAL POINTS 100 / 100 pts QUESTION 1 Statistics and Exponential Family Basics 31 / 31 pts 1.1 (no title) 7 / 7 pts 1.2 (no title) 5 / 5 pts 1.3 (no title) 7 / 7 pts 1.4 (no title) 5 / 5 pts 1.5 (no title) 7 / 7 pts QUESTION 2 Generalized Linear Model (GLM) Basics 15 / 15 pts 2.1 (no title) 5 / 5 pts 2.2 (no title) 5 / 5 pts 2.3 (no title) 5 / 5 pts QUESTION 3 Generalized Linear Model 54 / 54 pts 3.1 (no title) 20 / 20 pts 3.2 (no title) 17 / 17 pts 3.3 (no title) 17 / 17 pts
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