# How to use fit\_mle for Gamma

**URL:** https://discourse.julialang.org/t/how-to-use-fit-mle-for-gamma/83495
**Category:** General Usage
**Tags:** distributions
**Created:** [June 28, 2022, 11:59pm UTC](https://discourse.julialang.org/t/how-to-use-fit-mle-for-gamma/83495 "2022-06-28T23:59:42Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Jian\_ZUO](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jian_zuo/32/33738_2.png) [@Jian\_ZUO](https://discourse.julialang.org/u/Jian_ZUO)
#### Post date: [June 28, 2022, 11:59pm UTC](https://discourse.julialang.org/t/how-to-use-fit-mle-for-gamma/83495/1 "2022-06-28T23:59:42Z")

</div>

Hi all,  
I have a series of deterioration data and the corresponding time for these measurements:

```julia
# deterioration
r = [0.1803, 0.1978, 0.2033, 0.2092, 0.2157, 0.2254]
# time
t = [0, 185, 348, 515, 658, 830]

```

The increments are:

```julia
t_inc = [185, 163, 167, 143, 172]
r_inc = [0.0175, 0.0055, 0.0059, 0.0065, 0.0097]

```

I need to estimate the shape and scale parameter of a Gamma process for the above-measured data.  
I see there is a fit\_mle function defined in **Distributions** that support Gamma, but how should I define the date for:  
**fit\_mle** function?  
Thank you very much for checking!
