# Questions tagged [probability]

Probability is the branch of mathematics concerning numerical descriptions of how likely an event is to occur or how likely it is that a proposition is true.

227 questions
Filter by
Sorted by
Tagged with
36 views

### How to implement conditional probability distribution on set-valued Random variables

I'm trying to implement conditional probability distribution when the events of two RVs are sets. If I try to extrapolate concepts from real or categorical variables to sets things become confusing ...
21 views

### How to set seed for random drawings with Numpy? [closed]

I'm trying to set the seed for a few lines of code in a jupyter notebook. However, when I tried running numpy.random.seed(0) in the initial cell, in the later cells the random generator was not '...
14 views

### Neural Network probabilities problem

I am using machine learnig to measure probability for the outcome of tennis matches. If the winer is 1 that means that p1 won otherwise p2 won. in Columns LG, SVC, RF and NN there are probaiblities ...
13 views

### Classifier Performance - Binomial proportion confidence interval

I am solving a binary classification task. As an output of Random Forest classifier, I get a probability of how sure RF is that class is 0 or a 1. How can I calculate the needed threshold, to be 95% ...
27 views

### What is a distribution-wise asymmetric measure?

I was trying to understand KL-Divergence, $$D_{KL} \langle P(X) \Vert P(Y) \rangle,$$ and was going through its Wikipedia article. It says the following In contrast to variation of information, it is ...
25 views

### Which probability distribution will you use to model outliers?

I was asked this question in a recent interview for the position of a Data Scientist: Which probability distribution will you use to model outliers ? I told him outliers are like rare events which ...
25 views

### R code that gives results like Wolfram Alpha for the expectation of a function of a random variable? [closed]

When I ask Wolfram Alpha to calculate $E[f(X)]$ where $f(x) = e^{-x^2}$ and $X \sim \mathcal{N}(1,4)$, it gives the result $$E[f(X)] = \frac{1}{3\sqrt{e}} \approx 0.29828,$$ and the following ...
12 views

### Probability that 2 samples have the same datapoints

I have been thinking about this question for a few days now and I don't know how I could approach this probability problem. Let's say I'm building a random forest model with 50 trees and with a total ...
16 views

### how to interpret this 'lift chart'? prediction and true labels

i am trying to compare the prediction from my classifcation model and it's true label either 0 or 1. ...
23 views

### What is the most common practice of generating (X,Y) from an arbitrary CDF or PDF?

So I can generate X from arbitrary CDF F(x) by the procedure above. Can it be generalized to two variables? How, exactly? If not, what's the best way to generate <...
13 views

### Tensorflow Model not returning a Distribution object when having DistributionLambda as last layer in a multitasking model

I am building a TF CNN model that takes a picture as input and has 3 outputs (multitask learning). On one of the output layers, I would like to output a distribution object, ...
9 views

### Learn smoothly varying mean and variance of a variable over a 2d domain

For a problem which I am working on at the moment, I'm interested in learning how the mean and variance of some response variable y changes with two independent ...
24 views

### How to generate a random sample and distribute values based in an probability distribution?

I want to generate a random sample based on this probability distribution: The line is the KDE of the histogram. My random sample will have n values, the value is ...
17 views

### How to find a probability distribution the parameters of which do not impact each other like mean and variance in normal distribution do?

I need to find a probability distribution to fit my data. My data has two important features, duration and activity count. Duration means how long one sequence lasts and activity count means the ...