Questions tagged [bayesian]

Bayesian statistics is a statistical paradigm that contrasts with that of frequentist statistics. Bayesian methods rely on prior information do determine the degree of belief in the probability of a value.

Filter by
Sorted by
Tagged with
0 votes
0 answers
7 views

Techniques for choosing datasets from pool of datasets to create priors(time-series data, DTW? spike and slab?)

Let us consider a scenario where we have a pool of 100 datasets from various customers, with varying sizes containing sales and budgeting(mutiple channels) data per date. The datasets can range from ...
0 votes
0 answers
4 views

how do i compute the predictive covariance matrix from the posterior samples?

I have generated with EMCEE some posterior samples from a statistical model whose likelihood is a multivariate gaussian. it's a regression problem. can you explain me how I can use these samples to ...
  • 101
0 votes
1 answer
22 views

How Naive Bayes makes prediction based on scikit-learn?

I need to understand, how multinomial-naive-bayes can make prediction based on scikit-learn implementation. I saw the source code but I want to understand the math behind it. Could you please explain ...
0 votes
0 answers
13 views

find the parameter that minimize a multivariate distribution

i was trying to use scipy's minimize scalar to find the value of the parameter T that minimize the negative log-likelihood of a multivariate distribution with covariance matrix C. if i understood ...
  • 101
0 votes
0 answers
14 views

Framing a probabilistic time dependent problem

I need help framing the following problem: I have a dataset where I know for each day, at customer level, that someone with device X bought device Y. Example: At day 1 50 people with device X bought ...
0 votes
0 answers
5 views

help with comparison between the prediction of a bayesian neural network and an analytical model

i am in a weird situation where i have a bayesian neural network used for regression and a polynomial model $f(a,b,c,d) that depends on 4 parameters and that is fitted through monte carlo methods. i ...
  • 101
1 vote
1 answer
34 views

How can I deal with a computationally expensive simulator method in Sequential Monte Carlo/Approximate Bayesian Computation?

I am doing Approximate Bayesian Computation with Sequential Monte Carlo with PyMC in a way that is similar to what is described in this example of the ...
  • 11
0 votes
0 answers
20 views

Python Impute using BayesianRidge() sklearn impute.IterativeImputer regression impute analysis value error

PROBLEM Use interativeImputer from sklearn.impute.IterativeImputer, to get regression model fit for for BayesianRidge() for impute missing data in variable 'Frontage'. After the interative_imputer_fit ...
0 votes
0 answers
18 views

Can Pybats' Analysis function make a prediction on a future DateTime object that is only one step beyond the final point of the existing data?

I was able to utilize the Bayesian approach of statistics in Pybats in order to make a forecast model on a timeseries dataset. While the model is learning from the ...
  • 101
0 votes
0 answers
10 views

Weighting Regularisation Term in Aleatoric Uncertainty Loss Function

I am currently digging into Uncertainty Quantification and try to implement Aleatoric Uncertainty estimation into a regression model. Given this publication we can model the Aleatoric Uncertainty by ...
0 votes
0 answers
19 views

Understanding the uncertainty in gaussian processes

Consider the following image: which is an fitted GP. Note how $0 <= x <= 2$ yield a much higher uncertainty than e.g $5 <= x <= 8$. Thus gps are good when dealing with the exploration vs ...
0 votes
1 answer
19 views

Force predictions of 2 time series models with different time steps to be consistent

Suppose I have a time series. Let's say it is of the number of sales in a shop. Suppose I am looking to make two models - model 1 which predicts future values by weekly time steps (total sales per ...
  • 1
0 votes
0 answers
7 views

how common are hierarchical bayesian models in retail forecasting or supply chain?

how common are hierarchical bayesian models in retail forecasting or supply chain? in the past I worked in a retail startup which used this method, but I do not know how common it is.
0 votes
0 answers
26 views

Simple example of tree-structured Parzen estimator (TPE)

I've been reading in the optimization literature and in this paper about the TPE approach for optimizing in frameworks like HyperOpt, Optuna etc.. But I'm having difficult time understanding it ...
  • 65
0 votes
0 answers
16 views

KL divergence between two multivariate gaussians where $p$ is $N(\mu, I)$

We know if we try to get $D_{KL}(q||p)$, where $p$ is a standard normal distribution, so mean is 0, variance is the identity matrix, and $q$ is a multivariate normal distribution, it can be calculated ...
0 votes
0 answers
42 views

Practical example of difference between p(y|x) and p(x|y)

I've been reading about the difference between generative models and discriminative models. I know that for generative models we learn the joint probability p(x,y) or just p(x|y) and p(y). For a new ...
  • 93
0 votes
0 answers
29 views

A/B testing for channel preference

Right now my organization runs a lot of promotional campaign every month. We send email, SMS and WhatsApp to all customers for each campaign. I am running a project to identity the best channel for a ...
0 votes
0 answers
19 views

How does posterior distribution relate to model parameters

I want to know how the estimation of a posterior through a sampling method for example HMC could help with predicting a model, and why predicting model weights/parameter is important and how it is so?
  • 53
0 votes
0 answers
29 views

What is the Bayesian distribution of two p.d.f's?

I whant to make this: Theese are the inputs I'm traying to replicate this for my app, but don't know how its done. As you can see, there must be a preset value for the sigma with the inputs of type ...
0 votes
0 answers
9 views

Hamiltonian Monte Carlo Potential Expression

Going through the literature i noticed two different expressions for the potential U expression used for the Hamiltonian Monte Carlo method: The first one depending on ...
  • 1
1 vote
1 answer
33 views

Probability for Nth Place in Race from Bradley-Terry Model Inputs and Outputs

I have created a motorcycle race prediction model that is given pairs of racers and outputs the probability of each rider beating the other in each pairwise comparison. That info is then processed ...
0 votes
1 answer
22 views

Bayesian state description in Reinforcement Learning

What's the best approach to feed a bayesian description of an observed state to a Reinforcement Learning agent? Brief context: I have an agent situated in an environment, which it perceives through a ...
0 votes
0 answers
26 views

Why aren't Bayesian models straightforwardly superior to all/most other models if they model the real-world better?

Why aren't Bayesian models straightforwardly superior to all/most other models if they model the real-world better? As possibly displayed by the following chart: source
  • 416
0 votes
0 answers
15 views

How "much" should belief be weighted against numerical measures of accuracy/correctness?

How "much" should belief be weighted against numerical measures of accuracy/correctness? It's possible to devise numerically low-quality models, but that have very good empirical validity, ...
  • 416
1 vote
0 answers
41 views

How to guide exploration in reinforcement leanring/model predictive control/dual control problem

Consider the following optimization/control problem: We aim to maximize the cumulative reward R during the horizon H by every day allocating a portion of total budget B to our two different investment ...
0 votes
0 answers
22 views

How calculate probability when we have continuous features?

Suppose that we have a dataset with four features and each feature follows different distribution (normal,beta,gamma...). All features are continuous. So, how we can calculate the probability of any ...
1 vote
1 answer
16 views

Problem understanding the forward algorithm for HMMs

I found a recursive version of the forward algorithm on wikipedia, however I don't understand the notation given in the pseudocode: What means $$x_{t-1}$$ under the summation sign? What do I need to ...
  • 131
1 vote
0 answers
19 views

What methods I could use to analyze the contingency table?

I am data science beginner, and I have a question about methods that I could use to analyze the following data. It is a simple case, I am trying to check the influence of cohabitation before marriage ...
  • 11
0 votes
0 answers
9 views

Understanding error in bayesian inference

Let us say we have: Data $X$ Parameter that we are trying to estimate is $\Theta$ The Bayesian estimation method is to Assume a prior on $\Theta$ Sample $x$ from $X$ Use Bayes theorem. Compute the ...
0 votes
0 answers
8 views

How to combine data measurements with underlying model?

The problem I am trying to solve is this: Imagine you are in the situation where you want to predict car performance according to some characteristics (horse power, car dimensions, etc...). The data ...
0 votes
0 answers
20 views

Computing probabilities in Plackett-Luce model

I am trying to implement a Plackett-Luce model for learning to rank from click data. Specifically, I am following the paper: Doubly-Robust Estimation for Correcting Position-Bias in Click Feedback for ...
0 votes
1 answer
45 views

What are the requirements for a word list to be used for Bayesian inference?

Intro I need an input file of 5 letter English words to train my Bayesian model to infer the stochastic dependency between each position. For instance, is the probability of a letter at the position 5 ...
  • 103
1 vote
1 answer
68 views

Incorrect example of applying Bayes theorem

I have been reading the book "The Data Science Design Manual" (by Steven S. Skiena) and I came across an example that explained how the Bayes theorem can be applied that confused me and made ...
  • 111
1 vote
0 answers
157 views

Why and how Variational Inference underestimates variance?

I referred to the Quora link here as well, but could not understand clearly. Can anyone please help me understand why and how variational inference underestimates the variance of the true posterior ...
  • 151
1 vote
0 answers
12 views

Confusion regarding which distribution Monte Carlo considers for sampling

Considering Bayesian posterior inference, which distribution does Monte Carlo sampling take samples from: posterior or prior? Posterior is intractable because the denominator (evidence) is an ...
  • 151
0 votes
0 answers
6 views

Model transfer with limit to none label information

I have this problem I hope to get some help here. Say I have a type of product A whose measurements are X_A and an outcome property is ...
  • 21
0 votes
0 answers
17 views

How to test if a curve is well described by an ellipse?

I have a set of data points in 2D, and I am trying to come up with some sort of statistical to determine if the points fall along an ellipse. My idea so far is to fit an ellipse to the points, take ...
  • 1
1 vote
1 answer
32 views

Confused on Naive Bayes classifier

In the last part of Andrew Ng's lectures about Gaussian Discriminant Analysis and Naive Bayes Classifier, I am confused as to how Andrew Ng derived $(2^n) - 1$ features for Naive Bayes Classifier. ...
1 vote
1 answer
21 views

What thought processes do people use for generating priors on a variable's probability distribution?

Example Consider a block of text with a variety of sentence types within it, of which there are 7. Within a text these sentences will be more or less likely to appear, dependent on where in the text ...
  • 133
2 votes
0 answers
15 views

Probability distributions for Directed Cyclic Graphs

Given a directed cyclic graph where vertex A is 'infected', and there are different infection probabilities between each node, what is the best approach towards computing the conditional probability $...
0 votes
1 answer
29 views

Combine prior knowledge probability with ML model probability results

I want to combine prior knowledge to improve my machine learning model. According to Bayes rule, max posterior is obtained when multiply prior with MLE. I multiply prior probability with the machine ...
  • 1
1 vote
1 answer
476 views

Markov Process and transition matrix

I would like to find some good courses but also a quick response on how to model transition matrix given the states. Imagine having 4 states and the following array [1,2,4,1,3,4,2 etc etc]. What ...
1 vote
1 answer
112 views

Are there any implementations of non Naive Bayes Classifier in Python?

Naive Bayes assumes that predictors are independent. Though this assumption is quite powerful, in some scenarios it fails miserably . So are there any implementations of non Naive Bayes in Python ? ...
1 vote
0 answers
9 views

Bayesian Linear Regression using the Kernel Trick vs Constructing features using Kernels as Prototypes

How different is it to do Bayesian linear regression using the GP approach (kernel trick) versus constructing features using kernels to prototypes? As far as I know, this very basic question is ...
  • 23
2 votes
1 answer
98 views

Bayes theorem on the probability of an object drawn at random using percentages (not Naive Bayes)

It's the normal Bayes equation but I'm not sure if I've calculated this correctly or how to check my work, here is a somewhat similar question but I wasn't sure if our math was the same, the question ...
0 votes
0 answers
133 views

Multivariate testing

I'm going to run a test with 4 different variants (3 variants and a control group), and we want to find the variant with the highest conversion. Are there any resources/methods in R/python to: ...
  • 5,921
2 votes
1 answer
425 views

Really confused with characteristics of Naive Bayes classifiers?

Naive Bayes classifiers have the following characteristics-: They are robust to isolated noise points because such points are averaged out when estimating contiditional probabilities from data. Naive ...
0 votes
1 answer
163 views

How does bayesian optimization with gaussian processes work?

Could someone explain in simple words what are gaussian processes how does bayesian optimization work and their combination?
  • 500
5 votes
2 answers
387 views

How useful is Bayesian Inference

Last few months, I had been exposed to Bayesian Inference in ML course With further investigation, I come to place where there is MCMC technique to simulate the ...
0 votes
1 answer
171 views

Update of mean and variance of weights

I'm trying to understand the Bayes by Backprop algorithm from the paper Weight Uncertainty in Neural Networks, the idea is to make a NN in which each weight has it's own probability distribution. I ...