# system.kanoa.quality.spc.rule2(valueList, mean)

Rule 2: Nine (or more) points in a row are on the same side of the mean (shift)

---
### Parameters
**valueList** `list[float]`: A list of values<br />
**mean** `Float`: Mean value of the valueList<br />

---
### Returns
**ruleViolation** `Boolean`<br />
**resultSet** `List of Boolean values` ruleViolation for each value in the valueList<br />

---
### Example
```python
valueList = [101, 102, 103, 101, 104, 102, 105, 103, 106]
mean = 100
result = system.kanoa.quality.spc.rule2(valueList, mean)
```
