Welcome to On Statistics

  • How to Perform Z-Tests in Python

    How to Perform Z-Tests in Python

    Z-tests are a type of statistical hypothesis test used to determine if the population mean differs from a known value, called the hypothesized mean. This test is particularly useful when the population standard deviation is unknown and the sample size is large enough (n > 30). The null hypothesis, H₀, states that there is no…

  • How to Simulate Roulette with Monte Carlo in Python

    How to Simulate Roulette with Monte Carlo in Python

    Ready to take a spin on probability with Python? Let’s build a Monte Carlo simulation for a roulette wheel and visualize the possible outcomes as random walks. Buckle up! 1. Define the Model: A roulette wheel has 37 slots (European version): 18 red, 18 black, and 1 green (0). Your goal is to simulate placing…

  • A Complete List of Popular Python Tutorials

    A Complete List of Popular Python Tutorials

    Tutorial: Creating a Linear Regression in Python How to Use One-Way ANOVA in Python with the Iris Dataset How to Simulate Roulette with Monte Carlo in Python How to Calculate Spearman Rank Correlation in Python How to Make a Bell Curve in Python How to Calculate Conditional Probability in Python How to Create a Population…