date: 2024-10-16
title: ML-As-2
status: DONE
author:
  - AllenYGY
tags:
  - MachineLearing
  - Assignment
publish: TrueML-As-2
The Poisson distribution is a useful discrete distribution which can be used to model the number of occurrences of something per unit time. For example, in networking, packet arrival density is often modeled with the Poisson distribution. If 
It can be shown that 
Show that the sample mean 
Finding the MLE
Unbiasedness
Since  
Therefore,  
Now let's be Bayesian and put a prior distribution over 
Where 
Let 
Then the distribution is still a Gamma distribution
Derive an analytic expression for the maximum a posterior (MAP) of 
Prior Distribution 
Likelihood function 
The bias of an estimator is defined as 
The bias is 
The variance of an estimator is defined as 
This is not a good estimator, since the bias is large when the true value of 
This is an unbiased estimator.
The variance of this estimator is 
This is not a good estimator since its variability does not decrease with the sample size.
Bias of the estimator :
Variance of the estimator :
The error is equal to 0.
Because 
Just check whether it is in the interval [-4,-1] or in the interval [1,4]
Since we are approximating 
Using these, for 
Given a finite amount of data, we will not learn the mean and variance of 
No, the new 
The log ratio of class-conditional probabilities:
Simplifies to:
Probability of 
Simplifies to: