Click here for a transcript.
In this video, we're going to talk about the one-line test for doing a mean of differences, or a paired comparison test. And so, in this test we're still using those natural gas and wind data we needed to calculate the difference, and then take the mean of that difference. And then we did this randomization procedure where we calculated a multiplier to figure out if that difference was equal to zero or not equal to zero. And eventually we calculated a p-value, which resulted in rejecting the null hypothesis. And so, this one minor test, again as I've done with most of these I'm going to call it results, and say stats dot t-test. And in this case, it's rel to signify that this data is not independent that we are doing a paired comparison test we still give it our first sample, sample gas, making sure that it follows that order that we've talked about before. our second sample, sample wind. And in this case all we need to do specify the alternative equal to less and do results dot key value. And so, we can see what our p-value is. It's very close to zero. We reject the null hypothesis, but we can note that there is a little bit more specificity with this one-line test than with our randomization procedure.