Welcome to On Statistics

  • 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…

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

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

    In statistical analysis, the t-test is a common method used to determine if there is a significant difference between the means of two independent groups. The t-test results in a t-score, which measures the difference between the two means relative to the variability of the data. However, to determine the significance of the observed difference,…

  • How to Calculate Percentiles in Python

    How to Calculate Percentiles in Python

    Percentiles are statistical measures that help to understand the distribution of data. They divide a dataset into 100 equal parts, each part representing one percentile. The value of a given percentile is the value below which a certain percentage of observations falls. For instance, the 50th percentile is the median, the value below which 50%…

  • Curve Fitting in Python

    Curve Fitting in Python

    Curve fitting is a statistical method used to establish a mathematical relationship between a set of data points and a continuous function. The goal is to find the best-fitting curve that approximates the data, allowing for predictions and analysis of trends. In this article, we will explore the concept of curve fitting, its underlying statistical…