<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Top Tip Bio</title>
	<atom:link href="https://toptipbio.com/feed/" rel="self" type="application/rss+xml" />
	<link>https://toptipbio.com/</link>
	<description>Hints &#38; Tips for Bioscientists</description>
	<lastBuildDate>Tue, 05 Oct 2021 07:12:01 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.4.3</generator>
	<item>
		<title>How To Perform Descriptive Statistics In Microsoft Excel</title>
		<link>https://toptipbio.com/descriptive-statistics-excel/</link>
					<comments>https://toptipbio.com/descriptive-statistics-excel/#respond</comments>
		
		<dc:creator><![CDATA[Steven Bradburn, PhD]]></dc:creator>
		<pubDate>Tue, 05 Oct 2021 07:11:59 +0000</pubDate>
				<category><![CDATA[Excel]]></category>
		<guid isPermaLink="false">https://toptipbio.com/?p=2908</guid>

					<description><![CDATA[<p>In this tutorial, I will show you how to use the Data Analysis ToolPak to return some descriptive statistics about your data in Microsoft Excel. This includes the mean, standard error, median, mode and so much more. How to install the Data Analysis ToolPak A useful feature in Excel that many people do not know [&#8230;]</p>
<p>The post <a href="https://toptipbio.com/descriptive-statistics-excel/">How To Perform Descriptive Statistics In Microsoft Excel</a> appeared first on <a href="https://toptipbio.com">Top Tip Bio</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>In this tutorial, I will show you how to use the Data Analysis ToolPak to return some descriptive statistics about your data in Microsoft Excel. This includes the mean, standard error, median, mode and so much more.</p>



<h2 class="wp-block-heading">How to install the Data Analysis ToolPak</h2>



<p>A useful feature in Excel that many people do not know about is the Data Analysis ToolPak.</p>



<p>The Data Analysis ToolPak is an add-on created by Microsoft to make it easier to perform different data analysis procedures.</p>



<p>To ensure you have the Data Analysis ToolPak activated correctly, go to <em>File</em>&gt;<em>Options</em>.</p>



<p>Then select <em>Add-ins</em>.</p>



<p>At the bottom, where it says <em>Manage</em>, ensure you select <em>Excel Add-ins</em> and click <em>Go</em>.</p>



<p>Ensure you have the <em>Analysis ToolPak</em> option ticked, and click the <em>OK</em> button.</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><a href="https://toptipbio.com/wp-content/uploads/2021/10/Data-Analysis-ToolPak-add-in-in-Excel.png"><img fetchpriority="high" decoding="async" width="372" height="500" src="https://toptipbio.com/wp-content/uploads/2021/10/Data-Analysis-ToolPak-add-in-in-Excel.png" alt="Data Analysis ToolPak add-in in Excel" class="wp-image-2909" srcset="https://toptipbio.com/wp-content/uploads/2021/10/Data-Analysis-ToolPak-add-in-in-Excel.png 372w, https://toptipbio.com/wp-content/uploads/2021/10/Data-Analysis-ToolPak-add-in-in-Excel-223x300.png 223w, https://toptipbio.com/wp-content/uploads/2021/10/Data-Analysis-ToolPak-add-in-in-Excel-312x420.png 312w" sizes="(max-width: 372px) 100vw, 372px" /></a></figure></div>



<p>Now, when you select the <em>Data</em> tab at the top, you should see a <em>Data Analysis</em> button appears.</p>



<p>Now we’re ready to perform the descriptive statistics.</p>



<h2 class="wp-block-heading">How to perform descriptive statistics in Excel</h2>



<p>To perform descriptive statistics in Excel, go to <em>Data</em>&gt;<em>Data Analysis</em>.</p>



<p>Then, from the list, select <em>Descriptive Statistics</em>.</p>



<p>This should open a new window.</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><a href="https://toptipbio.com/wp-content/uploads/2021/10/Data-Analysis-ToolPak-window-in-Excel.jpg"><img decoding="async" width="588" height="500" src="https://toptipbio.com/wp-content/uploads/2021/10/Data-Analysis-ToolPak-window-in-Excel.jpg" alt="Data Analysis ToolPak window in Excel" class="wp-image-2911" srcset="https://toptipbio.com/wp-content/uploads/2021/10/Data-Analysis-ToolPak-window-in-Excel.jpg 588w, https://toptipbio.com/wp-content/uploads/2021/10/Data-Analysis-ToolPak-window-in-Excel-300x255.jpg 300w, https://toptipbio.com/wp-content/uploads/2021/10/Data-Analysis-ToolPak-window-in-Excel-494x420.jpg 494w" sizes="(max-width: 588px) 100vw, 588px" /></a></figure></div>



<p>For the input range, this is where you enter the range of cells containing your data.</p>



<p>Next, need to tell Excel how your data are entered in your sheet. </p>



<p>If you have the values stacked in a column, then these will be grouped by <em>columns</em>. If they were entered into rows instead, then select the <em>rows</em> option.</p>



<p>If you also have labels at the top of your data in the first row, then ensure you select <em>Labels in First Row</em>.</p>



<p>For the output options, this is where you specify where you want the descriptive statistics to be returned</p>



<p>There are three options:</p>



<ul><li><strong>Output Range</strong> &#8211; Enter a specific cell in this same worksheet where you want the results to be entered</li><li><strong>New Worksheet Ply</strong> &#8211; Enter the results in a new worksheet</li><li><strong>New Workbook</strong> &#8211; Enter the descriptive statistics in an entirely new Excel file</li></ul>



<p>Underneath, you can tick the various descriptive statistic options that you want to perform. At a minimum, you will want to select the <em>Summary Statistics</em>. The <em>Confidence Level for Mean</em>, <em>Kth Largest</em> and <em>Kth Smallest</em> options are optional, and I will explain more about these later.</p>



<p>So that’s the setup done, now press the <em>OK</em> button to perform the descriptive statistics.</p>



<h2 class="wp-block-heading">How to interpret the descriptive statistics results</h2>



<p>Below are some descriptive statistics I have based on some example data. I&#8217;ll now go over and explain each output.</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><a href="https://toptipbio.com/wp-content/uploads/2021/10/Descriptive-Statistics-results-example-in-Excel.jpg"><img decoding="async" width="316" height="500" src="https://toptipbio.com/wp-content/uploads/2021/10/Descriptive-Statistics-results-example-in-Excel.jpg" alt="Descriptive Statistics results example in Excel" class="wp-image-2912" srcset="https://toptipbio.com/wp-content/uploads/2021/10/Descriptive-Statistics-results-example-in-Excel.jpg 316w, https://toptipbio.com/wp-content/uploads/2021/10/Descriptive-Statistics-results-example-in-Excel-190x300.jpg 190w, https://toptipbio.com/wp-content/uploads/2021/10/Descriptive-Statistics-results-example-in-Excel-265x420.jpg 265w" sizes="(max-width: 316px) 100vw, 316px" /></a></figure></div>



<h3 class="wp-block-heading">Mean</h3>



<p>The first result is the mean, or average, value.</p>



<p>This is where you add all the values up in your sample and divide by the number of values in the sample.</p>



<p>To calculate the mean value youself, you can use the AVERAGE function.</p>



<pre class="wp-block-preformatted">=AVERAGE(data)</pre>



<h3 class="wp-block-heading">Standard error</h3>



<p>The standard error is a measure of the variability of sample means in a sampling distribution of means.</p>



<p>The higher the standard error, the higher the variability.</p>



<p>You can calculate the standard error yourself by taking the standard deviation and dividing it by the square root of the count.</p>



<pre class="wp-block-preformatted">=STDEV.S(data)/SQRT(COUNT(data))</pre>



<h3 class="wp-block-heading">Median</h3>



<p>Say we sorted our data in ascending order from smallest to largest. The median will be the number that lies in the middle of the values, in my case, the answer is 50.3.</p>



<p>You can calculate the median separately by using the MEDIAN function.</p>



<pre class="wp-block-preformatted">=MEDIAN(data)</pre>



<h3 class="wp-block-heading">Mode</h3>



<p>The mode represents the value that appears the most in the sample</p>



<p>The mode for my example is 49.8 since this value appears twice.</p>



<p>If you want to calculate this yourself, you can use the MODE.SNGL function.</p>



<pre class="wp-block-preformatted">=MODE.SNGL(data)</pre>



<h3 class="wp-block-heading">Standard deviation</h3>



<p>The standard deviation is a measure of the amount of variation in the data relative to the mean, where the higher the standard deviation, the higher the variability.</p>



<p>If you would like to calculate the standard deviation of a sample separately from the descriptive statistics, then use the STDEV.S function.</p>



<pre class="wp-block-preformatted">=STDEV.S(data)</pre>



<h3 class="wp-block-heading">Variance</h3>



<p>The variance is simply the square of the standard deviation.</p>



<p>The Excel function for the variance of a sample is VAR.S.</p>



<pre class="wp-block-preformatted">=VAR.S(data)</pre>



<h3 class="wp-block-heading">Kurtosis</h3>



<p>Kurtosis is a measure that defines how heavily the tails of a distribution differ from the tails of a normal distribution.</p>



<p>In Excel, a normal distribution has a kurtosis value of 0, positive values indicate a relatively peaked distribution and negative values indicate a relatively flat distribution.</p>



<p>You can use the KURT function to calculate the kurtosis separately.</p>



<pre class="wp-block-preformatted">=KURT(data)</pre>



<h3 class="wp-block-heading">Skewness</h3>



<p>Skewness<em> </em>is a measure of asymmetry of the data distribution.</p>



<p>A value of 0 indicates a perfectly symmetrical distribution.</p>



<p>If the value is between -1 and 1, but isn’t 0, then the data are considered fairly skewed. If the value is outside this range, then the data are highly skewed.</p>



<p>The function for skewness is SKEW.</p>



<pre class="wp-block-preformatted">=SKEW(data)</pre>



<h3 class="wp-block-heading">Range</h3>



<p>The range is simply the difference between the smallest and largest values in the data.</p>



<h3 class="wp-block-heading">Minimum</h3>



<p>The minimum is the smallest number in the data.</p>



<p>You can use the MIN function to work this out yourself.</p>



<p>=MIN(data)</p>



<h3 class="wp-block-heading">Maximum</h3>



<p>As the name suggests, the maximum is the largest number in the data.</p>



<p>To calculate this separately, use the MAX function.</p>



<pre class="wp-block-preformatted">=MAX(data)</pre>



<h3 class="wp-block-heading">SUM</h3>



<p>The sum is the total calculated when you add up all the values in the data.</p>



<p>Use the SUM function to do this yourself.</p>



<pre class="wp-block-preformatted">=SUM(data)</pre>



<h3 class="wp-block-heading">Count</h3>



<p>The count is the total number of values you have in your data.</p>



<p>Use the COUNT function to calculate the count separately.</p>



<pre class="wp-block-preformatted">=COUNT(data)</pre>



<h3 class="wp-block-heading">Kth largest</h3>



<p>During the descriptive statistics setup, if you selected the <em>Kth Largest</em> option, then you’ll also have this result too.</p>



<p>Say you have 1 in the box next to the <em>Kth Largest</em> option, this would mean the first largest value in the data will be returned &#8211; in other words, the maximum.</p>



<p>If a 2 was used instead, then the second largest value will be returned, and so on and so forth.</p>



<h3 class="wp-block-heading">Kth smallest</h3>



<p>Similar to the above, if you selected the <em>Kth Smallest</em> option during the setup, then you’ll also have this result returned.</p>



<p>Having 1 entered during the setup will mean the first smallest value will be determined &#8211; the minimum value.</p>



<p>Again, changing this input to a 2 would mean the second smallest value is returned instead.</p>



<h3 class="wp-block-heading">Confidence level</h3>



<p>The last entry in the descriptive statistics table is the confidence interval value.</p>



<p>This is the value you can add and subtract from the mean to calculate the upper and lower confidence intervals, respectively. Specifically, these will be the 95% confidence intervals, since 95 was entered during the setup.</p>



<p>If you want to learn more about calculating confidence intervals in Microsoft Excel, then check out <a href="https://toptipbio.com/confidence-intervals-excel/">this post</a>.</p>



<h2 class="wp-block-heading">How to perform descriptive statistics in Excel: Final words</h2>



<p>You should now know how to calculate some descriptive statistics in Excel.</p>



<p>Using the Data Analysis ToolPak makes this process so much easier and quicker than using separate functions.</p>



<p>Microsoft Excel version used: 365 ProPlus</p>
<p>The post <a href="https://toptipbio.com/descriptive-statistics-excel/">How To Perform Descriptive Statistics In Microsoft Excel</a> appeared first on <a href="https://toptipbio.com">Top Tip Bio</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://toptipbio.com/descriptive-statistics-excel/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Create A QQ Plot In Microsoft Excel</title>
		<link>https://toptipbio.com/qq-plot-excel/</link>
					<comments>https://toptipbio.com/qq-plot-excel/#respond</comments>
		
		<dc:creator><![CDATA[Steven Bradburn, PhD]]></dc:creator>
		<pubDate>Mon, 27 Sep 2021 06:58:45 +0000</pubDate>
				<category><![CDATA[Microsoft Excel]]></category>
		<guid isPermaLink="false">https://toptipbio.com/?p=2897</guid>

					<description><![CDATA[<p>In this tutorial, I’m going to show you how to create a quantile-quantile plot, otherwise known as a QQ plot, in Microsoft Excel. QQ plots are great visual aids to inspect the distribution of your data. Most commonly, QQ plots are used to see if the data follows a normal distribution. Here&#8217;s a sneak peak [&#8230;]</p>
<p>The post <a href="https://toptipbio.com/qq-plot-excel/">How To Create A QQ Plot In Microsoft Excel</a> appeared first on <a href="https://toptipbio.com">Top Tip Bio</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>In this tutorial, I’m going to show you how to create a quantile-quantile plot, otherwise known as a QQ plot, in Microsoft Excel.</p>



<p>QQ plots are great visual aids to inspect the distribution of your data. Most commonly, QQ plots are used to see if the data follows a normal distribution.</p>



<p>Here&#8217;s a sneak peak at the end product.</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><a href="https://toptipbio.com/wp-content/uploads/2021/09/QQ-plot.jpg"><img decoding="async" width="833" height="500" src="https://toptipbio.com/wp-content/uploads/2021/09/QQ-plot.jpg" alt="QQ plot in Excel" class="wp-image-2898" srcset="https://toptipbio.com/wp-content/uploads/2021/09/QQ-plot.jpg 833w, https://toptipbio.com/wp-content/uploads/2021/09/QQ-plot-300x180.jpg 300w, https://toptipbio.com/wp-content/uploads/2021/09/QQ-plot-768x461.jpg 768w, https://toptipbio.com/wp-content/uploads/2021/09/QQ-plot-696x418.jpg 696w, https://toptipbio.com/wp-content/uploads/2021/09/QQ-plot-700x420.jpg 700w" sizes="(max-width: 833px) 100vw, 833px" /></a></figure></div>



<h2 class="wp-block-heading">How to create a QQ plot in Excel</h2>



<p>In this example, I have a sample containing 49 different data points. These data points have been entered into the first column of my Excel sheet.</p>



<p>What I want to do for this example is to create a QQ plot in Excel to determine if my sample data has a normal distribution.</p>



<h3 class="wp-block-heading">Step 1: Rank the data</h3>



<p>The first step to create a QQ plot in Excel is to rank the data in ascending order (from smallest to largest). This is really easy to do with the RANK AVERAGE function.</p>



<pre class="wp-block-preformatted">=RANK.AVG(number, ref, [order])</pre>



<ul><li><strong>number</strong> &#8211; The cell containing the data point you want to rank</li><li><strong>ref</strong> &#8211; The range of cells containing the complete data</li><li><strong>[order]</strong> &#8211; Enter 1 to rank the cell in ascending order</li></ul>



<p>Here&#8217;s what the formula looks for my example.</p>



<pre class="wp-block-preformatted">=RANK.AVG(A2,$A$2:$A$50,1)</pre>



<figure class="wp-block-image size-large"><a href="https://toptipbio.com/wp-content/uploads/2021/09/Calculate-ranks-in-Excel.jpg"><img decoding="async" width="1024" height="227" src="https://toptipbio.com/wp-content/uploads/2021/09/Calculate-ranks-in-Excel-1024x227.jpg" alt="Calculate ranks in Excel" class="wp-image-2899" srcset="https://toptipbio.com/wp-content/uploads/2021/09/Calculate-ranks-in-Excel-1024x227.jpg 1024w, https://toptipbio.com/wp-content/uploads/2021/09/Calculate-ranks-in-Excel-300x67.jpg 300w, https://toptipbio.com/wp-content/uploads/2021/09/Calculate-ranks-in-Excel-768x170.jpg 768w, https://toptipbio.com/wp-content/uploads/2021/09/Calculate-ranks-in-Excel-696x154.jpg 696w, https://toptipbio.com/wp-content/uploads/2021/09/Calculate-ranks-in-Excel-1068x237.jpg 1068w, https://toptipbio.com/wp-content/uploads/2021/09/Calculate-ranks-in-Excel.jpg 1100w" sizes="(max-width: 1024px) 100vw, 1024px" /></a></figure>



<p>Notice that I have also included a $ symbol before the column letters and row numbers in the ref part of the formula. This is because I want these particular cells to remain constant when I copy the formula down.</p>



<p>Once running this formula, you need to copy the formula down to repeat the process for all the data points.</p>



<p>You should be left with a ranking order of your data.</p>



<h3 class="wp-block-heading">Step 2: Calculate the percentiles</h3>



<p>For the next step, you need to calculate the percentile value of the ranks.</p>



<p>To do this, you simply take the rank of the data point and subtract 0.5 from it. You then divide this answer by the number of data points in your sample.</p>



<p>Here&#8217;s an overview for what the formula will look like in Excel.</p>



<p>=(rank-0.5)/COUNT(data)</p>



<ul><li><strong>rank</strong> &#8211; The cell containing the rank</li><li><strong>data</strong> &#8211; The range of cells containing the complete data</li></ul>



<p>And here&#8217;s what this looks like for the first rank in my data.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><a href="https://toptipbio.com/wp-content/uploads/2021/09/Calculate-percentile-of-ranks-in-Excel.jpg"><img decoding="async" width="1024" height="201" src="https://toptipbio.com/wp-content/uploads/2021/09/Calculate-percentile-of-ranks-in-Excel-1024x201.jpg" alt="Calculate percentile of ranks in Excel" class="wp-image-2900" srcset="https://toptipbio.com/wp-content/uploads/2021/09/Calculate-percentile-of-ranks-in-Excel-1024x201.jpg 1024w, https://toptipbio.com/wp-content/uploads/2021/09/Calculate-percentile-of-ranks-in-Excel-300x59.jpg 300w, https://toptipbio.com/wp-content/uploads/2021/09/Calculate-percentile-of-ranks-in-Excel-768x151.jpg 768w, https://toptipbio.com/wp-content/uploads/2021/09/Calculate-percentile-of-ranks-in-Excel-696x137.jpg 696w, https://toptipbio.com/wp-content/uploads/2021/09/Calculate-percentile-of-ranks-in-Excel-1068x210.jpg 1068w, https://toptipbio.com/wp-content/uploads/2021/09/Calculate-percentile-of-ranks-in-Excel.jpg 1213w" sizes="(max-width: 1024px) 100vw, 1024px" /></a></figure></div>



<p>Within the COUNT function, notice that the range of cells are also locked (contain the $ symbols).</p>



<p>As with the first step, you want to repeat the function so that all the percentile values for all your ranks are calculated.</p>



<h3 class="wp-block-heading">Step 3: Calculate the normal theoretical quantiles</h3>



<p>The next step to calculating the QQ plot in Excel is to work out the normal theoretical quantiles.</p>



<p>Specifically, these quantiles are Z-scores based on a normal distribution, where the mean is 0 and the standard deviation is 1.</p>



<p>To do this, I will use the NORM.S.INV function.</p>



<pre class="wp-block-preformatted">=NORM.S.INV(probability)</pre>



<ul><li><strong>probability</strong> &#8211; The cell containing the percentile</li></ul>



<p>Simply add in the cell containing the percentile values calculated in the previous step.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><a href="https://toptipbio.com/wp-content/uploads/2021/09/Calculate-normal-theoretical-quantiles-in-Excel.jpg"><img decoding="async" width="1024" height="252" src="https://toptipbio.com/wp-content/uploads/2021/09/Calculate-normal-theoretical-quantiles-in-Excel-1024x252.jpg" alt="Calculate normal theoretical quantiles in Excel" class="wp-image-2902" srcset="https://toptipbio.com/wp-content/uploads/2021/09/Calculate-normal-theoretical-quantiles-in-Excel-1024x252.jpg 1024w, https://toptipbio.com/wp-content/uploads/2021/09/Calculate-normal-theoretical-quantiles-in-Excel-300x74.jpg 300w, https://toptipbio.com/wp-content/uploads/2021/09/Calculate-normal-theoretical-quantiles-in-Excel-768x189.jpg 768w, https://toptipbio.com/wp-content/uploads/2021/09/Calculate-normal-theoretical-quantiles-in-Excel-696x171.jpg 696w, https://toptipbio.com/wp-content/uploads/2021/09/Calculate-normal-theoretical-quantiles-in-Excel-1068x263.jpg 1068w, https://toptipbio.com/wp-content/uploads/2021/09/Calculate-normal-theoretical-quantiles-in-Excel.jpg 1293w" sizes="(max-width: 1024px) 100vw, 1024px" /></a></figure></div>



<h3 class="wp-block-heading">Step 4: Calculate the data quantiles</h3>



<p>Now we have the normal theoretical quantiles, the final calculations we need are the Z-scores for the quantiles based on the original data.</p>



<p>To do this, I will use the STANDARDIZE function to create Z-scores.</p>



<pre class="wp-block-preformatted">=STANDARDIZE(x, mean, standard_dev)</pre>



<ul><li><strong>x</strong> &#8211; The cell containing the data point</li><li><strong>mean</strong> &#8211; The average value of the data</li><li><strong>standard_dev</strong> &#8211; The standard deviation of the data</li></ul>



<p>Note, calculating Z-scores in Excel is discussed in more detail in <a href="https://toptipbio.com/calculate-z-scores-excel/">this post</a>.</p>



<p>For the mean and standard_dev parts of the formula above, you can use the AVERAGE and STDEV (or STDEV.S) functions, respectively.</p>



<p>Here&#8217;s what the formula looks like for my first data point in my example.</p>



<pre class="wp-block-preformatted">=STANDARDIZE(A2,AVERAGE($A$2:$A$50),STDEV($A$2:$A$50))</pre>



<p>Again, the $ symbols are included to lock the range of cells inside the AVERAGE and STDEV functions. The formula is then copied down to calculate the Z-scores for all my data.</p>



<h3 class="wp-block-heading">Step 5: Create the QQ plot</h3>



<p>Now we have everything we need to create the QQ plot in Excel.</p>



<p>The QQ plot is simply a scatter plot with the normal theoretical quantiles (X axis) against the data quantiles (Y axis).</p>



<p>To create the plot, go to <em>Insert>Insert Scatter>Scatter</em>.</p>



<h4 class="wp-block-heading">How to adjust the axes</h4>



<p>One thing you will probably want to do is adjust the axes, so that they are not placed in the middle of the graph.</p>



<p>To do this, right-click on the graph and select <em>Format Chart Area</em>.</p>



<p>Use the dropdown menu to select either <em>Horizontal (Value) Axis</em> or <em>Vertical (Value) Axis</em>.</p>



<p>In the <em>Axis Options</em>, I recommend adjusting where the axis crosses by defining your own <em>Axis value</em>.</p>



<h4 class="wp-block-heading">How to add a linear trendline</h4>



<p>A common feature of a QQ plot is to add a linear trendline to the graph to make it easier when interpreting the results.</p>



<p>To do this, with the graph selected, go to <em>Chart Design>Add Chart Element>Trendline>Linear</em>.</p>



<h2 class="wp-block-heading">How to interpret a QQ plot</h2>



<p>To interpret the QQ plot, you want to look at the data points on the graph and how they fit on the linear line.</p>



<p>If the data has a completely normal Gaussian distribution, then all data points will fit perfectly on the linear line. The data will also follow the linear line in a 45 degree angle.</p>



<p>Looking at my example, I can see that the majority of my data points are either on or are close to the linear line.</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><a href="http://toptipbio.com/wp-content/uploads/2021/09/QQ-plot.jpg"><img decoding="async" width="833" height="500" src="http://toptipbio.com/wp-content/uploads/2021/09/QQ-plot.jpg" alt="QQ plot in Excel" class="wp-image-2898" srcset="https://toptipbio.com/wp-content/uploads/2021/09/QQ-plot.jpg 833w, https://toptipbio.com/wp-content/uploads/2021/09/QQ-plot-300x180.jpg 300w, https://toptipbio.com/wp-content/uploads/2021/09/QQ-plot-768x461.jpg 768w, https://toptipbio.com/wp-content/uploads/2021/09/QQ-plot-696x418.jpg 696w, https://toptipbio.com/wp-content/uploads/2021/09/QQ-plot-700x420.jpg 700w" sizes="(max-width: 833px) 100vw, 833px" /></a></figure></div>



<p>So, I’m fairly confident that I have an approximately normal or Gaussian distribution.</p>



<p>It’s also worth plotting a frequency histogram to explore normality further.</p>



<h2 class="wp-block-heading">How to create a QQ plot in Excel: Final words</h2>



<p>In this tutorial, I have shown you how to create a QQ plot in Microsoft Excel. I&#8217;ve also shown to you to interpret the results of the plot.</p>



<p>To create a QQ plot to assess data normality, you must manually calculate the normal theoretical quantiles and plot these in a scatter plot against the actual data quantiles.</p>



<p></p>



<p>Microsoft Excel version used: 365 ProPlus</p>
<p>The post <a href="https://toptipbio.com/qq-plot-excel/">How To Create A QQ Plot In Microsoft Excel</a> appeared first on <a href="https://toptipbio.com">Top Tip Bio</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://toptipbio.com/qq-plot-excel/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Do Basic Math In Excel (Add, Subtract, Multiply &#038; Divide)</title>
		<link>https://toptipbio.com/basic-math-excel/</link>
					<comments>https://toptipbio.com/basic-math-excel/#respond</comments>
		
		<dc:creator><![CDATA[Steven Bradburn, PhD]]></dc:creator>
		<pubDate>Tue, 21 Sep 2021 06:41:59 +0000</pubDate>
				<category><![CDATA[Excel]]></category>
		<guid isPermaLink="false">https://toptipbio.com/?p=2883</guid>

					<description><![CDATA[<p>In this tutorial, I&#8217;ll show you how to perform basic math functions in Microsoft Excel. Specifically, I will show you how to add, subtract, divide and multiply cells in Excel. So, let&#8217;s get to it. How to add cells in Excel Method 1: Use the + operation The most basic way of adding cells is [&#8230;]</p>
<p>The post <a href="https://toptipbio.com/basic-math-excel/">How To Do Basic Math In Excel (Add, Subtract, Multiply &#038; Divide)</a> appeared first on <a href="https://toptipbio.com">Top Tip Bio</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>In this tutorial, I&#8217;ll show you how to perform basic math functions in Microsoft Excel. Specifically, I will show you how to add, subtract, divide and multiply cells in Excel.</p>



<p>So, let&#8217;s get to it.</p>



<h2 class="wp-block-heading">How to add cells in Excel</h2>



<h3 class="wp-block-heading">Method 1: Use the + operation</h3>



<p>The most basic way of adding cells is to simply do this manually by using the + operation.</p>



<pre class="wp-block-preformatted">=Number1+Number2</pre>



<p>You simply replace Number1 and Number2 with the numbers your interested in, or cells containing your data.</p>



<p>In my example, I have two cells containing the numbers 5 and 15, which I want to add together.</p>



<p>To do this in a new cell, I can enter the following formula.</p>



<pre class="wp-block-preformatted">=B1+B2</pre>



<div class="wp-block-image"><figure class="aligncenter size-full"><a href="https://toptipbio.com/wp-content/uploads/2021/09/How-to-add-cells-in-Excel.jpg"><img decoding="async" width="754" height="379" src="https://toptipbio.com/wp-content/uploads/2021/09/How-to-add-cells-in-Excel.jpg" alt="How to add cells in Excel" class="wp-image-2886" srcset="https://toptipbio.com/wp-content/uploads/2021/09/How-to-add-cells-in-Excel.jpg 754w, https://toptipbio.com/wp-content/uploads/2021/09/How-to-add-cells-in-Excel-300x151.jpg 300w, https://toptipbio.com/wp-content/uploads/2021/09/How-to-add-cells-in-Excel-696x350.jpg 696w" sizes="(max-width: 754px) 100vw, 754px" /></a></figure></div>



<h3 class="wp-block-heading">Method 2: Use the SUM function</h3>



<p>A great thing about Excel is that it includes a function that can add a range of cells quickly for you.</p>



<p>To do this, use the SUM function.</p>



<pre class="wp-block-preformatted">=SUM(Number1, [number2],...)</pre>



<p>Within the parentheses, simply insert the range of cells you&#8217;re interested in.</p>



<p>If I use the same example as shown above, I will use the following function.</p>



<pre class="wp-block-preformatted">=SUM(B1:B2)</pre>



<div class="wp-block-image"><figure class="aligncenter size-full"><a href="https://toptipbio.com/wp-content/uploads/2021/09/How-to-use-the-SUM-function-in-Excel.jpg"><img decoding="async" width="840" height="391" src="https://toptipbio.com/wp-content/uploads/2021/09/How-to-use-the-SUM-function-in-Excel.jpg" alt="How to use the SUM function in Excel" class="wp-image-2887" srcset="https://toptipbio.com/wp-content/uploads/2021/09/How-to-use-the-SUM-function-in-Excel.jpg 840w, https://toptipbio.com/wp-content/uploads/2021/09/How-to-use-the-SUM-function-in-Excel-300x140.jpg 300w, https://toptipbio.com/wp-content/uploads/2021/09/How-to-use-the-SUM-function-in-Excel-768x357.jpg 768w, https://toptipbio.com/wp-content/uploads/2021/09/How-to-use-the-SUM-function-in-Excel-696x324.jpg 696w" sizes="(max-width: 840px) 100vw, 840px" /></a></figure></div>



<h2 class="wp-block-heading">How to subtract cells in Excel</h2>



<p>To subtract numbers or cells in Excel, then use the &#8211; operation.</p>



<pre class="wp-block-preformatted">=Number1-Number2</pre>



<p>Replace Number1 and Number2 with the numbers your interested in, or cells containing your data.</p>



<p>In my example below, I have two cells containing the numbers 12 and 5. I want to subtract 5 from 12.</p>



<p>To do this, in a new cell, I will enter the following.</p>



<pre class="wp-block-preformatted">=B1-B2</pre>



<div class="wp-block-image"><figure class="aligncenter size-full"><a href="https://toptipbio.com/wp-content/uploads/2021/09/How-to-subtract-cells-in-Excel.jpg"><img decoding="async" width="754" height="389" src="https://toptipbio.com/wp-content/uploads/2021/09/How-to-subtract-cells-in-Excel.jpg" alt="How to subtract cells in Excel" class="wp-image-2888" srcset="https://toptipbio.com/wp-content/uploads/2021/09/How-to-subtract-cells-in-Excel.jpg 754w, https://toptipbio.com/wp-content/uploads/2021/09/How-to-subtract-cells-in-Excel-300x155.jpg 300w, https://toptipbio.com/wp-content/uploads/2021/09/How-to-subtract-cells-in-Excel-696x359.jpg 696w" sizes="(max-width: 754px) 100vw, 754px" /></a></figure></div>



<h2 class="wp-block-heading">How to multiply cells in Excel</h2>



<h3 class="wp-block-heading">Method 1: Use the * operation</h3>



<p>If you want to multiply certain numbers or specific cells together, then the easiest way to do this is by using the * operation.</p>



<pre class="wp-block-preformatted">=Number1*Number2</pre>



<p>In this example, I have two cells (B1 and B2) that contain the numbers 5 and 20, repectively.</p>



<p>If I want to multiply these cells, I will use the following formula.</p>



<pre class="wp-block-preformatted">=B1*B2</pre>



<div class="wp-block-image"><figure class="aligncenter size-full"><a href="https://toptipbio.com/wp-content/uploads/2021/09/How-to-multiply-cells-in-Excel.jpg"><img decoding="async" width="736" height="391" src="https://toptipbio.com/wp-content/uploads/2021/09/How-to-multiply-cells-in-Excel.jpg" alt="How to multiply cells in Excel" class="wp-image-2891" srcset="https://toptipbio.com/wp-content/uploads/2021/09/How-to-multiply-cells-in-Excel.jpg 736w, https://toptipbio.com/wp-content/uploads/2021/09/How-to-multiply-cells-in-Excel-300x159.jpg 300w, https://toptipbio.com/wp-content/uploads/2021/09/How-to-multiply-cells-in-Excel-696x370.jpg 696w" sizes="(max-width: 736px) 100vw, 736px" /></a></figure></div>



<h3 class="wp-block-heading">Method 2: Use the PRODUCT function</h3>



<p>If you have a range of numbers or cells that you want to multiply together, then you can use the PRODUCT function.</p>



<pre class="wp-block-preformatted">=PRODUCT(Number1, [number2],...)</pre>



<p>Within the parentheses, simply insert the range of cells you&#8217;re interested in.</p>



<p>For my example, the formula will look like this.</p>



<p>=PRODUCT(B1:B2)</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><a href="https://toptipbio.com/wp-content/uploads/2021/09/How-to-use-the-PRODUCT-function-in-Excel.jpg"><img decoding="async" width="996" height="395" src="https://toptipbio.com/wp-content/uploads/2021/09/How-to-use-the-PRODUCT-function-in-Excel.jpg" alt="How to use the PRODUCT function in Excel" class="wp-image-2892" srcset="https://toptipbio.com/wp-content/uploads/2021/09/How-to-use-the-PRODUCT-function-in-Excel.jpg 996w, https://toptipbio.com/wp-content/uploads/2021/09/How-to-use-the-PRODUCT-function-in-Excel-300x119.jpg 300w, https://toptipbio.com/wp-content/uploads/2021/09/How-to-use-the-PRODUCT-function-in-Excel-768x305.jpg 768w, https://toptipbio.com/wp-content/uploads/2021/09/How-to-use-the-PRODUCT-function-in-Excel-696x276.jpg 696w" sizes="(max-width: 996px) 100vw, 996px" /></a></figure></div>



<h2 class="wp-block-heading">How to divide cells in Excel</h2>



<p>Finally, if you want to divide cells in Excel, then use the / operation.</p>



<pre class="wp-block-preformatted">=Number1/number2</pre>



<p>Replace number1 and number2 with the cells you&#8217;re interested in.</p>



<p>For my example below, I have cells containing the values 75 (B1) and 25 (B2). If I wanted to divide 75 by 25, I will enter the following formula.</p>



<pre class="wp-block-preformatted">=B1/B2</pre>



<div class="wp-block-image"><figure class="aligncenter size-full"><a href="https://toptipbio.com/wp-content/uploads/2021/09/How-to-divide-cells-in-Excel.jpg"><img decoding="async" width="765" height="398" src="https://toptipbio.com/wp-content/uploads/2021/09/How-to-divide-cells-in-Excel.jpg" alt="How to divide cells in Excel" class="wp-image-2893" srcset="https://toptipbio.com/wp-content/uploads/2021/09/How-to-divide-cells-in-Excel.jpg 765w, https://toptipbio.com/wp-content/uploads/2021/09/How-to-divide-cells-in-Excel-300x156.jpg 300w, https://toptipbio.com/wp-content/uploads/2021/09/How-to-divide-cells-in-Excel-696x362.jpg 696w" sizes="(max-width: 765px) 100vw, 765px" /></a></figure></div>



<h2 class="wp-block-heading">How to do basic math in Excel: Final words</h2>



<p>You should now have a better understanding of performing basic math (add, subtract, multiply and divide) in Microsoft Excel.</p>



<p>The table below summarises the operations you will need to perform each task.</p>



<figure class="wp-block-table is-style-stripes"><table class="has-light-green-cyan-background-color has-background has-fixed-layout"><thead><tr><th>Calculation</th><th>Operation</th></tr></thead><tbody><tr><td>Add</td><td>+</td></tr><tr><td>Subtract</td><td>&#8211;</td></tr><tr><td>Multiply</td><td>*</td></tr><tr><td>Divide</td><td>/</td></tr></tbody></table></figure>



<p>If you want to add a lot of cells, then use the SUM function.</p>



<p>Additionally, if you want to multiply a range of cells, then use the PRODUCT function.</p>



<p>Microsoft Excel version used: 365 ProPlus</p>
<p>The post <a href="https://toptipbio.com/basic-math-excel/">How To Do Basic Math In Excel (Add, Subtract, Multiply &#038; Divide)</a> appeared first on <a href="https://toptipbio.com">Top Tip Bio</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://toptipbio.com/basic-math-excel/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Calculate The Standard Deviation (Clearly Explained!)</title>
		<link>https://toptipbio.com/calculate-standard-deviation/</link>
					<comments>https://toptipbio.com/calculate-standard-deviation/#respond</comments>
		
		<dc:creator><![CDATA[Steven Bradburn, PhD]]></dc:creator>
		<pubDate>Thu, 16 Sep 2021 06:54:31 +0000</pubDate>
				<category><![CDATA[Statistics Explained]]></category>
		<guid isPermaLink="false">https://toptipbio.com/?p=2864</guid>

					<description><![CDATA[<p>In this post, I&#8217;m going to show you step-by-step how to manually calculate the standard deviation. What is the standard deviation? The standard deviation is basically used to show how spread out the data are, relative to the mean. A low standard deviation indicates that the data are close to the mean, whereas a high [&#8230;]</p>
<p>The post <a href="https://toptipbio.com/calculate-standard-deviation/">How To Calculate The Standard Deviation (Clearly Explained!)</a> appeared first on <a href="https://toptipbio.com">Top Tip Bio</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>In this post, I&#8217;m going to show you step-by-step how to manually calculate the standard deviation.</p>



<h2 class="wp-block-heading">What is the standard deviation?</h2>



<p>The standard deviation is basically used to show how spread out the data are, relative to the mean.</p>



<p>A low standard deviation indicates that the data are close to the mean, whereas a high standard deviation indicates that the data are spread further away from the mean.</p>



<h2 class="wp-block-heading">Example data</h2>



<p>For this example, let’s say I’ve measured the weight of 10 female bulldogs of a similar age. Below are their weights, measured in kilograms.</p>



<figure class="wp-block-table is-style-stripes"><table class="has-fixed-layout"><thead><tr><th>Dog</th><th> Weight (kg) </th></tr></thead><tbody><tr><td>1</td><td>20.4</td></tr><tr><td>2</td><td>25.2</td></tr><tr><td>3</td><td>20.5</td></tr><tr><td>4</td><td>23.2</td></tr><tr><td>5</td><td>22.6</td></tr><tr><td>6</td><td>25.9</td></tr><tr><td>7</td><td>23.4</td></tr><tr><td>8</td><td>22.5</td></tr><tr><td>9</td><td>22.1</td></tr><tr><td>10</td><td>21.0</td></tr></tbody></table></figure>



<p>This randomly selected group of female bulldogs is known as a sample.</p>



<h2 class="wp-block-heading">How to calculate the sample standard deviation</h2>



<h3 class="wp-block-heading">Step 1: Calculate the average</h3>



<p>The first thing you need to do to calculate the standard deviation of the sample is to work out the average value.</p>



<p>To do this you simply add up all the values in your sample, and divide the answer by the number of values in the sample.</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><a href="http://toptipbio.com/wp-content/uploads/2021/09/Calculate-standard-deviation-calculate-the-average.jpg"><img decoding="async" width="434" height="500" src="http://toptipbio.com/wp-content/uploads/2021/09/Calculate-standard-deviation-calculate-the-average.jpg" alt="Calculate the standard deviation" class="wp-image-2869" srcset="https://toptipbio.com/wp-content/uploads/2021/09/Calculate-standard-deviation-calculate-the-average.jpg 434w, https://toptipbio.com/wp-content/uploads/2021/09/Calculate-standard-deviation-calculate-the-average-260x300.jpg 260w, https://toptipbio.com/wp-content/uploads/2021/09/Calculate-standard-deviation-calculate-the-average-365x420.jpg 365w" sizes="(max-width: 434px) 100vw, 434px" /></a></figure></div>



<p>In my example, adding up all the values comes to 226.8 kg.</p>



<p>Then, since I have 10 individual dogs in my sample, I will divide this by 10 to give me an average weight of 22.7 kg.</p>



<h3 class="wp-block-heading">Step 2: Calculate the difference between each value and the average</h3>



<p>Now we have the average weight, the next step is to work out how far away these individual values are from the average value.</p>



<p>So, let’s take the first dog, which weighed 20.4 kg.</p>



<p>To work out the difference, simply do 20.4 &#8211; 22.7.</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><a href="https://toptipbio.com/wp-content/uploads/2021/09/Calculate-standard-deviation-calculate-the-difference.jpg"><img decoding="async" width="888" height="500" src="https://toptipbio.com/wp-content/uploads/2021/09/Calculate-standard-deviation-calculate-the-difference.jpg" alt="Calculate the difference between each value and the average" class="wp-image-2871" srcset="https://toptipbio.com/wp-content/uploads/2021/09/Calculate-standard-deviation-calculate-the-difference.jpg 888w, https://toptipbio.com/wp-content/uploads/2021/09/Calculate-standard-deviation-calculate-the-difference-300x169.jpg 300w, https://toptipbio.com/wp-content/uploads/2021/09/Calculate-standard-deviation-calculate-the-difference-768x432.jpg 768w, https://toptipbio.com/wp-content/uploads/2021/09/Calculate-standard-deviation-calculate-the-difference-696x392.jpg 696w, https://toptipbio.com/wp-content/uploads/2021/09/Calculate-standard-deviation-calculate-the-difference-746x420.jpg 746w" sizes="(max-width: 888px) 100vw, 888px" /></a></figure></div>



<p>The answer is -2.3 kg.</p>



<p>For the next dog, the calculation will be 25.2 &#8211; 22.7, which comes to 2.5 kg.</p>



<p>And the process is then repeated for all values in the sample.</p>



<h3 class="wp-block-heading">Step 3: Square these values</h3>



<p>Once we have these values, the next step is to square each one.</p>



<p>So, for the first dog, this will be -2.3 kg squared.</p>



<p>This answer is 5.29 kg<sup>2</sup>.</p>



<p>The next dog will be 2.5 kg squared, which comes to 6.25 kg<sup>2</sup>.</p>



<p>And again, the process is repeated for all values.</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><a href="https://toptipbio.com/wp-content/uploads/2021/09/Calculate-standard-deviation-square-the-values.jpg"><img decoding="async" width="409" height="499" src="https://toptipbio.com/wp-content/uploads/2021/09/Calculate-standard-deviation-square-the-values.jpg" alt="Square the values" class="wp-image-2872" srcset="https://toptipbio.com/wp-content/uploads/2021/09/Calculate-standard-deviation-square-the-values.jpg 409w, https://toptipbio.com/wp-content/uploads/2021/09/Calculate-standard-deviation-square-the-values-246x300.jpg 246w, https://toptipbio.com/wp-content/uploads/2021/09/Calculate-standard-deviation-square-the-values-344x420.jpg 344w" sizes="(max-width: 409px) 100vw, 409px" /></a></figure></div>



<h3 class="wp-block-heading">Step 4: Add up these values</h3>



<p>The next step is rather simple, we need to add up all these squared values we just calculated.</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><a href="https://toptipbio.com/wp-content/uploads/2021/09/Add-up-squared-differences.jpg"><img decoding="async" width="326" height="500" src="https://toptipbio.com/wp-content/uploads/2021/09/Add-up-squared-differences.jpg" alt="Add up squared differences" class="wp-image-2873" srcset="https://toptipbio.com/wp-content/uploads/2021/09/Add-up-squared-differences.jpg 326w, https://toptipbio.com/wp-content/uploads/2021/09/Add-up-squared-differences-196x300.jpg 196w, https://toptipbio.com/wp-content/uploads/2021/09/Add-up-squared-differences-274x420.jpg 274w" sizes="(max-width: 326px) 100vw, 326px" /></a></figure></div>



<p>So, doing so for my example will give a value of 30.66 kg<sup>2</sup>.</p>



<h3 class="wp-block-heading">Step 5: Divide by n &#8211; 1</h3>



<p>The next step for calculating the standard deviation of a sample is to divide this value by what is known as n &#8211; 1.</p>



<p>In this case, n is the number of values in the sample, in other words, the number of dogs for my example.</p>



<p>Again, this is 10.</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><a href="https://toptipbio.com/wp-content/uploads/2021/09/Calculate-standard-deviation-divide-by-n-1.jpg"><img decoding="async" width="539" height="305" src="https://toptipbio.com/wp-content/uploads/2021/09/Calculate-standard-deviation-divide-by-n-1.jpg" alt="Divide by n-1" class="wp-image-2874" srcset="https://toptipbio.com/wp-content/uploads/2021/09/Calculate-standard-deviation-divide-by-n-1.jpg 539w, https://toptipbio.com/wp-content/uploads/2021/09/Calculate-standard-deviation-divide-by-n-1-300x170.jpg 300w" sizes="(max-width: 539px) 100vw, 539px" /></a></figure></div>



<p>So, 10 &#8211; 1 = 9.</p>



<p>This means I need to do 30.66/9.</p>



<p>Doing so gives a value of 3.4 kg<sup>2</sup>.</p>



<p>This value right here is known as the variance.</p>



<h3 class="wp-block-heading">Step 6: Square root the variance</h3>



<p>To go from the variance to the standard deviation, you simply take the square root of the variance value.</p>



<div class="wp-block-image"><figure class="aligncenter size-full"><a href="https://toptipbio.com/wp-content/uploads/2021/09/Calculate-standard-deviation-from-variance.jpg"><img decoding="async" width="998" height="99" src="https://toptipbio.com/wp-content/uploads/2021/09/Calculate-standard-deviation-from-variance.jpg" alt="Calculate standard deviation from variance" class="wp-image-2875" srcset="https://toptipbio.com/wp-content/uploads/2021/09/Calculate-standard-deviation-from-variance.jpg 998w, https://toptipbio.com/wp-content/uploads/2021/09/Calculate-standard-deviation-from-variance-300x30.jpg 300w, https://toptipbio.com/wp-content/uploads/2021/09/Calculate-standard-deviation-from-variance-768x76.jpg 768w, https://toptipbio.com/wp-content/uploads/2021/09/Calculate-standard-deviation-from-variance-696x69.jpg 696w" sizes="(max-width: 998px) 100vw, 998px" /></a></figure></div>



<p>So, for my example, this would be the square root of 3.4.</p>



<p>Doing so, gives a standard deviation of 1.8.</p>



<p>And since the standard deviation is expressed in the same units as the original measurements, I can say this is 1.8 kg.</p>



<p>So, for my sample, the average weight of the female bulldogs was 22.7 kg, with a standard deviation of 1.8 kg.</p>



<p>Usually, this is written as the mean value ± the standard deviation; in my example this would be 22.7 ± 1.8 kg.</p>



<h2 class="wp-block-heading">Standard deviation formula</h2>



<p>If you’re wondering what the complete equation is to calculate the standard deviation, as described above, then the below image shows the standard deviation formula for a sample and a population.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><a href="https://toptipbio.com/wp-content/uploads/2021/09/Standard-deviation-formula.jpg"><img decoding="async" width="1024" height="395" src="https://toptipbio.com/wp-content/uploads/2021/09/Standard-deviation-formula-1024x395.jpg" alt="" class="wp-image-2877" srcset="https://toptipbio.com/wp-content/uploads/2021/09/Standard-deviation-formula-1024x395.jpg 1024w, https://toptipbio.com/wp-content/uploads/2021/09/Standard-deviation-formula-300x116.jpg 300w, https://toptipbio.com/wp-content/uploads/2021/09/Standard-deviation-formula-768x296.jpg 768w, https://toptipbio.com/wp-content/uploads/2021/09/Standard-deviation-formula-696x268.jpg 696w, https://toptipbio.com/wp-content/uploads/2021/09/Standard-deviation-formula-1068x412.jpg 1068w, https://toptipbio.com/wp-content/uploads/2021/09/Standard-deviation-formula-1089x420.jpg 1089w, https://toptipbio.com/wp-content/uploads/2021/09/Standard-deviation-formula.jpg 1297w" sizes="(max-width: 1024px) 100vw, 1024px" /></a></figure></div>



<p>You&#8217;ll notice a slight difference between the two formulae; specifically, this is the denominator.</p>



<p>The standard deviation for a sample has n &#8211; 1, whereas the population formula has just N.</p>



<p>The n &#8211; 1 part in the sample calculation is known as Bessel’s correction.</p>



<p>It is simply used to correct for bias during the calculation, since the sample is just a randomly selected number of subjects from the overall population. When calculating the population standard deviation, no correction is required.</p>



<p>This is just something to keep in mind; however, most of the time, you will probably be only interested in calculating the standard deviation of the sample.</p>



<h2 class="wp-block-heading">How to calculate the standard deviation: Final words</h2>



<p>As you can see, when you break down the standard deviation formula, it&#8217;s actually quite straight forward!</p>



<p>You should now understand how to calculate the standard deviation of a sample and a population by hand.</p>



<p>Luckily, most statistical analysis software, including <a href="https://toptipbio.com/mean-sd-se-excel/">Microsoft Excel</a>, has a function to do this for you. </p>
<p>The post <a href="https://toptipbio.com/calculate-standard-deviation/">How To Calculate The Standard Deviation (Clearly Explained!)</a> appeared first on <a href="https://toptipbio.com">Top Tip Bio</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://toptipbio.com/calculate-standard-deviation/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Calculate A Weighted Average In Microsoft Excel</title>
		<link>https://toptipbio.com/weighted-average-excel/</link>
					<comments>https://toptipbio.com/weighted-average-excel/#respond</comments>
		
		<dc:creator><![CDATA[Steven Bradburn, PhD]]></dc:creator>
		<pubDate>Thu, 29 Jul 2021 07:28:21 +0000</pubDate>
				<category><![CDATA[Excel]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<guid isPermaLink="false">https://toptipbio.com/?p=2852</guid>

					<description><![CDATA[<p>In this step-by-step tutorial, I&#8217;m going to show you how to calculate a weighted average in Microsoft Excel. Specifically, I will demonstrate calculating a weighted average with percentages. What is a weighted average? The standard arithmetic average is the sum of the data values, divided by the number of data values in the dataset. In [&#8230;]</p>
<p>The post <a href="https://toptipbio.com/weighted-average-excel/">How To Calculate A Weighted Average In Microsoft Excel</a> appeared first on <a href="https://toptipbio.com">Top Tip Bio</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>In this step-by-step tutorial, I&#8217;m going to show you how to calculate a weighted average in Microsoft Excel. Specifically, I will demonstrate calculating a weighted average with percentages.</p>



<h2 class="wp-block-heading">What is a weighted average?</h2>



<p>The standard arithmetic average is the sum of the data values, divided by the number of data values in the dataset. In this calculation, each data value is treated equally.</p>



<p>On the other hand, the weighted average is the sum of each data value multiplied by their weight, divided by the sum of the weights. In this calculation, data values with higher weights have more influence over the final average, compared with values with lower weights.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><a href="https://toptipbio.com/wp-content/uploads/2021/07/Weighted-average-formula.jpg"><img decoding="async" width="1024" height="118" src="https://toptipbio.com/wp-content/uploads/2021/07/Weighted-average-formula-1024x118.jpg" alt="Weighted average formula" class="wp-image-2857" srcset="https://toptipbio.com/wp-content/uploads/2021/07/Weighted-average-formula-1024x118.jpg 1024w, https://toptipbio.com/wp-content/uploads/2021/07/Weighted-average-formula-300x35.jpg 300w, https://toptipbio.com/wp-content/uploads/2021/07/Weighted-average-formula-768x89.jpg 768w, https://toptipbio.com/wp-content/uploads/2021/07/Weighted-average-formula-1536x178.jpg 1536w, https://toptipbio.com/wp-content/uploads/2021/07/Weighted-average-formula-696x80.jpg 696w, https://toptipbio.com/wp-content/uploads/2021/07/Weighted-average-formula-1068x124.jpg 1068w, https://toptipbio.com/wp-content/uploads/2021/07/Weighted-average-formula.jpg 1816w" sizes="(max-width: 1024px) 100vw, 1024px" /></a></figure></div>



<h2 class="wp-block-heading">Example data</h2>



<p>For this tutorial, let’s say I’m a teacher at a school. In my class, each student if given marks out of 100 for 5 different tests:</p>



<ol><li>Coursework assignment 1</li><li>Coursework assignment 2</li><li>Group presentation</li><li>Exam</li><li>Laboratory practical</li></ol>



<p>The scores displayed in this example are just for one student. So, this particular student scored 76 out of 100, or 76% on the exam.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><a href="https://toptipbio.com/wp-content/uploads/2021/07/Weighted-average-in-Excel-example-data.jpg"><img decoding="async" width="1024" height="349" src="https://toptipbio.com/wp-content/uploads/2021/07/Weighted-average-in-Excel-example-data-1024x349.jpg" alt="Weighted average in Excel example data" class="wp-image-2853" srcset="https://toptipbio.com/wp-content/uploads/2021/07/Weighted-average-in-Excel-example-data-1024x349.jpg 1024w, https://toptipbio.com/wp-content/uploads/2021/07/Weighted-average-in-Excel-example-data-300x102.jpg 300w, https://toptipbio.com/wp-content/uploads/2021/07/Weighted-average-in-Excel-example-data-768x262.jpg 768w, https://toptipbio.com/wp-content/uploads/2021/07/Weighted-average-in-Excel-example-data-696x237.jpg 696w, https://toptipbio.com/wp-content/uploads/2021/07/Weighted-average-in-Excel-example-data-1068x364.jpg 1068w, https://toptipbio.com/wp-content/uploads/2021/07/Weighted-average-in-Excel-example-data.jpg 1083w" sizes="(max-width: 1024px) 100vw, 1024px" /></a></figure></div>



<p>Each test is given a different weight. Specifically, each coursework assignment are given weights of 15%, the group presentation 10%, the exam 40% and the laboratory practical 20%.</p>



<h2 class="wp-block-heading">How to calculate a weighted average in Excel</h2>



<p>I’ll now show you two methods to calculate the weighted average in Excel. The first method is slightly long, but I will show you as it helps to understand the formulas involved. The second method uses the SUMPRODUCT function to quickly calculate the weighted average.</p>



<h3 class="wp-block-heading">Method 1: Manually calculating the weighted average</h3>



<h4 class="wp-block-heading">Step 1: Multiply each score by the weight</h4>



<p>To calculate the weighted average, you firstly have to multiple each score by its weight.</p>



<p>For example, for the coursework assignment 1, I will multiply 56 by 15. This is then repeated for all the tests. </p>



<p>The image below shows the formulas used for my example.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><a href="https://toptipbio.com/wp-content/uploads/2021/07/Weighted-average-in-Excel-example-data-step-1.jpg"><img decoding="async" width="1024" height="297" src="https://toptipbio.com/wp-content/uploads/2021/07/Weighted-average-in-Excel-example-data-step-1-1024x297.jpg" alt="Weighted average in Excel example data step 1" class="wp-image-2855" srcset="https://toptipbio.com/wp-content/uploads/2021/07/Weighted-average-in-Excel-example-data-step-1-1024x297.jpg 1024w, https://toptipbio.com/wp-content/uploads/2021/07/Weighted-average-in-Excel-example-data-step-1-300x87.jpg 300w, https://toptipbio.com/wp-content/uploads/2021/07/Weighted-average-in-Excel-example-data-step-1-768x223.jpg 768w, https://toptipbio.com/wp-content/uploads/2021/07/Weighted-average-in-Excel-example-data-step-1-696x202.jpg 696w, https://toptipbio.com/wp-content/uploads/2021/07/Weighted-average-in-Excel-example-data-step-1-1068x310.jpg 1068w, https://toptipbio.com/wp-content/uploads/2021/07/Weighted-average-in-Excel-example-data-step-1.jpg 1264w" sizes="(max-width: 1024px) 100vw, 1024px" /></a></figure></div>



<h4 class="wp-block-heading">Step 2: Add up all the values from step 1</h4>



<p>Next, simply add up all the values calculated from step 1.</p>



<p>You can easily do this by using Excel&#8217;s SUM function.</p>



<pre class="wp-block-preformatted">=SUM(number1, [number2], ...)</pre>



<p>Remember to add in the desired cell range within the brackets.</p>



<p>So, for my example, the formula will be =SUM(D2:D6). Doing so gives a value of 6805.</p>



<h4 class="wp-block-heading">Step 3: Add up the weights</h4>



<p>Again, by using the SUM function, add up all the weights.</p>



<p>For my example, I will use the formula =SUM(C2:C6).</p>



<p>I get a value of 100.</p>



<h4 class="wp-block-heading">Step 4: Divide the answer from step 2 by the answer from step 3</h4>



<p>Finally, to calculate the weighted average, you need to divide the value from step 2 by the sum of all weights (answer from step 3).</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><a href="https://toptipbio.com/wp-content/uploads/2021/07/Weighted-average-in-Excel-example-data-step-4.jpg"><img decoding="async" width="1024" height="377" src="https://toptipbio.com/wp-content/uploads/2021/07/Weighted-average-in-Excel-example-data-step-4-1024x377.jpg" alt="Weighted average in Excel example data step 4" class="wp-image-2856" srcset="https://toptipbio.com/wp-content/uploads/2021/07/Weighted-average-in-Excel-example-data-step-4-1024x377.jpg 1024w, https://toptipbio.com/wp-content/uploads/2021/07/Weighted-average-in-Excel-example-data-step-4-300x111.jpg 300w, https://toptipbio.com/wp-content/uploads/2021/07/Weighted-average-in-Excel-example-data-step-4-768x283.jpg 768w, https://toptipbio.com/wp-content/uploads/2021/07/Weighted-average-in-Excel-example-data-step-4-696x257.jpg 696w, https://toptipbio.com/wp-content/uploads/2021/07/Weighted-average-in-Excel-example-data-step-4-1068x394.jpg 1068w, https://toptipbio.com/wp-content/uploads/2021/07/Weighted-average-in-Excel-example-data-step-4-1140x420.jpg 1140w, https://toptipbio.com/wp-content/uploads/2021/07/Weighted-average-in-Excel-example-data-step-4.jpg 1259w" sizes="(max-width: 1024px) 100vw, 1024px" /></a></figure></div>



<p>Doing this for my example means I divide 6805 by 100, which comes to 68.05.</p>



<p>Since my score is out of 100, I can say that this student had a weighted average of 68.05%.</p>



<h3 class="wp-block-heading">Method 2: Use the SUMPRODUCT to calculate the weighted average</h3>



<p>This first method I have just demonstrated is a slightly long-winded approach. I purposely did this to demonstrate how to calculate the weighted average manually.</p>



<p>I’ll now show you how to do this quickly, by taking advantage of Excel’s SUMPRODUCT and SUM functions.</p>



<p>The SUMPRODUCT essentially performs steps 1 and 2 from the first method described above.</p>



<p>In a new cell, simply use the following formula.</p>



<pre class="wp-block-preformatted">=SUMPRODUCT(array1, [array2], [array3], ...)/SUM(number1, [number2], ...)</pre>



<ul><li>SUMPRODUCT &#8211; Within the brackets, replace array1 with the range of cells containing the score, and replace array2 with the range of cells containing the weights</li><li>SUM &#8211; Within the brackets, insert the range of cells containing the range of cells containing the weights</li></ul>



<p>For my example, the formula will be =SUMPRODUCT(B2:B6,C2:C6)/SUM(C2:C6).</p>



<h2 class="wp-block-heading">Weighted average in Excel: Final words</h2>



<p>Now you know how to calculate the weighted average by using Microsoft Excel.</p>



<p>The first method describes the step-by-step approach to calculating the weighted average.</p>



<p>The second method uses the SUMPRODUCT and SUM functions to calculate the weighted average in a single step.</p>



<p>Microsoft Excel version used: 365 ProPlus</p>
<p>The post <a href="https://toptipbio.com/weighted-average-excel/">How To Calculate A Weighted Average In Microsoft Excel</a> appeared first on <a href="https://toptipbio.com">Top Tip Bio</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://toptipbio.com/weighted-average-excel/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Perform Random Sampling In Microsoft Excel</title>
		<link>https://toptipbio.com/random-sampling-excel/</link>
					<comments>https://toptipbio.com/random-sampling-excel/#respond</comments>
		
		<dc:creator><![CDATA[Steven Bradburn, PhD]]></dc:creator>
		<pubDate>Mon, 19 Jul 2021 06:56:23 +0000</pubDate>
				<category><![CDATA[Excel]]></category>
		<guid isPermaLink="false">https://toptipbio.com/?p=2841</guid>

					<description><![CDATA[<p>In this tutorial, I will show you two completely different ways of performing random sampling in Microsoft Excel. What is random sampling? Random sampling is a selection technique used where you take a population and randomly select a wanted number subjects to make a smaller group known as a sample. During random sampling, each subject [&#8230;]</p>
<p>The post <a href="https://toptipbio.com/random-sampling-excel/">How To Perform Random Sampling In Microsoft Excel</a> appeared first on <a href="https://toptipbio.com">Top Tip Bio</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>In this tutorial, I will show you two completely different ways of performing random sampling in Microsoft Excel.</p>



<h2 class="wp-block-heading">What is random sampling?</h2>



<p>Random sampling is a selection technique used where you take a population and randomly select a wanted number subjects to make a smaller group known as a sample. </p>



<p>During random sampling, each subject has an equal chance of being selected in the sample.</p>



<h2 class="wp-block-heading">Random sampling in Excel: Method 1</h2>



<p>For the first method, I wil perform random sampling my using Excel&#8217;s Analysis ToolPak add-on. The Analysis ToolPak is an additonal set of options that can help you perform certain statistical functions in Excel easily.</p>



<h3 class="wp-block-heading">Step 1: Activate the Analysis ToolPak</h3>



<p>To ensure you have the Analysis ToolPak activated correctly, go to <em>File</em>&gt;<em>Options</em>.</p>



<p>Then, select <em>Add-ins</em>.</p>



<p>At the bottom, where it says manage, ensure you select <em>Excel add-ins</em> and click <em>Go</em>.</p>



<p>Ensure you have the <em>Analysis ToolPak</em> option ticked, and click the <em>OK</em> button.</p>



<p>Now, when you select the <em>Data</em> tab at the top, you should see a <em>Data Analysis </em>button appears.</p>



<h3 class="wp-block-heading">Step 2: Use the Analysis ToolPak to perform random sampling</h3>



<p>Now we’re ready to perform the sampling. To do this, select the <em>Data Analysis</em> button.</p>



<p>Then, select <em>Sampling</em> from the list and click <em>OK</em>.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><a href="https://toptipbio.com/wp-content/uploads/2021/07/Sampling-Data-Analysis-ToolPal-Excel.jpg"><img decoding="async" width="431" height="207" src="https://toptipbio.com/wp-content/uploads/2021/07/Sampling-Data-Analysis-ToolPal-Excel.jpg" alt="Sampling Data Analysis ToolPal Excel" class="wp-image-2847" srcset="https://toptipbio.com/wp-content/uploads/2021/07/Sampling-Data-Analysis-ToolPal-Excel.jpg 431w, https://toptipbio.com/wp-content/uploads/2021/07/Sampling-Data-Analysis-ToolPal-Excel-300x144.jpg 300w" sizes="(max-width: 431px) 100vw, 431px" /></a></figure></div>



<p>For the <em>Input</em> options, do the following.</p>



<ul><li><strong>Input Range</strong> &#8211; Enter the cells containing the data you are interested in from your population. Note, the cells entered here can only contain numeric values</li><li><strong>Labels</strong> &#8211; If you have highlighted a header in your Input Range selection, make sure you tick the labels option</li></ul>



<p>Moving onto the <em>Sampling Method</em>, you want to select <em>Random</em>.</p>



<p>The <em>Number of Samples</em> is simply the number of randomly selected values from your population. For example, entering 10 will return 10 random values.</p>



<p>Lastly, there are three options to pick from to decide where you want the random sample to be entered.</p>



<ul><li><strong>Output Range</strong> &#8211; This will put the sample in the current sheet. You can use the box to specify a specific cell</li><li><strong>New Worksheet Ply</strong> &#8211; This will put the sample in a separate worksheet. Use the box to give the new worksheet a name</li><li><strong>New Workbook</strong> &#8211; The last option will put the sample in a new Excel file</li></ul>



<p>Here&#8217;s what my Sampling window looks like for my example.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><a href="https://toptipbio.com/wp-content/uploads/2021/07/Sampling-window-Excel.jpg"><img decoding="async" width="437" height="336" src="https://toptipbio.com/wp-content/uploads/2021/07/Sampling-window-Excel.jpg" alt="Sampling window Excel" class="wp-image-2846" srcset="https://toptipbio.com/wp-content/uploads/2021/07/Sampling-window-Excel.jpg 437w, https://toptipbio.com/wp-content/uploads/2021/07/Sampling-window-Excel-300x231.jpg 300w" sizes="(max-width: 437px) 100vw, 437px" /></a></figure></div>



<p>Finally, click <em>OK</em> to run the sampling.</p>



<p>You should now see the randomly select values from the original population.</p>



<h2 class="wp-block-heading">Random sampling in Excel: Method 2</h2>



<p>The downside to using Method 1 is that you can only perform random sampling on cells containing numeric values. For Method 2, I will show you how to use the RAND function, which will enable you to randomly select different rows Therefore, you can have a mixture of cells containing numbers as well as characters in the random sample.</p>



<h3 class="wp-block-heading">Step 1: Use the RAND function to generate random numbers</h3>



<p>The RAND function creates a random number between 0 and 1, and you’ll see why this is useful for random sampling now.</p>



<p>In an empty column, enter the RAND function in each cell that is adjacent to your population data.</p>



<pre class="wp-block-preformatted">=RAND()</pre>



<p>Notice that nothing is entered in the brackets.</p>



<p>A random number will now be seen. Note, everytime you perform something in Excel, this number will be recalculated. This isn’t a big issue, and I’ll show you how to manage this shortly.</p>



<p>Next, repeat this process for all cells that are adjacent to your population data.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><a href="https://toptipbio.com/wp-content/uploads/2021/07/RAND-function-Excel-example.jpg"><img decoding="async" width="407" height="361" src="https://toptipbio.com/wp-content/uploads/2021/07/RAND-function-Excel-example.jpg" alt="RAND function Excel example" class="wp-image-2848" srcset="https://toptipbio.com/wp-content/uploads/2021/07/RAND-function-Excel-example.jpg 407w, https://toptipbio.com/wp-content/uploads/2021/07/RAND-function-Excel-example-300x266.jpg 300w" sizes="(max-width: 407px) 100vw, 407px" /></a></figure></div>



<p>To ensure the random values do not keep on updating everytime you do something in the sheet, simply highlight all the random numbers and then copy them (<em>right-click</em>&gt;<em>Copy</em>).</p>



<p>Then, in the same cells, paste the values (<em>right-click</em>&gt;<em>Paste Special</em>&gt;<em>Paste Values</em>).</p>



<p>Now, the random function has been removed from the cells, leaving just the random numbers. This means the values will no longer update when ou make changes to our sheet.</p>



<h3 class="wp-block-heading">Step 2: Sort the cells according to the random numbers</h3>



<p>Next, highlight all the columns containing the random numbers and your population data.</p>



<p>Then, go to <em>Home</em>&gt;<em>Sort&amp;Filter</em>&gt;<em>Custom Sort</em>.</p>



<p>In the new window, choose to sort by the column containing the random numbers, and order these smallest to largest, then click <em>OK</em>.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><a href="https://toptipbio.com/wp-content/uploads/2021/07/Excel-sort-and-filter.jpg"><img decoding="async" width="586" height="268" src="https://toptipbio.com/wp-content/uploads/2021/07/Excel-sort-and-filter.jpg" alt="Excel sort and filter" class="wp-image-2849" srcset="https://toptipbio.com/wp-content/uploads/2021/07/Excel-sort-and-filter.jpg 586w, https://toptipbio.com/wp-content/uploads/2021/07/Excel-sort-and-filter-300x137.jpg 300w" sizes="(max-width: 586px) 100vw, 586px" /></a></figure></div>



<p>Now, the data has been sorted according to the random numbers.</p>



<h3 class="wp-block-heading">Step 3: Pick out the random sample</h3>



<p>Decide on the number of values you want in your random sample. Then, take that number of values from the top of the sheet.</p>



<p>For example, I want to create a sample containing 10 values. I can simply highlight the first 10 rows in my population data copy and paste them to a new part in this sheet, a new sheet or a new Excel file.</p>



<h2 class="wp-block-heading">Random sampling in Excel: Final words</h2>



<p>You should now know two different ways of performing random sampling in Excel.</p>



<p>The first method uses the Analysis ToolPak to pick out a desired number of randomly selected cells containing numbers.</p>



<p>The second method takes advantage of the RAND function to randomise the subjects in the population, which can then be copied over to another sheet, for example.</p>



<p>Microsoft Excel version used: 365 ProPlus</p>
<p>The post <a href="https://toptipbio.com/random-sampling-excel/">How To Perform Random Sampling In Microsoft Excel</a> appeared first on <a href="https://toptipbio.com">Top Tip Bio</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://toptipbio.com/random-sampling-excel/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Perform A Chi-Square Test Of Independence In Excel</title>
		<link>https://toptipbio.com/chi-square-test-independence-excel/</link>
					<comments>https://toptipbio.com/chi-square-test-independence-excel/#respond</comments>
		
		<dc:creator><![CDATA[Steven Bradburn, PhD]]></dc:creator>
		<pubDate>Mon, 12 Jul 2021 07:26:02 +0000</pubDate>
				<category><![CDATA[Excel]]></category>
		<guid isPermaLink="false">https://toptipbio.com/?p=2830</guid>

					<description><![CDATA[<p>In this tutorial, I will show you step-by-step how to perform a chi-square test of independence by using Microsoft Excel. Example data Let’s say I have a sample of 200 people that visited my local pub. From these 200 participants, half were male and half were female. I asked each participant if they were a [&#8230;]</p>
<p>The post <a href="https://toptipbio.com/chi-square-test-independence-excel/">How To Perform A Chi-Square Test Of Independence In Excel</a> appeared first on <a href="https://toptipbio.com">Top Tip Bio</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>In this tutorial, I will show you step-by-step how to perform a chi-square test of independence by using Microsoft Excel.</p>



<h2 class="wp-block-heading">Example data</h2>



<p>Let’s say I have a sample of 200 people that visited my local pub. From these 200 participants, half were male and half were female.</p>



<p>I asked each participant if they were a smoker or non-smoker. Here are my results:</p>



<figure class="wp-block-table is-style-stripes"><table class="has-subtle-pale-green-background-color has-background"><thead><tr><th></th><th class="has-text-align-center" data-align="center">Smokers</th><th class="has-text-align-center" data-align="center">Non-smokers</th></tr></thead><tbody><tr><td><strong>Male</strong></td><td class="has-text-align-center" data-align="center">29</td><td class="has-text-align-center" data-align="center">71</td></tr><tr><td><strong>Female</strong></td><td class="has-text-align-center" data-align="center">16</td><td class="has-text-align-center" data-align="center">84</td></tr></tbody></table></figure>



<p>So, there were 29 males that smoked, and 71 that didn’t. For the females, there were 16 smokers and 84 non-smokers. Since these are the actual values from my experiment, they are known as the <em>observed</em> values.</p>



<p>What I want to do is to perform a chi-square test of independence to see if there is an association between gender and smoking status in my sample.</p>



<h2 class="wp-block-heading">How to perform a chi-square test of independence in Excel</h2>



<p>In the first part of this tutorial, I will show you how to manually perform the chi-square test in Excel, including calculating the chi-square statistic and p-value.</p>



<p>In the latter part of the tutorial, I will describe how to use an Excel function (CHISQ.TEST) to calculate the p-value quickly from the observed and expected values.</p>



<h3 class="wp-block-heading">1. Calculate the row, column and overall totals</h3>



<p>The first step to performing a chi-square test is to add up each of the rows and columns in the contingency table by using the SUM function.</p>



<pre class="wp-block-preformatted">=SUM(number1, [number2], ...)</pre>



<p>So, to calculate the total in the smokers column, I will use the following formula in a new cell.</p>



<pre class="wp-block-preformatted">=SUM(B3:B4)</pre>



<p>So, in total, there were 45 smokers.</p>



<p>I now need to repeat this process for the next column, as well as the rows in my table. Additionally, you need to calculate the overall total from your table.</p>



<p>The image below shows all of the formulas used for my example.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><a href="https://toptipbio.com/wp-content/uploads/2021/07/Chi-square-test-of-independence-in-Excel-calculate-totals.jpg"><img decoding="async" width="699" height="245" src="https://toptipbio.com/wp-content/uploads/2021/07/Chi-square-test-of-independence-in-Excel-calculate-totals.jpg" alt="Chi-square test of independence in Excel calculate totals" class="wp-image-2835" srcset="https://toptipbio.com/wp-content/uploads/2021/07/Chi-square-test-of-independence-in-Excel-calculate-totals.jpg 699w, https://toptipbio.com/wp-content/uploads/2021/07/Chi-square-test-of-independence-in-Excel-calculate-totals-300x105.jpg 300w, https://toptipbio.com/wp-content/uploads/2021/07/Chi-square-test-of-independence-in-Excel-calculate-totals-696x245.jpg 696w" sizes="(max-width: 699px) 100vw, 699px" /></a></figure></div>



<h3 class="wp-block-heading">2. Calculate the expected values</h3>



<p>Moving on, you next need to work out the expected value for each entry in the table.</p>



<p>To work out the expected value, you must multiply each row total by each column total, and divide that answer by the overall total.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><a href="https://toptipbio.com/wp-content/uploads/2021/07/Chi-square-test-of-independence-in-Excel-expected-formula.jpg"><img decoding="async" width="1024" height="130" src="https://toptipbio.com/wp-content/uploads/2021/07/Chi-square-test-of-independence-in-Excel-expected-formula-1024x130.jpg" alt="Chi-square test of independence in Excel expected formula" class="wp-image-2836" srcset="https://toptipbio.com/wp-content/uploads/2021/07/Chi-square-test-of-independence-in-Excel-expected-formula-1024x130.jpg 1024w, https://toptipbio.com/wp-content/uploads/2021/07/Chi-square-test-of-independence-in-Excel-expected-formula-300x38.jpg 300w, https://toptipbio.com/wp-content/uploads/2021/07/Chi-square-test-of-independence-in-Excel-expected-formula-768x98.jpg 768w, https://toptipbio.com/wp-content/uploads/2021/07/Chi-square-test-of-independence-in-Excel-expected-formula-696x89.jpg 696w, https://toptipbio.com/wp-content/uploads/2021/07/Chi-square-test-of-independence-in-Excel-expected-formula-1068x136.jpg 1068w, https://toptipbio.com/wp-content/uploads/2021/07/Chi-square-test-of-independence-in-Excel-expected-formula.jpg 1491w" sizes="(max-width: 1024px) 100vw, 1024px" /></a></figure></div>



<p>To work out the expected number of male smokers in my example, I will use the following formula.</p>



<pre class="wp-block-preformatted">=(D3*B5)/D5</pre>



<p>So, in my example, the expected number of male smokers was 22.5.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><a href="https://toptipbio.com/wp-content/uploads/2021/07/Chi-square-test-of-independence-in-Excel-calculate-expected-values.jpg"><img decoding="async" width="1024" height="223" src="https://toptipbio.com/wp-content/uploads/2021/07/Chi-square-test-of-independence-in-Excel-calculate-expected-values-1024x223.jpg" alt="Chi-square test of independence in Excel calculate expected values" class="wp-image-2837" srcset="https://toptipbio.com/wp-content/uploads/2021/07/Chi-square-test-of-independence-in-Excel-calculate-expected-values-1024x223.jpg 1024w, https://toptipbio.com/wp-content/uploads/2021/07/Chi-square-test-of-independence-in-Excel-calculate-expected-values-300x65.jpg 300w, https://toptipbio.com/wp-content/uploads/2021/07/Chi-square-test-of-independence-in-Excel-calculate-expected-values-768x167.jpg 768w, https://toptipbio.com/wp-content/uploads/2021/07/Chi-square-test-of-independence-in-Excel-calculate-expected-values-696x152.jpg 696w, https://toptipbio.com/wp-content/uploads/2021/07/Chi-square-test-of-independence-in-Excel-calculate-expected-values-1068x233.jpg 1068w, https://toptipbio.com/wp-content/uploads/2021/07/Chi-square-test-of-independence-in-Excel-calculate-expected-values.jpg 1143w" sizes="(max-width: 1024px) 100vw, 1024px" /></a></figure></div>



<p>Again, this process needs to be repeated for all entries in the contingency table.</p>



<h3 class="wp-block-heading">3. Calculate the difference between the observed and expected values</h3>



<p>The next step is to subtract each of the expected from the observed values, square it, then divide that answer by the expected value.</p>



<p>So, for my example, I will use the following formula for the male smokers.</p>



<pre class="wp-block-preformatted">=(B3-G3)^2/G3</pre>



<p>This process needs to be repeated for the rest of the entries in the table.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><a href="https://toptipbio.com/wp-content/uploads/2021/07/Chi-square-test-of-independence-in-Excel-difference-between-observed-and-expected.jpg"><img decoding="async" width="1024" height="152" src="https://toptipbio.com/wp-content/uploads/2021/07/Chi-square-test-of-independence-in-Excel-difference-between-observed-and-expected-1024x152.jpg" alt="Chi-square test of independence in Excel difference between observed and expected" class="wp-image-2838" srcset="https://toptipbio.com/wp-content/uploads/2021/07/Chi-square-test-of-independence-in-Excel-difference-between-observed-and-expected-1024x152.jpg 1024w, https://toptipbio.com/wp-content/uploads/2021/07/Chi-square-test-of-independence-in-Excel-difference-between-observed-and-expected-300x44.jpg 300w, https://toptipbio.com/wp-content/uploads/2021/07/Chi-square-test-of-independence-in-Excel-difference-between-observed-and-expected-768x114.jpg 768w, https://toptipbio.com/wp-content/uploads/2021/07/Chi-square-test-of-independence-in-Excel-difference-between-observed-and-expected-1536x228.jpg 1536w, https://toptipbio.com/wp-content/uploads/2021/07/Chi-square-test-of-independence-in-Excel-difference-between-observed-and-expected-696x103.jpg 696w, https://toptipbio.com/wp-content/uploads/2021/07/Chi-square-test-of-independence-in-Excel-difference-between-observed-and-expected-1068x158.jpg 1068w, https://toptipbio.com/wp-content/uploads/2021/07/Chi-square-test-of-independence-in-Excel-difference-between-observed-and-expected.jpg 1666w" sizes="(max-width: 1024px) 100vw, 1024px" /></a></figure></div>



<h3 class="wp-block-heading">4. Calculate the chi-square statistic</h3>



<p>Next, we need to calculate the chi-square statistic.</p>



<p>To do this, simply add up all the values that were recently calculated in step 3.</p>



<p>For my example, I will use the following formula.</p>



<pre class="wp-block-preformatted">=SUM(K3:L4)</pre>



<p>So, the chi-square statistic for my example was 4.85, when rounded.</p>



<h3 class="wp-block-heading">5. Calculate the degrees of freedom</h3>



<p>Next, we need to calculate the degrees of freedom.</p>



<p>Here, the degrees of freedom is calculated by firstly subtracting 1 from the number of rows in the test, and multiply this answer by the number of columns in the test subtract 1.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><a href="https://toptipbio.com/wp-content/uploads/2021/07/Chi-square-test-of-independence-in-Excel-degrees-of-freedom-formula-scaled.jpg"><img decoding="async" width="1024" height="36" src="https://toptipbio.com/wp-content/uploads/2021/07/Chi-square-test-of-independence-in-Excel-degrees-of-freedom-formula-1024x36.jpg" alt="Chi-square test of independence in Excel degrees of freedom formula" class="wp-image-2839" srcset="https://toptipbio.com/wp-content/uploads/2021/07/Chi-square-test-of-independence-in-Excel-degrees-of-freedom-formula-1024x36.jpg 1024w, https://toptipbio.com/wp-content/uploads/2021/07/Chi-square-test-of-independence-in-Excel-degrees-of-freedom-formula-300x11.jpg 300w, https://toptipbio.com/wp-content/uploads/2021/07/Chi-square-test-of-independence-in-Excel-degrees-of-freedom-formula-768x27.jpg 768w, https://toptipbio.com/wp-content/uploads/2021/07/Chi-square-test-of-independence-in-Excel-degrees-of-freedom-formula-1536x55.jpg 1536w, https://toptipbio.com/wp-content/uploads/2021/07/Chi-square-test-of-independence-in-Excel-degrees-of-freedom-formula-2048x73.jpg 2048w, https://toptipbio.com/wp-content/uploads/2021/07/Chi-square-test-of-independence-in-Excel-degrees-of-freedom-formula-696x25.jpg 696w, https://toptipbio.com/wp-content/uploads/2021/07/Chi-square-test-of-independence-in-Excel-degrees-of-freedom-formula-1068x38.jpg 1068w" sizes="(max-width: 1024px) 100vw, 1024px" /></a></figure></div>



<p>So, for my example, I have 2 rows and 2 columns. This means to work out my degrees of freedom, I use the following calculation (you can just perform this manually, as it&#8217;s very simple math).</p>



<pre class="wp-block-preformatted">(2-1) x (2-1)</pre>



<p>Which gives an answer of 1. So, this example has a degrees of freedom of 1.</p>



<h3 class="wp-block-heading">6. Calculate the p-value</h3>



<p>The final step in performing the chi-square test is to take the chi-square statistic and degrees of freedom values, and work out the p-value.</p>



<p>To do this in Excel, you can use the CHISQ.DIST.RT function.</p>



<pre class="wp-block-preformatted">=CHISQ.DIST.RT(x, deg_freedom)</pre>



<ul><li><strong>x</strong> &#8211; The cell containing the chi-square value</li><li><strong>deg_freedom</strong> &#8211; The cell containing the degrees of freedom value</li></ul>



<p>In my example, I get a p-value of 0.028, when rounded.</p>



<h3 class="wp-block-heading">7. [Optional] Use the CHISQ.TEST function to calculate the p-value</h3>



<p>There is a function you can use to calculate the chi-square p-value by just using the observed and expected table values.</p>



<p>To do this, use the CHISQ.TEST function.</p>



<pre class="wp-block-preformatted">=CHISQ.TEST(actual_range, expected_range)</pre>



<ul><li><strong>Actual range</strong> &#8211; The cells containing the observed values</li><li><strong>Expected range</strong> &#8211; The cells containing the expected values</li></ul>



<h2 class="wp-block-heading">Interpreting the results</h2>



<p>To interpret the p-value, you need to state the my two hypotheses (null and alternative).</p>



<p>Here are my hypotheses for my example.</p>



<ul><li><strong>Null hypothesis</strong> &#8211; There is no association between gender and smoking status</li><li><strong>Alternative hypothesis</strong> &#8211; There is an association between gender and smoking status</li></ul>



<p>If my alpha level, or significance threshold, was set at 0.05, this would mean I will fail to reject the null hypothesis if p>0.05. On the other hand, if p&lt;0.05, I will reject the null hypothesis, and accept the alternative hypothesis.</p>



<p>In this case, my p-value was 0.028. Since this was less than 0.05, I will reject the null hypothesis, and accept the alternative hypothesis.</p>



<p>Therefore, there does seem to be an association between gender and smoking status.</p>



<h2 class="wp-block-heading">How to perform a chi-square test of independence in Excel: Final words</h2>



<p>After following this guide, you should now know how to perform a chi-square test of independence by using Microsoft Excel.</p>



<p>The steps described will calculate the chi-square statistic, degrees of freedom and the p-value. Alternatively, for a quick and easy way of generating a p-value, simply use the CHISQ.TEST function.</p>



<p>Microsoft Excel version used: 365 ProPlus</p>
<p>The post <a href="https://toptipbio.com/chi-square-test-independence-excel/">How To Perform A Chi-Square Test Of Independence In Excel</a> appeared first on <a href="https://toptipbio.com">Top Tip Bio</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://toptipbio.com/chi-square-test-independence-excel/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Calculate Variance In Microsoft Excel</title>
		<link>https://toptipbio.com/variance-excel/</link>
					<comments>https://toptipbio.com/variance-excel/#respond</comments>
		
		<dc:creator><![CDATA[Steven Bradburn, PhD]]></dc:creator>
		<pubDate>Mon, 21 Jun 2021 07:02:24 +0000</pubDate>
				<category><![CDATA[Excel]]></category>
		<guid isPermaLink="false">https://toptipbio.com/?p=2820</guid>

					<description><![CDATA[<p>In this tutorial, I will demonstrate how to calculate the variance in Microsoft Excel. Specifically, I will show you how to calculate the variance of a sample, as well as a population. What is variance? To begin with, let me quickly explain what the variance is. Variance is a measure of variability. Simply, it is [&#8230;]</p>
<p>The post <a href="https://toptipbio.com/variance-excel/">How To Calculate Variance In Microsoft Excel</a> appeared first on <a href="https://toptipbio.com">Top Tip Bio</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>In this tutorial, I will demonstrate how to calculate the variance in Microsoft Excel. Specifically, I will show you how to calculate the variance of a sample, as well as a population.</p>



<h2 class="wp-block-heading">What is variance?</h2>



<p>To begin with, let me quickly explain what the variance is.</p>



<p>Variance is a measure of variability.</p>



<p>Simply, it is calculated by taking the average of squared deviations from the mean. The resulting value, known as variance, tells you the degree of spread in your data.</p>



<p>The larger the variance value, the more spread the data is in relation to the mean.</p>



<h2 class="wp-block-heading">How to calculate variance in Excel</h2>



<p>Calculating the variance in Excel will differ slightly depending on whether you want to calculate the variance for a sample or a population.</p>



<h3 class="wp-block-heading">Calculating variance of a sample</h3>



<p>I’ll start by calculating the variance for a sample, which is probably what most people are interested in.</p>



<p>In my Excel sheet, I have some example data.</p>



<p>Let’s say I am interested in a rare fish called Fish X. What I’ve done is take a sample of 15 Fish X fishes and measured their length in centimetres.</p>



<p>To calculate the variance of a sample in Excel, use the VAR.S function.</p>



<pre class="wp-block-preformatted">=VAR.S(number1, [number2], ...)</pre>



<p>Within the parenthesis, add in the cells containing your data.</p>



<p>Here is what my formula looks like for the Fish X example.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><a href="https://toptipbio.com/wp-content/uploads/2021/06/Calculate-sample-variance-in-Excel.jpg"><img decoding="async" width="703" height="258" src="https://toptipbio.com/wp-content/uploads/2021/06/Calculate-sample-variance-in-Excel.jpg" alt="Calculate sample variance in Excel" class="wp-image-2825" srcset="https://toptipbio.com/wp-content/uploads/2021/06/Calculate-sample-variance-in-Excel.jpg 703w, https://toptipbio.com/wp-content/uploads/2021/06/Calculate-sample-variance-in-Excel-300x110.jpg 300w, https://toptipbio.com/wp-content/uploads/2021/06/Calculate-sample-variance-in-Excel-696x255.jpg 696w" sizes="(max-width: 703px) 100vw, 703px" /></a></figure></div>



<p>The variance for my sample is 389.924.</p>



<p>The units for the variance are the same as the original measurement squared; so my variance is in fact 389.924 cm<sup>2</sup>.</p>



<h3 class="wp-block-heading">[Optional] Calculating the standard deviation from the variance in Excel</h3>



<p>If you’re wondering, you can calculate the standard deviation from the variance by simply square rooting the variance. You do this by using the SQRT function.</p>



<pre class="wp-block-preformatted">=SQRT(number)</pre>



<ul><li>number &#8211; Replace this with the cell containing the variance value</li></ul>



<div class="wp-block-image"><figure class="aligncenter size-large"><a href="https://toptipbio.com/wp-content/uploads/2021/06/Calculate-standard-deviation-from-sample-variance-in-Excel.jpg"><img decoding="async" width="703" height="253" src="https://toptipbio.com/wp-content/uploads/2021/06/Calculate-standard-deviation-from-sample-variance-in-Excel.jpg" alt="Calculate standard deviation from sample variance in Excel" class="wp-image-2826" srcset="https://toptipbio.com/wp-content/uploads/2021/06/Calculate-standard-deviation-from-sample-variance-in-Excel.jpg 703w, https://toptipbio.com/wp-content/uploads/2021/06/Calculate-standard-deviation-from-sample-variance-in-Excel-300x108.jpg 300w, https://toptipbio.com/wp-content/uploads/2021/06/Calculate-standard-deviation-from-sample-variance-in-Excel-696x250.jpg 696w" sizes="(max-width: 703px) 100vw, 703px" /></a></figure></div>



<p>The standard deviation comes out to be 19.7465.</p>



<p>The units for this will be the same as the original units for my data, so this would be centimetres.</p>



<h3 class="wp-block-heading">Calculating variance of a population</h3>



<p>I’ve got a different dataset now. This time, I have the data for all the Fish X fishes in the world; in total there are 100. So, what I have here is known as a population.</p>



<p>Calculating the variance of a population involves a slightly different function compared with the sample variance. This time, we will use the VAR.P function.</p>



<pre class="wp-block-preformatted">=VAR.P(number1, [number2], ...)</pre>



<p>Again, within the parenthesis, add in the range of cells containing your data.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><a href="https://toptipbio.com/wp-content/uploads/2021/06/Calculate-population-variance-in-Excel.jpg"><img decoding="async" width="905" height="439" src="https://toptipbio.com/wp-content/uploads/2021/06/Calculate-population-variance-in-Excel.jpg" alt="Calculate population variance in Excel" class="wp-image-2827" srcset="https://toptipbio.com/wp-content/uploads/2021/06/Calculate-population-variance-in-Excel.jpg 905w, https://toptipbio.com/wp-content/uploads/2021/06/Calculate-population-variance-in-Excel-300x146.jpg 300w, https://toptipbio.com/wp-content/uploads/2021/06/Calculate-population-variance-in-Excel-768x373.jpg 768w, https://toptipbio.com/wp-content/uploads/2021/06/Calculate-population-variance-in-Excel-696x338.jpg 696w, https://toptipbio.com/wp-content/uploads/2021/06/Calculate-population-variance-in-Excel-866x420.jpg 866w" sizes="(max-width: 905px) 100vw, 905px" /></a></figure></div>



<p>I get a result of 341.12.</p>



<p>Again, this will have the units cm<sup>2</sup>.</p>



<h2 class="wp-block-heading">How to calculate variance in Excel: Wrapping up</h2>



<p>Now you know how to calcuate the sample and population variance in Microsoft Excel.</p>



<p>To calculate the sample variance, use the VAR.S function. If you&#8217;re wanting to calculate the variance of a population, then use the VAR.P function instead.</p>



<p>Microsoft Excel version used: 365 ProPlus</p>
<p>The post <a href="https://toptipbio.com/variance-excel/">How To Calculate Variance In Microsoft Excel</a> appeared first on <a href="https://toptipbio.com">Top Tip Bio</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://toptipbio.com/variance-excel/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Create A Correlation Matrix In Microsoft Excel</title>
		<link>https://toptipbio.com/correlation-matrix-excel/</link>
					<comments>https://toptipbio.com/correlation-matrix-excel/#respond</comments>
		
		<dc:creator><![CDATA[Steven Bradburn, PhD]]></dc:creator>
		<pubDate>Thu, 17 Jun 2021 16:15:43 +0000</pubDate>
				<category><![CDATA[Excel]]></category>
		<guid isPermaLink="false">https://toptipbio.com/?p=2800</guid>

					<description><![CDATA[<p>In this tutorial, I will show you how to create a correlation matrix by using Microsoft Excel. I&#8217;ll also show you how to colour code the cells so it&#8217;s easy to visualise the results. Below is the correlation matrix I will show you how to create. Example data For this example, I have 10 different [&#8230;]</p>
<p>The post <a href="https://toptipbio.com/correlation-matrix-excel/">How To Create A Correlation Matrix In Microsoft Excel</a> appeared first on <a href="https://toptipbio.com">Top Tip Bio</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>In this tutorial, I will show you how to create a correlation matrix by using Microsoft Excel. I&#8217;ll also show you how to colour code the cells so it&#8217;s easy to visualise the results.</p>



<p>Below is the correlation matrix I will show you how to create.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><a href="https://toptipbio.com/wp-content/uploads/2021/06/Correlation-matrix-in-Excel-example.jpg"><img decoding="async" width="1024" height="314" src="https://toptipbio.com/wp-content/uploads/2021/06/Correlation-matrix-in-Excel-example-1024x314.jpg" alt="Correlation matrix in Excel example" class="wp-image-2808" srcset="https://toptipbio.com/wp-content/uploads/2021/06/Correlation-matrix-in-Excel-example-1024x314.jpg 1024w, https://toptipbio.com/wp-content/uploads/2021/06/Correlation-matrix-in-Excel-example-300x92.jpg 300w, https://toptipbio.com/wp-content/uploads/2021/06/Correlation-matrix-in-Excel-example-768x236.jpg 768w, https://toptipbio.com/wp-content/uploads/2021/06/Correlation-matrix-in-Excel-example-696x213.jpg 696w, https://toptipbio.com/wp-content/uploads/2021/06/Correlation-matrix-in-Excel-example-1068x327.jpg 1068w, https://toptipbio.com/wp-content/uploads/2021/06/Correlation-matrix-in-Excel-example.jpg 1099w" sizes="(max-width: 1024px) 100vw, 1024px" /></a></figure></div>



<h2 class="wp-block-heading">Example data</h2>



<p>For this example, I have 10 different variables; each variable has been entered into a different column.</p>



<p>For each variable I have 19 different values &#8211; these are just random numbers for the purpose of this example.</p>



<p>The screenshot below shows the top section of my data sheet.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><a href="https://toptipbio.com/wp-content/uploads/2021/06/Create-correlation-matrix-in-Excel-example-data.jpg"><img decoding="async" width="1024" height="243" src="https://toptipbio.com/wp-content/uploads/2021/06/Create-correlation-matrix-in-Excel-example-data-1024x243.jpg" alt="Create correlation matrix in Excel example data" class="wp-image-2803" srcset="https://toptipbio.com/wp-content/uploads/2021/06/Create-correlation-matrix-in-Excel-example-data-1024x243.jpg 1024w, https://toptipbio.com/wp-content/uploads/2021/06/Create-correlation-matrix-in-Excel-example-data-300x71.jpg 300w, https://toptipbio.com/wp-content/uploads/2021/06/Create-correlation-matrix-in-Excel-example-data-768x182.jpg 768w, https://toptipbio.com/wp-content/uploads/2021/06/Create-correlation-matrix-in-Excel-example-data-696x165.jpg 696w, https://toptipbio.com/wp-content/uploads/2021/06/Create-correlation-matrix-in-Excel-example-data-1068x253.jpg 1068w, https://toptipbio.com/wp-content/uploads/2021/06/Create-correlation-matrix-in-Excel-example-data.jpg 1265w" sizes="(max-width: 1024px) 100vw, 1024px" /></a></figure></div>



<h2 class="wp-block-heading">How to create a correlation matrix in Excel</h2>



<p>What I want to do is to create a correlation matrix, which contains the <a href="https://toptipbio.com/what-is-pearson-correlation/">Pearson correlation coefficient</a> values between each of my 10 different variables.</p>



<h3 class="wp-block-heading">1. Install the Data Analysis ToolPak</h3>



<p>Perhaps the easiest way to create a correlation matrix in Excel is to use the Data Analysis ToolPak. This is an add-on created by Microsoft to provide data analysis tools for statistical analyses.</p>



<p>To install this add-on, go to <em>File</em>&gt;<em>Options</em>.</p>



<p>Then click on <em>Add-ins</em>.</p>



<p>At the bottom, you want to manage the <em>Excel Add-ins</em>, and click the <em>Go</em> button.</p>



<p>Then, ensure you tick the <em>Analysis ToolPak</em> add-in, and click <em>OK</em>.</p>



<p>Now, when you click on the <em>Data</em> ribbon at the top, you should see a <em>Data Analysis</em> button in a sub-section called <em>Analyze</em>.</p>



<p>Now we are ready to create the correlation matrix.</p>



<h3 class="wp-block-heading">2. Use the Data Analysis ToolkPak to create the correlation matrix in Excel</h3>



<p>To create the correlation matrix, go to <em>Data</em>&gt;<em>Data Analysis</em>.</p>



<p>From the list, select the <em>Correlation</em> option and click <em>OK</em>.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><a href="https://toptipbio.com/wp-content/uploads/2021/06/Data-Analysis-ToolPak-Excel-Correlation.jpg"><img decoding="async" width="647" height="311" src="https://toptipbio.com/wp-content/uploads/2021/06/Data-Analysis-ToolPak-Excel-Correlation.jpg" alt="Data Analysis ToolPak Excel Correlation" class="wp-image-2809" srcset="https://toptipbio.com/wp-content/uploads/2021/06/Data-Analysis-ToolPak-Excel-Correlation.jpg 647w, https://toptipbio.com/wp-content/uploads/2021/06/Data-Analysis-ToolPak-Excel-Correlation-300x144.jpg 300w" sizes="(max-width: 647px) 100vw, 647px" /></a></figure></div>



<p>Now enter the following:</p>



<ul><li><strong>Input Range</strong> &#8211; Enter the cells containing all of the data to include in the analysis</li><li><strong>Grouped by</strong> &#8211; If your data are organised into different columns, then select the <em>Columns</em> option; if your data are organised into different rows, then select the <em>Rows</em> option instead</li><li><strong>Labels in First Row</strong> &#8211; Tick this if you have cells containing label names at the top of your data set</li></ul>



<p>Under this, there are also three output options to select from for where you want the results to be entered:</p>



<ul><li><strong>Output Range</strong> &#8211; Select an area in the current sheet where you want to results to be placed</li><li><strong>New Worksheet Ply</strong> &#8211; Save the results in a new worksheet, and give it a name</li><li><strong>New Workbook</strong> &#8211; Save the correlation matrix in a completely separate Excel file</li></ul>



<p>For my example, I&#8217;ve selected the second option to have the correlation matrix returned in a new sheet.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><a href="https://toptipbio.com/wp-content/uploads/2021/06/Data-Analysis-ToolPak-Excel-Correlation-example.jpg"><img decoding="async" width="657" height="379" src="https://toptipbio.com/wp-content/uploads/2021/06/Data-Analysis-ToolPak-Excel-Correlation-example.jpg" alt="Data Analysis ToolPak Excel Correlation example" class="wp-image-2810" srcset="https://toptipbio.com/wp-content/uploads/2021/06/Data-Analysis-ToolPak-Excel-Correlation-example.jpg 657w, https://toptipbio.com/wp-content/uploads/2021/06/Data-Analysis-ToolPak-Excel-Correlation-example-300x173.jpg 300w" sizes="(max-width: 657px) 100vw, 657px" /></a></figure></div>



<p>Finally, press the <em>OK</em> button to run the analysis.</p>



<h2 class="wp-block-heading">Interpreting the results of the correlation matrix</h2>



<p>You should now see a correlation matrix has been created.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><a href="https://toptipbio.com/wp-content/uploads/2021/06/Correlation-matrix-in-Excel-example-without-conditional-formatting.jpg"><img decoding="async" width="1024" height="314" src="https://toptipbio.com/wp-content/uploads/2021/06/Correlation-matrix-in-Excel-example-without-conditional-formatting-1024x314.jpg" alt="Correlation matrix in Excel example without conditional formatting" class="wp-image-2811" srcset="https://toptipbio.com/wp-content/uploads/2021/06/Correlation-matrix-in-Excel-example-without-conditional-formatting-1024x314.jpg 1024w, https://toptipbio.com/wp-content/uploads/2021/06/Correlation-matrix-in-Excel-example-without-conditional-formatting-300x92.jpg 300w, https://toptipbio.com/wp-content/uploads/2021/06/Correlation-matrix-in-Excel-example-without-conditional-formatting-768x235.jpg 768w, https://toptipbio.com/wp-content/uploads/2021/06/Correlation-matrix-in-Excel-example-without-conditional-formatting-696x213.jpg 696w, https://toptipbio.com/wp-content/uploads/2021/06/Correlation-matrix-in-Excel-example-without-conditional-formatting-1068x327.jpg 1068w, https://toptipbio.com/wp-content/uploads/2021/06/Correlation-matrix-in-Excel-example-without-conditional-formatting.jpg 1097w" sizes="(max-width: 1024px) 100vw, 1024px" /></a></figure></div>



<p>The top row and first column will list each of the variables entered into the test.</p>



<p>The numbers in the table represent <a href="https://toptipbio.com/what-is-pearson-correlation/">Pearson correlation coefficient values</a>.</p>



<p>So, in my example, the correlation coefficient value for the relationship between Variable 1 and Variable 4 is 0.108.</p>



<p>The correlation coefficient is a value that ranges from +1 to -1. </p>



<p>A value of 0 means there is no linear correlation between the two variables. </p>



<p>A value of +1 means there is a perfectly positive linear correlation between the two variables; so, as one variable increases, so does the other.</p>



<p>You can see in the matrix that anytime there is a correlation between the same variable, the correlation coefficient value is 1. That’s because if you plot two variables with exactly the same values against each other, then you will always get a perfectly positive linear correlation between the two.</p>



<p>A value of -1 means there is a perfectly negative linear correlation between the two variables. So, as one increases, the other tends to decrease.</p>



<p>Also note that only half the matrix is complete, that is because the results would be the same if these empty cells were calculated.</p>



<h2 class="wp-block-heading">[Optional] Use the CORREL function to calculate the Pearson correlation coefficient</h2>



<p>If you would prefer to calculate the Pearson correlation coefficient values yourself, instead of using a matrix, you can do so with the CORREL function.</p>



<pre class="wp-block-preformatted">=CORREL(array1, array2)</pre>



<ul><li><strong>array1</strong> &#8211; All cells containing data for the first variable</li><li><strong>array2</strong> &#8211; All cells containing data for the second variable</li></ul>



<p>If you wanted to go a step further and calculate a p-value for the Pearson correlation test to see if the result is significant, then I refer to my tutorial on performing a <a href="https://toptipbio.com/pearson-correlation-excel/">Pearson correlation test in Microsoft Excel</a>.</p>



<h2 class="wp-block-heading">How to colour code the cells in the correlation matrix</h2>



<p>Sometimes, the cells in a correlation matrix are coloured based on their coefficient values. This can easily be done in Excel by using the conditional formatting.</p>



<p>Firstly, highlight all the values in the table, and then go to <em>Home</em>&gt;<em>Conditional Formatting</em>&gt;<em>New Rule</em>.</p>



<p>Select <em>format all cells based on their values</em> as the rule type.</p>



<p>In the rule description underneath, use the dropdown menu to change the style to a <em>3-color scale</em>.</p>



<p>Then change the colour settings to:</p>



<figure class="wp-block-table is-style-stripes"><table class="has-subtle-pale-green-background-color has-background"><thead><tr><th></th><th>Minimum</th><th>Midpoint</th><th>Maximum</th></tr></thead><tbody><tr><td><strong>Type</strong></td><td>Number</td><td>Number</td><td>Number</td></tr><tr><td><strong>Value</strong></td><td>-1</td><td>0</td><td>1</td></tr><tr><td><strong>Colour</strong></td><td>Red</td><td>White</td><td>Blue</td></tr></tbody></table></figure>



<p>When using this conditional formatting rule, any cells with a correlation coefficient value of -1 will be coloured red. The cells with a value of 0 will be coloured white and the cells with a value of 1 will be coloured blue. And because this is a gradient of colours, any values in between these points will have a shade of colour that represents their correlation coefficient value.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><a href="https://toptipbio.com/wp-content/uploads/2021/06/Conditional-formatting-in-Excel-example.jpg"><img decoding="async" width="501" height="400" src="https://toptipbio.com/wp-content/uploads/2021/06/Conditional-formatting-in-Excel-example.jpg" alt="Conditional formatting in Excel example" class="wp-image-2812" srcset="https://toptipbio.com/wp-content/uploads/2021/06/Conditional-formatting-in-Excel-example.jpg 501w, https://toptipbio.com/wp-content/uploads/2021/06/Conditional-formatting-in-Excel-example-300x240.jpg 300w" sizes="(max-width: 501px) 100vw, 501px" /></a></figure></div>



<p>You can of course use different colours; however, these seem to be the most popular choices when colouring a correlation matrix.</p>



<p>Below is the correlation matrix for my example with the conditional formatting applied.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><a href="https://toptipbio.com/wp-content/uploads/2021/06/Correlation-matrix-in-Excel-example.jpg"><img decoding="async" width="1024" height="314" src="https://toptipbio.com/wp-content/uploads/2021/06/Correlation-matrix-in-Excel-example-1024x314.jpg" alt="Correlation matrix in Excel example" class="wp-image-2808" srcset="https://toptipbio.com/wp-content/uploads/2021/06/Correlation-matrix-in-Excel-example-1024x314.jpg 1024w, https://toptipbio.com/wp-content/uploads/2021/06/Correlation-matrix-in-Excel-example-300x92.jpg 300w, https://toptipbio.com/wp-content/uploads/2021/06/Correlation-matrix-in-Excel-example-768x236.jpg 768w, https://toptipbio.com/wp-content/uploads/2021/06/Correlation-matrix-in-Excel-example-696x213.jpg 696w, https://toptipbio.com/wp-content/uploads/2021/06/Correlation-matrix-in-Excel-example-1068x327.jpg 1068w, https://toptipbio.com/wp-content/uploads/2021/06/Correlation-matrix-in-Excel-example.jpg 1099w" sizes="(max-width: 1024px) 100vw, 1024px" /></a></figure></div>



<h2 class="wp-block-heading">Creating a correlation matrix in Excel: Final words</h2>



<p>In this tutorial, I have shown you how to create a correlation matrix in Microsoft Excel.</p>



<p>A correlation matrix can easily be created by using the Data Analysis ToolPak. Once created, you can take advantage of Excel&#8217;s conditional formatting colour the cells according to the correlation coefficient values.</p>



<p>Microsoft Excel version used: 365 ProPlus</p>
<p>The post <a href="https://toptipbio.com/correlation-matrix-excel/">How To Create A Correlation Matrix In Microsoft Excel</a> appeared first on <a href="https://toptipbio.com">Top Tip Bio</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://toptipbio.com/correlation-matrix-excel/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>How To Perform A Two-Sample F-Test In Excel (Variance Test)</title>
		<link>https://toptipbio.com/two-sample-f-test-excel/</link>
					<comments>https://toptipbio.com/two-sample-f-test-excel/#respond</comments>
		
		<dc:creator><![CDATA[Steven Bradburn, PhD]]></dc:creator>
		<pubDate>Tue, 08 Jun 2021 07:50:40 +0000</pubDate>
				<category><![CDATA[Excel]]></category>
		<guid isPermaLink="false">https://toptipbio.com/?p=2788</guid>

					<description><![CDATA[<p>In this tutorial, I’m going to show you how to perform a two-sample F-test for variances in Microsoft Excel. I’ll show you how to generate the results, including a p-value, and will also interpret each output to explain what they mean. Why perform a two-sample F-test? The reason why you would perform a two-sample F-test [&#8230;]</p>
<p>The post <a href="https://toptipbio.com/two-sample-f-test-excel/">How To Perform A Two-Sample F-Test In Excel (Variance Test)</a> appeared first on <a href="https://toptipbio.com">Top Tip Bio</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>In this tutorial, I’m going to show you how to perform a two-sample F-test for variances in Microsoft Excel. I’ll show you how to generate the results, including a p-value, and will also interpret each output to explain what they mean.</p>



<h2 class="wp-block-heading">Why perform a two-sample F-test?</h2>



<p>The reason why you would perform a two-sample F-test for variances is to determine if the variances of two populations are equal.</p>



<p>This is important to know because certain hypothesis tests, such as an <a href="https://toptipbio.com/t-tests-excel/">independent Student t-test</a>, assumes that the two groups in the test have equal variances.</p>



<p>So, it’s important to know if the two groups have equal variance <em>before</em> performing an independent student t-test.</p>



<h2 class="wp-block-heading">Example data</h2>



<p>For this tutorial, I will be using the same data as used in my other tutorial on <a href="https://toptipbio.com/t-tests-excel/">how to perform Student t-tests in Excel</a>.</p>



<div class="wp-block-image"><figure class="aligncenter size-large is-resized"><a href="https://toptipbio.com/wp-content/uploads/2021/06/Perform-an-F-test-in-Excel-example-data.jpg"><img decoding="async" src="https://toptipbio.com/wp-content/uploads/2021/06/Perform-an-F-test-in-Excel-example-data.jpg" alt="Perform an F-test in Excel example data" class="wp-image-2791" height="500" srcset="https://toptipbio.com/wp-content/uploads/2021/06/Perform-an-F-test-in-Excel-example-data.jpg 399w, https://toptipbio.com/wp-content/uploads/2021/06/Perform-an-F-test-in-Excel-example-data-230x300.jpg 230w, https://toptipbio.com/wp-content/uploads/2021/06/Perform-an-F-test-in-Excel-example-data-322x420.jpg 322w" sizes="(max-width: 399px) 100vw, 399px" /></a></figure></div>



<p>I have two groups: males and females. In each group there are 8 different participants, which I have measured their height in centimetres (cms).</p>



<h2 class="wp-block-heading">How to perform a two-sample F-test in Excel</h2>



<p>There are a few ways you can perform the F-test in Excel. You can either use the Data Analysis ToolkPak, or the F.TEST function; I&#8217;ll show you both methods.</p>



<p>Let&#8217;s start with the Data Analysis ToolPak method.</p>



<h3 class="wp-block-heading">1. Install the Data Analysis ToolPak</h3>



<p>The first method is to use the Data Analysis ToolPak. This is an add-on created by Microsoft to provide data analysis tools for statistical analyses.</p>



<p>To install the toolpak, go to <em>File</em>&gt;<em>Options</em>, then select <em>Add-ins</em>.</p>



<p>At the bottom, you want to manage the Excel add-ins and click the <em>Go</em> button.</p>



<p>Then, ensure you tick the <em>Analysis ToolPak</em> add-in, and click <em>OK</em>.</p>



<p>Now, when you click on the <em>Data</em> ribbon at the top, you should see a <em>Data Analysis</em> button in a sub-section called <em>Analyze</em>.</p>



<h3 class="wp-block-heading">2. Calculate the variance for each group</h3>



<p>Before performing the F-test, I advise you calculate the variance for each group beforehand &#8211; you will see why this is useful shortly.</p>



<p>To calculate the variance, in a new cell, use the VAR.S function.</p>



<pre class="wp-block-preformatted">=VAR.S(number1, [number2],…)</pre>



<ul><li><strong>Number1</strong> &#8211; Range of cells containing the first group data</li><li><strong>Number2</strong> &#8211; Range of cells containing the second group data</li></ul>



<p>Here are the formulas I used with my example data.</p>



<div class="wp-block-image"><figure class="aligncenter size-large is-resized"><a href="https://toptipbio.com/wp-content/uploads/2021/06/Calculating-sample-variance-in-Excel.jpg"><img decoding="async" src="https://toptipbio.com/wp-content/uploads/2021/06/Calculating-sample-variance-in-Excel.jpg" alt="Calculating sample variance in Excel" class="wp-image-2792" height="500" srcset="https://toptipbio.com/wp-content/uploads/2021/06/Calculating-sample-variance-in-Excel.jpg 948w, https://toptipbio.com/wp-content/uploads/2021/06/Calculating-sample-variance-in-Excel-300x165.jpg 300w, https://toptipbio.com/wp-content/uploads/2021/06/Calculating-sample-variance-in-Excel-768x422.jpg 768w, https://toptipbio.com/wp-content/uploads/2021/06/Calculating-sample-variance-in-Excel-696x383.jpg 696w, https://toptipbio.com/wp-content/uploads/2021/06/Calculating-sample-variance-in-Excel-764x420.jpg 764w" sizes="(max-width: 948px) 100vw, 948px" /></a></figure></div>



<p>So, for my example data, the variance for males was 23.55 cm<sup>2</sup> and the variance for females was 25.70 cm<sup>2</sup>.</p>



<p>Now we are ready to perform the F-test to determine if the two variances are significantly different.</p>



<h3 class="wp-block-heading">3. Perform the F-test via the Data Analysis ToolPak</h3>



<p>To perform the F-test, go to <em>Data</em>&gt;<em>Data Analysis</em>.</p>



<p>Then from the list, select the <em>F Test Two-Sample for Variances</em> option and click <em>OK</em>.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><a href="https://toptipbio.com/wp-content/uploads/2021/06/DataAnalysis-ToolPak-F-test.jpg"><img decoding="async" width="647" height="311" src="https://toptipbio.com/wp-content/uploads/2021/06/DataAnalysis-ToolPak-F-test.jpg" alt="DataAnalysis ToolPak F-test" class="wp-image-2793" srcset="https://toptipbio.com/wp-content/uploads/2021/06/DataAnalysis-ToolPak-F-test.jpg 647w, https://toptipbio.com/wp-content/uploads/2021/06/DataAnalysis-ToolPak-F-test-300x144.jpg 300w" sizes="(max-width: 647px) 100vw, 647px" /></a></figure></div>



<p>Here is a breakdown of each option.</p>



<ul><li><strong>Variable 1 Range</strong> &#8211; The range of cells containing the first group data. For Variable 1, it is recommended to input the group with the highest variance value so Excel can calculate the correct F value. This is the reason why we calculated the variance for each group beforehand! For my example, I will use the Female group since they had a larger variance compared with the Male group</li><li><strong>Variable 2 Range</strong> &#8211; The range of cells containing the second group data. For my example, I will enter the Male group data</li><li><strong>Labels</strong> &#8211; Select this if you have highlighted the group label </li><li>Alpha &#8211; This is the significance threshold. By default this is set at 0.05. So, if the p&lt;0.05, we can reject the null hypothesis and conclude that the test is statistically significant</li></ul>



<p>The output options underneath are used to determine where the F-test results will be returned.</p>



<ul><li><strong>Output Range</strong> &#8211; This option will allow you to select an area in the current sheet where you want to results to be placed</li><li><strong>New Worksheet Ply</strong> &#8211; This will save the results in a new sheet</li><li><strong>New Workbook</strong> &#8211; This option will save the results in an entirely new Excel document</li></ul>



<p>For this example, I’ll select the second option and call the new sheet <em>Results</em>.</p>



<figure class="wp-block-image size-large"><a href="https://toptipbio.com/wp-content/uploads/2021/06/DataAnalysis-ToolPak-F-test-example-analysis.jpg"><img decoding="async" width="1024" height="481" src="https://toptipbio.com/wp-content/uploads/2021/06/DataAnalysis-ToolPak-F-test-example-analysis-1024x481.jpg" alt="DataAnalysis ToolPak F-test example analysis" class="wp-image-2795" srcset="https://toptipbio.com/wp-content/uploads/2021/06/DataAnalysis-ToolPak-F-test-example-analysis-1024x481.jpg 1024w, https://toptipbio.com/wp-content/uploads/2021/06/DataAnalysis-ToolPak-F-test-example-analysis-300x141.jpg 300w, https://toptipbio.com/wp-content/uploads/2021/06/DataAnalysis-ToolPak-F-test-example-analysis-768x361.jpg 768w, https://toptipbio.com/wp-content/uploads/2021/06/DataAnalysis-ToolPak-F-test-example-analysis-696x327.jpg 696w, https://toptipbio.com/wp-content/uploads/2021/06/DataAnalysis-ToolPak-F-test-example-analysis-1068x502.jpg 1068w, https://toptipbio.com/wp-content/uploads/2021/06/DataAnalysis-ToolPak-F-test-example-analysis-894x420.jpg 894w, https://toptipbio.com/wp-content/uploads/2021/06/DataAnalysis-ToolPak-F-test-example-analysis.jpg 1103w" sizes="(max-width: 1024px) 100vw, 1024px" /></a></figure>



<p>Finally, press the <em>OK</em> button to run the F-test.</p>



<h2 class="wp-block-heading">Interpreting the F-test results</h2>



<p>The F-test results should now be displayed in a table.</p>



<p>Here&#8217;s what my results table looks like.</p>



<div class="wp-block-image"><figure class="aligncenter size-large"><a href="https://toptipbio.com/wp-content/uploads/2021/06/DataAnalysis-ToolPak-F-test-results-table.jpg"><img decoding="async" width="570" height="438" src="https://toptipbio.com/wp-content/uploads/2021/06/DataAnalysis-ToolPak-F-test-results-table.jpg" alt="DataAnalysis ToolPak F-test results table" class="wp-image-2796" srcset="https://toptipbio.com/wp-content/uploads/2021/06/DataAnalysis-ToolPak-F-test-results-table.jpg 570w, https://toptipbio.com/wp-content/uploads/2021/06/DataAnalysis-ToolPak-F-test-results-table-300x231.jpg 300w, https://toptipbio.com/wp-content/uploads/2021/06/DataAnalysis-ToolPak-F-test-results-table-547x420.jpg 547w, https://toptipbio.com/wp-content/uploads/2021/06/DataAnalysis-ToolPak-F-test-results-table-80x60.jpg 80w" sizes="(max-width: 570px) 100vw, 570px" /></a></figure></div>



<p>I’ll now break down each of these results in detail.</p>



<ul><li><strong>Mean</strong> &#8211; This is the mean, or average, values for each of the two groups</li><li><strong>Variance</strong> &#8211; This is the same values as we calculated just before performing the test</li><li><strong>Observations</strong> &#8211; The number of data points in each group; so I had 8 participants in each group</li><li><strong>df</strong> &#8211; The degrees of freedom. This is calculated by performing observations &#8211; 1</li><li><strong>F</strong> &#8211; The F-value for the test. This is calculated by dividing the variance for the first variable, by the variance of the second variable</li><li><strong>P(F&lt;=f) one-tail</strong> &#8211; The p-value for the F-test. Note, this is a one-tail analysis</li><li><strong>F Critical one-tail</strong> &#8211; The F Critical value for the test. Note, this is a one-tail analysis</li></ul>



<p>Basically, Excel uses the degrees of freedom (df) for the two groups, as well as the previously selected alpha level, to work out the F Critical value.</p>



<p>By comparing the F-value to the F Critical value, we can determine the p-value.</p>



<p>For my example, p=0.46.</p>



<p>To interpret this value, we need to declare our two hypotheses.</p>



<ul><li><strong>Null hypothesis</strong> &#8211; There is no difference in variance of height measures between the two populations</li><li><strong>Alternative hypothesis</strong> &#8211; Females have a higher variance for height measures compared with males</li></ul>



<p>Note, that the alternative hypothesis is written in this way because the test performed here is a one-tailed test; I will show you how to calculate a p-value for a two-tailed test shortly.</p>



<p>If p&lt;0.05, we would reject the null hypothesis and accept the alternative hypothesis.</p>



<p>On the other hand, we would fail to reject the null hypothesis if P&gt;0.05.</p>



<p>Since my p-value is larger than 0.05, I will fail to reject the null hypothesis and conclude that there is no difference in variance of height measures between the two populations.</p>



<p>If this was the case, I could proceed with a T-test and assume the populations have equal variance.</p>



<p>If my p-value was less than 0.05, then I would assume the two populations have unequal variance when performing the T-test.</p>



<h2 class="wp-block-heading">How to perform a two-tailed two-sample F-test in Excel</h2>



<p>There is also a function you can use that will return the two-tailed p-value for the test, instead of the one-tailed p-value created through the Data Analysis ToolPak.</p>



<p>To do this, use the F.TEST function</p>



<pre id="block-c4b3919e-31b8-47d1-9fcd-e7f64e357589" class="wp-block-preformatted">=F.TEST(array1, array2)</pre>



<ul><li><strong>Array1</strong> &#8211; Range of cells containing the first group data</li><li><strong>Array2</strong> &#8211; Range of cells containing the second group data</li></ul>



<h3 class="wp-block-heading">Interpreting the results</h3>



<p>Notice that this p-value is different to that reported by the Data Analysis ToolPak; infact, it is twice the value.</p>



<p>This is because the F.TEST function returns the two-tailed p-value, whereas the Data Analysis ToolPak only returns the one-tailed p-value.</p>



<p>To interpret this p-value we again need to report our two hypotheses.</p>



<ul><li><strong>Null hypothesis</strong> &#8211; There is no difference in variance of height measures between the two populations</li><li><strong>Alternative hypothesis</strong> &#8211; There is a difference in variance of height measures between the two populations</li></ul>



<p>Since the p-value is greater than my alpha of 0.05, we fail to reject the null hypothesis and conclude again that there is no difference in variance of height measures between the two populations.</p>



<h2 class="wp-block-heading">Performing an F-test in Excel: Final words</h2>



<p>In this tutorial, I have shown you how to perform a two-sample F-test for variances in Microsoft Excel.</p>



<p>The one-tailed F-test can be performed by using the Data Analysis ToolPak. To perform a two-tailed F-test, use the F.TEST function to return the two-tailed p-value.</p>



<p>Microsoft Excel version used: 365 ProPlus</p>
<p>The post <a href="https://toptipbio.com/two-sample-f-test-excel/">How To Perform A Two-Sample F-Test In Excel (Variance Test)</a> appeared first on <a href="https://toptipbio.com">Top Tip Bio</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://toptipbio.com/two-sample-f-test-excel/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
