Uploaded by Pedro Chavarria

How to Calculate P Value in Excel Reader View

advertisement
1/30/22, 6:04 PM
How to Calculate P Value in Excel :: Reader View
spreadsheeto.com /p-value-excel/
How to Calculate P Value in Excel
Kasper Langmann, Co-founder of Spreadsheeto ⋮ 6-7 minutes ⋮ 9/27/2019
The p-value, short for probability value, is an important concept in statistical hypothesis
testing.
Its use in hypothesis testing is common in many fields like finance, physics, economics,
psychology, and many others.
Knowing how to compute the probability value using Excel is a great time-saver.
"
In this article, we’ll show you 2 easy ways you can calculate the p-value in
Excel.
"
Kasper Langmann, Co-founder of Spreadsheeto
Let’s get started!
*This tutorial is for Excel 2019/Microsoft 365 (for Windows). Got a different version? No
problem, you can still follow the exact same steps.
Cool!
Enjoy the rest of the article
Want to become a superuser?
In just 14 hours?
Here's your course!
You get 3 video-lessons on how to use macros in Excel.
It's 30 minutes (100% self-paced)...
... and it's made for experts!
chrome-extension://ecabifbgmdmgdllomnfinbmaellmclnh/data/reader/index.html?id=201&url=https%3A%2F%2Fspreadsheeto.com%2Fp-value-excel%… 1/9
1/30/22, 6:04 PM
How to Calculate P Value in Excel :: Reader View
Do you want my
free email course for learning macros?
Here's your course!
You get 3 video-lessons on advanced functions (IF+VLOOKUP).
I'ts 30 minutes (100% self-paced)...
... and made for intermediates!
Do you want my free email course to level-up your
Excel skills?
Here's your blueprint!
You get 3 video-lessons on formulas and functions.
It's 30 minutes (100% self-paced)...
... and made for beginners!
Do you want my
free blueprint for learning Excel?
What are you?
The concept of P Value
Basically, the p-value is used in hypothesis testing to quantify the idea of statistical
significance of evidence.
It’s a value that can be expressed in percentage or decimal to support or reject the null
hypothesis.
In Excel, the p-value is expressed in decimal.
"
But in reporting, try to use the percentage form (multiply the decimal form by
100) as some people prefer hearing it that way like it’s a part of a whole.
"
Kasper Langmann, Co-founder of Spreadsheeto
As for the results:
Significant: <=5%
chrome-extension://ecabifbgmdmgdllomnfinbmaellmclnh/data/reader/index.html?id=201&url=https%3A%2F%2Fspreadsheeto.com%2Fp-value-excel%… 2/9
1/30/22, 6:04 PM
How to Calculate P Value in Excel :: Reader View
Marginally significant: <=10%
Insignificant: >10%
As stated earlier, there are two ways to get the p-value in Excel:
1. t-Test tool in the analysis toolpak
2. The ‘T.TEST’ function
For this tutorial, we’ll be using the gym program data set shown below and compute the pvalue:
Get your FREE exercise file
Before you start:
Throughout this guide, you need a data set to practice.
I’ve included one for you (for free).
Download it right below!
Download the FREE Exercise File
chrome-extension://ecabifbgmdmgdllomnfinbmaellmclnh/data/reader/index.html?id=201&url=https%3A%2F%2Fspreadsheeto.com%2Fp-value-excel%… 3/9
1/30/22, 6:04 PM
How to Calculate P Value in Excel :: Reader View
The t-Test tool in the Analysis ToolPak
To use the t-Test tool in the Analysis ToolPak, you have to load the toolpak first in Excel.
Here’s a summary on how to add the analysis tool:
Click ‘File’ from the tab list
Click ‘Options’ on the bottom of the left-hand sidebar
Click ‘Add-ins’ on the left-hand sidebar of the window
On the bottom part, make sure that ‘Excel Add-ins’ is selected
Then, press ‘Go’
On the next window, check the ‘Analysis ToolPak’
Click ‘OK’
Now that the toolpak is loaded, click ‘Data’ from the tab list.
chrome-extension://ecabifbgmdmgdllomnfinbmaellmclnh/data/reader/index.html?id=201&url=https%3A%2F%2Fspreadsheeto.com%2Fp-value-excel%… 4/9
1/30/22, 6:04 PM
How to Calculate P Value in Excel :: Reader View
On the ‘Analysis’ group, click the ‘Data Analysis’ icon.
On the window, select ‘t-Test: Paired Two Sample for Means’. Then, click ‘OK’.
Another window will open with the following options:
‘Variable 1 Range’ – the cell range of the ‘before’ data (‘Weight’)
‘Variable 2 Range’ – the cell range of the ‘after’ data (‘Result’)
‘Hypothesized Mean Difference’ – the hypothesized mean difference; can be left
blank
‘Labels’ – if labels were included in the ranges
‘Alpha’ – common alpha values are 0.05 and 0.01
‘Output options’ – determine where the results will be placed
chrome-extension://ecabifbgmdmgdllomnfinbmaellmclnh/data/reader/index.html?id=201&url=https%3A%2F%2Fspreadsheeto.com%2Fp-value-excel%… 5/9
1/30/22, 6:04 PM
How to Calculate P Value in Excel :: Reader View
As an example, let’s supply the tool with the following variables:
‘Variable 1 Range’ – $B$2:$B$12
‘Variable 2 Range’ – $C$2:$C$12
‘Labels’ – Check
‘Alpha’ – 0.05
‘Output options’ – ‘Output Range: $F$2’
The results will be displayed on the range provided:
chrome-extension://ecabifbgmdmgdllomnfinbmaellmclnh/data/reader/index.html?id=201&url=https%3A%2F%2Fspreadsheeto.com%2Fp-value-excel%… 6/9
1/30/22, 6:04 PM
How to Calculate P Value in Excel :: Reader View
"
On the results, we can see that the p-value with the one-tail test is 0.0063 or
0.63% and the p-value with the two-tail test is 0.0127 or 1.27%.
"
Kasper Langmann, Co-founder of Spreadsheeto
Both results show that the p-value is lower than 5%, which means the null hypothesis is
significant.
The ‘T.TEST’ function
It’s also possible to get the p-value using this function.
It’s syntax is simple:
=T.TEST(array1,array2,tails,type)
Parameters:
‘array1’ – the cell range of the first data set
‘array2’ – the cell range of the second data set
‘tails’ – represents the number of distribution tails; 1 = one-tailed and 2 = two-tailed
‘type’ – the t-test type to perform; 1 = paired; 2 = two-sample equal variance
(homoscedastic); 3 = two-sample unequal variance (heteroscedastic)
Now, all you got to do is use the formula and provide it with the appropriate variables:
p-value (one-tailed):
=T.TEST(B2:B11,C2:C11,1,1)
p-value (two-tailed):
=T.TEST(B2:B11,C2:C11,2,1)
chrome-extension://ecabifbgmdmgdllomnfinbmaellmclnh/data/reader/index.html?id=201&url=https%3A%2F%2Fspreadsheeto.com%2Fp-value-excel%… 7/9
1/30/22, 6:04 PM
How to Calculate P Value in Excel :: Reader View
As you can see, using the ‘T.TEST’ function will give you exactly the same result as the tTest tool.
Wrapping things up…
Whichever of the 2 methods we showed you to calculate the p-value works and will give
you the same result.
If you like to have a detailed analysis, go with the analysis toolpak’s t-test tool. If the pvalue is all you’re after, the function will do just that.
"
If you’re not sure which to use, simply give each one a try. We included an
exercise file in this tutorial you can use to follow the steps described above.
"
Kasper Langmann, Co-founder of Spreadsheeto
I've got just the right thing for you!
It's called "Zero to Hero" and is our most popular course.
In it you go from beginner to Excel-superuser... in just 14 hours!
How do you want to continue?
I hope you enjoyed the blog post.
We have tons more content.
But I need your help matching you up with the best.
First, tell me your skill-level!
Awesome!
chrome-extension://ecabifbgmdmgdllomnfinbmaellmclnh/data/reader/index.html?id=201&url=https%3A%2F%2Fspreadsheeto.com%2Fp-value-excel%… 8/9
1/30/22, 6:04 PM
How to Calculate P Value in Excel :: Reader View
We have free and paid training.
Our free training is a great taste-test of what you can learn.
The paid material is for people wanting to go all-in on learning Excel.
What are you looking for?
I don't want to learn more
I've got just the right thing!
It's a FREE 30-minute course.
You get 3 lessons sent to your inbox, and here's the cool thing:
It adapts to your skill-level!
So, no matter if you're beginner, intermediate, or expert you'll find great value.
Enter your email to try it out!
No worries!
Kasper Langmann2021-07-02T08:14:08+00:00
chrome-extension://ecabifbgmdmgdllomnfinbmaellmclnh/data/reader/index.html?id=201&url=https%3A%2F%2Fspreadsheeto.com%2Fp-value-excel%… 9/9
Download