statsmodels / statsmodels

Statsmodels: statistical modeling and econometrics in Python
http://www.statsmodels.org/devel/
BSD 3-Clause "New" or "Revised" License
10.13k stars 2.88k forks source link

Extremely small p-values #8915

Open anbai106 opened 1 year ago

anbai106 commented 1 year ago

Hi team,

I am running OLS and got very small P-values as 0, but I think this is just because it is extremely significant.

mdf.pvalues Intercept 0.000000000000000000000000000000000000000000000... Age 0.000000000000000000000000000000000000000000000... Sex 0.000000000000000000000000000000000000000000000... DLICV 0.000002503226143771910958872942143393913738691... scanner_lateral_x_brain_position_f25756_2_0 0.075113399418644408167544668231130344793200492... scanner_transverse_y_brain_position_f25757_2_0 0.000004369896282589966217174606150086546563215... scanner_longitudinal_z_brain_position_f25758_2_0 0.000000000000000000000000000000000000000000000... pheno 0.000000000000000000000000000000000000000000000... dtype: float64

Can you let me know how can I show the results as scientific notation?

I tried to increase the precision of the float in my Python code:

import pandas as pd pd.set_option('display.float_format', lambda x: '%.200f' % x)

This did not work either

Thanks

anbai106 commented 1 year ago

I think this is related to #8550