# \#jacobian-adjustment

**URL:** https://discourse.mc-stan.org/tag/jacobian-adjustment/113.md

[Latest](https://discourse.mc-stan.org/latest.md) · [Categories](https://discourse.mc-stan.org/categories.md) · [Tags](https://discourse.mc-stan.org/tags.md)

---

## [Differences between jacobian += and target+=?](https://discourse.mc-stan.org/t/differences-between-jacobian-and-target/39685)

<div class="topic-metadata">

**Author:** [@bnicenboim](https://discourse.mc-stan.org/u/bnicenboim)\
**Replies:** 12\
**Last updated:** [June 5, 2026, 7:15pm UTC](https://discourse.mc-stan.org/t/differences-between-jacobian-and-target/39685 "2026-06-05T19:15:57Z")

</div>

Hi! Thanks for another release :) I’m a bit confused by jacobian +=, and I don’t find much about it. When should I use it? How is it different from target +=?

---

## [Log-Simplex Constraints](https://discourse.mc-stan.org/t/log-simplex-constraints/39782)

<div class="topic-metadata">

**Author:** [@brucejwittmann](https://discourse.mc-stan.org/u/brucejwittmann)\
**Replies:** 17\
**Last updated:** [June 26, 2025, 6:17pm UTC](https://discourse.mc-stan.org/t/log-simplex-constraints/39782 "2025-06-26T18:17:27Z")

</div>

I’m working with extremely high-dimensional Dirichlet and Multinomial distributions, necessitating usage of large simplexes with many extremely small values. As a result, my modeling is far more stable and efficient in t…

---

## [Jacobian adjustment for parameter with parameter-based upper+lower bounds](https://discourse.mc-stan.org/t/jacobian-adjustment-for-parameter-with-parameter-based-upper-lower-bounds/38763)

<div class="topic-metadata">

**Author:** [@simonbrauer](https://discourse.mc-stan.org/u/simonbrauer)\
**Replies:** 13\
**Last updated:** [February 24, 2025, 11:43pm UTC](https://discourse.mc-stan.org/t/jacobian-adjustment-for-parameter-with-parameter-based-upper-lower-bounds/38763 "2025-02-24T23:43:14Z")

</div>

I am trying to estimate a copula model where some of the variables are distributed as zero-one-inflated beta. My goal is to use the Chib and Greenberg approach (as with blavaan) where discrete values are modeled as conti…

---

## [What does \`jacobian=TRUE\` do in model$optimize(data = data\_list, jacobian = TRUE)](https://discourse.mc-stan.org/t/what-does-jacobian-true-do-in-model-optimize-data-data-list-jacobian-true/36867)

<div class="topic-metadata">

**Author:** [@Yongduek\_Seo](https://discourse.mc-stan.org/u/Yongduek_Seo)\
**Replies:** 16\
**Last updated:** [January 9, 2025, 5:47pm UTC](https://discourse.mc-stan.org/t/what-does-jacobian-true-do-in-model-optimize-data-data-list-jacobian-true/36867 "2025-01-09T17:47:39Z")

</div>

This is my Stan file: data { int\<lower=0\> N; // number of observations array\[N\] int\<lower=0, upper=1\> Y; // vector of binary observations } parameters { real\<lower=0, upper=1\> theta; // probability of success } mo…

---

## [Jacobian of softmax tansformation of a (n-1 degrees of freedom) unbounded parameter](https://discourse.mc-stan.org/t/jacobian-of-softmax-tansformation-of-a-n-1-degrees-of-freedom-unbounded-parameter/18780)

<div class="topic-metadata">

**Author:** [@stemangiola](https://discourse.mc-stan.org/u/stemangiola)\
**Replies:** 28\
**Last updated:** [August 23, 2023, 12:39pm UTC](https://discourse.mc-stan.org/t/jacobian-of-softmax-tansformation-of-a-n-1-degrees-of-freedom-unbounded-parameter/18780 "2023-08-23T12:39:21Z")

</div>

Hello Community, I have a dirichlet regression simplex\_parameter ~ dirichlet(softmax(X \* alpha\_parameter) \* phi\_parameter) I would like to compare MC with variational bayes, however Isuppose this does not play well wi…

---

## [No warning about the possible need for Jacobian adjustment](https://discourse.mc-stan.org/t/no-warning-about-the-possible-need-for-jacobian-adjustment/31289)

<div class="topic-metadata">

**Author:** [@jakub](https://discourse.mc-stan.org/u/jakub)\
**Replies:** 2\
**Last updated:** [May 4, 2023, 6:39am UTC](https://discourse.mc-stan.org/t/no-warning-about-the-possible-need-for-jacobian-adjustment/31289 "2023-05-04T06:39:37Z")

</div>

Hi, I was going through some examples under the “change of variables” topic. Compiling the models from those examples should, in principle, lead to warnings such as: DIAGNOSTIC(S) FROM PARSER:Warning (non-fatal): Left-…

---

## [Do I need Jacobian adjustment here?](https://discourse.mc-stan.org/t/do-i-need-jacobian-adjustment-here/19875)

<div class="topic-metadata">

**Author:** [@Guido\_Biele](https://discourse.mc-stan.org/u/Guido_Biele)\
**Replies:** 19\
**Last updated:** [April 27, 2023, 5:26pm UTC](https://discourse.mc-stan.org/t/do-i-need-jacobian-adjustment-here/19875 "2023-04-27T17:26:42Z")

</div>

Hi, I am estimating a model where one variable of interest is obtained by dividing two other variables, of which one involves a non-linear transform. Here is a pseudo-model trying to illustrate this: data { int N; …

---

## [Prior on distances between latent locations in an MDS model](https://discourse.mc-stan.org/t/prior-on-distances-between-latent-locations-in-an-mds-model/30827)

<div class="topic-metadata">

**Author:** [@davidh](https://discourse.mc-stan.org/u/davidh)\
**Replies:** 6\
**Last updated:** [April 6, 2023, 9:12pm UTC](https://discourse.mc-stan.org/t/prior-on-distances-between-latent-locations-in-an-mds-model/30827 "2023-04-06T21:12:15Z")

</div>

I am interested in building a multidimensional scaling-type model where the parameters locations in a 2D space and I’d like to be able to put a prior on the distances between the locations – something like the following: …

---

## [Data as a function of random variables: transformations vs change of variables](https://discourse.mc-stan.org/t/data-as-a-function-of-random-variables-transformations-vs-change-of-variables/24713)

<div class="topic-metadata">

**Author:** [@fasiha](https://discourse.mc-stan.org/u/fasiha)\
**Replies:** 3\
**Last updated:** [October 13, 2021, 3:55pm UTC](https://discourse.mc-stan.org/t/data-as-a-function-of-random-variables-transformations-vs-change-of-variables/24713 "2021-10-13T15:55:04Z")

</div>

I’ve reviewed a few links related to Jacobians and functions of random variables, e.g., Simple model Parse Errors - #10 by Bob\_Carpenter (2018) 10.1 Changes of variables | Stan Reference Manual 22.3 Changes of variabl…

---

## [Initialization failed: relation between priors and bounds](https://discourse.mc-stan.org/t/initialization-failed-relation-between-priors-and-bounds/23275)

<div class="topic-metadata">

**Author:** [@ManudJ](https://discourse.mc-stan.org/u/ManudJ)\
**Replies:** 4\
**Last updated:** [July 1, 2021, 3:30pm UTC](https://discourse.mc-stan.org/t/initialization-failed-relation-between-priors-and-bounds/23275 "2021-07-01T15:30:24Z")

</div>

I am having problems in the initialization phase of a collection of models. I have a likelihood for my data (generalized extreme value, GEV) and I am modeling some parameters as time series -sometimes I consider the para…

---

## [ICDF and Jacobian](https://discourse.mc-stan.org/t/icdf-and-jacobian/22762)

<div class="topic-metadata">

**Author:** [@dmi3kno](https://discourse.mc-stan.org/u/dmi3kno)\
**Replies:** 8\
**Last updated:** [June 1, 2021, 2:12pm UTC](https://discourse.mc-stan.org/t/icdf-and-jacobian/22762 "2021-06-01T14:12:23Z")

</div>

Dear Stan veterans, I would like to understand Jacobians, when they are required and when I should worry about them even though Stan may not complain. Here’s a super simple example of a prior defined via built-in distri…

---

## [Orthogonal (not orthonormal) matrix parameters](https://discourse.mc-stan.org/t/orthogonal-not-orthonormal-matrix-parameters/21946)

<div class="topic-metadata">

**Author:** [@rmcminds](https://discourse.mc-stan.org/u/rmcminds)\
**Replies:** 18\
**Last updated:** [May 4, 2021, 5:51pm UTC](https://discourse.mc-stan.org/t/orthogonal-not-orthonormal-matrix-parameters/21946 "2021-05-04T17:51:36Z")

</div>

Hello, I’m working with a ‘Probabilistic Factor Analysis’ model very similar to (and based on) this one: https://www.cs.helsinki.fi/u/sakaya/tutorial. That factor analysis model has no orthogonality constraint or prior,…

---

## [Jacobian adjustments explained simply](https://discourse.mc-stan.org/t/jacobian-adjustments-explained-simply/21908)

<div class="topic-metadata">

**Author:** [@jsocolar](https://discourse.mc-stan.org/u/jsocolar)\
**Replies:** 3\
**Last updated:** [April 21, 2021, 12:45pm UTC](https://discourse.mc-stan.org/t/jacobian-adjustments-explained-simply/21908 "2021-04-21T12:45:45Z")

</div>

Hi all, It seems like questions about Jacobian adjustments come up often enough, so I thought it might be useful to put together an explanation geared towards users who are less comfortable with math: Jacobian adjustmen…

---

## [Understanding Jacobian adjustments (Stan user guide) & multiple transformations of one parameter](https://discourse.mc-stan.org/t/understanding-jacobian-adjustments-stan-user-guide-multiple-transformations-of-one-parameter/20503)

<div class="topic-metadata">

**Author:** [@soeren](https://discourse.mc-stan.org/u/soeren)\
**Replies:** 3\
**Last updated:** [January 29, 2021, 5:51pm UTC](https://discourse.mc-stan.org/t/understanding-jacobian-adjustments-stan-user-guide-multiple-transformations-of-one-parameter/20503 "2021-01-29T17:51:32Z")

</div>

When reading the Stan user guide on Jacobian adjustments I couldn’t find answers to a couple of questions. In the Stan user guide (https://mc-stan.org/docs/2\_26/stan-users-guide/vectors-with-varying-bounds.html) is the…

---

## [Correct way to reparametrize a model with Cauchy prior](https://discourse.mc-stan.org/t/correct-way-to-reparametrize-a-model-with-cauchy-prior/17523)

<div class="topic-metadata">

**Author:** [@scientist](https://discourse.mc-stan.org/u/scientist)\
**Replies:** 5\
**Last updated:** [August 19, 2020, 6:58pm UTC](https://discourse.mc-stan.org/t/correct-way-to-reparametrize-a-model-with-cauchy-prior/17523 "2020-08-19T18:58:12Z")

</div>

Hi I wonder, which is the correct way to re-parametrize a posterior with Cauchy prior (and Gaussian likelihood) in order to help Stan to achieve better mixing of the chains. Now I have a model with the following code (f…

---

## [Are Jacobian adjustments necessary when the target parameter is a difference between two parameters?](https://discourse.mc-stan.org/t/are-jacobian-adjustments-necessary-when-the-target-parameter-is-a-difference-between-two-parameters/15918)

<div class="topic-metadata">

**Author:** [@mrkm-a](https://discourse.mc-stan.org/u/mrkm-a)\
**Replies:** 6\
**Last updated:** [June 17, 2020, 2:13am UTC](https://discourse.mc-stan.org/t/are-jacobian-adjustments-necessary-when-the-target-parameter-is-a-difference-between-two-parameters/15918 "2020-06-17T02:13:54Z")

</div>

\[Note on cross-posting: I asked the same question at CrossValidated and have received the suggestion that I should ask it here.\] I want to model the index called Delta P (e.g., p.144 of this paper), which is basically a…

---

## [Jacobian of transform](https://discourse.mc-stan.org/t/jacobian-of-transform/5685)

<div class="topic-metadata">

**Author:** [@Jean\_Billie](https://discourse.mc-stan.org/u/Jean_Billie)\
**Replies:** 4\
**Last updated:** [April 8, 2020, 2:32am UTC](https://discourse.mc-stan.org/t/jacobian-of-transform/5685 "2020-04-08T02:32:42Z")

</div>

I want to know what should I do according to the following sentence : DIAGNOSTIC(S) FROM PARSER: Warning (non-fatal): Left-hand side of sampling statement (~) may contain a non-linear transform of a parameter or local v…
