Chapter 6: Graphics

Total Page:16

File Type:pdf, Size:1020Kb

Chapter 6: Graphics Chapter 6 Graphics Modern computers with high resolution displays and graphic printers have rev- olutionized the visual display of information in fields ranging from computer- aided design, through flow dynamics, to the spatiotemporal attributes of infec- tious diseases. The impact on statistics is just being felt. Whole books have been written on statistical graphics and their contents are quite heterogeneous– simple how-to-do it texts (e.g., ?; ?), reference works (e.g., Murrell, 2006) and generic treatment of the principles of graphic presentation (e.g., ?). There is even a web site devoted to learning statistics through visualization http: //www.seeingstatistics.com/.Hence,itisnotpossibletobecomprehensive in this chapter. Instead, I focus on the types of graphics used most often in neu- roscience (e.g., plots of means) and avoid those seldom used in the field (e.g., pie charts, geographical maps). The here are four major purposes for statistical graphics. First, they are used to examine and screen data to check for abnormalities and to assess the distributions of the variables. Second, graphics are very useful aid to exploratory data analysis (??). Exploratory data analysis, however, is used for mining large data sets mostly for the purpose of hypothesis generation and modification, so that use of graphics will not be discussed here. Third, graphics can be used to assess both the assumptions and the validity of a statistical model applied to data. Finally, graphics are used to present data to others. The third of these purposes will be discussed in the appropriate sections on the statistics. This chapter deals with the first and last purposes–examining data and presenting results. 6.1 Examining data with graphics The main purpose here is to view the data to detect outliers and to make decisions about transforming variables. If the design has groups (even ordered groups), then your plots should be constructed separately for each group. It is possible for an outlier in one group to be hidden by the data points for other 1 CHAPTER 6. GRAPHICS 2 Figure 6.1: Examples of histograms: IQ scores from patients in a pediatric neurology clinic. 7 6 20 5 15 4 3 10 Frequency Frequency 2 5 1 0 0 40 50 60 70 80 90 100 50 60 70 80 90 100 IQ IQ groups. 6.1.1 Histograms In the past, teachers of statistics tortured undergraduate students by giving them a data set and requiring them to draw a histogram on graph paper. With access to graphing software, those days are over (mostly). The histogram groups anumericvariableinto“bins”andthenplotsthemidpointofthebinonthe horizontal axis the frequency of scores within the that bin on the vertical axis. The frequency can be expressed as either the raw number of scores or the percent of scores in the bin. In general, histograms are best used for relatively large sample sizes. The most significant decision for the user is the number of bins. When the number is too small, information is effectively “hidden.” When the number is too large, the histogram may have only one or two observations per bar and provides little information about the distribution. Also, bin size is a function of sample size. Smaller bins can be used with larger samples. Good statistical and graphing software usually gives a reasonable default size for the bins based on sample size. All software will give the use the option of specifying either the bin size (i.e., width of the bar) or the number of bins. Figure 6.1 gives histograms of the IQ scores of 63 children seen at a pediatric neurology clinic. The left hand plot in Figure 6.1 was generated using a default for the number of bins . The right hand plot specified 25 bins. Note that histograms result in a “wide” plot for a variable. Also, the range of the horizontal axis is often determined by the software. Hence, comparing groups using histograms can require extra work and the resulting graphic may CHAPTER 6. GRAPHICS 3 Table 6.1: R code for producing a dot p[lot (strip chart). stripchart(pkcgamma$open_arm ~ pkcgamma$genotype, method="j i t t e r " , vertical=TRUE, ylab="Percent Time in Open Arm", xlab="Genotype", col="blue", pch=1, cex=1.5) not be easy to interpret. There are fancy routines that that will plot histograms for two (sometimes three) groups using “transparent” color schemes, but the simplest way to examine groups is through dot plots and/or box plots. 6.1.2 Dot plots (strip charts) A“dotplot”meansdifferentthingstodifferentstatisticalpackages.Here,the term is used in its traditional sense (?) and encompasses what R calls a “strip chart.” Dot plots can be one of the most useful ways of displaying and perusing data for neuroscience because sample sizes are usually small to moderate. The type of dot plot most useful in neuroscience has the groups on the hori- zontal axis and the values for the variable on the vertical axis. Each observation then becomes a point in the graph, plotted by its value. Figure 6.2 gives two examples for the PKC-γ data. The left hand panel gives the traditional dot plot. In the right hand panel, the points are “jittered” or moved slightly to the left or right in order to avoid overlapping points. Table 6.1 presents the R code for these plots. This code produced the right-hand or “jittered” figure. To produce the left-hand figure omit the argument method=”jitter” . The advantages of a dot plot are: (1) every value in the data can be visually inspected; (2) the range of the data for each group is apparent in the event that there may be significant differences in variance; and (3) outliers can be readily identified. The major disadvantage comes when data sets are so large that overlapping points make it difficult to appreciate the distribution of scores (although some graphical software can overcome this limitation with moderately sized data sets). A second disadvantage is that the dot plot does not give information about the statistics of a distribution. CHAPTER 6. GRAPHICS 4 Figure 6.2: Example of a dot plot. ● ● 30 ● 30 ● ● ● ● ●● ● ● ● ● ● ● ● ● 20 ● 20 ● ● ● ● ● ● ●● ● ● ● ●● ● ● ● ● ● ● ● ● ● ● ● ● ● ● ● 10 ● ● 10 ● ● ● ● ● ● ●●● ● ● ● ● ●● ● Percent Time in Open Arm Percent ● Time in Open Arm Percent ● ● ● ● ● ● ● ● ● 0 ● ● 0 ● ● ● ● ++ +− −− ++ +− −− Genotype Genotype 6.1.3 Box (and whisker) plot Figure 6.3 provides a box plot (aka box-and-whisker plot) of the same data. In this plot, individual data points are not identified. Instead the shape of the distribution is visually portrayed through the shape of a box and arms (or whiskers). The bottom arm begins with the lowest connected data point in the series (we postpone the definition of a connected data point for the moment). The lower part of the box starts with the score at the first quartile and upper part ends with the score at the third quartile. The horizontal line close to the middle of the box is the median. Finally, the upper “whisker” starts above the third quartile and ends with the uppermost connected data point. Hence, the size of the box gives the interquartile range of the data, i.e., the 25th through the 75th percentiles. Box plots are more useful than dot plots when there is a moderate to large number of observations per group. Their symmetry permits one to assess skew- ness and they are very helpful in detecting outliers. In symmetrical distributions, the median splits the box into equal halves and two whiskers are of equal length. A distribution with a positive skew (see the right hand box plot in Figure 6.4) has a short whisker at the bottom, a median that is located below the half way point in the box, a long whisker at the top, and a number of unconnected data points at the high end. A variable with a negative skew has the opposite shape—short whisker at the top, a median above the half way point in the box, a long whisker at the bottom, and a number of unconnected data points at the low end (see Figure 6.4). CHAPTER 6. GRAPHICS 5 Figure 6.3: Box plots for the PKC-γ data by genotype. 30 ● 20 10 Percent Time in Open Arm 0 ++ +− −− Genotype 6.1.3.1 Unconnected data points Most graphing software offers two options for dealing with very high and very low values. The first option is to plot them as unconnected data points above and below the whiskers. This was the option used to generate Figures 6.3 and 6.4. The second option is extend the whiskers to the lowest and to the highest values. There are no formal criteria defining an unconnected data point. Hence, it is always necessary to consult the manual for the software. Many programs define an unconnected data point as a value lower than 1.5 times the interquartile range below the first quartile. For example, if the first quartile is at 31.4 and the third quartile is at 42.7, then the interquartile range is 42.7 – 31.4 = 11.3. Hence the cut offfor a lower unconnected data point would be 31.4 – 1.5*11.3 =14.45.Asimilarcriterionisusedforaunconnecteddatapointatthehigher end of the distribution. One cautionary note is in order—never consider an “unconnected” data point an outlier without further evidence. An unconnected data point may achieve its status simply because sample size is not large and the interquartile range for a group is small. This is precisely the case for the heterozygote’s box plot in Figure 6.3. Examination of the highest value for genotype +- in the dot plot of Figure 6.2 reveals that it belongs to the rest of the distribution.
Recommended publications
  • If I Were Doing a Quick ANOVA Analysis
    ANOVA Note: If I were doing a quick ANOVA analysis (without the diagnostic checks, etc.), I’d do the following: 1) load the packages (#1); 2) do the prep work (#2); and 3) run the ggstatsplot::ggbetweenstats analysis (in the #6 section). 1. Packages needed. Here are the recommended packages to load prior to working. library(ggplot2) # for graphing library(ggstatsplot) # for graphing and statistical analyses (one-stop shop) library(GGally) # This package offers the ggpairs() function. library(moments) # This package allows for skewness and kurtosis functions library(Rmisc) # Package for calculating stats and bar graphs of means library(ggpubr) # normality related commands 2. Prep Work Declare factor variables as such. class(mydata$catvar) # this tells you how R currently sees the variable (e.g., double, factor) mydata$catvar <- factor(mydata$catvar) #Will declare the specified variable as a factor variable 3. Checking data for violations of assumptions: a) relatively equal group sizes; b) equal variances; and c) normal distribution. a. Group Sizes Group counts (to check group frequencies): table(mydata$catvar) b. Checking Equal Variances Group means and standard deviations (Note: the aggregate and by commands give you the same results): aggregate(mydata$intvar, by = list(mydata$catvar), FUN = mean, na.rm = TRUE) aggregate(mydata$intvar, by = list(mydata$catvar), FUN = sd, na.rm = TRUE) by(mydata$intvar, mydata$catvar, mean, na.rm = TRUE) by(mydata$intvar, mydata$catvar, sd, na.rm = TRUE) A simple bar graph of group means and CIs (using Rmisc package). This command is repeated further below in the graphing section. The ggplot command will vary depending on the number of categories in the grouping variable.
    [Show full text]
  • Healthy Volunteers (Retrospective Study) Urolithiasis Healthy Volunteers Group P-Value 5 (N = 110) (N = 157)
    Supplementary Table 1. The result of Gal3C-S-OPN between urolithiasis and healthy volunteers (retrospective study) Urolithiasis Healthy volunteers Group p-Value 5 (n = 110) (n = 157) median (IQR 1) median (IQR 1) Gal3C-S-OPN 2 515 1118 (810–1543) <0.001 (MFI 3) (292–786) uFL-OPN 4 14 56392 <0.001 (ng/mL/mg protein) (10–151) (30270-115516) Gal3C-S-OPN 2 52 0.007 /uFL-OPN 4 <0.001 (5.2–113.0) (0.003–0.020) (MFI 3/uFL-OPN 4) 1 IQR, Interquartile range; 2 Gal3C-S-OPN, Gal3C-S lectin reactive osteopontin; 3 MFI, mean fluorescence intensity; 4 uFL-OPN, Urinary full-length-osteopontin; 5 p-Value, Mann–Whitney U-test. Supplementary Table 2. Sex-related difference between Gal3C-S-OPN and Gal3C-S-OPN normalized to uFL- OPN (retrospective study) Group Urolithiasis Healthy volunteers p-Value 5 Male a Female b Male c Female d a vs. b c vs. d (n = 61) (n = 49) (n = 57) (n = 100) median (IQR 1) median (IQR 1) Gal3C-S-OPN 2 1216 972 518 516 0.15 0.28 (MFI 3) (888-1581) (604-1529) (301-854) (278-781) Gal3C-S-OPN 2 67 42 0.012 0.006 /uFL-OPN 4 0.62 0.56 (9-120) (4-103) (0.003-0.042) (0.002-0.014) (MFI 3/uFL-OPN 4) 1 IQR, Interquartile range; 2 Gal3C-S-OPN, Gal3C-S lectin reactive osteopontin; 3MFI, mean fluorescence intensity; 4 uFL-OPN, Urinary full-length-osteopontin; 5 p-Value, Mann–Whitney U-test.
    [Show full text]
  • Violin Plots: a Box Plot-Density Trace Synergism Author(S): Jerry L
    Violin Plots: A Box Plot-Density Trace Synergism Author(s): Jerry L. Hintze and Ray D. Nelson Source: The American Statistician, Vol. 52, No. 2 (May, 1998), pp. 181-184 Published by: American Statistical Association Stable URL: http://www.jstor.org/stable/2685478 Accessed: 02/09/2010 11:01 Your use of the JSTOR archive indicates your acceptance of JSTOR's Terms and Conditions of Use, available at http://www.jstor.org/page/info/about/policies/terms.jsp. JSTOR's Terms and Conditions of Use provides, in part, that unless you have obtained prior permission, you may not download an entire issue of a journal or multiple copies of articles, and you may use content in the JSTOR archive only for your personal, non-commercial use. Please contact the publisher regarding any further use of this work. Publisher contact information may be obtained at http://www.jstor.org/action/showPublisher?publisherCode=astata. Each copy of any part of a JSTOR transmission must contain the same copyright notice that appears on the screen or printed page of such transmission. JSTOR is a not-for-profit service that helps scholars, researchers, and students discover, use, and build upon a wide range of content in a trusted digital archive. We use information technology and tools to increase productivity and facilitate new forms of scholarship. For more information about JSTOR, please contact [email protected]. American Statistical Association is collaborating with JSTOR to digitize, preserve and extend access to The American Statistician. http://www.jstor.org StatisticalComputing and Graphics ViolinPlots: A Box Plot-DensityTrace Synergism JerryL.
    [Show full text]
  • Statistical Analysis in JASP
    Copyright © 2018 by Mark A Goss-Sampson. All rights reserved. This book or any portion thereof may not be reproduced or used in any manner whatsoever without the express written permission of the author except for the purposes of research, education or private study. CONTENTS PREFACE .................................................................................................................................................. 1 USING THE JASP INTERFACE .................................................................................................................... 2 DESCRIPTIVE STATISTICS ......................................................................................................................... 8 EXPLORING DATA INTEGRITY ................................................................................................................ 15 ONE SAMPLE T-TEST ............................................................................................................................. 22 BINOMIAL TEST ..................................................................................................................................... 25 MULTINOMIAL TEST .............................................................................................................................. 28 CHI-SQUARE ‘GOODNESS-OF-FIT’ TEST............................................................................................. 30 MULTINOMIAL AND Χ2 ‘GOODNESS-OF-FIT’ TEST. ..........................................................................
    [Show full text]
  • Beanplot: a Boxplot Alternative for Visual Comparison of Distributions
    Beanplot: A Boxplot Alternative for Visual Comparison of Distributions Peter Kampstra VU University Amsterdam Abstract This introduction to the R package beanplot is a (slightly) modified version of Kamp- stra(2008), published in the Journal of Statistical Software. Boxplots and variants thereof are frequently used to compare univariate data. Boxplots have the disadvantage that they are not easy to explain to non-mathematicians, and that some information is not visible. A beanplot is an alternative to the boxplot for visual comparison of univariate data between groups. In a beanplot, the individual observations are shown as small lines in a one-dimensional scatter plot. Next to that, the estimated density of the distributions is visible and the average is shown. It is easy to compare different groups of data in a beanplot and to see if a group contains enough observations to make the group interesting from a statistical point of view. Anomalies in the data, such as bimodal distributions and duplicate measurements, are easily spotted in a beanplot. For groups with two subgroups (e.g., male and female), there is a special asymmetric beanplot. For easy usage, an implementation was made in R. Keywords: exploratory data analysis, descriptive statistics, box plot, boxplot, violin plot, density plot, comparing univariate data, visualization, beanplot, R, graphical methods, visu- alization. 1. Introduction There are many known plots that are used to show distributions of univariate data. There are histograms, stem-and-leaf-plots, boxplots, density traces, and many more. Most of these plots are not handy when comparing multiple batches of univariate data. For example, com- paring multiple histograms or stem-and-leaf plots is difficult because of the space they take.
    [Show full text]
  • Dynamics of Hydrological Model Parameters: Calibration and Reliability
    Dynamics of hydrological model parameters: calibration and reliability Tian Lan1, Kairong Lin1,2,3, Xuezhi Tan1,2,3, Chong-Yu Xu4, Xiaohong Chen1,2,3 1Center for Water Resources and Environment, Sun Yat-sen University, Guangzhou, 510275, China. 2Guangdong Engineering Technology Research Center of Water Security Regulation and Control for Southern China, Guangzhou 510275, China. 3School of Civil Engineering, Sun Yat-sen University, Guangzhou, 510275, China. 4Department of Geosciences, University of Oslo, P.O. Box 1047, Blindern, 0316 Oslo, Norway Correspondence to: Kairong Lin ([email protected]) Contents of this file 1 Case study and data 2 HYMOD model 3 SCE-UA 4 Violin plot 5 Multi-metric evaluation 6 Evaluation of sub-period calibration schemes in Mumahe basin and Xunhe basin 7 Convergence performance in Mumahe basin and Xunhe basin using ECP-VP References Introduction This supporting information includes eight sections that support the analysis. The 1 Case study and data section is used to support the 2 Background section in the main manuscript. The 2 HYMOD model section is used to support the 3.1 Sub-period calibration section in the main manuscript. The 3 SCE-UA algorithm section and 4 Violin plot section are used to support the 3.2 A tool for reliability evaluation section in the main manuscript. The 5 Multi-metric evaluation section and 6 Evaluation of sub-period calibration schemes in Mumahe basin and Xunhe basin section are used to account for 4.1 Evaluation of calibration schemes section in the main manuscript. The 7 Convergence performance in Mumahe basin and Xunhe basin using ECP-VP section is used to supplement 4.3 Evaluation of reliability section in the main manuscript.
    [Show full text]
  • Modern Statistics for Modern Biology
    Contents 3 High Quality Graphics in R 5 3.1 Goals for this Chapter .......................... 5 3.2 Base R Plotting .............................. 6 3.3 An Example Dataset ........................... 7 3.4 ggplot2 .................................. 8 3.5 The Grammar of Graphics ........................ 9 3.6 1D Visualisations ............................. 12 3.6.1 Data tidying I – matrices versus data.frame . 12 3.6.2 Barplots ............................. 13 3.6.3 Boxplots ............................. 13 3.6.4 Violin plots ........................... 13 3.6.5 Dot plots and beeswarm plots . 14 3.6.6 Density plots ........................... 14 3.6.7 ECDF plots ............................ 15 3.6.8 Transformations ......................... 15 3.6.9 Data tidying II - wide vs long format . 16 3.7 2D Visualisation: Scatter Plots ...................... 17 3.7.1 Plot shapes ............................ 18 3.8 3–5D Data ................................. 19 3.8.1 Faceting ............................. 21 3.8.2 Interactive graphics ....................... 22 3.9 Colour ................................... 23 3.9.1 Heatmaps ............................ 24 3.9.2 Colour spaces .......................... 26 3.10 Data Transformations .......................... 27 3.11 Saving Figures .............................. 27 3.12 Biological Data with ggbio ........................ 28 3.13 Recap of this Chapter ........................... 29 3.14 Exercises ................................. 29 6 Multiple Testing 31 6.1 Goals for this Chapter .........................
    [Show full text]
  • Moving Beyond P Values: Everyday Data Analysis with Estimation Plots
    bioRxiv preprint doi: https://doi.org/10.1101/377978 ; this version posted April 6, 2019. The copyright holder for this preprint (which was not certified by peer review) is the author/funder, who has granted bioRxiv a license to display the preprint in perpetuity. It is made available under aCC-BY-ND 4.0 International license. Moving beyond ​P​ values: Everyday data analysis with estimation plots Joses Ho​ 1​, Tayfun Tumkaya​ 1, 2​, Sameer Aryal​ 1, 3 ,​ Hyungwon Choi​ 1, 4​, Adam Claridge-Chang​ 1, 2, 5, 6 1. Institute for Molecular and Cell Biology, A*STAR, Singapore 138673 2. Department of Physiology, National University of Singapore, Singapore 3. Center for Neural Science, New York University, New York, NY, USA 4. Department of Medicine, Yong Loo Lin School of Medicine, National University of Singapore, Singapore 5. Program in Neuroscience and Behavioral Disorders, Duke-NUS Medical School, Singapore 6. Correspondence Introduction Over the past 75 years, a number of statisticians have advised that the data-analysis method known as null-hypothesis significance testing (NHST) should be deprecated ​(Berkson, 1942; Halsey et al., 2015; Wasserstein et al., 2019)​. The limitations of NHST have been extensively discussed, with a broad consensus that current statistical practice in the biological sciences needs reform. However, there is less agreement on reform’s specific nature, with vigorous debate surrounding what would constitute a suitable alternative (Altman et al., 2000; Benjamin et al., 2017; Cumming and Calin-Jageman, 2016)​. An emerging view is that a more complete analytic technique would use statistical graphics to estimate effect sizes and evaluate their uncertainty ​(Cohen, 1994; Cumming and Calin-Jageman, 2016)​.
    [Show full text]
  • A Machine Learning Framework for Computationally Expensive Transient Models Prashant Kumar1,4, Kushal Sinha 2,3*, Nandkishor K
    www.nature.com/scientificreports OPEN A machine learning framework for computationally expensive transient models Prashant Kumar1,4, Kushal Sinha 2,3*, Nandkishor K. Nere2,3, Yujin Shin1,5, Raimundo Ho1, Laurie B. Mlinar3 & Ahmad Y. Sheikh1 Transient simulations of dynamic systems, using physics-based scientifc computing tools, are practically limited by availability of computational resources and power. While the promise of machine learning has been explored in a variety of scientifc disciplines, its application in creation of a framework for computationally expensive transient models has not been fully explored. Here, we present an ensemble approach where one such computationally expensive tool, discrete element method, is combined with time-series forecasting via auto regressive integrated moving average and machine learning methods to simulate a complex pharmaceutical problem: development of an agitation protocol in an agitated flter dryer to ensure uniform solid bed mixing. This ensemble approach leads to a signifcant reduction in the computational burden, while retaining model accuracy and performance, practically rendering simulations possible. The developed machine-learning model shows good predictability and agreement with the literature, demonstrating its tremendous potential in scientifc computing. Machine learning has emerged as one of the most promising technologies in the past decade due to its capability to provide valuable insights1 into vast amounts of data generated during the Internet era. Rapid democratization of machine learning tools has allowed for the successful adoption of the technology in a wide range of felds including robotics, computer vision2, speech and natural language processing3, autonomous driving4, neurosci- ence, drug-discovery5 and in fundamental sciences6. However, its application to computational sciences, and applied computational physics in general, has been limited.
    [Show full text]
  • Effect of Continuous Saline Bladder Irrigation with Concomitant Single Instillation of Chemotherapy After Transurethral Resecti
    MOLECULAR AND CLINICAL ONCOLOGY 13: 6, 2020 Effect of continuous saline bladder irrigation with concomitant single instillation of chemotherapy after transurethral resection on intravesical recurrence in patients with non‑muscle‑invasive bladder cancer KENJI KURODA, SHINSUKE TASAKI, AKINORI SATO, JUNICHI ASAKUMA, AKIO HORIGUCHI and KEIICHI ITO Department of Urology, National Defense Medical College, Tokorozawa, Saitama 359‑8513, Japan Received April 29, 2019; Accepted June 1, 2020 DOI: 10.3892/mco.2020.2079 Abstract. A single immediate instillation of chemotherapy the matched groups B and C (P=0.0255 and P=0.0023, respec‑ following transurethral resection of bladder tumor (TURBT) tively). In conclusion, SIC alone could provide a higher IVR‑free is effective in preventing intravesical recurrence (IVR) in survival rate than CSBI with DXR or CSBI with SIC. patients with non‑muscle‑invasive urothelial bladder carcinoma (NMIBC). However, continuous saline bladder irrigation (CSBI) Introduction is also performed with a single instillation of chemotherapy (SIC), but its inhibitory effect on IVR remains unclear. In the present Bladder cancer can present in different pathological stages. study, the effect of CSBI with concomitant SIC following TUR Approximately 80% of all bladder cancers initially present on IVR was evaluated in patients with NMIBC. A retrospec‑ as non‑muscle‑invasive bladder carcinoma (NMIBC) (1). tive review of 253 patients who underwent TURBT and were Transurethral resection of bladder tumor (TURBT) is known clinically and histologically diagnosed with NMIBC at National as the gold standard therapeutic method for NMIBC; however, Defense Medical College Hospital was performed. Doxorubicin the recurrence rate ranges between 40 and 80% regardless of (DXR) was administered to all patients.
    [Show full text]
  • Raincloud Plots: a Multi-Platform Tool for Robust Data Visualization
    Raincloud plots: a multi-platform tool for robust data visualization Micah Allen1, Davide Poggiali2,3, Kirstie Whitaker1,4, Tom Rhys Marshall5, Rogier Kievit6,7 1Department of Psychiatry, University of Cambridge, UK 2Department of Mathematics, University of Padova, Padova, Italy 3Padova Neuroscience Center, University of Padova, Padova, Italy 4Alan Turing Institute, London, UK 5Department of Experimental Psychology, University of Oxford, UK 6Department of Psychology, University of Cambridge, UK 7Max-Planck Centre for Computational Psychiatry and Aging, London/Berlin Correspondence should be addressed to Micah Allen, Cambridge Psychiatry: [email protected] Abstract Across scientific disciplines, there is a rapidly growing recognition of the need for more statistically robust, transparent approaches to data visualization. Complimentary to this, many scientists have realized the need for plotting tools that accurately and transparently convey key aspects of statistical effects and raw data with minimal distortion. Previously common approaches, such as plotting conditional mean or median barplots together with error-bars have been criticized for distorting effect size, hiding underlying patterns in the raw data, and obscuring the assumptions upon which the most commonly used statistical tests are based. Here we describe a data visualization approach which overcomes these issues, providing maximal statistical information while preserving the desired ‘inference at a glance’ nature of barplots and other similar visualization devices. These “raincloud plots” can visualize raw data, probability density, and key summary statistics such as median, mean, and relevant confidence intervals in an appealing and flexible format with minimal redundancy. In this tutorial paper we provide basic demonstrations of the strength of raincloud plots and similar approaches, outline potential modifications for their optimal use, and provide open-source code for their streamlined implementation in R, Python and Matlab (https://github.com/RainCloudPlots/RainCloudPlots).
    [Show full text]
  • Lecture Notes Data Mining and Exploration
    Lecture Notes Data Mining and Exploration Original 2017 version by Michael Gutmann Edited and expanded by Arno Onken Spring Semester 2020 May 16, 2020 Contents 1 First Steps in Exploratory Data Analysis1 1.1 Numerical Data Description......................2 1.1.1 Location.............................2 1.1.2 Scale...............................3 1.1.3 Shape..............................4 1.1.4 Multivariate Measures.....................6 1.2 Data Visualisation........................... 10 1.2.1 Bar Plot............................. 10 1.2.2 Box Plot............................ 11 1.2.3 Scatter Plot........................... 11 1.2.4 Histogram............................ 11 1.2.5 Kernel Density Plot...................... 13 1.2.6 Violin Plot........................... 15 1.3 Data Pre-Processing.......................... 15 1.3.1 Standardisation......................... 15 1.3.2 Outlier Detection and Removal................ 18 2 Principal Component Analysis 19 2.1 PCA by Variance Maximisation.................... 19 2.1.1 First Principal Component Direction............. 19 2.1.2 Subsequent Principal Component Directions......... 21 2.1.3 Simultaneous Variance Maximisation............. 23 2.2 PCA by Minimisation of Approximation Error........... 23 2.3 PCA by Low Rank Matrix Approximation.............. 25 2.3.1 Approximating the Data Matrix............... 25 2.3.2 Approximating the Sample Covariance Matrix....... 27 2.3.3 Approximating the Gram Matrix............... 27 2.4 Probabilistic PCA........................... 28 2.4.1 Probabilistic Model...................... 28 2.4.2 Joint, Conditional and Observation Distributions...... 29 2.4.3 Maximum Likelihood...................... 31 2.4.4 Relation to PCA........................ 32 3 Dimensionality Reduction 35 3.1 Linear Dimensionality Reduction................... 35 3.1.1 From Data Points....................... 35 3.1.2 From Inner Products...................... 36 ii CONTENTS 3.1.3 From Distances........................
    [Show full text]