Skip to content

Two-sided p-value calculation possibly incorrect? #4

Description

@nicknelson1021

Shouldn't it be something like this?

if hypothesis == "One-sided" and z < 0: return 1 - norm().sf(z) elif hypothesis == "One-sided" and z >= 0: return norm().sf(z) / 2 elif z < 0: return (1 - norm().sf(z)) * 2 else: return (norm().sf(z)) * 2

code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions