Skip to content

Instantly share code, notes, and snippets.

@trevismd
Last active July 6, 2021 07:28
Show Gist options
  • Save trevismd/98c2a30c8ae5d8c83ffae1c760d4820a to your computer and use it in GitHub Desktop.
Save trevismd/98c2a30c8ae5d8c83ffae1c760d4820a to your computer and use it in GitHub Desktop.
Manual tests results
pvalues = [
sci_stats.mannwhitneyu(robots, flight, alternative="two-sided").pvalue,
sci_stats.mannwhitneyu(flight, sound, alternative="two-sided").pvalue,
sci_stats.mannwhitneyu(robots, sound, alternative="two-sided").pvalue
]
# pvalues
# [0.00013485140468088997, 0.2557331102364572, 0.00022985464929005115]
# Transform each p-value to "p=" in scientific notation
formatted_pvalues = [f'p={pvalue:.2e}' for pvalue in pvalues]
# formatted_pvalues
# ['p=1.35e-04', 'p=2.56e-01', 'p=2.30e-04']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment