Save this video free

STAT 638 (Fall 2026), Lecture 27

Samiran Sinha · 53:36 · Watch on YouTube

STAT 638 (Fall 2026), Lecture 27 Watch on YouTube →

Overview

Samiran Sinha reviews two Bayesian linear regression quiz problems: a known-variance normal model, then a model with an unknown variance and a Zellner g-prior. He derives the conditional posterior distributions, demonstrates Monte Carlo estimation with R and MASS::mvrnorm, and uses Gibbs sampling to estimate a 95% posterior predictive interval for a new outcome at x* = (1, 2), obtaining approximately [-2.32, 5.06].

Key takeaways

Chapters

0:00 Quiz 4, Question 1: Set Up the Gaussian Regression Model
5:30 Derive the Normal Posterior Mean and Covariance
13:30 Check the Regression Inputs and Posterior Matrix Calculations
18:15 Estimate P(β₁ > β₂) with MASS::mvrnorm
23:45 Quiz 4, Question 2: Introduce a Zellner g-Prior
31:30 Derive β Conditional on σ² Under the g-Prior
36:50 Derive the Inverse-Gamma Conditional Distribution for σ²
40:55 Build the Gibbs Sampler for β and σ² in R
47:45 Simulate New Outcomes at x* = (1, 2)
52:10 Read the Approximate 95% Posterior Predictive Interval

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:00 Sinha, Samiran: Alright, let's get started. Sinha, Samiran: Today, we'll talk about wheeze? Sinha, Samiran: Quiz… quiz number 4, discussions, and then, we'll talk about the rest of the part. Sinha, Samiran: of GLM. Sinha, Samiran: And if time permits, then we'll talk about multimedia normal. Sinha, Samiran: part, which is on Chapter 7. Remember, we skipped that chapter, so after GLM, we'll come back to Chapter 7. This is the plan, I don't know whether I'll be able to start it today.

0:59 Sinha, Samiran: So, quiz 4, question number 1, suppose that we have outcome and explanatory variable data from 16 experimental units. Oh, by the way, everyone did very well in the quiz, so… but anyhow, I'll be discussing all the quiz questions. Sinha, Samiran: The outcome vector is Y, and the design matrix X is of dimension. Sinha, Samiran: The outcome vector is Y, and the design matrix X is of dimension 16 by 2 without the intercept. Sinha, Samiran: without the intercept. No intercept is there. Now, we write all the assumptions using notation, so Y given beta and sigma squared follows normal distribution. Sinha, Samiran: With the mean X beta, and variance sigma squared times the identity matrix. Sinha, Samiran: X transpose X is given, X transpose Y is given, the prior for beta.

1:58 Sinha, Samiran: is given to U, and the prior density for sigma squared. Sinha, Samiran: Is pi sigma squared proportional to 1 over sigma squared. Sinha, Samiran: What is probability, beta 1? Sinha, Samiran: greater than beta 2, given the data. Now, data means, generally, we Sinha, Samiran: Talk about Y. Y is the outcome which has noise in it, and X, the design matrix. Sinha, Samiran: is generally treated as the given quantity. So, usually, X is not part of the data, therefore I did not write it, but it does not mean that we'll not be including X.

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Samiran Sinha.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.