How to calculate 2.5% pvalues for the 2 ends of the distribution?
0
0
Entering edit mode
3 months ago

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

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?

numpy t-test python genomics • 307 views
0
Entering edit mode

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.