Entering edit mode

18 months ago

Virat_Baahubali
•
0

Hello,

I am trying to compute what the 2.5% probability values are for the two ends of the distribution? Here is what I am doing so far.

```
import pandas as pd
from scipy.stats import ttest_rel
df = pd.read_csv("https://raw.githubusercontent.com/Opensourcefordatascience/Data-sets/master/blood_pressure.csv")
stats.ttest_rel(df['bp_before'], df['bp_after'])
Ttest_relResult(statistic=3.3371870510833657, pvalue=0.0011297914644840823)
```

I hope I was clear enough to explain since I am new to this concept. Can I get some guidance?

your two-tailed p-value is 0.0011, which means that the test statistic falls into the critical regions, 2.5% bottom and 2.5% top of the test statistics probability distribution.