Questions tagged [pymc3]

PyMC (formerly PyMC3) is a Python module that implements Bayesian statistical models and fitting algorithms, including Markov chain Monte Carlo. Its flexibility and extensibility make it applicable to a large suite of problems. Along with core sampling functionality, PyMC includes methods for summarizing output, plotting, goodness-of-fit and convergence diagnostics.

PyMC is a Python module that implements Bayesian statistical models and fitting algorithms, including Markov chain Monte Carlo.

Its flexibility and extensibility make it applicable to a large suite of problems. Along with core sampling functionality, PyMC includes methods for summarizing output, plotting, goodness-of-fit and convergence diagnostics.

706 questions
0
votes
1 answer

module 'pymc3' has no attribute 'traceplot' Error

I'm trying to generate a trace plot of my model but it shows module 'pymc3' has no attribute 'traceplot' error. My code is: with pm.Model() as our_first_model: # a priori theta = pm.Beta('theta', alpha=1, beta=1) # likelihood y =…
이성용
  • 5
  • 4
0
votes
2 answers

SARIMAX model in PyMC3

I would like to write down the following SARIMAX model (2,0,0) (2,0,0,12) in PyMC3 to perform bayesian estimation of its coefficients but I cannot figure out how to start with the seasonal part Has anyone tries something like this? with pm.Model()…
Marta
  • 11
  • 2
0
votes
0 answers

Unstable results from Bayesian statistical approach(pymc3)

Studying Bayesian statistical approach I have found that my model gives unstable results. I have made a lot of experiments with different samplers(Metropolis and NUTS) and model parameters - tune and draws. Apart from the fact that I know the…
Roman Kazmin
  • 931
  • 6
  • 18
0
votes
1 answer

Why does my pymc3 sampler use C code in Jupyter notebook?

I have a problem in Anaconda Jupyter notebook where i run a pymc3 sampler to sample from the posterior of a normal distribution. import autograd.numpy as np import pymc3 as pm from pymc3 import Model import theano.tensor as Th from scipy.special…
Gael Acl
  • 1
  • 1
0
votes
0 answers

Pymc3 Type Error __init__() got an unexpected keyword argument 'coords'

I'm using pymc3 to set up a mixed effects model using the attribute coords to assign individual intercept values to each of a list of test subjects (Chimp) and also to a list of treatments (Treatment). I got the code from a university class that…
0
votes
2 answers

No module named pymc3

HI i'm trying to import pymc3 after pip installing it from the command line within the library where Python.exe sits in. (i.e. >>python -m pip install pymc3). after checking the Lib/Site-Packages library, there's no pymc3, but there is a theanos…
0
votes
0 answers

How to define a Rayleigh Prior in Pymc3?

I would like to define a Rayleigh prior to fit the observations distributed in the image below. The current attempt was as a Gamma distribution, but as you can see this is a poor representation. Using Scipy's stats module, I fit a number of…
cmp
  • 568
  • 3
  • 16
0
votes
1 answer

Theano tensor length unknown for division but ok for addition in pymc3 hierarchical model

I am trying to run a hierarchical model with pymc3 in a Win10 environment using Spyder. I have some global model parameters (theta, omega, sigma) and one specific parameter (Ci). It takes a pd Dataframe as input that contains the relevant data.…
0
votes
1 answer

Convert WINBUGS model to PyMC3

I am currently taking a class on Bayesian statistics, we are allowed to use any package to computationally solve the models but all of the examples are provided in WINBUGS. I would prefer to use Python and PyMC3. I don't have much experience using…
0
votes
1 answer

Prediction using Bayesian logistic regression using pymc3

I am trying to perform Bayesian logistic regression using pymc3, but I am facing an issue in using the model to perform prediction. Data: My dataset is of the housing loan default data, with sample data as follows: BAD LOAN MORTDUE VALUE REASON …
Anubhav Dikshit
  • 1,729
  • 6
  • 25
  • 48
0
votes
1 answer

Using PyMC3 Posterior Distribution of linear fit, predict confidence interval of y given X

I am new to MCMC as well as PYMC3. I know how to fit a line to observed data using PyMC3 using the given example. After I run the code and obtain the posteritor distribution for the slope (m) and y-intercept (c) for the fit y = mx + c, how can I…
Mc Missile
  • 715
  • 11
  • 25
0
votes
1 answer

pymc-learn: RuntimeError in JupterLab 1.2.6

I am learning to use pymc-learn. However, whenever I try to run an MCMC simulation with pymc-learn in JupterLab 1.2.6 , I get the following RuntimeError: RuntimeError: The communication pipe between the main process and its spawned children is…
0
votes
1 answer

How do I format observed data for use in Bayesian networks in pymc3?

I'm struggling to understand how observed data works in pymc3. From the information I've found so far, these two examples have been the most helpful for getting me as far as I have, but I can't get my model to work. As an example of what I'm trying…
Elenchus
  • 195
  • 2
  • 10
0
votes
1 answer

ModuleNotFoundError: No module named 'pymc3'

I'm trying to import PyMC3 library in Jupyter Notebook's Python 3 kernel. I've already installed pymc3 initials in Anaconda Prompt (Miniconda3) using: conda install theano conda install pygpu pip install pymc3 And when I try to import it in…
0
votes
1 answer

Problem importing pymc3 in jupyter notebook

Importing pymc3 in my jupyter notebook causes the following error: ImportError: cannot import name 'logsumexp'" Here are some other package versions: Windows 10 Python 3.6.7 Numpy 1.17.0 Matplotlib 3.0.3 Pandas 0.23.4 Scipy 1.5.1 Scitkitlearn…
Fawkes
  • 1
  • 1