How to calculate 2.5% pvalues for the 2 ends of the distribution?
0
0
Entering edit mode
23 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
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?

numpy t-test python genomics • 634 views
ADD COMMENT
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.

ADD REPLY

Login before adding your answer.

Traffic: 2100 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6