{"id":1477,"date":"2022-08-05T10:40:36","date_gmt":"2022-12-20T11:32:20","guid":{"rendered":"https:\/\/www.silicloud.com\/blog\/uncategorized\/how-can-you-determine-the-standard-deviation-in-r\/"},"modified":"2024-03-09T16:11:35","modified_gmt":"2024-03-09T16:11:35","slug":"how-can-you-determine-the-standard-deviation-in-r","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/blog\/how-can-you-determine-the-standard-deviation-in-r\/","title":{"rendered":"How can you determine the standard deviation in R?"},"content":{"rendered":"<p>R, being a statistical language, provides the sd(\u2019 &#8216;) function to calculate the standard deviation of the values.<\/p>\n<h2>What does the standard deviation mean?<\/h2>\n<p>\u2018Standard deviation is the measure of the dispersion of the values\u2019.<\/p>\n<p>The higher the standard deviation, the wider the spread of values.<\/p>\n<ul class=\"post-ul\">\n<li>The lower the standard deviation, the narrower the spread of values.<\/li>\n<li>In simple words the formula is defined as &#8211; Standard deviation is the square root of the \u2018variance\u2019.<\/li>\n<\/ul>\n<h2>The significance of standard deviation.<\/h2>\n<p>Why is standard deviation so widely used and significant in statistics? The following factors explain its popularity and importance.<\/p>\n<ul class=\"post-ul\">\n<li>Standard deviation converts the negative number to a positive number by squaring it.<\/li>\n<li>It shows the larger deviations so that you can particularly look over them.<\/li>\n<li>It shows the central tendency, which is a very useful function in the analysis.<\/li>\n<li>It has a major role to play in finance, business, analysis, and measurements.<\/li>\n<\/ul>\n<p>Before we dive into the subject, make sure to remember this definition!<\/p>\n<p>Variance can be described as the squared deviations between the observed value and the expected value.<\/p>\n<hr \/>\n<h2>Calculate the standard deviation of a list of values in <a href=\"https:\/\/en.wikipedia.org\/wiki\/R_(programming_language)\">R<\/a>.<\/h2>\n<p>Firstly, we will generate a list called &#8216;x&#8217; and append certain values to it. Subsequently, we can calculate the standard deviation of those values within the list.<\/p>\n<pre class=\"post-pre\"><code> x <span class=\"token operator\">&lt;-<\/span> c<span class=\"token punctuation\">(<\/span><span class=\"token number\">34<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">56<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">87<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">65<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">34<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">56<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">89<\/span><span class=\"token punctuation\">)<\/span>    <span class=\"token comment\">#creates list 'x' with some values in it.<\/span>\r\n\r\n sd<span class=\"token punctuation\">(<\/span>x<span class=\"token punctuation\">)<\/span>  <span class=\"token comment\">#calculates the standard deviation of the values in the list 'x'<\/span>\r\n<\/code><\/pre>\n<p>The result is 22.28175.<\/p>\n<p>We can now attempt to derive the standard deviation by extracting particular values from the list &#8216;y&#8217;.<\/p>\n<pre class=\"post-pre\"><code> y <span class=\"token operator\">&lt;-<\/span> c<span class=\"token punctuation\">(<\/span><span class=\"token number\">34<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">65<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">78<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">96<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">56<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">78<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">54<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">57<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">89<\/span><span class=\"token punctuation\">)<\/span>  <span class=\"token comment\">#creates a list 'y' having some values<\/span>\r\n \r\ndata1 <span class=\"token operator\">&lt;-<\/span> y<span class=\"token punctuation\">[<\/span><span class=\"token number\">1<\/span><span class=\"token operator\">:<\/span><span class=\"token number\">5<\/span><span class=\"token punctuation\">]<\/span> <span class=\"token comment\">#extract specific values using its Index<\/span>\r\n\r\nsd<span class=\"token punctuation\">(<\/span>data1<span class=\"token punctuation\">)<\/span> <span class=\"token comment\">#calculates the standard deviation for Indexed or extracted values from the list.<\/span>\r\n<\/code><\/pre>\n<p>The result is 23.28519.<\/p>\n<hr \/>\n<h2>Calculate the standard deviation of the values contained in a CSV file.<\/h2>\n<p>We are utilizing this approach to bring in a CSV file, where we aim to calculate the standard deviation in R for the data stored within the file.<\/p>\n<pre class=\"post-pre\"><code>readfile <span class=\"token operator\">&lt;-<\/span> read.csv<span class=\"token punctuation\">(<\/span><span class=\"token string\">'testdata1.csv'<\/span><span class=\"token punctuation\">)<\/span>  <span class=\"token comment\">#reading a csv file<\/span>\r\n\r\ndata2 <span class=\"token operator\">&lt;-<\/span> readfile<span class=\"token operator\">$<\/span>Values      <span class=\"token comment\">#getting values stored in the header 'Values'<\/span>\r\n\r\nsd<span class=\"token punctuation\">(<\/span>data2<span class=\"token punctuation\">)<\/span>                              <span class=\"token comment\">#calculates the standard deviation  <\/span>\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/655ddcb3cdcf9b6757a033b0\/20-0.png\" alt=\"Standard Deviation In R\" \/><\/div>\n<p>The result is 17.88624.<\/p>\n<hr \/>\n<h2>Large and small variability<\/h2>\n<p>Typically, low standard deviation results in values that are very similar to the average, whereas high standard deviation leads to values that are widely scattered from the average.<\/p>\n<p>We can demonstrate this using an example.<\/p>\n<pre class=\"post-pre\"><code>x <span class=\"token operator\">&lt;-<\/span> c<span class=\"token punctuation\">(<\/span><span class=\"token number\">79<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">82<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">84<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">96<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">98<\/span><span class=\"token punctuation\">)<\/span>\r\nmean<span class=\"token punctuation\">(<\/span>x<span class=\"token punctuation\">)<\/span>\r\n<span class=\"token operator\">-<\/span><span class=\"token operator\">-<\/span><span class=\"token operator\">-&gt;<\/span>  <span class=\"token number\">82.22222<\/span>\r\nsd<span class=\"token punctuation\">(<\/span>x<span class=\"token punctuation\">)<\/span>\r\n<span class=\"token operator\">-<\/span><span class=\"token operator\">-<\/span><span class=\"token operator\">-&gt;<\/span>  <span class=\"token number\">10.58038<\/span>\r\n<\/code><\/pre>\n<p>To create a bar graph in R using these values, execute the code provided below.<\/p>\n<p>In order to install the ggplot2 package, execute this code within the R studio environment.<\/p>\n<p>Please install the package &#8220;ggplot2&#8221;.<\/p>\n<pre class=\"post-pre\"><code>library<span class=\"token punctuation\">(<\/span>ggplot2<span class=\"token punctuation\">)<\/span>\r\n\r\nvalues <span class=\"token operator\">&lt;-<\/span> data.frame<span class=\"token punctuation\">(<\/span>marks<span class=\"token operator\">=<\/span>c<span class=\"token punctuation\">(<\/span><span class=\"token number\">79<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">82<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">84<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">96<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">98<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span> students<span class=\"token operator\">=<\/span>c<span class=\"token punctuation\">(<\/span><span class=\"token number\">0<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">2<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">3<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">4<\/span><span class=\"token punctuation\">,<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span>\r\nhead<span class=\"token punctuation\">(<\/span>values<span class=\"token punctuation\">)<\/span>                  <span class=\"token comment\">#displayes the values<\/span>\r\n marks students\r\n<span class=\"token number\">1<\/span>    <span class=\"token number\">79<\/span>        <span class=\"token number\">0<\/span>\r\n<span class=\"token number\">2<\/span>    <span class=\"token number\">82<\/span>        <span class=\"token number\">1<\/span>\r\n<span class=\"token number\">3<\/span>    <span class=\"token number\">84<\/span>        <span class=\"token number\">2<\/span>\r\n<span class=\"token number\">4<\/span>    <span class=\"token number\">96<\/span>        <span class=\"token number\">3<\/span>\r\n<span class=\"token number\">5<\/span>    <span class=\"token number\">98<\/span>        <span class=\"token number\">4<\/span>\r\nx <span class=\"token operator\">&lt;-<\/span> ggplot<span class=\"token punctuation\">(<\/span>values<span class=\"token punctuation\">,<\/span> aes<span class=\"token punctuation\">(<\/span>x<span class=\"token operator\">=<\/span>marks<span class=\"token punctuation\">,<\/span> y<span class=\"token operator\">=<\/span>students<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><span class=\"token operator\">+<\/span>geom_bar<span class=\"token punctuation\">(<\/span>stat<span class=\"token operator\">=<\/span><span class=\"token string\">'identity'<\/span><span class=\"token punctuation\">)<\/span>\r\nx                             <span class=\"token comment\">#displays the plot<\/span>\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/655ddcb3cdcf9b6757a033b0\/31-0.png\" alt=\"sd in r\" \/><\/div>\n<p>From the aforementioned findings, it is evident that a majority of the data is concentrated around the average value (79,82,84), indicating a narrow range or low standard deviation.<\/p>\n<p>Example representing a significant deviation from the norm.<\/p>\n<pre class=\"post-pre\"><code>y <span class=\"token operator\">&lt;-<\/span> c<span class=\"token punctuation\">(<\/span><span class=\"token number\">23<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">27<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">30<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">35<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">55<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">76<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">79<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">82<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">84<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">94<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">96<\/span><span class=\"token punctuation\">)<\/span>\r\nmean<span class=\"token punctuation\">(<\/span>y<span class=\"token punctuation\">)<\/span>\r\n<span class=\"token operator\">-<\/span><span class=\"token operator\">-<\/span><span class=\"token operator\">-&gt;<\/span> <span class=\"token number\">61.90909<\/span>\r\nsd<span class=\"token punctuation\">(<\/span>y<span class=\"token punctuation\">)<\/span>\r\n<span class=\"token operator\">-<\/span><span class=\"token operator\">-<\/span><span class=\"token operator\">-&gt;<\/span> <span class=\"token number\">28.45507<\/span>\r\n<\/code><\/pre>\n<p>To generate a bar graph in R using ggplot and plot the given values, execute the code provided below.<\/p>\n<pre class=\"post-pre\"><code>library<span class=\"token punctuation\">(<\/span>ggplot2<span class=\"token punctuation\">)<\/span>\r\n\r\nvalues <span class=\"token operator\">&lt;-<\/span> data.frame<span class=\"token punctuation\">(<\/span>marks<span class=\"token operator\">=<\/span>c<span class=\"token punctuation\">(<\/span><span class=\"token number\">23<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">27<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">30<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">35<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">55<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">76<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">79<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">82<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">84<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">94<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">96<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span> students<span class=\"token operator\">=<\/span>c<span class=\"token punctuation\">(<\/span><span class=\"token number\">0<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">1<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">2<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">3<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">4<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">5<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">6<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">7<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">8<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">9<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">10<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span>\r\nhead<span class=\"token punctuation\">(<\/span>values<span class=\"token punctuation\">)<\/span>                  <span class=\"token comment\">#displayes the values<\/span>\r\n  marks students\r\n<span class=\"token number\">1<\/span>    <span class=\"token number\">23<\/span>        <span class=\"token number\">0<\/span>\r\n<span class=\"token number\">2<\/span>    <span class=\"token number\">27<\/span>        <span class=\"token number\">1<\/span>\r\n<span class=\"token number\">3<\/span>    <span class=\"token number\">30<\/span>        <span class=\"token number\">2<\/span>\r\n<span class=\"token number\">4<\/span>    <span class=\"token number\">35<\/span>        <span class=\"token number\">3<\/span>\r\n<span class=\"token number\">5<\/span>    <span class=\"token number\">55<\/span>        <span class=\"token number\">4<\/span>\r\n<span class=\"token number\">6<\/span>    <span class=\"token number\">76<\/span>        <span class=\"token number\">5<\/span>\r\nx <span class=\"token operator\">&lt;-<\/span> ggplot<span class=\"token punctuation\">(<\/span>values<span class=\"token punctuation\">,<\/span> aes<span class=\"token punctuation\">(<\/span>x<span class=\"token operator\">=<\/span>marks<span class=\"token punctuation\">,<\/span> y<span class=\"token operator\">=<\/span>students<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><span class=\"token operator\">+<\/span>geom_bar<span class=\"token punctuation\">(<\/span>stat<span class=\"token operator\">=<\/span><span class=\"token string\">'identity'<\/span><span class=\"token punctuation\">)<\/span>\r\nx                             <span class=\"token comment\">#displays the plot<\/span>\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/655ddcb3cdcf9b6757a033b0\/37-0.png\" alt=\"sd in r \" \/><\/div>\n<p>In the aforementioned findings, you can observe the extensive data. The minimum score of 23 stands significantly apart from the mean score of 61. This phenomenon is referred to as a high standard deviation.<\/p>\n<p>At this point, you should have a decent grasp of how to calculate the standard deviation using the sd(\u2019 &#8216;) function in the R programming language. To conclude this tutorial, let&#8217;s solve some straightforward problems.<\/p>\n<h2>Example #1: Calculating the Standard Deviation of a Sequence of Even Numbers<\/h2>\n<p>Calculate the standard deviation of the even numbers ranging from 2 to 18 (excluding 1 and 20).<\/p>\n<p>The solution entails listing the even numbers ranging from 1 to 20.<\/p>\n<p>Two, four, six, eight, ten, twelve, fourteen, sixteen, eighteen.<\/p>\n<p>Let&#8217;s determine the standard deviation of these values.<\/p>\n<pre class=\"post-pre\"><code>x <span class=\"token operator\">&lt;-<\/span> c<span class=\"token punctuation\">(<\/span><span class=\"token number\">2<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">4<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">6<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">8<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">10<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">12<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">14<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">16<\/span><span class=\"token punctuation\">,<\/span><span class=\"token number\">18<\/span><span class=\"token punctuation\">)<\/span>  <span class=\"token comment\">#list of even numbers from 1 to 20<\/span>\r\n\r\nsd<span class=\"token punctuation\">(<\/span>x<span class=\"token punctuation\">)<\/span>                           <span class=\"token comment\">#calculates the standard deviation of these <\/span>\r\n                            values <span class=\"token keyword\">in<\/span> the list of even numbers from <span class=\"token number\">1<\/span> to <span class=\"token number\">20<\/span>\r\n<\/code><\/pre>\n<p>The result is approximately 5.477226.<\/p>\n<hr \/>\n<h2>One possible option for paraphrasing the statement is:<\/h2>\n<p>The US Population Data&#8217;s Standard Deviation is given in Example #2.<\/p>\n<p>Calculate the USA&#8217;s state-wise population&#8217;s standard deviation.<\/p>\n<p>To accomplish this in R, import the CSV file and extract the data. Then, calculate the standard deviation of the values and visualize the outcome by plotting it on a histogram.<\/p>\n<pre class=\"post-pre\"><code>df<span class=\"token operator\">&lt;-<\/span>read.csv<span class=\"token punctuation\">(<\/span><span class=\"token string\">\"population.csv\"<\/span><span class=\"token punctuation\">)<\/span>      <span class=\"token comment\">#reads csv file<\/span>\r\ndata<span class=\"token operator\">&lt;-<\/span>df<span class=\"token operator\">$<\/span>X2018.Population           <span class=\"token comment\">#extarcts the data from population <\/span>\r\n                                     column\r\nmean<span class=\"token punctuation\">(<\/span>data<span class=\"token punctuation\">)<\/span>                          <span class=\"token comment\">#calculates the mean<\/span>\r\n                          \r\nView<span class=\"token punctuation\">(<\/span>df<span class=\"token punctuation\">)<\/span>                            <span class=\"token comment\">#displays the data<\/span>\r\nsd<span class=\"token punctuation\">(<\/span>data<span class=\"token punctuation\">)<\/span>                            <span class=\"token comment\">#calculates the standard deviation<\/span>\r\n<\/code><\/pre>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/655ddcb3cdcf9b6757a033b0\/52-0.png\" alt=\"standard deviation in r\" \/><\/div>\n<p>The output shows that the mean is 6432008 and the standard deviation is 7376752.<\/p>\n<hr \/>\n<h2>In summary,<\/h2>\n<p>Calculating the standard deviation of values in R is straightforward. R provides the sd(\u2019 &#8216;) function to determine the standard deviation. You have the option to either generate a list of values or import a CSV file in order to compute the standard deviation.<\/p>\n<p>Make sure to calculate the standard deviation by extracting values using indexing from a file or list as demonstrated above.<\/p>\n<p>Feel free to use the comment box to share any questions or uncertainties you may have about the sd(\u2019 &#8216;) function in R. Enjoy the learning experience!<\/p>\n<p>&nbsp;<\/p>\n<p>more tutorials<\/p>\n<p><a class=\"LinkSuggestion__Link-sc-1gewdgc-4 cLBplk\" href=\"https:\/\/www.silicloud.com\/blog\/how-can-a-pandas-dataframe-be-acquired-from-an-api-endpoint-that-lacks-order\/\" target=\"_blank\" rel=\"noopener\">get pandas DataFrame from an API endpoint that lacks order?<span class=\"sc-gswNZR eASTkv\">(Opens in a new browser tab)<\/span><\/a><\/p>\n<p><a class=\"LinkSuggestion__Link-sc-1gewdgc-4 cLBplk\" href=\"https:\/\/www.silicloud.com\/blog\/how-to-include-items-to-a-list-in-python\/\" target=\"_blank\" rel=\"noopener\">How to include items to a list in Python<span class=\"sc-gswNZR eASTkv\">(Opens in a new browser tab)<\/span><\/a><\/p>\n<p><a class=\"LinkSuggestion__Link-sc-1gewdgc-4 cLBplk\" href=\"https:\/\/www.silicloud.com\/blog\/basics-plot-function-in-r\/\" target=\"_blank\" rel=\"noopener\">Basics of Graph Plotting &#8211; Comprehending the plot() Function in R<span class=\"sc-gswNZR eASTkv\">(Opens in a new browser tab)<\/span><\/a><\/p>\n<p><a class=\"LinkSuggestion__Link-sc-1gewdgc-4 cLBplk\" href=\"https:\/\/www.silicloud.com\/blog\/a-tutorial-on-the-python-pandas-module\/\" target=\"_blank\" rel=\"noopener\">A tutorial on the Python Pandas module.<span class=\"sc-gswNZR eASTkv\">(Opens in a new browser tab)<\/span><\/a><\/p>\n<p><a class=\"LinkSuggestion__Link-sc-1gewdgc-4 cLBplk\" href=\"https:\/\/www.silicloud.com\/blog\/strsplit-function-in-r\/\" target=\"_blank\" rel=\"noopener\">strsplit function in R<span class=\"sc-gswNZR eASTkv\">(Opens in a new browser tab)<\/span><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>R, being a statistical language, provides the sd(\u2019 &#8216;) function to calculate the standard deviation of the values. What does the standard deviation mean? \u2018Standard deviation is the measure of the dispersion of the values\u2019. The higher the standard deviation, the wider the spread of values. The lower the standard deviation, the narrower the spread [&hellip;]<\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","footnotes":""},"categories":[1],"tags":[],"class_list":["post-1477","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How can you determine the standard deviation in R? - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"Standard deviation is the measure of the dispersion of the values\u2019.The higher the standard deviation, the wider the spread of values.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/blog\/how-can-you-determine-the-standard-deviation-in-r\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How can you determine the standard deviation in R?\" \/>\n<meta property=\"og:description\" content=\"Standard deviation is the measure of the dispersion of the values\u2019.The higher the standard deviation, the wider the spread of values.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/blog\/how-can-you-determine-the-standard-deviation-in-r\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/SiliCloudGlobal\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-12-20T11:32:20+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-09T16:11:35+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/655ddcb3cdcf9b6757a033b0\/20-0.png\" \/>\n<meta name=\"author\" content=\"Olivia Parker\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@SiliCloudGlobal\" \/>\n<meta name=\"twitter:site\" content=\"@SiliCloudGlobal\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Olivia Parker\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/how-can-you-determine-the-standard-deviation-in-r\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/blog\/how-can-you-determine-the-standard-deviation-in-r\/\"},\"author\":{\"name\":\"Olivia Parker\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/#\/schema\/person\/3ff7b3da0e45ac5dbbef2502f3cea8d9\"},\"headline\":\"How can you determine the standard deviation in R?\",\"datePublished\":\"2022-12-20T11:32:20+00:00\",\"dateModified\":\"2024-03-09T16:11:35+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.silicloud.com\/blog\/how-can-you-determine-the-standard-deviation-in-r\/\"},\"wordCount\":779,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.silicloud.com\/blog\/#organization\"},\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/how-can-you-determine-the-standard-deviation-in-r\/\",\"url\":\"https:\/\/www.silicloud.com\/blog\/how-can-you-determine-the-standard-deviation-in-r\/\",\"name\":\"How can you determine the standard deviation in R? - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/blog\/#website\"},\"datePublished\":\"2022-12-20T11:32:20+00:00\",\"dateModified\":\"2024-03-09T16:11:35+00:00\",\"description\":\"Standard deviation is the measure of the dispersion of the values\u2019.The higher the standard deviation, the wider the spread of values.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/blog\/how-can-you-determine-the-standard-deviation-in-r\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/blog\/how-can-you-determine-the-standard-deviation-in-r\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/how-can-you-determine-the-standard-deviation-in-r\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.silicloud.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How can you determine the standard deviation in R?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/blog\/\",\"name\":\"Silicon Cloud Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.silicloud.com\/blog\/#organization\"},\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/#organization\",\"name\":\"Silicon Cloud Blog\",\"url\":\"https:\/\/www.silicloud.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.silicloud.com\/blog\/wp-content\/uploads\/2023\/11\/EN-SILICON-Full.png\",\"contentUrl\":\"https:\/\/www.silicloud.com\/blog\/wp-content\/uploads\/2023\/11\/EN-SILICON-Full.png\",\"width\":1024,\"height\":1024,\"caption\":\"Silicon Cloud Blog\"},\"image\":{\"@id\":\"https:\/\/www.silicloud.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/SiliCloudGlobal\/\",\"https:\/\/twitter.com\/SiliCloudGlobal\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/#\/schema\/person\/3ff7b3da0e45ac5dbbef2502f3cea8d9\",\"name\":\"Olivia Parker\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.silicloud.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/56c66f189ba32a6f9eb50f31a38fe774e2a725c213d4070835ccc51b8fbbc54b?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/56c66f189ba32a6f9eb50f31a38fe774e2a725c213d4070835ccc51b8fbbc54b?s=96&d=mm&r=g\",\"caption\":\"Olivia Parker\"},\"url\":\"https:\/\/www.silicloud.com\/blog\/author\/oliviaparker\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How can you determine the standard deviation in R? - Blog - Silicon Cloud","description":"Standard deviation is the measure of the dispersion of the values\u2019.The higher the standard deviation, the wider the spread of values.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/blog\/how-can-you-determine-the-standard-deviation-in-r\/","og_locale":"en_US","og_type":"article","og_title":"How can you determine the standard deviation in R?","og_description":"Standard deviation is the measure of the dispersion of the values\u2019.The higher the standard deviation, the wider the spread of values.","og_url":"https:\/\/www.silicloud.com\/blog\/how-can-you-determine-the-standard-deviation-in-r\/","og_site_name":"Blog - Silicon Cloud","article_publisher":"https:\/\/www.facebook.com\/SiliCloudGlobal\/","article_published_time":"2022-12-20T11:32:20+00:00","article_modified_time":"2024-03-09T16:11:35+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/655ddcb3cdcf9b6757a033b0\/20-0.png"}],"author":"Olivia Parker","twitter_card":"summary_large_image","twitter_creator":"@SiliCloudGlobal","twitter_site":"@SiliCloudGlobal","twitter_misc":{"Written by":"Olivia Parker","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.silicloud.com\/blog\/how-can-you-determine-the-standard-deviation-in-r\/#article","isPartOf":{"@id":"https:\/\/www.silicloud.com\/blog\/how-can-you-determine-the-standard-deviation-in-r\/"},"author":{"name":"Olivia Parker","@id":"https:\/\/www.silicloud.com\/blog\/#\/schema\/person\/3ff7b3da0e45ac5dbbef2502f3cea8d9"},"headline":"How can you determine the standard deviation in R?","datePublished":"2022-12-20T11:32:20+00:00","dateModified":"2024-03-09T16:11:35+00:00","mainEntityOfPage":{"@id":"https:\/\/www.silicloud.com\/blog\/how-can-you-determine-the-standard-deviation-in-r\/"},"wordCount":779,"commentCount":0,"publisher":{"@id":"https:\/\/www.silicloud.com\/blog\/#organization"},"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/blog\/how-can-you-determine-the-standard-deviation-in-r\/","url":"https:\/\/www.silicloud.com\/blog\/how-can-you-determine-the-standard-deviation-in-r\/","name":"How can you determine the standard deviation in R? - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/blog\/#website"},"datePublished":"2022-12-20T11:32:20+00:00","dateModified":"2024-03-09T16:11:35+00:00","description":"Standard deviation is the measure of the dispersion of the values\u2019.The higher the standard deviation, the wider the spread of values.","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/blog\/how-can-you-determine-the-standard-deviation-in-r\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/blog\/how-can-you-determine-the-standard-deviation-in-r\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/blog\/how-can-you-determine-the-standard-deviation-in-r\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.silicloud.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How can you determine the standard deviation in R?"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/blog\/#website","url":"https:\/\/www.silicloud.com\/blog\/","name":"Silicon Cloud Blog","description":"","publisher":{"@id":"https:\/\/www.silicloud.com\/blog\/#organization"},"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.silicloud.com\/blog\/#organization","name":"Silicon Cloud Blog","url":"https:\/\/www.silicloud.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.silicloud.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.silicloud.com\/blog\/wp-content\/uploads\/2023\/11\/EN-SILICON-Full.png","contentUrl":"https:\/\/www.silicloud.com\/blog\/wp-content\/uploads\/2023\/11\/EN-SILICON-Full.png","width":1024,"height":1024,"caption":"Silicon Cloud Blog"},"image":{"@id":"https:\/\/www.silicloud.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/SiliCloudGlobal\/","https:\/\/twitter.com\/SiliCloudGlobal"]},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/blog\/#\/schema\/person\/3ff7b3da0e45ac5dbbef2502f3cea8d9","name":"Olivia Parker","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.silicloud.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/56c66f189ba32a6f9eb50f31a38fe774e2a725c213d4070835ccc51b8fbbc54b?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/56c66f189ba32a6f9eb50f31a38fe774e2a725c213d4070835ccc51b8fbbc54b?s=96&d=mm&r=g","caption":"Olivia Parker"},"url":"https:\/\/www.silicloud.com\/blog\/author\/oliviaparker\/"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/posts\/1477","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/comments?post=1477"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/posts\/1477\/revisions"}],"predecessor-version":[{"id":1823,"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/posts\/1477\/revisions\/1823"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/media?parent=1477"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/categories?post=1477"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/blog\/wp-json\/wp\/v2\/tags?post=1477"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}