Hello my O&G folks

Ever found yourself scratching your head over hypothesis testing, wondering if it’s just a fancy way to make decisions based on a bunch of data? Well, you’re not alone. Hypothesis testing is like the bread and butter of deciding whether we’ve got enough evidence in our data to back up or toss out a standard belief. For us in the O&G realm, it’s akin to choosing between sticking with our trusty old equipment or betting on a shiny new gadget—let’s say, confirming that a new type of choke valve has an improved run life.

So, how does one embark on this statistical voyage? It’s pretty straightforward—on paper, at least. First, you lay down your null and alternative hypotheses, like choosing sides for a tug of war. Next, you set your significance level at 5%— p-value of less than 5% would reject the null hypothesis. Then, you hunt down the elusive p-value and make your call. But let’s be honest, understanding p-values can feel like trying to read hieroglyphs without a Rosetta Stone.

I’ve grappled with making the concept of p-values stick in my brain without resorting to asking chatGPT for help. Here’s the scoop: p-value is the probability of observing results as or more extreme than those observed when the null hypothesis is true. Still sounds like textbook jargon? Let’s simplify it with a quirky example.

Imagine you have a bag mixed with oranges and apples. For the sake of argument, let’s say oranges are heavier than apples. Your task is to divide them into two bags, weigh them, and figure out the average weight difference. Pretend you’ve got all the time in the world and do this over and over again, let’s say 100 times. Without knowing your exact picks each time, I could peek at the histogram of your results, spot the highest or lowest (or top/bottom 2.5% of the distribution) differences, and wager that you’ve nailed separating the oranges from the apples. In essence, you’ve demonstrated that these fruits are from different weight classes.

Flipping this task on its head, if you’re given two bags and want to know if their weight difference isn’t just by chance, you’d mix them up and repeat the sampling a hundred times. If your original observation is in the top/bottom 2.5% of these trials, voila, “the probability of observing results as or more extreme than those observed” is less than 2%, you’ve stumbled upon the p-value. This simple trick allows you to test any statistic (mean, median, proportion, mode, or anything you name it!) for any random variable without being tied down by any assumptions.

I hope this sheds some light on the subject without making your head spin. Remember, it’s all about making informed gambles with the data at our disposal—and having a little fun while we’re at it!