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

Modelling a probability distribution as a fuzzy set in Python3

I'm trying to build a fuzzy set from a series of example values with python3. For instance, given [6, 7, 8, 9, 27] I'd like to obtain a function that: returns 0.0 from 0 to 5ca, goes gradually up to 1.0 from 5ca to 6, stays at 1.0 from 6 to 9, goes…
1
vote
0 answers

Naive Bayes P(Y|X) distribution modelling

My task is to write function which return P(y|x) distribution for each of class (with use of Naive Bayes classifier). The result is N x M matrix. Input data `p_y` -> a prior probabilities for labels 1 x M `p_x_1_y` -> probability distribution P(x…
1
vote
1 answer

Fitting Binomial distribution with car package

For fitting several probability distribution for my data set, I try several distributions using car and MASS packages, for example for Poisson distribution: require(car); require (MASS) #Data set X1 <- rnorm(100, 175, 7) Y1 <- rbinom(100,1,…
Leprechault
  • 1,531
  • 12
  • 28
1
vote
2 answers

calculating sum of two triangular random variables (Matlab)

I would like to calculate the sum of two triangular random variables, P(x1+x2 < y) Is there a faster way to implement the sum of two triangular random variables in Matlab? EDIT: It seems there's possibly a much easier way, as shown in this…
1
vote
2 answers

Plotting a Normal Distribution in Matlab

Is this a good way of plotting a Normal Distribution? On occasion, I get a pdf value (pdf_x) which is greater than 1. % thresh_strain contains a Normally Distributed set of numbers [mu_j,sigma_j] = normfit(thresh_strain); …
0
votes
0 answers

How to calulate KL-Divergence using kernel densities in Python?

I have a set of (100, 3) Jaccarad-Index values, where the '3' denotes the number of model-input parameters. I want to compute the KL-Divergence for each combination of features using the sampling distribution of Jaccard indices. I'm truly at a loss…
0
votes
1 answer

How to Calculate and Plot the Fitted Straight Line on a Probability Plot?

I am currently working on plotting a Probability Plot by using Plotly.JS , where the percentiles are represented on the y-axis and the corresponding values are plotted on the x-axis. I am aiming to create a plot that includes a fitted straight line,…
0
votes
0 answers

Bayesian estimation with python

I am trying to use Bayesian estimate to calculate the following: Suppose we produce a series of widgets, and run each through a set of quality control tests. Each widget has an unknown probability p of failing each test. (Tests are independent given…
0
votes
1 answer

probability density for a list of data in python

I have a list of data . My values in the list are 0
0
votes
0 answers

IDENTIFICATION OF DISTRIBUTION OF DATA

Please help me identify the distribution of my data. I checked in the Mini tab software. It shows the following result. DISTRIBUTION DETAIL GRAPH My data is data please help to identify the distribution for further analysis. also please let me know…
0
votes
0 answers

Generating correlated random variables for lognormal and empirical distribution

I have two variables obtained from a tension test: modulus of elasticity (moe) and peak tensile strain. The values for moe are as follows: moe = [1575.3 1277.4 3667.1 5589.9 4079.7 1449.7 6654.5 1938.9 993.7 2178.3 1505.7 1727 12570.9 2735.2 2272.3…
beck32
  • 1
0
votes
1 answer

Generate standardised log-normal data in R

I want to generate data from a log-normal distribution, with mean zero and variance equal to 1, in R. I have tried this so far: (rlnorm(n = 100000, mean = 0, sdlog = 1) - exp(1/2))/(exp(1)*(exp(1)-1)) Using the wikipedia page, to get the mean and…
Dylan Dijk
  • 277
  • 1
  • 6
0
votes
0 answers

Approximation on Inverse Mills ratio for the normal R.V

I've come across several approximations for Mills ratio, but I haven't found any good ones for the Inverse Mills ratio. Is there any known closed-form approximation for the Inverse Mills ratio (link) specifically for a normal random variable,…
0
votes
0 answers

Log-uniform distribution for priors using emcee

I want to use emcee to minimise a function, and want to vary 3 priors a,b,c over a log-uniform distribution of many orders of magnitude, and 2 more priors d, e over a uniform distribution. What would I need to return in the log_prior(theta)…
0
votes
0 answers

Probability Output Mixture distributions

I am trying to create a regression model with a probability output layer in tensorflow. I would like to be able to use a specified mixture of distributions in the output layer. For example, from the tensorflow documentation the example that is given…