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
1
vote
1 answer

Networkx - Get probability p(k) from network

I have plotted the histogram of network (dataframe), with count of 'k' node connections, like so: import seaborn as sns parameter ='k' sns.histplot(network[parameter]) But now I need to create a modular random graph using above group distribution…
8-Bit Borges
  • 9,643
  • 29
  • 101
  • 198
1
vote
1 answer

How to compute the joint probability density function from a joint cumulative density function in Jax?

I have a joint cumulative density function defined in python as a function of a jax array and returning a single value. Something like: def cumulative(inputs: array) -> float: ... To have the gradient, I know I can just do grad(cumulative), but…
1
vote
0 answers

How to use Poisson distribution? Inter-arrival times

Initially I was using poissrnd command to generate Poisson distributed numbers but I had no info on how to make them 'arrive' in my code. So I decided to generate the inter-arrival times. I do that as below. t=exprnd(1/0.1); for…
1
vote
0 answers

How to calculate for return period quantile estimation for flood frequency analysis using GEV and L-moments?

We have already tried the distribution fitting of GEV with L-moments on sample data provided in the extRemes package (Potomac River data), and we have obtained our location, scale, and shape parameters. We do not know how to proceed in…
1
vote
2 answers

Difference between scipy.stats.binom and np.random.binomial

I am learning about probability distribution with python and I'm currently looking at binomial distribution and have seen both the scipy way and numpy method, what I'm trying to understand is that why do they have two different output? but are…
1
vote
2 answers

How can I generate two Weibull Random Vectors with a given correlation coefficient in Matlab?

I need to create two vectors X and Y containing both N samples. They are both weibull distributed with the same λ,k parameters and they are correlated with a correlation coefficient ρ that is neither -1 nor 1 nor 0, but a generic value that…
1
vote
0 answers

Extrapolate survival probabilities after a certain time

I have hazard rates for different time periods and I estimated survival probabilities for different time periods. I would like to estimate survival probabilities for future time periods. Here is the table I created on excel hazard rates & survival…
1
vote
2 answers

Calculation of the first and third quartile

I'm trying to calculate the mean, standard deviation, median, first quartile and third quartile of the lognormal distribution that I fit to my histogram. So far I've only been able to calculate the mean, standard deviation and median, based on the…
1
vote
0 answers

Measuring "single strongest peak" in a distribution

I'd like to automatically detect whether data have a very strongly discernable peak, with any particular distribution. The data can otherwise be quite noisy, or there might be several 'false' peaks. Here are a few examples of the performance I'd…
1
vote
0 answers

Probability Value for Integer Field oTree

for an experiment I want to program that a certain choice results in a probability distribution of an outcome. Currently I have: Action = models.IntegerField( choices=[ [1, 'altruistic (2:0.5,0:0.3,-2:0.2)'], [2, 'selfish…
xnood
  • 11
  • 2
1
vote
1 answer

how can i shade the rejection region in matlab for f distribution?

i am required to plot an f-distribution for the given degrees of freedom v1 and v2 determined from 4 samples and shade the rejection region for the given alpha(like in the picture below) rejection region shading however i cannot figure out how to do…
1
vote
1 answer

Random Variables with Standard Normal Distribution Falling into Specific Intervals

I'm working on a task where we look at 12 independent and identically distributed random variables - each of which have standard normal distribution. From that I understand we have a mean of 0 and sd of 1. We then have an interval of (-1.644,…
RickPeck
  • 165
  • 2
  • 14
1
vote
1 answer

scatterplot matrix with marginal probability distributions in seaborn

It is straightfoward to do scatter plot matrices with seaborn pairplot. Jointplot also allows combining scatter plots with marginal probability distributions for a single plot. Although the option diag_kind='kde' let you plot the probability…
1
vote
2 answers

does C# have something equivalent to Pythons random.choices()

I'm trying to do choices based on their weight/probability this is what I had in python: import random myChoiceList = ["Attack", "Heal", "Amplify", "Defense"] myWeights = [70, 0, 15, 15] // % probability = 100% Ex. Attack has 70% of…
1
vote
1 answer

How to prevent underflow when calculating probabilities with the Naïve Bayes Classifier algorithm?

I'm working on a Naïve Bayes Classifier algorithm for my data-mining course, however I'm having an underflow problem when calculating the probabilities. The particular data set has ~305 attributes, so as you can image, the final probability will be…