Prediction interval for generalized linear model

AI Thread Summary
The discussion focuses on obtaining prediction intervals for a response variable using a generalized linear model (GLM) with a Gamma distribution and reciprocal link function. The original poster seeks guidance on the simulation procedure for estimating prediction uncertainty, as they have implemented the GLM in R and Matlab but lack clarity on deriving the prediction distribution. Participants emphasize the importance of estimating parameters, including the mean and coefficients, through matrix algebra and iterative techniques. They suggest consulting GLM literature or R code for further implementation details. The conversation highlights the need for understanding the relationship between the chosen distribution, link function, and the estimation of response variables.
Rizer
Messages
18
Reaction score
0
I am currently working on a prediction problem using generalized linear model, My goal is to get the prediction distribution of the response variable.

I read a thread (https://stat.ethz.ch/pipermail/r-help/2003-May/033165.html) saying the prediction uncertainty of a generalized linear model can be obtained by simulation, but I couldn't find any description of the procedure. Can anyone please help me on this?
 
Physics news on Phys.org
Hey Rizer.

What is your GLM model specifically? What distributions and link functions are you using?
 
Hi Chiro

My current model uses Gamma distribution and a reciprocal link function. I think the same simulation procedure can be applied to any distribution-link function pairs? Or are there standard analytical forms for the commonly used pairs? Thanks
 
Are you trying to estimate a set of parameters from your data or are you just trying to run a simulation of specific distributions (and possibly their parameters) to get some parameters (like mean, variance, etc)?
 
I am trying to estimate the response variables from the newly observed predictors. I have built the GLM using R and Matlab, but I have no idea how to get the prediction interval/distribution for the response variable.
 
In a GLM you estimate specific parameters: in particular, you measure the mean that is involved in the link function and you also estimate co-efficients that correspond to predictors in the linear model.

There is some theory that is used that allows one to obtain the estimate of the mean and the co-efficients using matrix algebra and iterative techniques and if you are needing to implement custom code yourself, you might want to look at either a book on GLM's or perhaps the R code that implements these techniques.

If you are estimating the response through a GLM, then you would have already decided some constraints for the response variable (in terms of its distribution and link function).
 
I was reading a Bachelor thesis on Peano Arithmetic (PA). PA has the following axioms (not including the induction schema): $$\begin{align} & (A1) ~~~~ \forall x \neg (x + 1 = 0) \nonumber \\ & (A2) ~~~~ \forall xy (x + 1 =y + 1 \to x = y) \nonumber \\ & (A3) ~~~~ \forall x (x + 0 = x) \nonumber \\ & (A4) ~~~~ \forall xy (x + (y +1) = (x + y ) + 1) \nonumber \\ & (A5) ~~~~ \forall x (x \cdot 0 = 0) \nonumber \\ & (A6) ~~~~ \forall xy (x \cdot (y + 1) = (x \cdot y) + x) \nonumber...
Back
Top