Questions tagged [probability-density]

In probability theory, the density of a random variable is a function that describes the relative likelihood for this random variable to take on a given value. DO NOT CONFUSE THIS TAG WITH 'PDF': Adobe's file format.

Overview

From wiki:

In probability theory, a probability density function (pdf), or density of a continuous random variable, is a function that describes the relative likelihood for this random variable to take on a given value. The probability for the random variable to fall within a particular region is given by the integral of this variable’s density over the region. The probability density function is nonnegative everywhere, and its integral over the entire space is equal to one.

Related tags: , , .

Tag Usage

  • DO NOT CONFUSE THIS TAG WITH : Adobe's file format.

  • Questions on should be about implementation and programming problems, not about the statistical or theoretical properties of the technique. Consider whether your question might be better suited to Cross Validated, the StackExchange site for statistics, machine learning and data analysis.

614 questions
-1
votes
3 answers

Generate a Probability Density Function based on P10, P50 and P90 values in Python

I want to use P10, P50 and P90 values as input to: A) generate a probability density function (This feels like a Myerson distribution, but I can't figure out how to do that in Python. There's an addon in Excel which does exactly that though;…
flash
  • 41
  • 1
  • 3
-1
votes
2 answers

Prediction in error using probability density function in Matlab

I am using neural network to train the data. The problem definition is something like: the neural network training provides me the prediction output and error in prediction which the difference between prediction and target. Since I have the error…
-1
votes
1 answer

Naive Bayes density estimator

I am currently studying for a machine learning exam and after a lot of googling and studying slides I'm still not entirely sure how a naive bayes density estimator works. Could someone please explain this to me? This course is still pretty basic so…
Knarf
  • 137
  • 1
  • 12
-1
votes
1 answer

Numpy Histogram, which point is the density given on?

When using numpy.histogram, with density=True, the function returns an array with the pdf values at each point. However my question is, does it return pdf values at the leading edge of the bin or in the middle of the bin? For example, if I have bins…
Marses
  • 1,464
  • 3
  • 23
  • 40
-1
votes
1 answer

Normalized histogram in MATLAB incorrect?

I have the following set of data: X=[4.692 6.328 4.677 6.836 5.032 5.269 5.732 5.083 4.772 4.659 4.564 5.627 4.959 4.631 6.407 4.747 4.920 4.771 5.308 5.200 5.242 4.738 4.758 …
space_voyager
  • 1,984
  • 3
  • 20
  • 31
-1
votes
1 answer

Generate a matrix with predefined probability of occurrence for each possible value

How do you generate a matrix with a predefined probability of occurrence for each possible value? For example, I need to generate a 3-by-5 matrix consisting of only 1, 0 and -1, where the probability of occurrence of 1 is 0.25, the probability of…
rose
  • 1
-1
votes
1 answer

R - Bootstrapped Confidence Interval - Obtain Parameters of Upper and Lower Bounds

I used bootstrapping to obtain confidence intervals of a Weibull distribution. Then I plotted the Confidence Bands in a plot. Code is below: set.seed(123) rw.small<-rweibull(100,shape=1.781096,scale=33.669511) xs <- seq(0,100, len=500) boot.pdf <-…
-1
votes
1 answer

scipy probability density function not giving correct value

I've following code- import scipy.stats as scipystats print(scipystats.distributions.norm.pdf(1384, 1384, 373)) which prints output of 0.0010695503496 which doesn't make sense to me. What I am trying to do is calculate value of PDF at 1384 given…
user375868
  • 1,288
  • 4
  • 21
  • 45
-1
votes
1 answer

How do I transform a column of data into a normal distribution in MATLAB?

If I have a vector a, which is not follow normal distribution. How do I transform them into normal distribution in MATLAB? which means I create a new vector b that follow the normal distribution and have the information of a.
Peter Zhu
  • 1,154
  • 3
  • 15
  • 27
-1
votes
1 answer

Is there any laplacesdemon package equivalent for matlab

R provides a very powerful package called laplacesdemon for bayesian inference using the laplace distribution. I was wondering if there is any equivalent package for Matlab? Thanks!
-2
votes
1 answer

Why does the desnity plots exceed the unity value in the hist(x,freq="FALSE") command of R?

I am using hist(x_new,freq = FALSE) command to plot histogram, but the probability density exceed the value unity.
-2
votes
1 answer

Calculate weighted probability in Java

I have a HashMap. Where Key is the playerName and value is the ticketCount. Eg: player1 has 10 tickets and player2 has 20 tickets. I want to create a method which will return a playerName when a random number(which is generated) is passed in it. Eg:…
kaila88
  • 127
  • 1
  • 6
-3
votes
2 answers

Creat Log-normal Random Variable in MATLAB

I have trouble with the probability density function (p.d.f) of a log-normal distribution. I really need your help. As defined by wikipedia: http://en.wikipedia.org/wiki/Log-normal_distribution#Probability_density_function The probability density…
-4
votes
1 answer

How to generate geometric or Gaussian distributed numbers from from uniform distributed numbers in matlab

I want to generate geometric or Gaussian distributed random numbers without using "geornd" or "randn" functions present in MATLAB library. How can I generate random numbers with those distributions by using only the "rand" function used to generate…
1 2 3
40
41