lovely video, after watching it a third time and trying to build some models of my own i finally start understanding it :)
@donnymcjonny6531
8 ай бұрын
Wow. I'm literally looking up PyMC3 because I'm writing a paper on Bayesian analysis of pitcher performance as a game progresses. Turns out this dude is doing the same thing.
@wolpumba4099
5 ай бұрын
*Abstract* This tutorial provides an introduction to Bayesian modeling with PyMC, a probabilistic programming library in Python. It covers the fundamental concepts of Bayesian statistics, including prior distributions, likelihood functions, and posterior distributions. The tutorial also explains Markov Chain Monte Carlo (MCMC) methods, specifically the No U-Turn Sampler (NUTS), used to approximate posterior distributions. Additionally, it emphasizes the importance of model checking and demonstrates techniques for assessing convergence and goodness of fit. The tutorial concludes with examples of building and analyzing models in PyMC, including predicting the outcomes of sporting events. *Summary* *Introduction (**<a href="#" class="seekto" data-time="3">0:03</a>**)* - This tutorial is intended for data scientists and analysts interested in applying Bayesian statistics and probabilistic programming. - No prior knowledge of statistics, machine learning, or Python is assumed. - The tutorial provides a high-level overview of Bayesian statistics, probabilistic programming, and PyMC. *Probabilistic Programming (**<a href="#" class="seekto" data-time="84">1:24</a>**)* - Probabilistic programming involves writing programs with outputs partially determined by random numbers. - It allows for specifying statistical models using stochastic language primitives like probability distributions. - The main purpose of probabilistic programming is to facilitate Bayesian inference. *What is Bayes? (**<a href="#" class="seekto" data-time="210">3:30</a>**)* - Bayesian statistics uses probability models to make inferences from data about unknown quantities. - It involves updating prior beliefs based on observed data to obtain posterior distributions. - Bayes' formula is the foundation of Bayesian inference. *Why Bayes? (**<a href="#" class="seekto" data-time="279">4:39</a>**)* - Bayesian inference is attractive due to its utility and conceptual simplicity. - It allows for incorporating prior knowledge and quantifying uncertainty in estimates and predictions. *Prior distribution (**<a href="#" class="seekto" data-time="411">6:51</a>**)* - Prior distributions quantify uncertainty in unknown variables before observing data. - Uninformative priors can be used when little is known beforehand. - Informative priors can be based on domain knowledge or previous data. *Likelihood function (**<a href="#" class="seekto" data-time="493">8:13</a>**)* - The likelihood function describes how the data relates to the model. - It is a probability distribution conditioned on the model and observed data. - Different likelihood functions are appropriate for different types of data (e.g., normal, binomial, Poisson). *Infer values for latent variables (**<a href="#" class="seekto" data-time="574">9:34</a>**)* - Bayesian inference combines prior and likelihood information to generate the posterior distribution. - The posterior distribution represents updated knowledge about unknown variables after observing data. - Calculating the posterior distribution often requires numerical methods due to the complexity of integration. *Probabilistic programming in Python (**<a href="#" class="seekto" data-time="1008">16:48</a>**)* - Several probabilistic programming libraries are available in Python, including PyMC, Stan, Pyro, and TensorFlow Probability. - PyMC is specifically designed for fitting Bayesian statistical models using MCMC methods. *PyMC and its features (**<a href="#" class="seekto" data-time="1049">17:29</a>**)* - PyMC provides various features for Bayesian modeling, including: - Built-in statistical distributions - Tools for output analysis and plotting - Extensibility for custom distributions and algorithms - GPU support and different computational backends *Example: Building models in PyMC (**<a href="#" class="seekto" data-time="1350">22:30</a>**)* - The tutorial demonstrates building a changepoint model in PyMC to analyze baseball spin rate data. - The model estimates the changepoint and mean spin rates before and after the sticky stuff crackdown. - The example showcases specifying stochastic and deterministic variables, priors, likelihoods, and running MCMC sampling. *Markov Chain Monte Carlo and Bayesian approximation (**<a href="#" class="seekto" data-time="2507">41:47</a>**)* - MCMC methods are used to approximate posterior distributions by simulating a Markov chain. - The simulated chain converges to the posterior distribution as its stationary distribution. - Metropolis sampling and Hamiltonian Monte Carlo (HMC) are two MCMC algorithms. *Hamiltonian Monte Carlo (**<a href="#" class="seekto" data-time="2883">48:03</a>**)* - HMC uses gradient information to efficiently explore the posterior distribution. - It simulates a physical analogy of a particle moving through the parameter space. - The No U-Turn Sampler (NUTS) is an improved HMC algorithm that automatically tunes parameters. *Example: Markov Chain Monte Carlo in PyMC (**<a href="#" class="seekto" data-time="3186">53:06</a>**)* - The tutorial demonstrates fitting a model for predicting rugby scores using MCMC in PyMC. - The example showcases specifying priors, likelihoods, running MCMC sampling, and analyzing the results. *Model checking (**<a href="#" class="seekto" data-time="71">1:11</a>:58**)* - Model checking is crucial to ensure the validity of the fitted model. - It involves assessing convergence diagnostics and goodness of fit. *Convergence diagnostics (**<a href="#" class="seekto" data-time="72">1:12</a>:10**)* - Convergence diagnostics verify whether the MCMC algorithm has effectively explored the posterior distribution. - Techniques include visually inspecting trace plots, checking for divergences, analyzing energy plots, and calculating potential scale reduction (R-hat) statistics. *Goodness of fit (**<a href="#" class="seekto" data-time="77">1:17</a>:58**)* - Goodness of fit assesses how well the model fits the observed data. - The posterior predictive distribution is used to compare model predictions with the data. - Visualizations like cumulative distribution plots can help evaluate goodness of fit. *Making predictions (**<a href="#" class="seekto" data-time="80">1:20</a>:43**)* - PyMC allows for making predictions with fitted models by updating the data and sampling from the posterior predictive distribution. - The tutorial demonstrates predicting the outcome of a rugby match between Wales and England. *Conclusion* - The tutorial concludes by encouraging further exploration of Bayesian modeling with PyMC and suggesting additional resources. disclaimer: i used gemini 1.5 pro to summarize the youtube transcript.
@CristianHeredia0
2 жыл бұрын
It's always great to see a video on pymc
@tahsinahmed7585
2 жыл бұрын
This is great video with good practical application. Is it possible to have access to the notebooks?
@SamuelMindel
3 ай бұрын
not sure if any of these are in the gallery, but I would like to see these as well
@tobiasmuenchow9884
10 ай бұрын
I really enjoyed the Video. Helped me a lot. Is there any document for the presentation?
@tobiasmuenchow9884
10 ай бұрын
@<a href="#" class="seekto" data-time="2340">39:00</a> it takes like > 250 mins on my VSC and 50 mins in my jupyterhub. Is there any reason for that?
@teshex
Жыл бұрын
Can we use PyMC to estimate DSGE models with Bayesian technique?
@BillTubbs
Жыл бұрын
When I ran the sticky baseball example it took 20 mins on my computer! Anyone know what could be wrong? He said it should take seconds.
@user-em4vq5cy4x
3 ай бұрын
sticky stuff is interest rates
@user-em4vq5cy4x
3 ай бұрын
is it called the back-end because its where the shit goes?
@musiknation7218
Жыл бұрын
Can i get a book 📖 n Bayesian in python
@pablolecce6931
2 жыл бұрын
SOmebody noticed that Mr. Bayes have a very similar face to the speaker?
@haditime1665
Жыл бұрын
I like Chris and has been watching his videos for couple of years. But his answer at kzitem.info/news/bejne/mmdnymh3aodhdXo is not correct. The difference between those languages(libraries) are not based high level vs low level. The different philosophy. PyMC and Stan are a FOPPL(first order probabilistic programming language) which means they are limiting themselves to finite random variable cardinality languages while Pyro or PyProb are HOPPL(Higher order probabilistic programming language) which are unbounded random variable cardinality languages. Not that you should care at this level :D but it is what it is
Пікірлер: 17