# CKKS-RLWE-Regarding the value of sigma

**URL:** <https://openfhe.discourse.group/t/ckks-rlwe-regarding-the-value-of-sigma/613>\
**Category:** Library Questions\
**Created:** [June 6, 2023, 9:17am UTC](https://openfhe.discourse.group/t/ckks-rlwe-regarding-the-value-of-sigma/613 "2023-06-06T09:17:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![meamit](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@meamit](https://openfhe.discourse.group/u/meamit)\
**Post date:** [June 6, 2023, 9:17am UTC](https://openfhe.discourse.group/t/ckks-rlwe-regarding-the-value-of-sigma/613/1 "2023-06-06T09:17:24Z")

</div>

In Ckks while setting the public key we choose an error polynomial from a Gaussian distribution with a small standard deviation(i.e. the sigma), what is that sigma value used here in the openfhe code?

---

<div class="post-metadata">

**Author:** ![Caesar](https://yyz1.discourse-cdn.com/flex031/user_avatar/openfhe.discourse.group/caesar/32/63_2.png) [@Caesar](https://openfhe.discourse.group/u/Caesar)\
**Post date:** [June 6, 2023, 2:01pm UTC](https://openfhe.discourse.group/t/ckks-rlwe-regarding-the-value-of-sigma/613/2 "2023-06-06T14:01:40Z")

</div>

The standard deviation of the discrete Guassian distribution (\sigma) is set to 3.19 following the [“FHE standard”](http://homomorphicencryption.org/wp-content/uploads/2018/11/HomomorphicEncryptionStandardv1.1.pdf).

---

<div class="post-metadata">

**Author:** ![meamit](https://avatars.discourse-cdn.com/v4/letter/m/eb8c5e/32.png) [@meamit](https://openfhe.discourse.group/u/meamit)\
**Post date:** [June 15, 2023, 11:41am UTC](https://openfhe.discourse.group/t/ckks-rlwe-regarding-the-value-of-sigma/613/3 "2023-06-15T11:41:08Z")

</div>

Okay, Thank you for your response. the information is helpful.

---

<div class="post-metadata">

**Author:** ![JuriusStep](https://avatars.discourse-cdn.com/v4/letter/j/ee59a6/32.png) [@JuriusStep](https://openfhe.discourse.group/u/JuriusStep)\
**Post date:** [August 30, 2024, 4:39pm UTC](https://openfhe.discourse.group/t/ckks-rlwe-regarding-the-value-of-sigma/613/4 "2024-08-30T16:39:41Z")

</div>

> [@meamit](#):
>
> standard deviation(i.e. the sigma)

But standard deviation(i.e. the sigma) can we change in Openfhe?

---

<div class="post-metadata">

**Author:** ![ypolyakov](https://yyz1.discourse-cdn.com/flex031/user_avatar/openfhe.discourse.group/ypolyakov/32/47_2.png) [@ypolyakov](https://openfhe.discourse.group/u/ypolyakov)\
**Post date:** [August 31, 2024, 12:26am UTC](https://openfhe.discourse.group/t/ckks-rlwe-regarding-the-value-of-sigma/613/5 "2024-08-31T00:26:47Z")

</div>

Yes, see [openfhe-development/src/pke/examples at main · openfheorg/openfhe-development · GitHub](https://github.com/openfheorg/openfhe-development/tree/main/src/pke/examples#description-of-the-cryptocontext-parameters-and-their-restrictions) for more details. The parameter is called **standardDeviation**.
