\documentclass[10pt,a4paper]{article} % Packages \usepackage{fancyhdr} % For header and footer \usepackage{multicol} % Allows multicols in tables \usepackage{tabularx} % Intelligent column widths \usepackage{tabulary} % Used in header and footer \usepackage{hhline} % Border under tables \usepackage{graphicx} % For images \usepackage{xcolor} % For hex colours %\usepackage[utf8x]{inputenc} % For unicode character support \usepackage[T1]{fontenc} % Without this we get weird character replacements \usepackage{colortbl} % For coloured tables \usepackage{setspace} % For line height \usepackage{lastpage} % Needed for total page number \usepackage{seqsplit} % Splits long words. %\usepackage{opensans} % Can't make this work so far. Shame. Would be lovely. \usepackage[normalem]{ulem} % For underlining links % Most of the following are not required for the majority % of cheat sheets but are needed for some symbol support. \usepackage{amsmath} % Symbols \usepackage{MnSymbol} % Symbols \usepackage{wasysym} % Symbols %\usepackage[english,german,french,spanish,italian]{babel} % Languages % Document Info \author{ktown022} \pdfinfo{ /Title (psyc300a-test-2.pdf) /Creator (Cheatography) /Author (ktown022) /Subject (PSYC300A - test \#2 Cheat Sheet) } % Lengths and widths \addtolength{\textwidth}{6cm} \addtolength{\textheight}{-1cm} \addtolength{\hoffset}{-3cm} \addtolength{\voffset}{-2cm} \setlength{\tabcolsep}{0.2cm} % Space between columns \setlength{\headsep}{-12pt} % Reduce space between header and content \setlength{\headheight}{85pt} % If less, LaTeX automatically increases it \renewcommand{\footrulewidth}{0pt} % Remove footer line \renewcommand{\headrulewidth}{0pt} % Remove header line \renewcommand{\seqinsert}{\ifmmode\allowbreak\else\-\fi} % Hyphens in seqsplit % This two commands together give roughly % the right line height in the tables \renewcommand{\arraystretch}{1.3} \onehalfspacing % Commands \newcommand{\SetRowColor}[1]{\noalign{\gdef\RowColorName{#1}}\rowcolor{\RowColorName}} % Shortcut for row colour \newcommand{\mymulticolumn}[3]{\multicolumn{#1}{>{\columncolor{\RowColorName}}#2}{#3}} % For coloured multi-cols \newcolumntype{x}[1]{>{\raggedright}p{#1}} % New column types for ragged-right paragraph columns \newcommand{\tn}{\tabularnewline} % Required as custom column type in use % Font and Colours \definecolor{HeadBackground}{HTML}{333333} \definecolor{FootBackground}{HTML}{666666} \definecolor{TextColor}{HTML}{333333} \definecolor{DarkBackground}{HTML}{404040} \definecolor{LightBackground}{HTML}{F3F3F3} \renewcommand{\familydefault}{\sfdefault} \color{TextColor} % Header and Footer \pagestyle{fancy} \fancyhead{} % Set header to blank \fancyfoot{} % Set footer to blank \fancyhead[L]{ \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{C} \SetRowColor{DarkBackground} \vspace{-7pt} {\parbox{\dimexpr\textwidth-2\fboxsep\relax}{\noindent \hspace*{-6pt}\includegraphics[width=5.8cm]{/web/www.cheatography.com/public/images/cheatography_logo.pdf}} } \end{tabulary} \columnbreak \begin{tabulary}{11cm}{L} \vspace{-2pt}\large{\bf{\textcolor{DarkBackground}{\textrm{PSYC300A - test \#2 Cheat Sheet}}}} \\ \normalsize{by \textcolor{DarkBackground}{ktown022} via \textcolor{DarkBackground}{\uline{cheatography.com/164409/cs/34853/}}} \end{tabulary} \end{multicols}} \fancyfoot[L]{ \footnotesize \noindent \begin{multicols}{3} \begin{tabulary}{5.8cm}{LL} \SetRowColor{FootBackground} \mymulticolumn{2}{p{5.377cm}}{\bf\textcolor{white}{Cheatographer}} \\ \vspace{-2pt}ktown022 \\ \uline{cheatography.com/ktown022} \\ \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Cheat Sheet}} \\ \vspace{-2pt}Not Yet Published.\\ Updated 22nd October, 2022.\\ Page {\thepage} of \pageref{LastPage}. \end{tabulary} \vfill \columnbreak \begin{tabulary}{5.8cm}{L} \SetRowColor{FootBackground} \mymulticolumn{1}{p{5.377cm}}{\bf\textcolor{white}{Sponsor}} \\ \SetRowColor{white} \vspace{-5pt} %\includegraphics[width=48px,height=48px]{dave.jpeg} Measure your website readability!\\ www.readability-score.com \end{tabulary} \end{multicols}} \begin{document} \raggedright \raggedcolumns % Set font size to small. Switch to any value % from this page to resize cheat sheet text: % www.emerson.emory.edu/services/latex/latex_169.html \footnotesize % Small font. \begin{multicols*}{3} \begin{tabularx}{5.377cm}{x{2.83689 cm} x{2.14011 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Equations!}} \tn % Row 0 \SetRowColor{LightBackground} Deviation score: & (x-x̄) \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} Squared deviation score: & (x-x̄)2 \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} Sum of squares: & SS= Σ(x-x̄)2 \tn % Row Count 4 (+ 1) % Row 3 \SetRowColor{white} Variance: & SD2 = SS÷N \tn % Row Count 5 (+ 1) % Row 4 \SetRowColor{LightBackground} Standard deviation: & √variance or √SD2 \tn % Row Count 7 (+ 2) % Row 5 \SetRowColor{white} Covariance & cov = SP÷N \tn % Row Count 8 (+ 1) % Row 6 \SetRowColor{LightBackground} Pearson correlation: & r = cov. ÷ (SDx)(SDy) \tn % Row Count 10 (+ 2) % Row 7 \SetRowColor{white} Slope: & by = r(SDy÷SDx) \tn % Row Count 11 (+ 1) % Row 8 \SetRowColor{LightBackground} intercept: & ay = ȳ - by(x̄) \tn % Row Count 12 (+ 1) % Row 9 \SetRowColor{white} Total variability: & SST = Σ(Y-ȳ)2 \tn % Row Count 13 (+ 1) % Row 10 \SetRowColor{LightBackground} explained variability: & SSR = Σ(Y'-ȳ)2 \tn % Row Count 15 (+ 2) % Row 11 \SetRowColor{white} unexplained variability & SSE = Σ(Y-Y')2 \tn % Row Count 17 (+ 2) % Row 12 \SetRowColor{LightBackground} Standard error of prediction: & SDy-y' = SDy√1-r2 \tn % Row Count 19 (+ 2) % Row 13 \SetRowColor{white} Predicting X': & X' = ax + bxY \tn % Row Count 20 (+ 1) % Row 14 \SetRowColor{LightBackground} Predicting Y': & Y' = ay + byX \tn % Row Count 21 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.09494 cm} x{3.88206 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{General guidelines for test reliability}} \tn % Row 0 \SetRowColor{LightBackground} \textgreater{}.85 & very desirable \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} .70 to .85 & desirable aka moderately acceptable \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} \textless{}.70 & not desirable aka poor reliability \tn % Row Count 5 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{describe relationship between two variables?}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{1.) Direction of the relationship:}} \newline % Row Count 1 (+ 1) Positive (+) or negative (-) \newline % Row Count 2 (+ 1) {\emph{Positive correlation}} = As the values of x increase or decrease, so do the values of y \newline % Row Count 4 (+ 2) {\emph{No relationship}} = no consistent relationship between variables \newline % Row Count 6 (+ 2) {\emph{Negative correlation}} = As the values of x increases, the value of y decreases, and vice versa \newline % Row Count 8 (+ 2) {\bf{2.) shape of the relationship}} \newline % Row Count 9 (+ 1) Linear relationship = straight line relationships \newline % Row Count 10 (+ 1) – All dots clustered around straight line \newline % Row Count 11 (+ 1) Curvilinear relationship = consistent, predictable relationship, but not linear \newline % Row Count 13 (+ 2) – As the values of x increase, the values of y increases but at some point the pattern reverses \newline % Row Count 15 (+ 2) {\bf{3.) Strength of the relationship}} \newline % Row Count 16 (+ 1) Subjective measure of relationship between two scores (e.g., weak, moderate, strong, no relationship) \newline % Row Count 19 (+ 3) how closely the data points cluster together \newline % Row Count 20 (+ 1) The more spread out they are from a line of some sort, the weaker the correlation between variables \newline % Row Count 22 (+ 2) {\bf{4.) Magnitude of the relationship}} \newline % Row Count 23 (+ 1) Objective measure of relationship based on computed r value: ranges from -1 to 1% Row Count 25 (+ 2) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{p{0.4977 cm} p{0.4977 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{biserial correlation}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{} \tn % Row Count 0 (+ 0) \hhline{>{\arrayrulecolor{DarkBackground}}--} \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{{\bf{When to use it:}} \newline – when one of the variables is nominal (with only two groups) and the other variable is interval/ratio \newline {\emph{How to calculate:}} \newline – use the same formula as pearson r} \tn \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Curvilinear relationships:}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Linear: Y' = a + bX} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{Quadratic: Y' = a +bX + cX2} \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{Cubic: Y' = a + bX + cX2 + dX3} \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{Quartic: Y' = a + bX + cX2 + dX3 + eX4} \tn % Row Count 4 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Comparing SDy-y' and SDy}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{When R does not equal Zero, SDy-y' will be smaller than SDy} \tn % Row Count 2 (+ 2) % Row 1 \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{When R=0 (no \seqsplit{correlation/relationship)}, SDy-y' = SDy} \tn % Row Count 4 (+ 2) % Row 2 \SetRowColor{LightBackground} \mymulticolumn{1}{x{5.377cm}}{When R=+/- 1 (perfect correlation), SDy-y'=0} \tn % Row Count 5 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{1.64241 cm} x{3.33459 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{How do we describe our data?}} \tn % Row 0 \SetRowColor{LightBackground} 1.) Shape & plotting a scatter plot, linearity, strength, direction, magnitude \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} 2.) Central tendency & defining the regression line (mean of bivariate data) \tn % Row Count 6 (+ 3) % Row 2 \SetRowColor{LightBackground} 3.) Variability & standard error or estimates (SDY-Y') \tn % Row Count 8 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.4885 cm} x{2.4885 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Factors affecting R}} \tn % Row 0 \SetRowColor{LightBackground} 1.) Relationship is real and strong or weak & contributes to a bigger/smaller r \tn % Row Count 3 (+ 3) % Row 1 \SetRowColor{white} 2.) Sampling error & Sampling error = naturally occurring discrepancy, or error, that exists between a sample statistic and the corresponding parameter \tn % Row Count 10 (+ 7) % Row 2 \SetRowColor{LightBackground} 3.) Unmeasured third variable & contributes to a bigger/smaller r,Correlation tells us if a relationship between two variables exists but does not tell us about causation \tn % Row Count 17 (+ 7) % Row 3 \SetRowColor{white} 4.) Heterogeneous sample & Data in which the sample of observations could be subdivided into two distinct sets on the basis of some other variable \tn % Row Count 23 (+ 6) % Row 4 \SetRowColor{LightBackground} 5.) Sampling from a restricted (truncated) range & The correlation coefficient will be affected by the range of score in the data \tn % Row Count 27 (+ 4) % Row 5 \SetRowColor{white} 6.) Non-linearity: relationship is curvilinear & Reminder: r underestimates a curvilinear relationship, contributes to a smaller r \tn % Row Count 32 (+ 5) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{x{2.4885 cm} x{2.4885 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Factors affecting R (cont)}} \tn % Row 6 \SetRowColor{LightBackground} 7.) Heteroscedasticity in the data & contributes to a smaller r \tn % Row Count 2 (+ 2) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{PHI}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{{\bf{When to use it:}} \newline % Row Count 1 (+ 1) – when both variables are nominal (with only two groups per variable, i.e., dichotomous) \newline % Row Count 3 (+ 2) {\emph{Calculating Phi:}} \newline % Row Count 4 (+ 1) – use the same formula as pearson r% Row Count 5 (+ 1) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.38896 cm} x{2.58804 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{How to calculate Pearson r:}} \tn % Row 0 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{1.) Plot the data (scatterplot)} \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} 2.) Compute bivariate statistics & (e.g., deviation scores, SP, COV) \tn % Row Count 3 (+ 2) % Row 2 \SetRowColor{LightBackground} 3.) Compute correlation coefficient r & (number beyond +/-1 means you did it wrong) \tn % Row Count 6 (+ 3) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.14011 cm} x{2.83689 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Interpreting Pearson Correlation}} \tn % Row 0 \SetRowColor{LightBackground} \textless{} |.10| & no relationship \tn % Row Count 1 (+ 1) % Row 1 \SetRowColor{white} |.10| to |.30| & weak relationship \tn % Row Count 2 (+ 1) % Row 2 \SetRowColor{LightBackground} \textgreater{} |.30| to |.50| & moderate relationship \tn % Row Count 3 (+ 1) % Row 3 \SetRowColor{white} \textgreater{} |.50| & strong relationship \tn % Row Count 4 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.4885 cm} x{2.4885 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{Reporting in APA format}} \tn % Row 0 \SetRowColor{LightBackground} 1.) describes relationship in statistical terms & Give variables, R = ?, Mean = ?, Standard deviation = ?, Give sample size, Mention strength and if its positive for negative \tn % Row Count 7 (+ 7) % Row 1 \SetRowColor{white} \mymulticolumn{2}{x{5.377cm}}{2.) Results in plain language} \tn % Row Count 8 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{x{2.4885 cm} x{2.4885 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{extra stuff}} \tn % Row 0 \SetRowColor{LightBackground} Homoscedasticity (a good thing): & Variability in Y scores remains constant across increasing values of X \tn % Row Count 4 (+ 4) % Row 1 \SetRowColor{white} Heteroscedasticity (not a good thing): & variability in y scores changes across increasing values of x, Caused by a skew in one or both variables \tn % Row Count 10 (+ 6) % Row 2 \SetRowColor{LightBackground} SST = SSy & SSe = SSy-y' (error) \tn % Row Count 11 (+ 1) % Row 3 \SetRowColor{white} SSr = SSt - SSe & Σ(Y-Y') = 0 \tn % Row Count 12 (+ 1) % Row 4 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{For Y': if r=0, by=0 (i.e., regression line is parallel to the x-axis), and ay=ȳ} \tn % Row Count 14 (+ 2) % Row 5 \SetRowColor{white} \mymulticolumn{2}{x{5.377cm}}{For X': if r=0, bx=0 (i.e., regression line is parallel to the x-axis), and ax=x̄} \tn % Row Count 16 (+ 2) % Row 6 \SetRowColor{LightBackground} \mymulticolumn{2}{x{5.377cm}}{As correlation (r) increases, the numerical value for b increases} \tn % Row Count 18 (+ 2) % Row 7 \SetRowColor{white} Total variability = differences between observed data (Y) and the mean value of Y & – Y-ȳ \tn % Row Count 23 (+ 5) % Row 8 \SetRowColor{LightBackground} Unexplained variability (i.e., residuals) = difference between the observed value for Y and the predicted value for Y(Y') & – Y - Y' \tn % Row Count 30 (+ 7) \end{tabularx} \par\addvspace{1.3em} \vfill \columnbreak \begin{tabularx}{5.377cm}{x{2.4885 cm} x{2.4885 cm} } \SetRowColor{DarkBackground} \mymulticolumn{2}{x{5.377cm}}{\bf\textcolor{white}{extra stuff (cont)}} \tn % Row 9 \SetRowColor{LightBackground} Explained variability = the difference between total and unexplained variability & – Y'- ȳ \tn % Row Count 4 (+ 4) % Row 10 \SetRowColor{white} \mymulticolumn{2}{x{5.377cm}}{Standardized test = interval} \tn % Row Count 5 (+ 1) \hhline{>{\arrayrulecolor{DarkBackground}}--} \end{tabularx} \par\addvspace{1.3em} \begin{tabularx}{5.377cm}{X} \SetRowColor{DarkBackground} \mymulticolumn{1}{x{5.377cm}}{\bf\textcolor{white}{Spearman rho}} \tn \SetRowColor{white} \mymulticolumn{1}{x{5.377cm}}{When to use it: \newline % Row Count 1 (+ 1) – one or both variables are on an ordinal scale of measurement \newline % Row Count 3 (+ 2) – there is a weak curvilinear relationship in interval/ratio data \newline % Row Count 5 (+ 2) – there is heteroscedasticity in interval/ratio data \newline % Row Count 7 (+ 2) {\emph{How to calculate:}} \newline % Row Count 8 (+ 1) Convert all scores into ranks \newline % Row Count 9 (+ 1) Lower scores get lower ranks \newline % Row Count 10 (+ 1) High scores get higher ranks \newline % Row Count 11 (+ 1) Use the pearson correlation formula to find how consistently increases in one variable are associated with increases in another variable% Row Count 14 (+ 3) } \tn \hhline{>{\arrayrulecolor{DarkBackground}}-} \end{tabularx} \par\addvspace{1.3em} % That's all folks \end{multicols*} \end{document}