https://youtu.be/XrIis5Bm-qo?si=VPa04kM8vr0_bEE2
I've read books that needed several hundred pages to explain this concept. Good watch.

#dc comics#dc#batman#bruce wayne#batfam#dick grayson#tim drake#batfamily#dc fanart


seen from United States
seen from China
seen from United States
seen from Russia
seen from Russia
seen from Poland

seen from Malaysia
seen from Türkiye
seen from China
seen from United Kingdom

seen from Maldives
seen from Italy

seen from China

seen from Malaysia
seen from China

seen from Maldives

seen from United States
seen from Germany
seen from Japan
seen from Poland
https://youtu.be/XrIis5Bm-qo?si=VPa04kM8vr0_bEE2
I've read books that needed several hundred pages to explain this concept. Good watch.

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
thesis so bad it deformed my white blood cells.
Bayesian Linear Regression
Normal Linear Regression
It has been a while since last post as I was very busy with thesis stuff, and I’ve just finished the Bayesian course. Today, I wanna try something new which is Bayesian Linear Regression; the model that I just found out from the online course that I enrolled in lol
Data in used; the simulated data contains 2000 records and 5 attributes; spending (our target attribute), age, gender (Male, Female), salary, and status (Single, Married)
Let’s start with normal Linear Regression (MLE)
The model yield Adj R squared at 0.55. The overall model is significant (F-statistics p-values < 0.05) and each variable is also significant (t-test p-value < 0.05)
Now let’s look at diagnosis results
Linearity and Heteroskedasticity
The residuals are randomly clustered around 0 on y-axis and from turkey test shows that there is no significant evidence of non-linearity case.
2. Autocorrelation
Using Durwin-Watson test we can see that there is no evidence that the residuals are related to each other
3. Independence
Using VIF to check whether own input attributes are related to each other, since VIF of each variable < 5 we can conclude that each variable is independent
4. Normality
Shapiro-wilk (W = 0.99; p-value = 0.53) and the histogram of residual confirmed that the residual is normally distributed. (I have never seen the most perfect normal distribution of residual like this before lol)
As our model can pass all assumptions, we can say that the Linear Regression model is good enough to predict or interpret
Y_hat = 391.7 + 3.633⋅age − 40.80⋅genderMale + 0.003946⋅salary − 46.92⋅statusSingle
We can say that
Older customers tend to spend money more than the younger customers
Female customers spend more money compared with their gender counterpart
The higher salary, the higher spending
Married people tend to spend more money compared to single people
Under the assumption of a linear relationship
But we can use Bayesian Linear Regression which produces full posterior distributions for parameters, allowing credible intervals and probability statements.
Bayesian Linear Regression
Let’s start with prior distributions (what we believe the parameter distributions look like)
As I don’t know my parameter distributions look like yet so I use weak prior information instead (normal with high variance) and my target y prior is t-distribution so the model can cover the case of outlier better than normal prior y. We also have to set the prior of precision (inverse variance, we use this instead variance because it has close form) and nu which is the degree of freedom of t-distribution.
Then I set up the initial distribution that our simulation and I run the MCMC using n.chain which reduces the time of running MCMC (it works as the number of workers that run parallel)
Also, we need to set up the burn-in state and number of run on each chain too.
In this example, I set burn-in state 1000 and run 5000
We can check the convergence of models through convergence analysis
The trace plot shows no pattern = converge. If it shows the curve/no random = need to run more
Gelman diagnosis also confirms the convergence of the model (near 1 = converged)
But upon checking affective size, we might need to run more since the b[1], b[2] and b[4] size are quite small.
The results of model
The performance metrics suggest LR is slightly better than Bayesian LR
This plot shows the observed vs fitted with 95% credible interval
The predictive mean with 95% credible interval also provides a similar conclusion
Older customers tend to spend money more than the younger customers
Female customers spend more money compared with their gender counterpart
The higher salary, the higher spending
Married people tend to spend more money compared to single people
Every credible interval does not cover 0 = every variable is significant for predicting the amount of money spent
Here is a cool thing about Bayesian Linear Regression
Support we have 2 customers:
customer 1 -> age 30, male, income 75000, married
customer 2 -> age 35, female, income 70000, single
What’s the probability that customer 2 spends more money than customer 1
We can use Monte-Carlo simulation to find the answer
And here’s the result
We can conclude that there is 76.36% chance that customer 2 spends more money than customer 1, so as the business manager we might value customer 2 more such as giving them the coupon or suggesting the new product.
To sum up, even though normal LR can yield better performance, the interpretability of Bayesian model is something that we can’t ignore. Also, I believe that if we set prior more proper and represent the prior knowledge that we (may) have it will yield better performance than classical LR
Link : https://github.com/Filimize/Film_S_blog/tree/main/2026_05_18_Bayesian_Linear_Regression
The frontiers of science are also the points at which we start to tacitly agree that new scientific discoveries shouldn't impact our basic ontology. Past a certain point in the history of modernity, new discoveries about the nature of the world, up to and including findings that should have led to radical shifts in culture and philosophy, start to be ignored and/or treated as resources for political and market dominance.
I only started to realize this while reading Sharon Bertsch McGrayne's book The Theory That Would Not Die, and learning how much of Bayesian statistics basically got held back from the public due to the strategic concerns of warfare, or because they were being developed as proprietary tech within private corporations. It's a case where a state secret or a trade secret can literally just be sound reasoning.
A gentle introduction to Bayesian statistics for data scientists who, like me, are confused by it.

Anya is live and ready to show you everything. Watch her strip, dance, and perform exclusive shows just for you. Interact in real-time and make your fantasies come true.
Free to watch • No registration required • HD streaming
My dad told me he ordered a book about Bayesian statistics, and I accidentally blurted out without thinking “wait, Count Basie wrote a book about statistics?! The jazz guy?!!!” and now he’s not letting me live this shit down. He keeps mentioning his “Count Basie statistics book” offhand in like every convo I have with him just to mess with me.
I dont really think that’s THAT ridiculous of a mistake to make… Jazz music is in fact very math-y. How was I supposed to know Count Basie wasn’t a statistics expert on the side (and honestly who can for certain say he wasn’t?)??? Jazz is like some of THE mathiest music. Bunch of nerds (affectionate).
(I say all this as a former jazz pianist)
Understand the fundamentals of Bayes’ Theorem and see its real-world application in #Python based text classification. #machinelearning
Literally everything about this