Questions tagged [exponential-distribution]

Anything related to the exponential probability distribution, i.e. a continuous probability distribution whose probability density function is a one-sided decreasing exponential function.

Anything related to the exponential probability distribution, i.e. a continuous probability distribution whose probability density function is a one-sided decreasing exponential function:

f(x) = ke-kx    if x >= 0

f(x) = 0          if x < 0

where k is a constant.

See Wikipedia page on the exponential distribution.


Tag usage

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.

103 questions
2
votes
1 answer

Exponential distribution of values between a given range in Python

I have three variables Min=0.29, Max=6.52 and center = 2.10. I wish to create a table that distributes this data into 100 values in a table format in the following fashion: Here, this image can be split into two parts 0 to 50 and 50 to 100. In the…
2
votes
1 answer

Python - Test if my data follow a Poisson/Exponential distribution

my question is very close to this one but I would like to have more details. I have some data and I want to check the amount of error I would have if I assume that these data follow an exponential/Poisson distribution (I'd like to have the…
2
votes
2 answers

Defining exponential distribution in R to estimate probabilities

I have a bunch of random variables (X1,....,Xn) which are i.i.d. Exp(1/2) and represent the duration of time of a certain event. So this distribution has obviously an expected value of 2, but I am having problems defining it in R. I did some…
2
votes
1 answer

Is there a documented way to reset the lambda parameter on an existing std::exponential_distribution object?

When I look at the documentation for std::exponential_distribution, it does not seem to expose a standard way for changing the lambda parameter at runtime. There is a param method, but it takes the opaque member type param_type, and the only…
merlin2011
  • 71,677
  • 44
  • 195
  • 329
2
votes
2 answers

C++ How can I set the parameter of a `std::exponential_distribution` object?

C++ Standard Library - Random Number Generation and Distributions: How can I set the parameter of the exponential distribution? I have a program which requires exponentially distributed random numbers. I am using the C++11 Random Numbers and…
FreelanceConsultant
  • 13,167
  • 27
  • 115
  • 225
2
votes
2 answers

Exponential regression in R

I have some points that look like a logarithmic curve. The curve that I'm trying to obtain look like: y = a * exp(-b*x) + c My code: x <-…
M0N0NE
  • 63
  • 1
  • 2
  • 8
2
votes
1 answer

overlaying exponential distribution onto histogram

How can i overlay an exponential distribution on a histogram of time intervals? The histogram looks like an exponential distribution. When I try to create the histogram in a similar way to superimposing a normal curve I get the following: Error in…
user3471179
  • 21
  • 1
  • 2
1
vote
0 answers

Checking if my data follows an exponential, a stretched exponential function or power law

I want to check if the probability density of my data follows power-law, exponential or stretched exponential function. I have the following code, and I am using scipy's powerlaw.fit and expon.fit() but I am not sure how to check for stretched…
1
vote
0 answers

Calualte the model coefficients using maximum likelihood estimator for non-linear curve

I have a non-linear dataset that follows a certain distribution as such: import numpy as np from matplotlib import pyplot as plt ## Define the curve def curve(t,α,ξ,β1,β2): ## Model parameters: (α, ξ, β1, β2) ## Covariate-1 of…
1
vote
0 answers

Why do simulated arrival times from a Poisson distribution seem to show periodicity?

I am experimenting with simulated arrival times drawn from a Poisson distribution. To construct the arrival times, I am randomly drawing inter-arrival times from the inverse CDF, which is exponentially distributed. The formula for the inter-arrival…
grover
  • 927
  • 1
  • 10
  • 21
1
vote
1 answer

I have try to fit my exponential function using stat_smooth and ggplot function graph but it did not fit properly. How to use the proper formula?

DATA Theoritical Strength 26.88 3.16 28.57 4.21 30.94 2.97 33.90 3.06 37.24 2.87 39.76 2.95 41.89 2.70 44.37 1.25 27.20 5.04 26.54 6.69 29.21 4.42 33.26 3.15 34.80 3.20 37.87 3.11 41.88 2.95 44.13 2.26 26.42 7.…
Harry
  • 13
  • 3
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 estimate exponential MLL function + add confidence intervals in R gpplot2?

I'm trying to plot the raw data along with the exponential curve fit and add confidence intervals for maximum likelihood model function in R. My data is stored in df(x.number, y.size). I'm trying to run MLL using the skewfun in R I want to use…
Rspacer
  • 2,369
  • 1
  • 14
  • 40
1
vote
1 answer

convert linear graph to exponential graph based on the values

I want to convert the linear graph to exponential graph. There are 2 values generated on x-axis value of SCORE which ranges from [-1,-0.9,-0.8,..0,0.1,0.2,....1] and y-axis value range from [0,255] The linear graph generated is And I want the…
1
vote
1 answer

generating a random sample from an exponential distribution in Stata

I am trying to do a simulation in Stata with a random sample of 10000 for (i) the variable X with pdf f(x) = 2*x*exp(-x^2), X>0, and (ii) Y=X^2 I worked out the cdf of F to be 1-exp(-x^2), so the inverse of F is sqrt(-ln(1-u). I used the following…
Matt
  • 13
  • 4