DOC PREVIEW
UI STAT 4520 - Gibbs Sampling Approach to Logistic Regression

This preview shows page 1-2-3-4-5-6 out of 19 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 19 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 19 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 19 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 19 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 19 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 19 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 19 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Slide 1DataGibbs Sampling For Logistic Data?AlgorithmImplementationInitial ProblemsSampler Output/DiagosticsSampler Output/DiagnosticsSampler Output/DiagnosticsSampler Output/DiagnosticsSampler Output/DiagnosticsWinBUGS ModelWinBUGS ModelWinBUGS Output: Beta0 (1,0)WinBUGS Output: Beta0 (1,1)WinBUGS Output: Beta0 (1,-2)ComparisonWinBUGS WinsResourcesA (poor) Gibbs Sampling Approach to Logistic RegressionKyle BogdanGrant BrownDataSimulated based on known values of parameters (one covariate, ‘dose’).‘rats’ given different dosages of imaginary chemical, 4 dose groups with 25 rats in each group.Data generated three times under different parameters, three chains used for each data set.Gibbs Sampling For Logistic Data?Traditionally, binomial likelihood, prior on logit.Full Conditionals have no coherent form.Attractive, however, because it eliminates the need to reject iterationsAlgorithmGroenewald and Mokgatlhe, 2005Create Uniform Latent Variables Based on Y[i,j] = 0, 1Draws from joint posterior of Betas and U[i,j]pi[i] = p(uniform(01) <= logit-1(Beta*x[i]))Written in R, refined in PythonVery inefficientDraw new parameter for each Y[i,j] at each iterationImplementation•Three datasets•Three chains per set•1 Million iterations per chain•Last 500k iterations sent to CODA•9m total iterations, 4.5 m analyzedInitial ProblemsSampler Output/DiagosticsSampler Output/DiagnosticsSampler Output/DiagnosticsSampler Output/DiagnosticsSampler Output/DiagnosticsWinBUGS ModelY[i,j]’s given binomial (instead of Bernoulli) likelihoodBetas regressed on logit of proportionLocally uniform priors on beta1 and beta2WinBUGS Modelmodel{for (i in 1:N){ r[i] ~ dbin(p[i], n[i]); logit(p[i]) <- (beta1 + beta2*(x[i] - mean(x[]))); r.hat[i] <- (p[i] * n[i]); }beta1 ~ dflat();beta2 ~ dflat();beta1nocenter <- beta1 - beta2*mean(x[]);}WinBUGS Output: Beta0 (1,0)WinBUGS Output: Beta0 (1,1)WinBUGS Output: Beta0 (1,-2)ComparisonWinBUGS WinsUses proportions instead of Individual Y[i,j]’sConvergence is BetterWinBUGS appears more precise (more trials needed)Also, much faster.ResourcesGroenewald, Pieter C.N., and Lucky Mokgatlhe. "Bayesian computation for logistic regression.“ Computational Statistics & Data Analysis 48 (2005): 857-68. Science Direct. Elsevier. Web. <http://www.sciencedirect.com/>.Professor


View Full Document

UI STAT 4520 - Gibbs Sampling Approach to Logistic Regression

Documents in this Course
Load more
Download Gibbs Sampling Approach to Logistic Regression
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Gibbs Sampling Approach to Logistic Regression and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Gibbs Sampling Approach to Logistic Regression 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?