SlideShare a Scribd company logo
1 of 8
Black and White Thinking and Depression
Kelsey Annas
Primary Analysis Objectives
To determine if there is a relationship between higher levels of black and white thinking
and higher levels of self-reported depression in psychiatric patients hospitalized for
depression.
Secondary Analysis Objectives
To determine if the relationship (if any) between higher levels of black and white thinking
and higher levels of depression can be considered significant.
Background
It is common for people who tend to think of their reality as a series of black and white
events to suffer from depression. Psybersquare, Inc. describes a few examples of this way
of thinking by saying that those who suffer from this way of thinking think that, "If things
aren't 'perfect,' then they must be "horrible." If your child isn't "brilliant" then he must be
'stupid.' If you're not 'fascinating' then you must be 'boring.'" This can be a difficult way to
live since those suffering from this way of thinking may never feel that their reality is “good
enough”.
Data Sources
The data used for this study is from the Ginzberg data frame which is based on psychiatric
patients hospitalized for depression. Data is from the book Applied Regression Analysis
and Generalized Linear Models, Second Edition by Fox, J. (2008). The dataset includes three
variables - simplicity (black and white thinking), fatalism, and depression. The data also
includes these variables each adjusted by regression for other variables thought to
influence depression. For the purposes of this study, we will use the non-adjusted values.
Ginzberg Dataset on Depression
display_output(Ginzberg, out_type)
simplicity fatalism depression adjsimp adjfatal adjdep
0.92983 0.35589 0.59870 0.75934 0.10673 0.41865
0.91097 1.18439 0.72787 0.72717 0.99915 0.51688
0.53366 -0.05837 0.53411 0.62176 0.03811 0.70699
0.74118 0.35589 0.56641 0.83522 0.42218 0.65639
0.53366 0.77014 0.50182 0.47697 0.81423 0.53518
0.62799 1.39152 0.56641 0.40664 1.23261 0.34042
0.77891 0.35589 0.46953 0.84556 0.29789 0.42168
0.83550 0.56301 0.53411 1.49961 1.20366 1.08127
0.51480 0.77014 0.46953 0.31082 0.65651 0.36337
0.87323 0.35589 0.46953 1.40836 0.85391 0.91711
0.53366 0.56301 0.46953 0.43378 0.41506 0.32811
0.74118 0.35589 0.63099 0.53485 0.06531 0.41100
0.68458 -0.05837 0.46953 1.17308 0.30413 0.83122
0.47707 0.97727 0.56641 0.42366 1.08912 0.64871
0.76004 0.97727 0.66329 0.75500 1.13055 0.79753
0.98643 1.39152 0.72787 1.38099 1.82207 1.01999
0.36387 0.56301 0.56641 0.82060 1.04594 0.98004
0.83550 1.18439 0.56641 1.23164 1.67146 0.92942
0.55253 0.77014 0.59870 0.49834 0.81423 0.64106
0.38274 0.56301 0.56641 0.55240 0.73050 0.70702
0.53366 0.56301 0.46953 0.96973 0.88023 0.70239
0.70345 1.39152 0.59870 0.77089 1.50663 0.60579
1.11848 0.97727 0.69558 1.09622 0.88198 0.57515
0.74118 0.56301 0.66329 0.83522 0.65564 0.76227
0.57139 0.97727 0.63099 1.04486 1.47144 1.00768
0.70345 0.77014 0.46953 1.03886 1.03883 0.65177
0.47707 0.56301 0.46953 0.52526 0.61421 0.50757
0.57139 0.35589 0.50182 0.75529 0.45561 0.59349
0.64685 0.77014 0.53411 0.58359 0.73138 0.48458
0.85437 1.18439 0.53411 0.66306 0.99915 0.30513
1.09962 0.97727 0.63099 0.95166 0.80712 0.45395
1.19394 0.97727 0.59870 1.20329 0.96484 0.55517
0.57139 0.56301 0.46953 0.34253 0.29877 0.23454
1.04302 0.56301 0.59870 1.03234 0.49792 0.55517
1.28827 0.97727 0.72787 1.03136 0.69082 0.46625
0.25068 1.18439 0.50182 0.53680 1.54718 0.73000
0.47707 0.77014 0.50182 0.51446 0.80624 0.49992
0.91097 0.35589 0.56641 0.99515 0.29789 0.52756
0.47707 0.35589 0.53411 0.23569 0.06531 0.30513
0.77891 -0.05837 0.53411 1.00115 0.03012 0.67172
0.38274 0.56301 0.46953 0.69719 0.88822 0.73765
1.38260 0.77014 1.30915 1.12741 0.41594 1.05856
1.26940 1.59865 1.34144 1.15478 1.54893 1.27331
0.72231 0.97727 1.14768 0.43348 0.85653 1.09682
1.00529 0.97727 1.21227 0.97880 0.92341 1.18277
0.98643 0.97727 1.11539 0.70026 0.73225 0.93270
0.51480 0.97727 1.08310 0.43401 0.96484 1.08454
1.68444 1.39152 1.37373 1.67889 1.52260 1.52332
1.26940 0.97727 1.01851 1.05318 0.85653 0.95565
2.08061 1.39152 1.27685 2.06284 1.27404 1.15978
1.04302 0.97727 1.17997 0.79676 0.85653 1.13211
0.92983 0.97727 1.08310 0.78093 0.88997 1.03392
1.59011 1.59865 1.14768 1.67363 1.74808 1.24102
0.77891 1.18439 1.11539 0.45440 0.92429 0.88975
1.23167 1.39152 1.27685 0.96725 1.15775 1.06621
1.34487 1.59865 1.37373 1.08467 1.34978 1.12914
0.47707 0.97727 1.14768 0.39127 0.96484 1.15513
1.30714 1.18439 1.14768 1.05273 0.92429 0.92504
1.42033 1.59865 1.21227 1.31493 1.50750 1.08920
1.32600 1.18439 1.27685 1.19729 0.99915 1.11684
1.09962 0.56301 0.92163 1.38602 0.81336 1.18111
1.02416 0.56301 1.21227 1.02177 0.53934 1.26866
0.89210 0.97727 1.79354 0.71660 0.80712 1.72445
1.00529 1.18439 1.69666 0.71083 0.92429 1.52500
2.85408 2.22003 1.53520 2.94977 2.24931 1.48506
0.68458 1.39152 1.59979 0.77111 1.58948 1.78573
2.11834 2.01290 1.50291 1.99319 1.94099 1.39914
1.57125 1.18439 1.92272 1.60907 1.11544 1.91624
1.74104 2.01290 2.01960 1.54422 1.85813 1.87792
0.87323 0.77014 1.76125 0.98480 0.88910 1.96219
0.72231 1.59865 2.24565 1.44060 2.23870 2.78763
1.74104 1.80577 2.05189 1.50102 1.45896 1.74144
0.81664 1.39152 1.40603 0.74352 1.30748 1.30863
1.30714 1.59865 1.66437 1.03113 1.30835 1.40382
0.70345 0.97727 1.43832 0.79248 1.12256 1.60927
1.85423 1.59865 1.63208 1.83881 1.63178 1.67682
2.26926 1.59865 1.85813 2.09935 1.22550 1.52969
1.04302 1.80577 1.47061 0.72117 1.50039 1.14913
1.79763 2.22003 1.40603 1.59752 2.05016 1.16443
2.11834 0.77014 2.01960 2.39515 0.88910 2.24452
1.42033 1.18439 1.47061 1.31493 1.04058 1.37153
0.98643 1.18439 1.56749 0.97903 1.23973 1.65687
Analysis Methods
Assumptions
• All inferences are conducted using 𝛼 = 0.05 unless stated otherwise.
• What is Referred to as "Black and White Thinking" in this report is represented by the
variable "simplicity" in the coding.
• Both datasets are considered non-normal distributions according to the below tests:
##checking for normality of depression
qqnorm(depression)
qqline(depression)
##checking for normality of simplicity
qqnorm(simplicity)
qqline(simplicity)
Visually, it is clear that the data does not quite follow a straight line, which indicates a lack
of normality in the data. However, because it can be difficult to be certain by simply
eyeballing the graph, we perform the Shapiro Wilks test. This test gives a clearer indication
as to whether or not the data is normal.
shapiro.test(depression)
##
## Shapiro-Wilk normality test
##
## data: depression
## W = 0.8798, p-value = 1.471e-06
shapiro.test(simplicity)
##
## Shapiro-Wilk normality test
##
## data: simplicity
## W = 0.90644, p-value = 1.854e-05
Because the p-values generated from these tests are less than 0.05, the distributions fail the
normality test. Therefore, we cannot conclude that the datasets are anything but abnormal.
Because of the abnormality of the data, the following test was selected for the analysis:
• Spearman Correlation
Primary Objective Analysis andResults
The Spearman Correlation test will be conducted to determine if a relationship exists
between black and white thinking and depression.
cor(simplicity,depression)
## [1] 0.6432668
The correlation coefficient above indicates that the relationship between black and white
thinking and depression can be considered moderate and positive. This means that we can
see a clear relationship between black and white thinking and Depression, although the
relationship is not perfect. The fact that the correlation coefficient is positive, indicates that
higher levels of black and white thinking is associated with higher levels of depression.
We can also see this relationship demonstrated through the graphic below:
qplot(data=Ginzberg,simplicity,depression, geom=c("point","smooth"))
As you can see from the above graphic, although the data does not form a perfectly straight
line, it does fall in a way that indicates a positive relationship. Therefore, we can once again
conclude that there is a relationship between black and white thinking and depression.
It is important to note, however, that correlation does not in any way indicate causality and
is merely indicative of a relationship between the two.
Secondary Objective Analysis andResults
Now that we know there is at least a moderate relationship between black and white
thinking and depression, we can test to see if this correlation is statistically significant.
cor.test(simplicity,depression)
##
## Pearson's product-moment correlation
##
## data: simplicity and depression
## t = 7.5147, df = 80, p-value = 7.17e-11
## alternative hypothesis: true correlation is not equal to 0
## 95 percent confidence interval:
## 0.4954166 0.7548954
## sample estimates:
## cor
## 0.6432668
The results of this test show a p-value of less than 0.05. This indicates that we have
sufficient evidence to conclude that the results from this study are statistically significant.
Conclusions and Discussion
The results of the study conclude that there is in fact a relationship between higher levels
of black and white thinking and higher levels of depression in individuals hospitalized for
depression. However, because correlations cannot determine causation, further study is
necessary to determine if any conclusions can be drawn, such as whether or not black and
white thinking is considered a cause of depression. In addition, it is important to note that
this study was conducted using clinical depression patients and is therefore a
representation of a population of sufferers of clinical depression only. In other words, we
cannot generalize the results of this study to the general population. We only know that
there is a correlation between higher levels of black and white thinking and higher levels of
depression in individuals hospitalized for depression.
For further study, it would be interesting to see if a similar relationship exists between
black and white thinking and depression in the general population. It would also be
beneficial to study the degree of black and white thinking in individuals that show no or
very low levels of depression.
All of the statistical analyses in this document will be performed using R version 3.3.0
(2016-05-03). R packages used will be maintained using the packrat dependency
management system.
sessionInfo()
## R version 3.3.0 (2016-05-03)
## Platform: x86_64-w64-mingw32/x64 (64-bit)
## Running under: Windows 7 x64 (build 7601) Service Pack 1
##
## locale:
## [1] LC_COLLATE=English_United States.1252
## [2] LC_CTYPE=English_United States.1252
## [3] LC_MONETARY=English_United States.1252
## [4] LC_NUMERIC=C
## [5] LC_TIME=English_United States.1252
##
## attached base packages:
## [1] stats graphics grDevices utils datasets methods base
##
## other attached packages:
## [1] MASS_7.3-45 car_2.1-2 ggplot2_2.1.0 DT_0.1 knitr_1.13
##
## loaded via a namespace (and not attached):
## [1] Rcpp_0.12.6 magrittr_1.5 splines_3.3.0
## [4] munsell_0.4.3 lattice_0.20-33 colorspace_1.2-6
## [7] minqa_1.2.4 highr_0.6 stringr_1.0.0
## [10] plyr_1.8.4 tools_3.3.0 parallel_3.3.0
## [13] nnet_7.3-12 pbkrtest_0.4-6 grid_3.3.0
## [16] nlme_3.1-128 gtable_0.2.0 mgcv_1.8-13
## [19] quantreg_5.26 MatrixModels_0.4-1 htmltools_0.3.5
## [22] yaml_2.1.13 lme4_1.1-12 digest_0.6.9
## [25] Matrix_1.2-6 nloptr_1.0.4 formatR_1.4
## [28] htmlwidgets_0.6 evaluate_0.9 rmarkdown_1.0
## [31] labeling_0.3 stringi_1.1.1 scales_0.4.0
## [34] SparseM_1.7

More Related Content

Viewers also liked

DevOps principles and practices - accelerate flow
DevOps principles and practices - accelerate flowDevOps principles and practices - accelerate flow
DevOps principles and practices - accelerate flowMurughan Palaniachari
 
Going From Messaging Nightmare to Messaging Delight: How to Create a Powerful...
Going From Messaging Nightmare to Messaging Delight: How to Create a Powerful...Going From Messaging Nightmare to Messaging Delight: How to Create a Powerful...
Going From Messaging Nightmare to Messaging Delight: How to Create a Powerful...CompellingPM
 
Protecting and valorising GI systems in the light of rural development: Insti...
Protecting and valorising GI systems in the light of rural development: Insti...Protecting and valorising GI systems in the light of rural development: Insti...
Protecting and valorising GI systems in the light of rural development: Insti...ExternalEvents
 
โครงงานเรื่อง กล้วยฉาบ
โครงงานเรื่อง กล้วยฉาบโครงงานเรื่อง กล้วยฉาบ
โครงงานเรื่อง กล้วยฉาบLorpiyanon Krittaya
 
2011 2 portfolio
2011 2 portfolio2011 2 portfolio
2011 2 portfolioootingstar
 

Viewers also liked (6)

DevOps principles and practices - accelerate flow
DevOps principles and practices - accelerate flowDevOps principles and practices - accelerate flow
DevOps principles and practices - accelerate flow
 
Going From Messaging Nightmare to Messaging Delight: How to Create a Powerful...
Going From Messaging Nightmare to Messaging Delight: How to Create a Powerful...Going From Messaging Nightmare to Messaging Delight: How to Create a Powerful...
Going From Messaging Nightmare to Messaging Delight: How to Create a Powerful...
 
Protecting and valorising GI systems in the light of rural development: Insti...
Protecting and valorising GI systems in the light of rural development: Insti...Protecting and valorising GI systems in the light of rural development: Insti...
Protecting and valorising GI systems in the light of rural development: Insti...
 
VIRENDRA SONI
VIRENDRA SONIVIRENDRA SONI
VIRENDRA SONI
 
โครงงานเรื่อง กล้วยฉาบ
โครงงานเรื่อง กล้วยฉาบโครงงานเรื่อง กล้วยฉาบ
โครงงานเรื่อง กล้วยฉาบ
 
2011 2 portfolio
2011 2 portfolio2011 2 portfolio
2011 2 portfolio
 

Similar to Depression

Statistics assignment on statistical inference
Statistics assignment on statistical inferenceStatistics assignment on statistical inference
Statistics assignment on statistical inferencesadiakarim8
 
Mini project - SPC
Mini project - SPCMini project - SPC
Mini project - SPCpearldhingra
 
Lecture 7 guidelines_and_assignment
Lecture 7 guidelines_and_assignmentLecture 7 guidelines_and_assignment
Lecture 7 guidelines_and_assignmentDaria Bogdanova
 
Example of a one-sample Z-test The previous lecture in P.docx
Example of a one-sample Z-test The previous lecture in P.docxExample of a one-sample Z-test The previous lecture in P.docx
Example of a one-sample Z-test The previous lecture in P.docxcravennichole326
 
Example of a one-sample Z-test The previous lecture in P.docx
Example of a one-sample Z-test The previous lecture in P.docxExample of a one-sample Z-test The previous lecture in P.docx
Example of a one-sample Z-test The previous lecture in P.docxelbanglis
 
Chapter 1, Myers Psychology 9e
Chapter 1, Myers Psychology 9eChapter 1, Myers Psychology 9e
Chapter 1, Myers Psychology 9eCharleen Gribben
 
Myers 9e ch1 - Thinking Critically with Psychological Science
Myers 9e ch1 - Thinking Critically with Psychological ScienceMyers 9e ch1 - Thinking Critically with Psychological Science
Myers 9e ch1 - Thinking Critically with Psychological ScienceJulia Isabel Rivera
 
hypothesis testing
 hypothesis testing hypothesis testing
hypothesis testingkpgandhi
 
Is ignorance bliss
Is ignorance blissIs ignorance bliss
Is ignorance blissStephen Senn
 
ATLAS OF EEG.pdf
ATLAS OF EEG.pdfATLAS OF EEG.pdf
ATLAS OF EEG.pdfkishoremd
 

Similar to Depression (20)

Statistics assignment on statistical inference
Statistics assignment on statistical inferenceStatistics assignment on statistical inference
Statistics assignment on statistical inference
 
Mini project - SPC
Mini project - SPCMini project - SPC
Mini project - SPC
 
Multivariate Data analysis.pptx
Multivariate Data analysis.pptxMultivariate Data analysis.pptx
Multivariate Data analysis.pptx
 
1628 statistics
1628 statistics1628 statistics
1628 statistics
 
Chapter 7
Chapter 7Chapter 7
Chapter 7
 
Lecture 7 guidelines_and_assignment
Lecture 7 guidelines_and_assignmentLecture 7 guidelines_and_assignment
Lecture 7 guidelines_and_assignment
 
Happiness ppt (2) (1)
Happiness ppt (2) (1)Happiness ppt (2) (1)
Happiness ppt (2) (1)
 
Example of a one-sample Z-test The previous lecture in P.docx
Example of a one-sample Z-test The previous lecture in P.docxExample of a one-sample Z-test The previous lecture in P.docx
Example of a one-sample Z-test The previous lecture in P.docx
 
Example of a one-sample Z-test The previous lecture in P.docx
Example of a one-sample Z-test The previous lecture in P.docxExample of a one-sample Z-test The previous lecture in P.docx
Example of a one-sample Z-test The previous lecture in P.docx
 
Agnė DZIDOLIKAITĖ. Evolutionary Approach in Optimization
Agnė DZIDOLIKAITĖ. Evolutionary Approach in OptimizationAgnė DZIDOLIKAITĖ. Evolutionary Approach in Optimization
Agnė DZIDOLIKAITĖ. Evolutionary Approach in Optimization
 
Freq distribution
Freq distributionFreq distribution
Freq distribution
 
9e ch 01
9e ch 019e ch 01
9e ch 01
 
Chapter 1, Myers Psychology 9e
Chapter 1, Myers Psychology 9eChapter 1, Myers Psychology 9e
Chapter 1, Myers Psychology 9e
 
Myers 9e ch1 - Thinking Critically with Psychological Science
Myers 9e ch1 - Thinking Critically with Psychological ScienceMyers 9e ch1 - Thinking Critically with Psychological Science
Myers 9e ch1 - Thinking Critically with Psychological Science
 
hypothesis testing
 hypothesis testing hypothesis testing
hypothesis testing
 
Berd 5-6
Berd 5-6Berd 5-6
Berd 5-6
 
Is ignorance bliss
Is ignorance blissIs ignorance bliss
Is ignorance bliss
 
Kaedah Menganalisis data/Data Analysis
Kaedah Menganalisis data/Data AnalysisKaedah Menganalisis data/Data Analysis
Kaedah Menganalisis data/Data Analysis
 
ATLAS OF EEG.pdf
ATLAS OF EEG.pdfATLAS OF EEG.pdf
ATLAS OF EEG.pdf
 
Atlas of Pediatric EEG.pdf
Atlas of Pediatric EEG.pdfAtlas of Pediatric EEG.pdf
Atlas of Pediatric EEG.pdf
 

Depression

  • 1. Black and White Thinking and Depression Kelsey Annas Primary Analysis Objectives To determine if there is a relationship between higher levels of black and white thinking and higher levels of self-reported depression in psychiatric patients hospitalized for depression. Secondary Analysis Objectives To determine if the relationship (if any) between higher levels of black and white thinking and higher levels of depression can be considered significant. Background It is common for people who tend to think of their reality as a series of black and white events to suffer from depression. Psybersquare, Inc. describes a few examples of this way of thinking by saying that those who suffer from this way of thinking think that, "If things aren't 'perfect,' then they must be "horrible." If your child isn't "brilliant" then he must be 'stupid.' If you're not 'fascinating' then you must be 'boring.'" This can be a difficult way to live since those suffering from this way of thinking may never feel that their reality is “good enough”. Data Sources The data used for this study is from the Ginzberg data frame which is based on psychiatric patients hospitalized for depression. Data is from the book Applied Regression Analysis and Generalized Linear Models, Second Edition by Fox, J. (2008). The dataset includes three variables - simplicity (black and white thinking), fatalism, and depression. The data also includes these variables each adjusted by regression for other variables thought to influence depression. For the purposes of this study, we will use the non-adjusted values. Ginzberg Dataset on Depression display_output(Ginzberg, out_type) simplicity fatalism depression adjsimp adjfatal adjdep 0.92983 0.35589 0.59870 0.75934 0.10673 0.41865 0.91097 1.18439 0.72787 0.72717 0.99915 0.51688 0.53366 -0.05837 0.53411 0.62176 0.03811 0.70699 0.74118 0.35589 0.56641 0.83522 0.42218 0.65639
  • 2. 0.53366 0.77014 0.50182 0.47697 0.81423 0.53518 0.62799 1.39152 0.56641 0.40664 1.23261 0.34042 0.77891 0.35589 0.46953 0.84556 0.29789 0.42168 0.83550 0.56301 0.53411 1.49961 1.20366 1.08127 0.51480 0.77014 0.46953 0.31082 0.65651 0.36337 0.87323 0.35589 0.46953 1.40836 0.85391 0.91711 0.53366 0.56301 0.46953 0.43378 0.41506 0.32811 0.74118 0.35589 0.63099 0.53485 0.06531 0.41100 0.68458 -0.05837 0.46953 1.17308 0.30413 0.83122 0.47707 0.97727 0.56641 0.42366 1.08912 0.64871 0.76004 0.97727 0.66329 0.75500 1.13055 0.79753 0.98643 1.39152 0.72787 1.38099 1.82207 1.01999 0.36387 0.56301 0.56641 0.82060 1.04594 0.98004 0.83550 1.18439 0.56641 1.23164 1.67146 0.92942 0.55253 0.77014 0.59870 0.49834 0.81423 0.64106 0.38274 0.56301 0.56641 0.55240 0.73050 0.70702 0.53366 0.56301 0.46953 0.96973 0.88023 0.70239 0.70345 1.39152 0.59870 0.77089 1.50663 0.60579 1.11848 0.97727 0.69558 1.09622 0.88198 0.57515 0.74118 0.56301 0.66329 0.83522 0.65564 0.76227 0.57139 0.97727 0.63099 1.04486 1.47144 1.00768 0.70345 0.77014 0.46953 1.03886 1.03883 0.65177 0.47707 0.56301 0.46953 0.52526 0.61421 0.50757 0.57139 0.35589 0.50182 0.75529 0.45561 0.59349 0.64685 0.77014 0.53411 0.58359 0.73138 0.48458 0.85437 1.18439 0.53411 0.66306 0.99915 0.30513 1.09962 0.97727 0.63099 0.95166 0.80712 0.45395 1.19394 0.97727 0.59870 1.20329 0.96484 0.55517 0.57139 0.56301 0.46953 0.34253 0.29877 0.23454 1.04302 0.56301 0.59870 1.03234 0.49792 0.55517 1.28827 0.97727 0.72787 1.03136 0.69082 0.46625 0.25068 1.18439 0.50182 0.53680 1.54718 0.73000 0.47707 0.77014 0.50182 0.51446 0.80624 0.49992 0.91097 0.35589 0.56641 0.99515 0.29789 0.52756 0.47707 0.35589 0.53411 0.23569 0.06531 0.30513 0.77891 -0.05837 0.53411 1.00115 0.03012 0.67172
  • 3. 0.38274 0.56301 0.46953 0.69719 0.88822 0.73765 1.38260 0.77014 1.30915 1.12741 0.41594 1.05856 1.26940 1.59865 1.34144 1.15478 1.54893 1.27331 0.72231 0.97727 1.14768 0.43348 0.85653 1.09682 1.00529 0.97727 1.21227 0.97880 0.92341 1.18277 0.98643 0.97727 1.11539 0.70026 0.73225 0.93270 0.51480 0.97727 1.08310 0.43401 0.96484 1.08454 1.68444 1.39152 1.37373 1.67889 1.52260 1.52332 1.26940 0.97727 1.01851 1.05318 0.85653 0.95565 2.08061 1.39152 1.27685 2.06284 1.27404 1.15978 1.04302 0.97727 1.17997 0.79676 0.85653 1.13211 0.92983 0.97727 1.08310 0.78093 0.88997 1.03392 1.59011 1.59865 1.14768 1.67363 1.74808 1.24102 0.77891 1.18439 1.11539 0.45440 0.92429 0.88975 1.23167 1.39152 1.27685 0.96725 1.15775 1.06621 1.34487 1.59865 1.37373 1.08467 1.34978 1.12914 0.47707 0.97727 1.14768 0.39127 0.96484 1.15513 1.30714 1.18439 1.14768 1.05273 0.92429 0.92504 1.42033 1.59865 1.21227 1.31493 1.50750 1.08920 1.32600 1.18439 1.27685 1.19729 0.99915 1.11684 1.09962 0.56301 0.92163 1.38602 0.81336 1.18111 1.02416 0.56301 1.21227 1.02177 0.53934 1.26866 0.89210 0.97727 1.79354 0.71660 0.80712 1.72445 1.00529 1.18439 1.69666 0.71083 0.92429 1.52500 2.85408 2.22003 1.53520 2.94977 2.24931 1.48506 0.68458 1.39152 1.59979 0.77111 1.58948 1.78573 2.11834 2.01290 1.50291 1.99319 1.94099 1.39914 1.57125 1.18439 1.92272 1.60907 1.11544 1.91624 1.74104 2.01290 2.01960 1.54422 1.85813 1.87792 0.87323 0.77014 1.76125 0.98480 0.88910 1.96219 0.72231 1.59865 2.24565 1.44060 2.23870 2.78763 1.74104 1.80577 2.05189 1.50102 1.45896 1.74144 0.81664 1.39152 1.40603 0.74352 1.30748 1.30863 1.30714 1.59865 1.66437 1.03113 1.30835 1.40382 0.70345 0.97727 1.43832 0.79248 1.12256 1.60927 1.85423 1.59865 1.63208 1.83881 1.63178 1.67682
  • 4. 2.26926 1.59865 1.85813 2.09935 1.22550 1.52969 1.04302 1.80577 1.47061 0.72117 1.50039 1.14913 1.79763 2.22003 1.40603 1.59752 2.05016 1.16443 2.11834 0.77014 2.01960 2.39515 0.88910 2.24452 1.42033 1.18439 1.47061 1.31493 1.04058 1.37153 0.98643 1.18439 1.56749 0.97903 1.23973 1.65687 Analysis Methods Assumptions • All inferences are conducted using 𝛼 = 0.05 unless stated otherwise. • What is Referred to as "Black and White Thinking" in this report is represented by the variable "simplicity" in the coding. • Both datasets are considered non-normal distributions according to the below tests: ##checking for normality of depression qqnorm(depression) qqline(depression) ##checking for normality of simplicity qqnorm(simplicity) qqline(simplicity)
  • 5. Visually, it is clear that the data does not quite follow a straight line, which indicates a lack of normality in the data. However, because it can be difficult to be certain by simply eyeballing the graph, we perform the Shapiro Wilks test. This test gives a clearer indication as to whether or not the data is normal. shapiro.test(depression) ## ## Shapiro-Wilk normality test ## ## data: depression ## W = 0.8798, p-value = 1.471e-06 shapiro.test(simplicity) ## ## Shapiro-Wilk normality test ## ## data: simplicity ## W = 0.90644, p-value = 1.854e-05 Because the p-values generated from these tests are less than 0.05, the distributions fail the normality test. Therefore, we cannot conclude that the datasets are anything but abnormal. Because of the abnormality of the data, the following test was selected for the analysis: • Spearman Correlation
  • 6. Primary Objective Analysis andResults The Spearman Correlation test will be conducted to determine if a relationship exists between black and white thinking and depression. cor(simplicity,depression) ## [1] 0.6432668 The correlation coefficient above indicates that the relationship between black and white thinking and depression can be considered moderate and positive. This means that we can see a clear relationship between black and white thinking and Depression, although the relationship is not perfect. The fact that the correlation coefficient is positive, indicates that higher levels of black and white thinking is associated with higher levels of depression. We can also see this relationship demonstrated through the graphic below: qplot(data=Ginzberg,simplicity,depression, geom=c("point","smooth")) As you can see from the above graphic, although the data does not form a perfectly straight line, it does fall in a way that indicates a positive relationship. Therefore, we can once again conclude that there is a relationship between black and white thinking and depression. It is important to note, however, that correlation does not in any way indicate causality and is merely indicative of a relationship between the two.
  • 7. Secondary Objective Analysis andResults Now that we know there is at least a moderate relationship between black and white thinking and depression, we can test to see if this correlation is statistically significant. cor.test(simplicity,depression) ## ## Pearson's product-moment correlation ## ## data: simplicity and depression ## t = 7.5147, df = 80, p-value = 7.17e-11 ## alternative hypothesis: true correlation is not equal to 0 ## 95 percent confidence interval: ## 0.4954166 0.7548954 ## sample estimates: ## cor ## 0.6432668 The results of this test show a p-value of less than 0.05. This indicates that we have sufficient evidence to conclude that the results from this study are statistically significant. Conclusions and Discussion The results of the study conclude that there is in fact a relationship between higher levels of black and white thinking and higher levels of depression in individuals hospitalized for depression. However, because correlations cannot determine causation, further study is necessary to determine if any conclusions can be drawn, such as whether or not black and white thinking is considered a cause of depression. In addition, it is important to note that this study was conducted using clinical depression patients and is therefore a representation of a population of sufferers of clinical depression only. In other words, we cannot generalize the results of this study to the general population. We only know that there is a correlation between higher levels of black and white thinking and higher levels of depression in individuals hospitalized for depression. For further study, it would be interesting to see if a similar relationship exists between black and white thinking and depression in the general population. It would also be beneficial to study the degree of black and white thinking in individuals that show no or very low levels of depression. All of the statistical analyses in this document will be performed using R version 3.3.0 (2016-05-03). R packages used will be maintained using the packrat dependency management system. sessionInfo() ## R version 3.3.0 (2016-05-03) ## Platform: x86_64-w64-mingw32/x64 (64-bit) ## Running under: Windows 7 x64 (build 7601) Service Pack 1 ##
  • 8. ## locale: ## [1] LC_COLLATE=English_United States.1252 ## [2] LC_CTYPE=English_United States.1252 ## [3] LC_MONETARY=English_United States.1252 ## [4] LC_NUMERIC=C ## [5] LC_TIME=English_United States.1252 ## ## attached base packages: ## [1] stats graphics grDevices utils datasets methods base ## ## other attached packages: ## [1] MASS_7.3-45 car_2.1-2 ggplot2_2.1.0 DT_0.1 knitr_1.13 ## ## loaded via a namespace (and not attached): ## [1] Rcpp_0.12.6 magrittr_1.5 splines_3.3.0 ## [4] munsell_0.4.3 lattice_0.20-33 colorspace_1.2-6 ## [7] minqa_1.2.4 highr_0.6 stringr_1.0.0 ## [10] plyr_1.8.4 tools_3.3.0 parallel_3.3.0 ## [13] nnet_7.3-12 pbkrtest_0.4-6 grid_3.3.0 ## [16] nlme_3.1-128 gtable_0.2.0 mgcv_1.8-13 ## [19] quantreg_5.26 MatrixModels_0.4-1 htmltools_0.3.5 ## [22] yaml_2.1.13 lme4_1.1-12 digest_0.6.9 ## [25] Matrix_1.2-6 nloptr_1.0.4 formatR_1.4 ## [28] htmlwidgets_0.6 evaluate_0.9 rmarkdown_1.0 ## [31] labeling_0.3 stringi_1.1.1 scales_0.4.0 ## [34] SparseM_1.7