{"id":1386,"date":"2023-06-08T19:48:26","date_gmt":"2023-06-08T19:48:26","guid":{"rendered":"https:\/\/kpwalters.com\/?page_id=1386"},"modified":"2023-08-12T01:31:05","modified_gmt":"2023-08-12T01:31:05","slug":"some-stat-funcs-excel","status":"publish","type":"page","link":"https:\/\/kpwalters.com\/index.php\/other-projects\/some-stat-funcs-excel\/","title":{"rendered":"Some stat functions in Excel"},"content":{"rendered":"\n<div class=\"wp-block-uagb-container uagb-block-5ecd57d8 alignfull uagb-is-root-container\">\n<div class=\"wp-block-uagb-advanced-heading uagb-block-c5e09557\"><h5 class=\"uagb-heading-text\">Some stat functions in Excel<\/h5><\/div>\n<\/div>\n\n\n\n<div class=\"wp-block-uagb-container uagb-block-02005ed6 alignfull uagb-is-root-container\"><div class=\"uagb-container-inner-blocks-wrap\">\n<div class=\"wp-block-uagb-container uagb-block-5e36d122\">\n<p class=\"has-text-align-left has-small-font-size\" style=\"margin-top:0px;margin-bottom:0px;padding-top:0px;padding-bottom:0px\"><em>Last update June 8, 2023<\/em><\/p>\n\n\n\n<p style=\"padding-top:var(--wp--preset--spacing--40)\"><a href=\"#excel-file-for-download\">Excel file for download<\/a><br><a href=\"#var-and-std-dev\">Variance and standard deviation<\/a><br><a href=\"#covariance\">Covariance<\/a><br><a href=\"#correlation\">Correlation<\/a><br><a href=\"#charts\">Charts<\/a><br><a href=\"#coefficient-of-determination\">Coefficient of determination<\/a><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-uagb-container uagb-block-f0d6051a\">\n<div class=\"wp-block-uagb-advanced-heading uagb-block-fb8b9cae\"><h5 class=\"uagb-heading-text\">Overview<\/h5><\/div>\n\n\n\n<p style=\"margin-top:0px;padding-top:0px\">I created this workbook is just for fun when enrolled in a bootcamp program. It helped me better understand some of the standard statistical functions used in Excel, notably COVAR, STDEV, CORREL, and RSQL.<\/p>\n\n\n\n<p>In the workbook, I calculated variance, covariance, standard deviation, correlation, and the coefficient of determination (\u201cr-squared\u201d) by using the standard statistical formulas rather than the built-in functions in Excel.<\/p>\n\n\n\n<p>I include this workbook in my portfolio in the event that some other student of statistics finds it useful or perhaps inspires them to do their own base computations. It also demonstrates\u2014admirably in my opinion\u2014useful application of Named Ranges.<\/p>\n\n\n\n<div class=\"wp-block-uagb-advanced-heading uagb-block-502cc2c3\" id=\"excel-file-for-download\"><h5 class=\"uagb-heading-text\">Excel file<\/h5><\/div>\n\n\n\n<p><a href=\"http:\/\/kpwalters.com\/wp-content\/uploads\/2023\/06\/Some-stat-calculations.xlsx\">Click here<\/a> to download the Excel file.<\/p>\n\n\n\n<div class=\"wp-block-uagb-advanced-heading uagb-block-8d4b61b4\" id=\"var-and-std-dev\"><h5 class=\"uagb-heading-text\">First worksheet: <br>Variance and Standard Deviation<\/h5><\/div>\n\n\n\n<p>The first worksheet features two samples, identified simply as <em>x<\/em> (A2:A31) and <em>y<\/em> ( B2:B31). Both are also Named Ranges. There are several formulas which demonstrate how to calculate variance and standard deviation of the samples with and without using Excel\u2019s VAR and STDEV functions.<\/p>\n\n\n\n<div class=\"wp-block-uagb-advanced-heading uagb-block-209c12a7\" id=\"covariance\"><h5 class=\"uagb-heading-text\">Second worksheet: Covariance<\/h5><\/div>\n\n\n\n<p>The second worksheet shows the calculation of covariance between an independent variable (A2:A31) and a dependent variable (B2:B31), appropriately labeled <em>x<\/em> and <em>y<\/em>. There are a variety of calculations, all arriving at the same results, with and without Excel\u2019s COVAR functions. The worksheet demonstrates the use of Named Ranges pretty extensively.<\/p>\n\n\n\n<div class=\"wp-block-uagb-advanced-heading uagb-block-0aa46993\" id=\"correlation\"><h5 class=\"uagb-heading-text\">Third worksheet:<br>Correlation<\/h5><\/div>\n\n\n\n<p>The third worksheet shows the calculation of correlation between an independent variable (A2:A31) and a dependent variable (B2:B31), appropriately labeled <em>x<\/em> and <em>y<\/em>. There is one calculation without Excel\u2019s CORREL function and one with.<\/p>\n\n\n\n<div class=\"wp-block-uagb-advanced-heading uagb-block-63b964df\" id=\"charts\"><h5 class=\"uagb-heading-text\">Fourth worksheet: Charts<\/h5><\/div>\n\n\n\n<p>In the fourth worksheet, I created several sets of dependent variables based on the single set of independent variables found in cells A2:A31. I then graphed them and compared the values of covariance and correlation among the different sets.<\/p>\n\n\n\n<p>The worksheet includes two charts that show the limitations of using correlation on a polynomial. <\/p>\n\n\n\n<div class=\"wp-block-uagb-advanced-heading uagb-block-70ef14a9\" id=\"coefficient-of-determination\"><h5 class=\"uagb-heading-text\">Fifth worksheet: <br>Coefficient of determination<\/h5><\/div>\n\n\n\n<p>The last worksheet shows how to calculate the coefficient of determination (\u201cr-squared\u201d) where the dependent variable has a polynomial relationship to the independent variable.<\/p>\n\n\n\n<p>It is notable in that Excel\u2019s RSQ function does not properly calculate the coefficient of determination for a polynomial relationship. However, we can still use built-in functionality (rather than calculating r-squared \u201cmanually\u201d as in cell I15) by pulling the r-squared value from LINEST.<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-uagb-container uagb-block-39c89d6a\">\n<p class=\"has-text-align-right has-small-font-size\" style=\"margin-top:0px;margin-bottom:0;padding-top:0px;padding-bottom:0px;line-height:1.2\">Excel files<em>Excel<\/em><\/p>\n<\/div>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Some stat functions in Excel Last update June 8, 2023 Excel file for downloadVariance and standard deviationCovarianceCorrelationChartsCoefficient of determination Overview I created this workbook is just for fun when enrolled in a bootcamp program. It helped me better understand some of the standard statistical functions used in Excel, notably COVAR, STDEV, CORREL, and RSQL. In &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"\" href=\"https:\/\/kpwalters.com\/index.php\/other-projects\/some-stat-funcs-excel\/\"> <span class=\"screen-reader-text\">Some stat functions in Excel<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":933,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"page-builder","ast-global-header-display":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"disabled","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"enabled","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","footnotes":""},"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false},"uagb_author_info":{"display_name":"kevin.p.walters@live.com","author_link":"https:\/\/kpwalters.com\/index.php\/author\/kevin-p-walterslive-com\/"},"uagb_comment_info":0,"uagb_excerpt":"Some stat functions in Excel Last update June 8, 2023 Excel file for downloadVariance and standard deviationCovarianceCorrelationChartsCoefficient of determination Overview I created this workbook is just for fun when enrolled in a bootcamp program. It helped me better understand some of the standard statistical functions used in Excel, notably COVAR, STDEV, CORREL, and RSQL. In&hellip;","_links":{"self":[{"href":"https:\/\/kpwalters.com\/index.php\/wp-json\/wp\/v2\/pages\/1386"}],"collection":[{"href":"https:\/\/kpwalters.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/kpwalters.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/kpwalters.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kpwalters.com\/index.php\/wp-json\/wp\/v2\/comments?post=1386"}],"version-history":[{"count":20,"href":"https:\/\/kpwalters.com\/index.php\/wp-json\/wp\/v2\/pages\/1386\/revisions"}],"predecessor-version":[{"id":1703,"href":"https:\/\/kpwalters.com\/index.php\/wp-json\/wp\/v2\/pages\/1386\/revisions\/1703"}],"up":[{"embeddable":true,"href":"https:\/\/kpwalters.com\/index.php\/wp-json\/wp\/v2\/pages\/933"}],"wp:attachment":[{"href":"https:\/\/kpwalters.com\/index.php\/wp-json\/wp\/v2\/media?parent=1386"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}