**(C) 2017 by Damir Cavar**

**Version:** 1.0, January 2017

```
In [36]:
```from scipy import stats

```
In [37]:
```a = [23, 43, 12, 10]
b = [23, 42, 13, 10]

```
In [38]:
```stats.ttest_rel(a,b)

```
Out[38]:
```

Imagine now that the experimental results are:

```
In [39]:
```a = [23, 43, 12, 10]
b = [4, 15, 3, 9]

Applying the t-test again will give us a different result:

```
In [41]:
```stats.ttest_rel(b,a)

```
Out[41]:
```

```
In [42]:
```a = [74, 89, 88, 78]
b = [24, 2, 3, 9]

```
In [43]:
```stats.ttest_rel(a,b)

```
Out[43]:
```