Welcome to On Statistics

  • How to Calculate the Coefficient of Variation in Python

    How to Calculate the Coefficient of Variation in Python

    The Coefficient of Variation (CV) is a measure of the dispersion or spread of a set of data from the mean. It is defined as the ratio of the standard deviation to the mean, expressed as a percentage. The CV is a dimensionless number and is used to compare the dispersion of different sets of…

  • How to Find a P-Value from a Z-Score in Python

    How to Find a P-Value from a Z-Score in Python

    In statistical analysis, we often encounter the terms z-score and p-value. Both concepts are essential in hypothesis testing and data analysis. However, their relationship might not be immediately clear. In this article, we’ll discuss how to find a p-value from a z-score using Python. What is a Z-Score? A z-score is a standardized value that…

  • How to Calculate and Plot the Normal CDF in Python

    How to Calculate and Plot the Normal CDF in Python

    The Normal Cumulative Distribution Function (CDF) is an essential concept in statistics and probability theory. It describes the probability that a normally distributed random variable X with mean μ and standard deviation σ takes on a value less than or equal to a given value x. In other words, it returns the probability that X…