Skip to main content
14 votes

Are the raw probabilities obtained from XGBoost, representative of the true underlying probabilties?

It depends on the definition of accurate model, but in general the answer to your question 1) is No. Regarding your second question (based on results in the paper of Niculescu-Mizil & Caruana ...
aivanov's user avatar
  • 1,520
8 votes

How does binary cross entropy work?

When doing logistic regression you start calculating a bunch of probabilities $p_i$ and your target is maximize the product of those probabilities (as they're considered independent events). The ...
Alberto's user avatar
  • 251
7 votes

Why does the naive bayes algorithm make the naive assumption that features are independent to each other?

By doing so, the joint distribution can be found easily by just multiplying the probability of each feature whilst in the real world they may not be independent and you have to find the correct joint ...
Green Falcon's user avatar
  • 14.1k
6 votes

What is "noise" in observed data?

When you have sensors, the values you receive change even if the signal that was recorded didn't change. This is one example of noise. When you have a model of the world, it abstracts from the real ...
Martin Thoma's user avatar
5 votes

Confidence intervals for binary classification probabilities

I don't think there is a good way to do this for all models, however for a lot of models it's possible to get a sense of uncertainty (this is the keyword you are looking for) in your predictions. I'll ...
Jan van der Vegt's user avatar
5 votes

Compute parameters of a PDF (probability density function) for which no closed form expression is available

Your problem could be solved either by direct numeric integration or by MCMC. Numeric integration can be performed most easily by scipy: ...
David Dale's user avatar
  • 1,551
5 votes

How to use different classes of words in CountVectorizer()

First of all your question is about stemming words as mentioned in the other answer which can be found in any Python NLP library such as Spacy or NLTK. The other point to mention here is that despite ...
Kasra Manshaei's user avatar
5 votes

Data-generating probability distribution, probability distribution of a dataset, in ML

It's more of a theoretical distribution, that a concrete one. The main idea is this: we consider all data to have an underlying distribution which generates the data. Through the procedure of creating ...
Djib2011's user avatar
  • 7,998
5 votes

What is the meaning of likelihood?

All of the answers here, including the accepted one, are conspicuously confused. I down-voted the accepted answer but downvotes of users who lack reputation in this "community" are not counted. I have ...
Michael Hardy's user avatar
4 votes

What does a predicted probability really mean, without considering the accuracy of the underlying model?

Accuracy is measured in classification model by comparing the predicted labels to the actual known labels. The predicted labels are a function of both the predicted probabilities for each class and a ...
yoav_aaa's user avatar
  • 1,003
4 votes

Classification problem approach with Python

You are looking at a Classification problem. Logistic regression, Decision trees, SVM. Any of the above can solve the job for you. But selecting the best model depends upon how good it is able to ...
Kiritee Gak's user avatar
  • 1,799
4 votes

Testing fit of probability distribution

Use chi-square test to check the goodness of fit to a specific distribution
Yang Song's user avatar
4 votes

How to convert an array of numbers into probability values?

Any Survival Function (1 minus the CDF) will have the desired property. Exponential is a potentially good candidate here, as it sometimes can be used to describe distances, but it's hard to say ...
knrumsey's user avatar
  • 141
4 votes

Pytorch doing a cross entropy loss when the predictions already have probabilities

You can implement categorical cross entropy pretty easily yourself. It is calculated as $$ \text{cross-entropy} = -\frac{1}{n} \sum_{i=0}^{n} \sum_{j=0}^m \mathbf{y}_{ij} \log \hat{\mathbf{y}}_{ij} $$...
timleathart's user avatar
  • 3,940
4 votes

why naive is needed in Naive Bayes ,what happens if naive is not included in Bayes theorem?

I do not think your formulation is correct. What you have described are just conditional distributions for each word in the sentence but not the joint conditional distribution, given a specific class. ...
aranglol's user avatar
  • 2,206
4 votes

What is the difference between maximum likelihood hypothesis and maximum a posteriori hypothesis?

I'll try and provide some intuition for you here, instead of focusing on the mechanics of the math behind the methods. Imagine you are evaluating whether a coin is fair or not, so you collect a ...
Brandon Donehoo's user avatar
4 votes

Correct way of calculating probability

If my understanding is correct, your p_final_1 should give the correct result. More simply: ...
Erwan's user avatar
  • 25.6k
3 votes

Xgboost predict probabilities

Curious Georg if you ran across this article in your pursuit of trying to generate probabilities. It is worth noting that binary:logistic and ...
Society of Data Scientists's user avatar
3 votes

In supervised learning, what does "Estimating $p(y \vert x)$" mean?

You are correct that \begin{equation*} p(y|\mathbf{x})=\dfrac{p(\mathbf{x},y)}{p(\mathbf{x})}. \end{equation*} Similarly, we can write the joint probability $p(\mathbf{x},y)$ as follows: \begin{...
Lella's user avatar
  • 216
3 votes

Ensemble Probabilities of the different models

I think it can be done by using this command at the time of prediction, giving example in R ...
Toros91's user avatar
  • 2,392
3 votes

Very low probability in naive Bayes classifier

I can't tell you for sure without you describing your calculation more or showing code, but my guess is you're not actually calculating the posterior probability here. I bet this is just the ...
David Marx's user avatar
  • 3,258
3 votes

Find-out abnormal behavior over the time

Your problem definition You have time series data which is used to measure the pressure using your sensor. You wish to identify when the pressure recordings are abnormal. This problem would be best ...
JahKnows's user avatar
  • 8,946
3 votes

How to convert an array of numbers into probability values?

This is a generalised question. There are lots of ways to normalise a given distribution. For example: Normal distribution: You can physically inspect your function by graphing it against variables ...
DuttaA's user avatar
  • 793
3 votes

Confidence value for face recognition

If I had to calculate such a function, I would: Calculate the probability (not Z-score) for $x$ in a two-tailed test ( for the probability that ...
Pieter21's user avatar
  • 1,041
3 votes

XGBoost: How to set the probability threshold for multi class classification

You don't set it in xgboost. Its job is to return probabilities in predict_proba. predict does the logical thing and tells you ...
Sean Owen's user avatar
  • 6,605
3 votes

Convolution and Pooling as Infinitely strong priors

A prior distribution expresses your assumptions about the model without observing any data. E.g. when doing linear regression, you a priori assume that the slope is close to zero. Now you start ...
matthiaw91's user avatar
  • 1,555
3 votes

why we sample when predicting with Recurent Neural Network

It seems to me you have two questions: Why use sampling to generate text from a trained RNN language model? How does this particular sampling function from Keras work? Why use sampling to generate ...
Mathias Müller's user avatar
3 votes

Understanding output probabilites of xgboost in multiclass problems

What you were told is a worst case scenario. With 5 labels, 20.01% is the lowest possible value that a model would need to choose one class over the other. If the probability for each of the 5 classes ...
Donald S's user avatar
  • 1,959
3 votes

How to model user choice probability: binary model vs multi class model

This is a textbook multi-armed bandit problem where Morpheus needs to learn the correct policy about offering pills. As you’ve said the Neos are independent, and making the assumption that there is a ...
Nicholas James Bailey's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible