title: Avoiding -inf when calculating Log Likelihood (MATLAB)
body: <p>When using MATLAB to calculate </p>
  
  <p>Log_likelihood=log((1/1e8)*exp(-0.5*SSR)), </p>
  
  <p>if SSR (i.e. standard squared error) is large (e.g. SSR=1e4) then the exp() becomes zero and the Log_likelihood becomes -inf. </p>
  
  <p>Is there any numerical/mathematical trick that can handle this problem?</p>
  
  <p>Thank You </p>