{"id":20278,"date":"2026-01-30T07:35:33","date_gmt":"2026-01-30T07:35:33","guid":{"rendered":"https:\/\/www.booksofall.com\/in\/?post_type=product&#038;p=20278"},"modified":"2026-01-30T07:35:33","modified_gmt":"2026-01-30T07:35:33","slug":"statistical-inference-for-data-science","status":"publish","type":"product","link":"https:\/\/www.booksofall.com\/in\/statistical-inference-for-data-science\/","title":{"rendered":"Statistical inference for data science"},"content":{"rendered":"<h2><b>Introduction <\/b><\/h2>\n<p><b>Before beginning\u00a0<\/b><\/p>\n<p>This book is designed as a companion to the <a href=\"https:\/\/www.coursera.org\/learn\/statistical-inference\">Statistical Inference Coursera<\/a> class as part of the<a href=\"https:\/\/www.coursera.org\/specializations\/jhu-data-science?utm_medium=courseDescripTop\"> Data Science Specialization<\/a>, a ten course program offered by three faculty, Jeff Leek, Roger Peng and Brian Caffo, at the Johns Hopkins University Department of Biostatistics.<\/p>\n<p>The videos associated with this book can be watched in full <a href=\"https:\/\/www.youtube.com\/watch?v=WkOinijQmPU&amp;list=PLpl-gQkQivXiBmGyzLrUjzsblmQsLtkzJ\">here<\/a>, though the relevant links to specific videos are placed at the appropriate locations throughout.<\/p>\n<p>Before beginning, we assume that you have a working knowledge of the R programming language. If not, there is a wonderful Coursera class by Roger Peng, that can be found <a href=\"https:\/\/www.coursera.org\/learn\/r-programming\">here<\/a>.<\/p>\n<p>The entirety of the book is on GitHub <a href=\"https:\/\/github.com\/bcaffo\/LittleInferenceBook\">here<\/a>. Please submit pull requests if you find errata! In addition the course notes can be found also on GitHub <a href=\"https:\/\/github.com\/bcaffo\/courses\/tree\/master\/06_StatisticalInference\">here<\/a>. While most code is in the book, <i>all\u00a0<\/i>of the code for every figure and analysis in the book is in the R markdown files files (.Rmd) for the respective lectures.<\/p>\n<p>Finally, we should mention swirl (statistics with interactive R programming). swirl is an intelligent tutoring system developed by Nick Carchedi, with contributions by Sean Kross and Bill and Gina Croft. It offers a way to learn R in R. <a href=\"https:\/\/swirlstats.com\/\">Download swirl here<\/a>. There\u2019s a swirl <a href=\"https:\/\/github.com\/swirldev\/swirl_courses#swirl-courses\">module for this course<\/a>!. Try it out, it\u2019s probably the most effective way to learn.<\/p>\n<p><b>Statistical inference defined\u00a0<\/b><\/p>\n<p><a href=\"https:\/\/www.youtube.com\/watch?v=WkOinijQmPU&amp;list=PLpl-gQkQivXiBmGyzLrUjzsblmQsLtkzJ\">Watch this video before beginning.<\/a><\/p>\n<p>We\u2019ll define statistical inference as the process of generating conclusions about a population from a noisy sample. Without statistical inference we\u2019re simply living within our data. With statistical inference, we\u2019re trying to generate new knowledge.<\/p>\n<p>Knowledge and parsimony, (using simplest reasonable models to explain complex phenomena), go hand in hand. Probability models will serve as our parsimonious description of the world. The use of probability models as the connection between our data and a populations represents the most effective way to obtain inference.<\/p>\n<p><b>Motivating example: who\u2019s going to win the election?\u00a0<\/b><\/p>\n<p>In every major election, pollsters would like to know, ahead of the actual election, who\u2019s going to win. Here, the target of estimation (the estimand) is clear, the percentage of people in a particular group (city, state, county, country or other electoral grouping) who will vote for each candidate.<\/p>\n<p>We can not poll everyone. Even if we could, some polled may change their vote by the time the election occurs. How do we collect a reasonable subset of data and quantify the uncertainty in the process to produce a good guess at who will win?<\/p>\n<p><b>Motivating example, predicting the weather<\/b><\/p>\n<p>When a weatherman tells you the probability that it will rain tomorrow is 70%, they\u2019re trying to use historical data to predict tomorrow\u2019s weather &#8211; and to actually attach a probability to it. That probability refers to population.<\/p>\n<p><b>Motivating example, brain activation\u00a0<\/b><\/p>\n<p>An example that\u2019s very close to the research I do is trying to predict what areas of the brain activate when a person is put in the fMRI scanner. In that case, people are doing a task while in the scanner. For example, they might be tapping their finger. We\u2019d like to compare when they are tapping their finger to when they are not tapping their finger and try to figure out what areas of the brain are associated with the finger tapping.<\/p>\n<p><b>Summary notes\u00a0<\/b><\/p>\n<p>These examples illustrate many of the difficulties of trying to use data to create general conclusions about a population. Paramount among our concerns are:<\/p>\n<ul>\n<li>Is the sample representative of the population that we\u2019d like to draw inferences about?<\/li>\n<li>Are there known and observed, known and unobserved or unknown and unobserved variables that contaminate our conclusions?<\/li>\n<li>Is there systematic bias created by missing data or the design or conduct of the study?<\/li>\n<li>What randomness exists in the data and how do we use or adjust for it? Here randomness can either be explicit via randomization or random sampling, or implicit as the aggregation of many complex unknown processes.<\/li>\n<li>Are we trying to estimate an underlying mechanistic model of phenomena under study?<\/li>\n<\/ul>\n<p>Statistical inference requires navigating the set of assumptions and tools and subsequently thinking about how to draw conclusions from data.<\/p>\n","protected":false},"excerpt":{"rendered":"<p><iframe style=\"width: 100%; height: 750px; border: none;\" src=\"https:\/\/online.visual-paradigm.com\/share\/book\/statistical-inference-for-data-science-18k76jouzd?p=1\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/p>\n","protected":false},"featured_media":20281,"template":"","meta":{"_yoast_wpseo_title":"","_yoast_wpseo_metadesc":"As more and more things are included as part of data collection, statistical inference is more commonly used nowadays. Know more about it in this book!"},"product_brand":[],"product_cat":[280],"product_tag":[],"class_list":{"0":"post-20278","1":"product","2":"type-product","3":"status-publish","4":"has-post-thumbnail","6":"product_cat-data-science","8":"first","9":"instock","10":"shipping-taxable","11":"product-type-simple"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Statistical inference for data science - BooksOffAll Indian<\/title>\n<meta name=\"description\" content=\"As more and more things are included as part of data collection, statistical inference is more commonly used nowadays. Know more about it in this book!\" \/>\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.booksofall.com\/in\/statistical-inference-for-data-science\/\" \/>\n<meta property=\"og:locale\" content=\"hi_IN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Statistical inference for data science - BooksOffAll Indian\" \/>\n<meta property=\"og:description\" content=\"As more and more things are included as part of data collection, statistical inference is more commonly used nowadays. Know more about it in this book!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.booksofall.com\/in\/statistical-inference-for-data-science\/\" \/>\n<meta property=\"og:site_name\" content=\"BooksOffAll Indian\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.booksofall.com\/in\/wp-content\/uploads\/sites\/13\/2023\/01\/cover-02.jpg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/www.booksofall.com\/in\/wp-content\/uploads\/sites\/13\/2023\/01\/cover-02.jpg\" \/>\n<meta name=\"twitter:label1\" content=\"\u0905\u0928\u0941\u092e\u093e\u0928\u093f\u0924 \u092a\u0922\u093c\u0928\u0947 \u0915\u093e \u0938\u092e\u092f\" \/>\n\t<meta name=\"twitter:data1\" content=\"4 \u092e\u093f\u0928\u091f\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.booksofall.com\/in\/statistical-inference-for-data-science\/\",\"url\":\"https:\/\/www.booksofall.com\/in\/statistical-inference-for-data-science\/\",\"name\":\"Statistical inference for data science - BooksOffAll Indian\",\"isPartOf\":{\"@id\":\"https:\/\/www.booksofall.com\/in\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.booksofall.com\/in\/statistical-inference-for-data-science\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.booksofall.com\/in\/statistical-inference-for-data-science\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.booksofall.com\/in\/wp-content\/uploads\/sites\/13\/2023\/01\/cover-02.jpg\",\"datePublished\":\"2026-01-30T07:35:33+00:00\",\"description\":\"As more and more things are included as part of data collection, statistical inference is more commonly used nowadays. Know more about it in this book!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.booksofall.com\/in\/statistical-inference-for-data-science\/#breadcrumb\"},\"inLanguage\":\"hi-IN\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.booksofall.com\/in\/statistical-inference-for-data-science\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"hi-IN\",\"@id\":\"https:\/\/www.booksofall.com\/in\/statistical-inference-for-data-science\/#primaryimage\",\"url\":\"https:\/\/www.booksofall.com\/in\/wp-content\/uploads\/sites\/13\/2023\/01\/cover-02.jpg\",\"contentUrl\":\"https:\/\/www.booksofall.com\/in\/wp-content\/uploads\/sites\/13\/2023\/01\/cover-02.jpg\",\"width\":\"595\",\"height\":\"842\",\"caption\":\"Statistical inference for data science\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.booksofall.com\/in\/statistical-inference-for-data-science\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.booksofall.com\/in\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Categories\",\"item\":\"https:\/\/www.booksofall.com\/in\/categories\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Statistical inference for data science\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.booksofall.com\/in\/#website\",\"url\":\"https:\/\/www.booksofall.com\/in\/\",\"name\":\"BooksOffAll Indian\",\"description\":\"Biggest IT eBooks library and learning resources - Free eBooks for programming, computing, artificial intelligence and more.\",\"publisher\":{\"@id\":\"https:\/\/www.booksofall.com\/in\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.booksofall.com\/in\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"hi-IN\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.booksofall.com\/in\/#organization\",\"name\":\"BooksOffAll Indian\",\"url\":\"https:\/\/www.booksofall.com\/in\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"hi-IN\",\"@id\":\"https:\/\/www.booksofall.com\/in\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.booksofall.com\/in\/wp-content\/uploads\/sites\/13\/2022\/06\/booksofall-logo-2.png\",\"contentUrl\":\"https:\/\/www.booksofall.com\/in\/wp-content\/uploads\/sites\/13\/2022\/06\/booksofall-logo-2.png\",\"width\":166,\"height\":30,\"caption\":\"BooksOffAll Indian\"},\"image\":{\"@id\":\"https:\/\/www.booksofall.com\/in\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Statistical inference for data science - BooksOffAll Indian","description":"As more and more things are included as part of data collection, statistical inference is more commonly used nowadays. Know more about it in this book!","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.booksofall.com\/in\/statistical-inference-for-data-science\/","og_locale":"hi_IN","og_type":"article","og_title":"Statistical inference for data science - BooksOffAll Indian","og_description":"As more and more things are included as part of data collection, statistical inference is more commonly used nowadays. Know more about it in this book!","og_url":"https:\/\/www.booksofall.com\/in\/statistical-inference-for-data-science\/","og_site_name":"BooksOffAll Indian","og_image":[{"url":"https:\/\/www.booksofall.com\/in\/wp-content\/uploads\/sites\/13\/2023\/01\/cover-02.jpg","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_image":"https:\/\/www.booksofall.com\/in\/wp-content\/uploads\/sites\/13\/2023\/01\/cover-02.jpg","twitter_misc":{"\u0905\u0928\u0941\u092e\u093e\u0928\u093f\u0924 \u092a\u0922\u093c\u0928\u0947 \u0915\u093e \u0938\u092e\u092f":"4 \u092e\u093f\u0928\u091f"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.booksofall.com\/in\/statistical-inference-for-data-science\/","url":"https:\/\/www.booksofall.com\/in\/statistical-inference-for-data-science\/","name":"Statistical inference for data science - BooksOffAll Indian","isPartOf":{"@id":"https:\/\/www.booksofall.com\/in\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.booksofall.com\/in\/statistical-inference-for-data-science\/#primaryimage"},"image":{"@id":"https:\/\/www.booksofall.com\/in\/statistical-inference-for-data-science\/#primaryimage"},"thumbnailUrl":"https:\/\/www.booksofall.com\/in\/wp-content\/uploads\/sites\/13\/2023\/01\/cover-02.jpg","datePublished":"2026-01-30T07:35:33+00:00","description":"As more and more things are included as part of data collection, statistical inference is more commonly used nowadays. Know more about it in this book!","breadcrumb":{"@id":"https:\/\/www.booksofall.com\/in\/statistical-inference-for-data-science\/#breadcrumb"},"inLanguage":"hi-IN","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.booksofall.com\/in\/statistical-inference-for-data-science\/"]}]},{"@type":"ImageObject","inLanguage":"hi-IN","@id":"https:\/\/www.booksofall.com\/in\/statistical-inference-for-data-science\/#primaryimage","url":"https:\/\/www.booksofall.com\/in\/wp-content\/uploads\/sites\/13\/2023\/01\/cover-02.jpg","contentUrl":"https:\/\/www.booksofall.com\/in\/wp-content\/uploads\/sites\/13\/2023\/01\/cover-02.jpg","width":"595","height":"842","caption":"Statistical inference for data science"},{"@type":"BreadcrumbList","@id":"https:\/\/www.booksofall.com\/in\/statistical-inference-for-data-science\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.booksofall.com\/in\/"},{"@type":"ListItem","position":2,"name":"Categories","item":"https:\/\/www.booksofall.com\/in\/categories\/"},{"@type":"ListItem","position":3,"name":"Statistical inference for data science"}]},{"@type":"WebSite","@id":"https:\/\/www.booksofall.com\/in\/#website","url":"https:\/\/www.booksofall.com\/in\/","name":"BooksOffAll Indian","description":"Biggest IT eBooks library and learning resources - Free eBooks for programming, computing, artificial intelligence and more.","publisher":{"@id":"https:\/\/www.booksofall.com\/in\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.booksofall.com\/in\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"hi-IN"},{"@type":"Organization","@id":"https:\/\/www.booksofall.com\/in\/#organization","name":"BooksOffAll Indian","url":"https:\/\/www.booksofall.com\/in\/","logo":{"@type":"ImageObject","inLanguage":"hi-IN","@id":"https:\/\/www.booksofall.com\/in\/#\/schema\/logo\/image\/","url":"https:\/\/www.booksofall.com\/in\/wp-content\/uploads\/sites\/13\/2022\/06\/booksofall-logo-2.png","contentUrl":"https:\/\/www.booksofall.com\/in\/wp-content\/uploads\/sites\/13\/2022\/06\/booksofall-logo-2.png","width":166,"height":30,"caption":"BooksOffAll Indian"},"image":{"@id":"https:\/\/www.booksofall.com\/in\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.booksofall.com\/in\/wp-json\/wp\/v2\/product\/20278","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.booksofall.com\/in\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/www.booksofall.com\/in\/wp-json\/wp\/v2\/types\/product"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.booksofall.com\/in\/wp-json\/wp\/v2\/media\/20281"}],"wp:attachment":[{"href":"https:\/\/www.booksofall.com\/in\/wp-json\/wp\/v2\/media?parent=20278"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/www.booksofall.com\/in\/wp-json\/wp\/v2\/product_brand?post=20278"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/www.booksofall.com\/in\/wp-json\/wp\/v2\/product_cat?post=20278"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/www.booksofall.com\/in\/wp-json\/wp\/v2\/product_tag?post=20278"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}