Details

Applied Univariate, Bivariate, and Multivariate Statistics Using Python


Applied Univariate, Bivariate, and Multivariate Statistics Using Python

A Beginner's Guide to Advanced Data Analysis
1. Aufl.

von: Daniel J. Denis

96,99 €

Verlag: Wiley
Format: PDF
Veröffentl.: 30.04.2021
ISBN/EAN: 9781119578178
Sprache: englisch
Anzahl Seiten: 304

DRM-geschütztes eBook, Sie benötigen z.B. Adobe Digital Editions und eine Adobe ID zum Lesen.

Beschreibungen

<b>Applied Univariate, Bivariate, and Multivariate Statistics Using Python</b> <p><b>A practical, “how-to” reference for anyone performing essential statistical analyses and data management tasks in Python</b><p><i>Applied Univariate, Bivariate, and Multivariate Statistics Using Python</i> delivers a comprehensive introduction to a wide range of statistical methods performed using Python in a single, one-stop reference. The book contains user-friendly guidance and instructions on using Python to run a variety of statistical procedures without getting bogged down in unnecessary theory. Throughout, the author emphasizes a set of computational tools used in the discovery of empirical patterns, as well as several popular statistical analyses and data management tasks that can be immediately applied.<p>Most of the datasets used in the book are small enough to be easily entered into Python manually, though they can also be downloaded for free from www.datapsyc.com. Only minimal knowledge of statistics is assumed, making the book perfect for those seeking an easily accessible toolkit for statistical analysis with Python. <i>Applied Univariate, Bivariate, and Multivariate Statistics Using Python</i> represents the fastest way to learn how to analyze data with Python.<p>Readers will also benefit from the inclusion of:<ul><li>A review of essential statistical principles, including types of data, measurement, significance tests, significance levels, and type I and type II errors</li><li>An introduction to Python, exploring how to communicate with Python</li><li>A treatment of exploratory data analysis, basic statistics and visual displays, including frequencies and descriptives, q-q plots, box-and-whisker plots, and data management</li><li>An introduction to topics such as ANOVA, MANOVA and discriminant analysis, regression, principal components analysis, factor analysis, cluster analysis, among others, exploring the nature of what these techniques can vs. cannot do on a methodological level</li></ul><p>Perfect for undergraduate and graduate students in the social, behavioral, and natural sciences, <i>Applied Univariate, Bivariate, and Multivariate Statistics Using Python</i> will also earn a place in the libraries of researchers and data analysts seeking a quick go-to resource for univariate, bivariate, and multivariate analysis in Python.
<p>Preface xii</p> <p><b>1 A Brief Introduction and Overview of Applied Statistics 1</b></p> <p>1.1 How Statistical Inference Works 4</p> <p>1.2 Statistics and Decision-Making 7</p> <p>1.3 Quantifying Error Rates in Decision-Making: Type I and Type II Errors 8</p> <p>1.4 Estimation of Parameters 9</p> <p>1.5 Essential Philosophical Principles for Applied Statistics 11</p> <p>1.6 Continuous vs. Discrete Variables 13</p> <p>1.6.1 Continuity Is Not Always Clear-Cut 15</p> <p>1.7 Using Abstract Systems to Describe Physical Phenomena:</p> <p>Understanding Numerical vs. Physical Differences 16</p> <p>1.8 Data Analysis, Data Science, Machine Learning, Big Data 18</p> <p>1.9 “Training” and “Testing” Models: What “Statistical Learning” Means in the Age of Machine Learning and Data Science 20</p> <p>1.10 Where We Are Going From Here: How to Use This Book 22</p> <p>Review Exercises 23</p> <p><b>2 Introduction to Python and the Field of Computational Statistics 25</b></p> <p>2.1 The Importance of Specializing in Statistics and Research, Not Python: Advice for Prioritizing Your Hierarchy 26</p> <p>2.2 How to Obtain Python 28</p> <p>2.3 Python Packages 29</p> <p>2.4 Installing a New Package in Python 31</p> <p>2.5 Computing <b><i>z</i></b>-Scores in Python 32</p> <p>2.6 Building a Dataframe in Python: And Computing Some Statistical Functions 35</p> <p>2.7 Importing a .txt or .csv File 38</p> <p>2.8 Loading Data into Python 39</p> <p>2.9 Creating Random Data in Python 40</p> <p>2.10 Exploring Mathematics in Python 40</p> <p>2.11 Linear and Matrix Algebra in Python: Mechanics of Statistical Analyses 41</p> <p>2.11.1 Operations on Matrices 44</p> <p>2.11.2 Eigenvalues and Eigenvectors 47</p> <p>Review Exercises 48</p> <p><b>3 Visualization in Python: Introduction to Graphs and Plots 50</b></p> <p>3.1 Aim for Simplicity and Clarity in Tables and Graphs: Complexity is for Fools! 52</p> <p>3.2 State Population Change Data 54</p> <p>3.3 What Do the Numbers Tell Us? Clues to Substantive Theory 56</p> <p>3.4 The Scatterplot 58</p> <p>3.5 Correlograms 59</p> <p>3.6 Histograms and Bar Graphs 61</p> <p>3.7 Plotting Side-by-Side Histograms 62</p> <p>3.8 Bubble Plots 63</p> <p>3.9 Pie Plots 65</p> <p>3.10 Heatmaps 66</p> <p>3.11 Line Charts 68</p> <p>3.12 Closing Thoughts 69</p> <p>Review Exercises 70</p> <p><b>4 Simple Statistical Techniques for Univariate and Bivariate Analyses 72</b></p> <p>4.1 Pearson Product-Moment Correlation 73</p> <p>4.2 A Pearson Correlation Does Not (Necessarily) Imply Zero Relationship 75</p> <p>4.3 Spearman’s Rho 76</p> <p>4.4 More General Comments on Correlation: Don’t Let a Correlation Impress You Too Much! 79</p> <p>4.5 Computing Correlation in Python 80</p> <p>4.6 <i>T</i>-Tests for Comparing Means 84</p> <p>4.7 Paired-Samples <b><i>t</i></b>-Test in Python 88</p> <p>4.8 Binomial Test 90</p> <p>4.9 The Chi-Squared Distribution and Goodness-of-Fit Test 91</p> <p>4.10 Contingency Tables 93</p> <p>Review Exercises 94</p> <p><b>5 Power, Effect Size, <i>P</i>-Values, and Estimating Required Sample Size Using Python 96</b></p> <p>5.1 What Determines the Size of a <i>P</i>-Value? 96</p> <p>5.2 How <i>P</i>-Values Are a Function of Sample Size 99</p> <p>5.3 What is Effect Size? 100</p> <p>5.4 Understanding Population Variability in the Context of Experimental Design 102</p> <p>5.5 Where Does Power Fit into All of This? 103</p> <p>5.6 Can You Have Too Much Power? Can a Sample Be Too Large? 104</p> <p>5.7 Demonstrating Power Principles in Python: Estimating Power or Sample Size 106</p> <p>5.8 Demonstrating the Influence of Effect Size 108</p> <p>5.9 The Influence of Significance Levels on Statistical Power 108</p> <p>5.10 What About Power and Hypothesis Testing in the Age of “Big Data”? 110</p> <p>5.11 Concluding Comments on Power, Effect Size, and Significance Testing 111</p> <p>Review Exercises 112</p> <p><b>6 Analysis of Variance 113</b></p> <p>6.1 <i>T</i>-Tests for Means as a “Special Case” of ANOVA 114</p> <p>6.2 Why Not Do Several <i>t</i>-Tests? 116</p> <p>6.3 Understanding ANOVA Through an Example 117</p> <p>6.4 Evaluating Assumptions in ANOVA 121</p> <p>6.5 ANOVA in Python 124</p> <p>6.6 Effect Size for Teacher 125</p> <p>6.7 Post-Hoc Tests Following the ANOVA <i>F</i>-Test 125</p> <p>6.8 A Myriad of Post-Hoc Tests 127</p> <p>6.9 Factorial ANOVA 129</p> <p>6.10 Statistical Interactions 131</p> <p>6.11 Interactions in the Sample Are a Virtual Guarantee: Interactions in the Population Are Not 133</p> <p>6.12 Modeling the Interaction Term 133</p> <p>6.13 Plotting Residuals 134</p> <p>6.14 Randomized Block Designs and Repeated Measures 135</p> <p>6.15 Nonparametric Alternatives 138</p> <p>6.15.1 Revisiting What “Satisfying Assumptions” Means: A Brief Discussion and Suggestion of How to Approach the Decision Regarding Nonparametrics 140</p> <p>6.15.2 Your Experience in the Area Counts 140</p> <p>6.15.3 What If Assumptions Are Truly Violated? 141</p> <p>6.15.4 Mann-Whitney U Test 144</p> <p>6.15.5 Kruskal-Wallis Test as a Nonparametric Alternative to ANOVA 145</p> <p>Review Exercises 147</p> <p><b>7 Simple and Multiple Linear Regression 148</b></p> <p>7.1 Why Use Regression? 150</p> <p>7.2 The Least-Squares Principle 152</p> <p>7.3 Regression as a “New” Least-Squares Line 153</p> <p>7.4 The Population Least-Squares Regression Line 154</p> <p>7.5 How to Estimate Parameters in Regression 155</p> <p>7.6 How to Assess Goodness of Fit? 157</p> <p>7.7 <i>R</i><sup>2</sup> – Coefficient of Determination 158</p> <p>7.8 Adjusted <i>R</i><sup>2</sup> 159</p> <p>7.9 Regression in Python 161</p> <p>7.10 Multiple Linear Regression 164</p> <p>7.11 Defining the Multiple Regression Model 164</p> <p>7.12 Model Specification Error 166</p> <p>7.13 Multiple Regression in Python 167</p> <p>7.14 Model-Building Strategies: Forward, Backward, Stepwise 168</p> <p>7.15 Computer-Intensive “Algorithmic” Approaches 171</p> <p>7.16 Which Approach Should You Adopt? 171</p> <p>7.17 Concluding Remarks and Further Directions: Polynomial Regression 172</p> <p>Review Exercises 174</p> <p><b>8 Logistic Regression and the Generalized Linear Model 176</b></p> <p>8.1 How Are Variables Best Measured? Are There Ideal Scales on Which a Construct Should Be Targeted? 178</p> <p>8.2 The Generalized Linear Model 180</p> <p>8.3 Logistic Regression for Binary Responses: A Special Subclass of the Generalized Linear Model 181</p> <p>8.4 Logistic Regression in Python 184</p> <p>8.5 Multiple Logistic Regression 188</p> <p>8.5.1 A Model with Only Lag1 191</p> <p>8.6 Further Directions 192</p> <p>Review Exercises 192</p> <p><b>9 Multivariate Analysis of Variance (MANOVA) and Discriminant Analysis 194</b></p> <p>9.1 Why Technically Most Univariate Models are Actually Multivariate 195</p> <p>9.2 Should I Be Running a Multivariate Model? 196</p> <p>9.3 The Discriminant Function 198</p> <p>9.4 Multivariate Tests of Significance: Why They Are Different from the <b><i>F</i></b>-Ratio 199</p> <p>9.4.1 Wilks’ Lambda 200</p> <p>9.4.2 Pillai’s Trace 201</p> <p>9.4.3 Roy’s Largest Root 201</p> <p>9.4.4 Lawley-Hotelling’s Trace 202</p> <p>9.5 Which Multivariate Test to Use? 202</p> <p>9.6 Performing MANOVA in Python 203</p> <p>9.7 Effect Size for MANOVA 205</p> <p>9.8 Linear Discriminant Function Analysis 205</p> <p>9.9 How Many Discriminant Functions Does One Require? 207</p> <p>9.10 Discriminant Analysis in Python: Binary Response 208</p> <p>9.11 Another Example of Discriminant Analysis: Polytomous Classification 211</p> <p>9.12 Bird’s Eye View of MANOVA, ANOVA, Discriminant Analysis, and Regression: A Partial Conceptual Unification 212</p> <p>9.13 Models “Subsumed” Under the Canonical Correlation Framework 214</p> <p>Review Exercises 216</p> <p><b>10 Principal Components Analysis 218</b></p> <p>10.1 What Is Principal Components Analysis? 218</p> <p>10.2 Principal Components as Eigen Decomposition 221</p> <p>10.3 PCA on Correlation Matrix 223</p> <p>10.4 Why Icebergs Are Not Good Analogies for PCA 224</p> <p>10.5 PCA in Python 226</p> <p>10.6 Loadings in PCA: Making Substantive Sense Out of an Abstract Mathematical Entity 229</p> <p>10.7 Naming Components Using Loadings: A Few Issues 230</p> <p>10.8 Principal Components Analysis on USA Arrests Data 232</p> <p>10.9 Plotting the Components 237</p> <p>Review Exercises 240</p> <p><b>11 Exploratory Factor Analysis 241</b></p> <p>11.1 The Common Factor Analysis Model 242</p> <p>11.2 Factor Analysis as a Reproduction of the Covariance Matrix 243</p> <p>11.3 Observed vs. Latent Variables: Philosophical Considerations 244</p> <p>11.4 So, Why is Factor Analysis Controversial? The Philosophical Pitfalls of Factor Analysis 247</p> <p>11.5 Exploratory Factor Analysis in Python 248</p> <p>11.6 Exploratory Factor Analysis on USA Arrests Data 250</p> <p>Review Exercises 254</p> <p><b>12 Cluster Analysis 255</b></p> <p>12.1 Cluster Analysis vs. ANOVA vs. Discriminant Analysis 258</p> <p>12.2 How Cluster Analysis Defines “Proximity” 259</p> <p>12.2.1 Euclidean Distance 260</p> <p>12.3 K-Means Clustering Algorithm 261</p> <p>12.4 To Standardize or Not? 262</p> <p>12.5 Cluster Analysis in Python 263</p> <p>12.6 Hierarchical Clustering 266</p> <p>12.7 Hierarchical Clustering in Python 268</p> <p>Review Exercises 272</p> <p>References 273</p> <p>Index 276</p>
<p><b>Daniel J. Denis, PhD,</b> is Professor of Quantitative Psychology at the University of Montana. He is author of <i>Applied Univariate, Bivariate, and Multivariate Statistics</i> and <i>Applied Univariate, Bivariate, and Multivariate Statistics Using R</i>.</p>
<p><b>A practical, “how-to” reference for anyone performing essential statistical analyses and data management tasks in Python</b></p><p><i>Applied Univariate, Bivariate, and Multivariate Statistics Using Python</i> delivers a comprehensive introduction to a wide range of statistical methods performed using Python in a single, one-stop reference. The book contains user-friendly guidance and instructions on using Python to run a variety of statistical procedures without getting bogged down in unnecessary theory. Throughout, the author emphasizes a set of computational tools used in the discovery of empirical patterns, as well as several popular statistical analyses and data management tasks that can be immediately applied.</p><p>Most of the datasets used in the book are small enough to be easily entered into Python manually, though they can also be downloaded for free from www.datapsyc.com. Only minimal knowledge of statistics is assumed, making the book perfect for those seeking an easily accessible toolkit for statistical analysis with Python. <i>Applied Univariate, Bivariate, and Multivariate Statistics Using Python</i> represents the fastest way to learn how to analyze data with Python.</p><p>Readers will also benefit from the inclusion of:</p><ul><li>A review of essential statistical principles, including types of data, measurement, significance tests, significance levels, and type I and type II errors</li><li>An introduction to Python, exploring how to communicate with Python</li><li>A treatment of exploratory data analysis, basic statistics and visual displays, including frequencies and descriptives, q-q plots, box-and-whisker plots, and data management</li><li>An introduction to topics such as ANOVA, MANOVA and discriminant analysis, regression, principal components analysis, factor analysis, cluster analysis, among others, exploring the nature of what these techniques can vs. cannot do on a methodological level</li></ul><p>Perfect for undergraduate and graduate students in the social, behavioral, and natural sciences, <i>Applied Univariate, Bivariate, and Multivariate Statistics Using Python</i> will also earn a place in the libraries of researchers and data analysts seeking a quick go-to resource for univariate, bivariate, and multivariate analysis in Python.</p>

Diese Produkte könnten Sie auch interessieren:

Statistics for Microarrays
Statistics for Microarrays
von: Ernst Wit, John McClure
PDF ebook
84,99 €