# Question regarding the support of the Geometric distribution in Julia

**URL:** <https://discourse.julialang.org/t/question-regarding-the-support-of-the-geometric-distribution-in-julia/69123>\
**Category:** General Usage\
**Tags:** distributions\
**Created:** [October 3, 2021, 12:27am UTC](https://discourse.julialang.org/t/question-regarding-the-support-of-the-geometric-distribution-in-julia/69123 "2021-10-03T00:27:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![conorhassan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/conorhassan/32/27857_2.png) [@conorhassan](https://discourse.julialang.org/u/conorhassan)\
**Post date:** [October 3, 2021, 12:27am UTC](https://discourse.julialang.org/t/question-regarding-the-support-of-the-geometric-distribution-in-julia/69123/1 "2021-10-03T00:27:16Z")

</div>

Hi all,

I am evaluating a likelihood involving the `Geometric` distribution, with a binary latent variable which indicates whether to set the parameter value p of the `Geometric` distribution to be equal to p=1.

As these terms when p=1 always evaluate to 1, it is not a **strong** requirement that I have to use something like `logpdf` to evaluate these observations, but I don’t understand why the support for the `Geometric` distribution within the `Distributions` package is 0\<p\<1 opposed to 0\<p\leq1.

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![ptoche](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ptoche/32/23554_2.png) [@ptoche](https://discourse.julialang.org/u/ptoche)\
**Post date:** [October 3, 2021, 3:18am UTC](https://discourse.julialang.org/t/question-regarding-the-support-of-the-geometric-distribution-in-julia/69123/2 "2021-10-03T03:18:54Z")

</div>

Does it work if you set `check_args=false`?

I briefly looked at the source code and saw this:

[https://github.com/JuliaStats/Distributions.jl/blob/a6b99600a4d3182e533bb3bb4e0358f6aff50c8d/src/univariate/discrete/geometric.jl#L32](https://github.com/JuliaStats/Distributions.jl/blob/a6b99600a4d3182e533bb3bb4e0358f6aff50c8d/src/univariate/discrete/geometric.jl#L32)

But haven’t tested.
