# Turing.jl - How to extract AR,MA coefficients from ARiMA models

**URL:** https://discourse.julialang.org/t/turing-jl-how-to-extract-ar-ma-coefficients-from-arima-models/92305
**Category:** General Usage
**Tags:** question
**Created:** [December 30, 2022, 7:37am UTC](https://discourse.julialang.org/t/turing-jl-how-to-extract-ar-ma-coefficients-from-arima-models/92305 "2022-12-30T07:37:55Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![flare9x](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/flare9x/32/44537_2.png) [@flare9x](https://discourse.julialang.org/u/flare9x)
#### Post date: [December 30, 2022, 7:37am UTC](https://discourse.julialang.org/t/turing-jl-how-to-extract-ar-ma-coefficients-from-arima-models/92305/1 "2022-12-30T07:37:55Z")

</div>

Using Turing.jl for an ARIMA 1,1,0 model.

Is there a way to extract the AR,MA (if i used 1,1,1) coefficients from the fitted model?

```plaintext
@model ARIMA110(x) = begin
    T = length(x)
    μ ~ Uniform(-10, 10)
    ϕ ~ Uniform(-1, 1)
    for t in 3:T
        val = μ + # Drift term.
              x[t-1] + # ARIMA(0,1,0) portion.
              ϕ * (x[t-1] - x[t-2]) # ARIMA(1,0,0) portion.
        x[t] ~ Normal(val, 1)
    end
end

out_arima = ARIMA110(x)

```

Thanks,  
Andrew
