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
0 answers

Weighted sampling giving biased results

I would like to perform a weighted sampling of rows from a dataframe with R, using a probability distribution calculated from one of the groups. These are the variables in my dataframe: colnames(table) <- c('PF', 'verticality', 'nr.genomes',…
Deropi
  • 23
  • 4
0
votes
1 answer

Marginalizing a factor on tensorflow probability

I have a joint probability distribution that is defined like this: import tensorflow as tf import tensorflow_probability as tfp tfd = tfp.distributions def model(): s1 = yield tfd.JointDistributionCoroutine.Root( tfd.Normal(3, 1,…
0
votes
1 answer

How to create a eventually fair but biased distribution of Cartesian product of sets

Say I have X or 3 sets of different sizes. So 3×4×5 I want to generate a probability distribution of the Cartesian of these sets that eventually and is guaranteed to cover every item. Which based on my other answer I can generate the Nth Cartesian…
0
votes
1 answer

Independent random variables: PMF calculation

Consider random variables and . Assume that takes values 1,…, with probabilities 1,…, and takes values 1,…, with probabilities 1,…, . Assume that and are independent. Implement function joint_pmf(xvalues, xprobs, yvalues,…
evggenn
  • 23
  • 4
0
votes
3 answers

Density plot of the F-distribution (df1=1). Theoretical or simulated?

I am plotting the density of F(1,49) in R. It seems that the simulated plot does not match the theoretical plot when values approach the zero. set.seed(123) val <- rf(1000, df1=1, df2=49) plot(density(val), yaxt="n",ylab="",xlab="Observation", …
0
votes
0 answers

Question about the output of sample on a multinomial-dist in Gamble

I'm trying to understand how to use multinomial-dist in Gamble. From the Gamble documentation: Represents a multinomial distribution. The support consists of vectors of the same length as weights representing counts of n iterated samples from the…
Kamugg
  • 1
0
votes
0 answers

Is there a function that can be used to plot z-score distribution in python?

I have a dataset for which I have chosen one variable with a normal distribution. I calculated the sample mean and standard deviation for this variable. Next, I calculated the z-scores. Now I have a list of z-score that I would like to plot to see…
ohMMM
  • 11
  • 1
0
votes
0 answers

the mean and standard deviation aren't the same as those of the input data i provided after sampling

I have a log-normal mean and a standard deviation. after i converted them to the underlying normal distribution's parameters mu and sigma, I sampled from the log-normal distribution however when i take the mean and standard deviation of this…
0
votes
1 answer

Finding Probability of Multinomial distribution

A bag contain 5 dices and each have six faces with probability $p_1$=$p_2$=$p_3$=$2p_4$=$2p_5$=$3*p_6$. What is the probability of selecting two dice with face 4, and three dice with face 1? Someone have try the codes for this problem in r shown in…
0
votes
1 answer

Generate random sample for exponentiated Weibull distribution using Python

For a distribution for running this scipy function to detect the best fit as Exponentiated Weibull distribution and the function outputs 4 parameter values. But how to generate a sample list of data of size n that honours this kind of…
0
votes
0 answers

Generating random variables given the distribution and list or array of parameters

I would like to create a function that will take the probability distribution and the list or array of parameters (in order) and return a random variable of this distribution and parameters. If I know that the distribution has two input parameters,…
0
votes
1 answer

Probability Distributions in Anylogic

I've a question, in my simulation model I wanted to create some randomness of quantities of agents arrival. In my model the chance is 25% that the quantity is 1, 50% that quantity is 2 and 25% that the quantity is 3. I want to generate these…
Aron T.
  • 448
  • 2
  • 7
0
votes
0 answers

Applying Gaussian noise to a list of values

For sample selection from a list, I wish to use a mathematical distribution where the total number of samples is fixed, St = 1000 and there are 5 buckets such that the initial distribution is uniform. samples = [200, 200, 200, 200, 200] I wish to…
0
votes
1 answer

Usage of Lambert Function in R

I am doing a simulation study based on a paper. In the simulation, x(data) values are generated from the quantile function of record-based transmuted Weibull distribution which is defined as where p is a constant (p = 0.5), and q is derived from…
0
votes
1 answer

Is it possible to program a stepwise continuos probability distribution via the commons-math3 package or directly in AnyLogic?

The searched probability distribution assigns probabilities to certain intervals, so that the distribution looks like a staircase. I want to use this probability distribution in AnyLogic and did not find a adequate probability distribution neither…