---
title: deviation
framework: gameplaykit
role: symbol
role_heading: Instance Property
path: gameplaykit/gkgaussiandistribution/deviation
---

# deviation

The standard deviation of the distribution (also called sigma).

## Declaration

```swift
var deviation: Float { get }
```

## Discussion

Discussion One deviation is defined such that 68.27% of values generated by the distribution are within one deviation of the mean value, 95% of generated values are within two deviations, and 100% of generated values are within three deviations. Values within two deviations of the mean have a 95% probabilty, and values within three deviations have a 100% probability. note: In the standard mathematical model of a Gaussian distribution, 99.7% of generated values are within three deviations of the mean and the distribution’s range is infinite. GameplayKit discards the extremely unlikely values more than three deviations from the mean in order to set finite limits on the distribution’s range. This property is read-only—GameplayKit automatically calculates its value based on those of the inherited lowestValue and highestValue properties such that those values are each three deviations away from the mean (deviation = (highest - lowest) / 6).

## See Also

### Working with Characteristics of a Distribution

- [mean](gameplaykit/gkgaussiandistribution/mean.md)
