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

How to generate N numbers from 0-1 that follows exponential decay pattern (in Python)?

I would like to generate 320 numbers (X1, X2.... X320) ranging from 0-1 across 320 days: Date | Value 2020-03-18 X1 2020-03-19 X2 ... 2021-01-31 X320 So that when I plot "Value" against "Date", the numbers follow exponential…
DPatrick
  • 421
  • 3
  • 19
1
vote
1 answer

Exponential vs Uniform vs Exact Mean Response Times

so I have a hard time with this question. It is asking what I should choose that will give me the fastest mean response time. So option 1 I have exponential distribution with service rate of 2 per minute. Which gives me service time of 0.5m =…
1
vote
2 answers

how to generate random numbers (probabilities) from exponential distribution that sum up to 1

Consider I want x random numbers that sum up to one and that distribution is exponential. When I use x<-c(10,100,1000) a<-rexp(x[3],rate=1) a<-a/sum(a) This will change the distribution, right? So does anybody know a way so that the…
JmO
  • 572
  • 1
  • 4
  • 20
1
vote
0 answers

MP test for different distributions

I've solved problems of doing mp test for different theta value in one distribution before. However, I have no idea for doing an MP test when H0: X follows Uniform(0,1) vs H1: X follows exp(1) How to achieve this?
1
vote
1 answer

Simulation using a Queue

I am trying to simulate the following simple scenario using a queue: "Students come to a professor's office to receive help on a homework assignment every 10 minutes exponentially distributed. The time to help a student is exponentially distributed…
1
vote
1 answer

finding initial guesses for exponential curve fit

So I don't know how to do this, and I'm not sure if there's some math that I'm completely forgetting right now but I'm at a loss. In short, I have some fairly simple initial code using scipy and numpy, and I want to fit an exponential curve to…
kb3hts
  • 165
  • 1
  • 4
  • 9
1
vote
1 answer

How can I show transformation from uniform distribution to exponential distribution in R?

When variable X has uniform distribution (0,1), I can make a formula Y = -(lambda)lnX and the distribution of Y would show Exp(lambda). And I'm trying to prove this case when lambda is 3, showing that two distribution curves match. I've made it this…
1
vote
1 answer

Is this exponential distribution sampler cryptographically secure?

I'm trying to create a exponential random number generator using JavaScript, which works using methods from a previous StackOverflow answer. : function randomNumGen() { var u = Math.random(); var mu = 0.3; return…
1
vote
0 answers

java exponential random number generator

I am trying to generate exponentially distributed random numbers btw 0-100. But when I use the below function my variables is assigned value more than even 200 but they should be btw 0-100. Anybody has any idea? here is my code; Random rng3 = new…
dss
  • 127
  • 1
  • 3
  • 7
1
vote
1 answer

Math.Net how to generate vector of exponential distribution random numers

I am trying to generate random numbers with exponential distribution. I have found Math.NET NuGet package. It looks nice, but I can not figure out how to generate a vector of these kind of data. I have included the reference and tried something like…
1
vote
0 answers

Generating a Series of Alternating Exponential Processes Elegantly

Suppose I start with a time series: time = pd.date_range('1/1/2011', periods=600, freq='5M') I'd like now to generate a corresponding series, say 'on', so that the entries of 'on' will correspond to an exponential process that is True with mean 10,…
Ami Tavory
  • 74,578
  • 11
  • 141
  • 185
1
vote
1 answer

summation of exponential distribution with different parameters

I just calculated a summation of two exponential distritbution with different lambda. It's known that summmation of exponential distributions is Erlang(Gamma) distribution. However, when lamdbas are different, result is a litte bit different. Anyway…
YongjaeKim
  • 11
  • 4
1
vote
1 answer

Undefined function or variable 'exp2fit'

I'm new to MATLAB and I am trying to use the exp2fit function, but the command window throws the following error: Undefined function or variable 'exp2fit'. Error in myscript (line 34) s=exp2fit(t,f,1); What am I doing wrong?
1
vote
1 answer

Finding the distribution through random number generation in R

X is exponentially distributed with parameter lambda=0.5. I want to find Pr(1/mean(X)< K)=0.95 As I don't know the distribution of 1/mean(X) I generate a distribution by the following code. m<-c() exponentialFunc<-function(n,lambda,nsim){ …
clarkson
  • 561
  • 2
  • 16
  • 32
1
vote
1 answer

In Powershell, How to generate a random variable (exponential) with a specified mean?

I am trying to write a basic simulation (a queue), which relies on generating random expovariates. While Powershell offers a Get-Random function, you can specify a min and a max, but it doesn't have anywhere near Python's random.expovariate(lambd)…