Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
47 views

Let’s say I have a dataset of X and Y with 100 observations from each. I developed a Bayesian simple linear regression model from X to Y, using PyMC, like this: Y = Alpha + Beta * X + Epsilon As you ...
Serdar's user avatar
  • 35
1 vote
1 answer
283 views

I’m trying to build a probabilistic model in Python that requires using PyMC, PyMC-Marketing, and NumPyro in the same script. My environment: Python 3.12, Windows 64-bit Installed packages: pymc (...
ethan's user avatar
  • 27
1 vote
0 answers
64 views

I am trying to setup a Bayesian metanalysis of report rates of events. My target estimate is the probability that participants will report X in each study. Every participant provides ~20-40 response, ...
Paradeisios's user avatar
0 votes
1 answer
184 views

When trying to run a simple PyMC example on ARM macOS 15.4 using a fresh conda-forge conda-environment the run fails with a compilation error: pytensor.link.c.exceptions.CompileError: Compilation ...
Cornelius Roemer's user avatar
1 vote
0 answers
33 views

I have an ODE function ode(y,t,theta, influent) where influent is an array of values at different times (experimental data for input to system). I have this in my main ode function (not as important): ...
Rvdb's user avatar
  • 11
1 vote
1 answer
144 views

I am trying to fit a linear model to data using Bayesian inference technique. For this, I thought of using PyMC. Naturally, after training a model, I want to test its performance on new data and that'...
Matthi9000's user avatar
  • 1,267
0 votes
1 answer
59 views

I would like to model two observables, O_2 and O_3 using bayesian linear regression: O_2 ~ m_2 * O_1 + q_2 and O_3 ~ m_3 * O_2 + q_3. I would like to couple them via O_2. I am using the PyMC framework ...
Marco's user avatar
  • 113
1 vote
1 answer
74 views

I am trying to fit a two-state regime-switching model using PyMC. The full model is given below. The exact details of the model are not important (if you're curious anyways, I'm trying to fit a ...
parsiad's user avatar
  • 13
0 votes
1 answer
297 views

i hope you are having a better day than i do. I am developing a project that is due within a week and the codebase that i am working on is no longer working. It was working completely fine a month ago ...
Enes Çalışkan's user avatar
1 vote
0 answers
103 views

Have been running into an issue when running a pymc-marketing model in a Databricks notebook. The cell that fits the model gets hung up and the progress bar stops moving, however the code completes ...
Timothy Mcwilliams's user avatar
1 vote
0 answers
338 views

I'm learning about Bayesian modeling and PyMC, and I'm trying to build my first model. I have structured my model as follows: with pm.Model(coords={"obs_id": range(len(df))}) as model: p ...
Mateus Hora's user avatar
1 vote
0 answers
50 views

I am trying to recreate this tutorial by Austin Rochford about Non-parametric bayesian models from 2016 which can be found here. The tutorial uses pymc3 and theano which are no longer supported and ...
terraregina's user avatar
0 votes
1 answer
65 views

Shouldn't the MAP estimate be close to the center of the histogram of the trace samples? I see close agreement between the find_MAP estimate and the histogram of the trace variables when modeling my ...
Malcolm Slaney's user avatar
0 votes
1 answer
73 views

I am new to PyMC and I am using the 5.10.0 version. I am running a simple Media Mix Model and I need to parameterize the individual lags between the independent(media activity) and the dependent(sales ...
adhok's user avatar
  • 441
1 vote
0 answers
269 views

I am trying to run a Bayesian Linear Regression , but I am unable to create a posterior distribution using the sample() function from pymc. The code is as follows import pandas as pd from random ...
adhok's user avatar
  • 441
1 vote
0 answers
156 views

I'm trying to reproduce an old code that uses PyMC with pm.Model() as bayes_model: #priors phi = pm.Normal("phi", mu=0, sigma=20, shape=2) sigma = pm.Exponential("sigma"...
Fernando DePaolis's user avatar
1 vote
0 answers
42 views

I was using the following code for transformation in pymc marketing package, class StandardizeTarget: target_transformer: Pipeline @preprocessing_method_y def standardize_target_data(self, data: pd....
Mash's user avatar
  • 11
1 vote
0 answers
783 views

I'm attempting to replicate the example in Figure 1.5 from this source, which illustrates the prior predictive and posterior predictive distributions. However, I'm facing difficulty comprehending what ...
JCV's user avatar
  • 527
2 votes
2 answers
997 views

I have two arrays, x and y, which determine the position and a third one, z, which provides the value of the radiation at such position. I want to calculate and plot the HDI of 90% over the plot of ...
Quixote's user avatar
  • 313
0 votes
2 answers
168 views

I want to construct a correlation matrix explicitly from using the pymc.LKJCorr distribution class, but I don't trust my understanding of the pymc.expand_packed_triangular. Here is a minimal working ...
Galen's user avatar
  • 1,394
0 votes
1 answer
143 views

I was trying out the examples in the book : Probabilistic-Programming-and-Bayesian-Methods-for-Hackers. Towards the end of chapter 2 I got stuck at the block of code below. It purpose is to determine ...
ranbir agarwal's user avatar
1 vote
0 answers
175 views

I am struggling to implement Bayesian model comparison in a specific case and would greatly appreciate some help. I want to compare multiple models, which are represented by normal distributions. Each ...
dayman_terms's user avatar
0 votes
1 answer
348 views

I have run a bayesian model (regression) using pymc5. I would like to get a score indicator (AIC|BIC or LOO) to compare different models. I am a newcomer to pymc and I don't understand how to get this ...
cervus_pc's user avatar
0 votes
1 answer
138 views

I am having an error in Pymc that I can't understand. I think is related to dimensions of the of a dot product (see logit_p = pm.Deterministic("logit_p", X_data * beta) ), but I double ...
Ariel Alvarez's user avatar
1 vote
0 answers
948 views

I am trying to understand how to use a posterior predictive check (PPC) after building a bayesian model using the PyMC library. I've never done this before and I don't quite understand how I should ...
Andrew's user avatar
  • 1,226

1
2 3 4 5
11