Questions tagged [probability-distribution]

A probability distribution is a function that defines the probability of occurrences of the different possible values of a variable.

What is it?

A probability distribution is a function that defines the probability of occurrences of the different possible values of a variable.

Typical examples of distributions are the uniform distribution in which each value has the same probability, the normal distribution in which the values around the avergage have a higher probability and the extreme values the lowest probability.

See also

315 questions
0
votes
1 answer

Getting variance values for random samples generated from a standard normal distribution using numpy

I have a function that gives me probability distributions for each class, in terms of a matrix corresponding to mean values and another matrix corresponding to variance values. For example, if I had four classes then I would have the following…
0
votes
1 answer

How to extract individual parameters from extRemes outputs

I have fitted different probability distributions to my data. To compare the goodness-of-fit (GOF) and decide the best distribution, I use AIC as the criteria. While I can easily extract GOF for the "fitdist" objects e.g. fit.gamma <- fitdist(x,…
0
votes
0 answers

How to calculate min and max values, given triangular distribution samples?

We have some data distributed with triangular distribution (an assumption), lets say: data = [14.5 13 11 11.5 13.75 11.5 7.5 11.25 23.75 12.75] How can we calculate min and max and mean values based on these data according to triangular…
Nessi
  • 276
  • 1
  • 4
  • 23
0
votes
1 answer

Choosing a random value from a discrete distribution

I had come across the following code while reading up about RL. The probs vector contains the probabilities of each action to be taken. And I believe the given loop tries to choose an action randomly from the given distribution. Why/How does this…
0
votes
0 answers

Obtaining the pdf of a histogram

I am trying to obtain the pdf of a histogram using seaborn library, but the pdf returned has non zero probabilites for zero valued bins. For example: array = np.arange(20) reversed_arr = array[::-1] fig, axs = plt.subplots(1, 1, figsize=(30,…
0
votes
2 answers

How can I use a probability distribution in python class?

Say I have the following class: class Vehicle: def __init__(self, pevtype): self.pevtype = pevtype How can I write a function which uses a probability distribution to determine whether the vehicle is an EV or a PHEV? For example, the…
grimrol123
  • 21
  • 5
0
votes
0 answers

How to marginalize out variable from multivariable distribution in Python?

I am having some troubles understanding proper way to marginalize out variables from probability distributions. As I understand the proper way to do this is to sum over variables that is being marginalized out leaving only variables to be kept. For…
0
votes
1 answer

How to compute KL-divergence for a product distribution using Tensorflow

I want to compute the KL divergence DKL( ∏q(zk|x) ‖ p(z) ) in tensorflow where ∏q(zk|x) is the product of N distributions (k=1 to k=N), not independent, each of type tensorflow_probability.layers.MultivariateNormalTriL. p(z) is a…
0
votes
1 answer

How can I draw a histogram from Maxwell's distribution?

This was my previous question about Maxwell's distribution where you can find the source code. The following code is intended to obtain a histogram from Maxwell's distribution which works on top of that aforementioned code. using ZedGraph; public…
user366312
  • 16,949
  • 65
  • 235
  • 452
0
votes
1 answer

probability question on balls of five different labels

I have five different balls with labels A,B,C,D,E . I want to draw three balls at a time. The number of ways I can do it will be 5 c 3 that would be 10. But I want to know in how many ways I can take set of these balls in which one ball would be…
Azmath Shaik
  • 39
  • 1
  • 1
  • 4
0
votes
1 answer

Plot the PMF given the realizations of a certain random variable on MATLAB

I have an array with a certain number of realizations of a test. I need to plot the PMF given my realizations I've read this Q&A but I think in my case, to build the PMF I first need to find the frequency so the values ​​fall within a certain range…
NicoCaldo
  • 1,171
  • 13
  • 25
0
votes
0 answers

Know this "maximum of sums towards minimum" distribution?

Let we have N integer slots initially containing 0's and an infinite sequence of similar independent negative binomial variables wi ~ NB(l, q). Each next value from the sequence is added to the slot containing the minimal value. The question is:…
Ihnatus
  • 11
  • 1
0
votes
1 answer

Create video from python plots to look like a moving probability distribution

I generate i plots with the code: for i in range(len(hlist)): p1 = np.array(hlist[i]) kde = gaussian_kde(p1[:,0], bw_method=.4, weights=p1[:,1]) x = np.linspace(0, 100, 1000) plt.plot(x, kde(x), color='crimson') …
Zed
  • 121
  • 1
  • 7
0
votes
0 answers

What is the difference between Standard Normal distribution function and probability distribution function?

I am an absolute beginner in stats and I am interested to learn it, and now I am stuck with this "standard normal distribution function" and "probability distribution" function please tell if there is any similarity between them or they are…
0
votes
1 answer

Probabilistic time series returning results above thresholds (GluonTS)

I have a dataset with an upper numerical limit of 50, none of the samples go above this figure or below zero. After running a deepAREstimator in GluonTS I get predictions way above 50 and also in the minuses. How can/could I fix this?
G Gr
  • 6,030
  • 20
  • 91
  • 184