Computing Happiness from Textual Data
Abstract
:1. Introduction
2. Data and Methods
2.1. The HappyDB Data
- I popped into the local shop after a very long hard day at work to buy some tobacco and decided to buy a scratchcard with my change and won PS3000.
- When I called my internet provider today and found out I have another week before I have to pay my bill which makes things a whole lot easier right now.
2.2. Topic Modeling
- For document , draw (topic proportion in the document) from the Dirichlet distribution with parameter .
- For topic , draw (topic distribution over the vocab) from the Dirichlet distribution with parameter .
- For a word in document d,
- (a)
- Draw a topic from the Multinomial distribution with parameter .
- (b)
- Draw a word from the Multinomial distribution with parameter .
- eat food lunch restaurant favorite pizza good dinner delicious order place local chinese great meal sushi today burger taste taco,
- trip vacation plan weekend friend summer book family visit week beach travel ticket flight girlfriend upcoming excited Florida holiday vegas
2.3. Lemmatization, Part of Speech Tagging, and Dependency Parsing
2.4. Predictive Models
2.4.1. Logistic Regression
2.4.2. Gradient Boosting
- Set ; .
- For :
- (a)
- Take to be as in Equation (3).
- (b)
- For :
- Compute .
- Fit a regression tree with m splits to the response , producing terminal regions ; .
- Compute the updating factors
- Update .
- Output .
2.4.3. FastText
3. Causes of Happiness, and Lexical and Grammatical Discrepancies
3.1. Happiness and Gender
3.2. Happiness and Parenthood
3.3. Happiness and Marriage
3.4. Happiness and Age
4. Prediction
- Dependency Bigrams. In this experiment, we re-arrange the order of the document in terms of dependencies. For example, the sentence I like hot pizza and Elizabeth likes cold pizza becomes {(like, I), (like, Elizabeth), (like, pizza), (pizza, hot), (pizza, cold)}. We use dependencies as binary features with 1 if they occur in a document, and 0, otherwise.
- Lemmas. In this experiment, all words are lemmatized, and the features are unigrams to trigrams.
- Word Forms. In this experiment, the original words of the document are used as is, without any lemmatization, with the features being unigrams to trigrams.
- Topics. In this experiment, each document is converted to topic features where each document is 80 features, with each being the probability of the document belonging to each of the 80 topics built by Mallet.
- Character Ngrams. In this experiment, we use only characters (including spaces) as features with the features being unigrams to five grams.
5. Discussion
Author Contributions
Funding
Acknowledgments
Conflicts of Interest
Appendix A. Results of Topic Modeling
Topic | Label | Weight | Key Words |
---|---|---|---|
13 | Other | 0.06486 | friend meet good time long hang year talk mine catch close school chat college lunch childhood visit great fun bar |
21 | Other | 0.06374 | happy make month past event hour thing happen weekend small girlfriend occur big recent learn mth fiance involve twenty hrs |
30 | Other | 0.06019 | happy feel make good today yesterday sick pretty great morning lot mood care relaxed accomplished content relieved pleased bit comfortable |
62 | Family | 0.05937 | visit brother sister family live parent home house town year weekend mom cousin back city friend aunt state week month |
0 | Work | 0.05917 | work day today time long week home weekend relax break spend hour yesterday nice friday schedule afternoon boyfriend busy lot |
12 | Vacation | 0.05905 | trip vacation plan weekend friend summer book family visit week beach travel ticket flight girlfriend upcoming excited florida holiday vegas |
5 | Romance | 0.05899 | night wife girlfriend dinner nice date time boyfriend husband great spend evening sex kid romantic surprise anniversary partner enjoy saturday |
70 | Family | 0.05882 | happy make event husband recently feel week extremely girlfriend love big small incredibly excited lastly fulfil significant super spouse plan |
38 | Family | 0.05873 | time long spend family friend member visit enjoy great yesterday find drive house fun period distance girlfriend hard start laugh |
36 | Work | 0.05865 | work today home early leave day husband office hour find coworker boss lunch tomorrow earlier yesterday key late week wife |
59 | Work | 0.05856 | work receive job promotion boss raise give promote company good hard high compliment bonus salary manager performance meeting review employee |
58 | Weather | 0.05854 | walk weather day nice rain warm today sun beautiful sunny enjoy spring bird cool long hot sit dog morning cold |
72 | Conver-sation | 0.05807 | talk friend call phone speak hear good time hour nice sister catch long year mom conversation live brother chat uncle |
60 | Family | 0.05769 | dinner family cook meal eat nice husband favorite night home wife food restaurant prepare enjoy delicious mom dish tonight mother |
3 | Food | 0.05750 | eat food lunch restaurant favorite pizza good dinner delicious order place local chinese great meal sushi taco today burger taste |
74 | Party | 0.05742 | gift day mother give birthday surprise husband mom wife card buy father present love flower happy special receive beautiful boyfriend |
57 | Family | 0.05739 | son daughter year child young school learn kid watch play start pick picture excited make toy show proud grand dance |
26 | Party | 0.05703 | birthday friend party celebrate family surprise daughter son celebration invite brother yesterday house fun cake people throw lot gift enjoy |
31 | Work | 0.05691 | work project finish complete task week successfully month difficult finally assignment big today client large art accomplish long hard boss |
19 | Other | 0.05673 | make happy feel today yesterday proud thing work progress turn love successful compliment real significant april pretty decision point sincerely |
35 | Shopping | 0.05660 | find store buy grocery sale sell item money shopping deal stock price shop dollar good lot market save ebay purchase |
25 | Party | 0.05637 | fun play park lot kid enjoy time friend daughter day son fish pool water catch yesterday beach weekend swim family |
64 | Family | 0.05626 | happy make moment feel mom yesterday month today back day home dad everyday excited special enjoy ready extremely wait lot |
33 | Work | 0.05620 | job interview offer company work call receive position apply pay hire promotion good opportunity month accept select week manager career |
67 | Family | 0.05619 | time spend family day make weekend happy entire year kid quality home lot sunday plan house life child grandma mother |
34 | Family | 0.05612 | ago week month couple day year past hour girlfriend good finally back great wife start half happen completely marry end |
6 | Other | 0.05611 | sleep night morning wake early hour good bed today breakfast rest feel late nap full refresh kid saturday put alarm |
20 | Food | 0.05574 | make dinner eat chicken delicious cook good breakfast recipe lunch fry turn cheese wife great meal grill night egg healthy |
11 | Pets | 0.05547 | dog cat puppy walk play pet adopt park home run cute neighbor kitten animal shelter bring greet love feed rescue |
46 | Family | 0.05509 | give son daughter hug big love smile kiss morning face year wake wife husband put baby home run pick kid |
9 | Party | 0.05467 | friend wedding marriage family day function attend sister cousin happy celebrate marry party anniversary invite enjoy member brother year lot |
41 | Entertain-ment | 0.05417 | watch show tv favorite episode season video netflix youtube night television funny series enjoy find binge start comedy finale channel |
27 | Education | 0.05414 | school college son graduate daughter year accept high student program teacher award class attend proud university receive degree summer scholarship |
45 | Work | 0.05413 | job finally start time work find year week month business part end leave decide husband back full quit search call |
49 | Romance | 0.05401 | friend girl text send talk meet date girlfriend message picture good boyfriend facebook guy post crush woman cute love pretty |
73 | Entertain-ment | 0.05322 | game play video friend fun beat online buy board finally nintendo level switch night enjoy hour zelda xbox pokemon win |
79 | Money | 0.05276 | pay money bill tax credit card account bank month save loan finally debt check receive refund large payment amount extra |
47 | Education | 0.05260 | class pass exam test grade finish good final semester college study score hard high son school student receive daughter paper |
4 | Shopping | 0.05253 | buy find pair shopping shoe dress purchase clothe shop wear mall fit shirt sale good nice great store price deal |
50 | Work | 0.05242 | work mturk make hit money bonus receive today extra pay earn amount yesterday turk goal mechanical amazon survey complete dollar |
28 | Other | 0.05241 | move house apartment find live home finally place city year wife decide rent back boyfriend close buy state neighbor roommate |
44 | Family | 0.05228 | baby happy sister birth child give bear movement time month wife pregnant day boy girl son wait moment person family |
42 | Other | 0.05228 | doctor find back surgery good hospital health finally pain cancer dog week appointment sick recover blood news today test vet |
55 | House-keeping | 0.05216 | clean house room finally paint finish kitchen put husband laundry home yesterday living bathroom entire organize wash buy apartment chore |
54 | Shopping | 0.05212 | car buy drive fix purchase finally find repair save break truck gas tire month vehicle brand wash pay pick change |
16 | Family | 0.05178 | year finally month week time ago love start back day great recently decide amazing husband smoke past close glad stop |
18 | Food | 0.05133 | eat ice cream chocolate make cake cookie breakfast favorite delicious buy bring bake chip treat dessert piece candy bowl bar |
56 | Family | 0.05124 | home day happy bring back make year feel great face return husband remember miss time moment memory parent smile stay |
63 | Other | 0.05110 | make laugh happy funny joke talk friend good learn daughter share lot thing coworker fight word people worker hear big |
53 | Exercise | 0.05090 | run bike ride walk mile hike long park yesterday rid beautiful mountain time nice trail morning great drive enjoy hiking |
10 | Entertain-ment | 0.05090 | movie watch friend enjoy good theater film night yesterday star girlfriend fun galaxy lot beauty favorite favourite love great cinema |
66 | Entertain-ment | 0.05086 | game win team play watch baseball match basketball favorite soccer league son final score tournament playoff cricket ball hit beat |
17 | Shopping | 0.05082 | buy phone computer problem laptop fix work purchase figure mobile issue finally internet solve today system iphone cell save smartphone |
76 | Exercise | 0.05070 | gym good feel great today workout hair work morning exercise personal yoga start cut record lift session class run haircut |
8 | Work | 0.05045 | work home day minute back drive run traffic light morning stop spot turn lot start decide time night walk commute |
75 | Food | 0.05038 | coffee drink morning beer cup good tea free wine friend shop buy favorite starbucks bar bottle enjoy local nice glass |
71 | Shopping | 0.05025 | receive mail order today arrive package wait amazon check free card gift expect send deliver online week yesterday letter email |
15 | Other | 0.04999 | love happy friend good people feel feeling life day boy moment wonderful girl meet give person make child amazing donate |
68 | Other | 0.04969 | make thing happy good lot feel people time love put life learn kind change small bad happen matter enjoy situation |
14 | Family | 0.04927 | moment happy life feel good time day family give brother person dream reach till proud unforgettable change goal true end |
65 | Gardening | 0.04764 | plant garden yard flower start tree air grow lawn rain water nice bloom smell spring mow seed finally grass bath |
7 | Entertain-ment | 0.04736 | song listen music favorite concert play band sing hear guitar dance album radio perform ticket release learn artist single podcast |
2 | Exercise | 0.04676 | lose week goal weight pound start month diet finally work step exercise find achieve reach day scale daily gain weigh |
77 | Other | 0.04645 | find start happy month give back plan free mother today happen feel decide completely lie laugh finally end call business |
37 | Family | 0.04593 | make happy mother sister father lunch law time son home wife roti part daughter morning serve brother leave learn cook |
51 | Entertain-ment | 0.04538 | book read finish write start find library note story learn year great local comic enjoy reading article paper publish chapter |
48 | Pets | 0.04511 | cat bed great fall cuddle night sit dog fun lay colleague snuggle asleep sleep discussion couch wake lap morning love |
78 | Vacation | 0.04494 | place family trip enjoy tour beautiful lot day travel city friend time visit hill zoo station uncle abroad animal experience |
32 | Religion | 0.04492 | temple family church easter enjoy yesterday god festival people sunday service member egg attend kid volunteer pray hunt trump morning |
61 | Education | 0.04434 | day happy school moment event enjoy class friend time remember pass life memorable exam lot finally college hear talk surprise |
23 | Other | 0.04432 | day wait man brother walk feel hand sit lady bus young road reach stand time line thing suddenly front house |
24 | Other | 0.04426 | happiness people give good happy feel great life world feeling person mind sense bring create joy share experience question satisfaction |
52 | Other | 0.04288 | nice day office meet parent care share smile today yesterday summer grandma trip cute life uncle send neighbor future ready |
1 | Shopping | 0.04277 | happy time feel purchase open great find house box hand hold parent excited buy finally home thing day man door |
39 | Party | 0.04168 | day life good dad give surprise happy present forget birthday moment surprisingly make date phone smart minute put end excited |
43 | Entertain-ment | 0.04078 | win ticket dollar lottery scratch competition money prize buy place contest casino free small give happy poker son tournament participate |
29 | Other | 0.03996 | happy time result feel parent brother great excited future month thing young expectation place mark back important anxiety idea small |
22 | Other | 0.03532 | life happiness people experience thing full part concept event live happy avoid show occasion tradition happen quality focus science seek |
69 | Other | 0.03194 | good work happiness time turn improve life virtue important research increase day flourish term live interest feedback sense skill advance |
40 | Other | 0.02854 | happiness happy state joy positive research mental include economic define pleasant share person fill big range reflect heart face intense |
References
- Haybron, D. Happiness: The Stanford Encyclopedia of Philosophy; Fall 2011 Edition; Zalta, E.N., Ed.; The Metaphysics Research Lab, Center for the Study of Language and Information, Stanford University: Stanford, CA, USA, 2011. [Google Scholar]
- Asai, A.; Evensen, S.; Golshan, B.; Halevy, A.; Li, V.; Lopatenko, A.; Stepanov, D.; Suhara, Y.; Tan, W.C.; Xu, Y. HappyDB: A Corpus of 100,000 Crowdsourced Happy Moments. In Proceedings of LREC 2018; European Language Resources Association (ELRA): Miyazaki, Japan, 2018. [Google Scholar]
- Jaidka, K.; Mumick, S.; Chhaya, N.; Ungar, L. The CL-Aff Happiness Shared Task: Results and Key Insights. In Proceedings of the 2nd Workshop on Affective Content Analysis (AffCon) @ AAAI, Honolulu, HI, USA, 27 January 2019. [Google Scholar]
- Rajendran, A.; Zhang, C.; Abdul-Mageed, M. Happy Together: Learning and Understanding Appraisal From Natural Language. In Proceedings of the 2nd Workshop on Affective Content Analysis (AffCon) @ AAAI, Honolulu, HI, USA, 27 January 2019. [Google Scholar]
- Syed, B.; Indurthi, V.; Shah, K.; Gupta, M.; Varma, V. Ingredients for Happiness: Modeling constructs via semi-supervised content driven inductive transfer. In Proceedings of the 2nd Workshop on Affective Content Analysis (AffCon) @ AAAI, Honolulu, HI, USA, 27 January 2019. [Google Scholar]
- Merity, S.; Keskar, N.S.; Socher, R. Regularizing and Optimizing LSTM Language Models. arXiv 2017, arXiv:1708.02182. [Google Scholar]
- Wu, J.; Compton, R.J.; Rakshit, G.; Walker, M.A.; Anand, P.; Whittaker, S. CruzAffect at AffCon 2019 Shared Task: A feature-rich approach to characterize happiness. In Proceedings of the 2nd Workshop on Affective Content Analysis (AffCon) @ AAAI, Honolulu, HI, USA, 27 January 2019. [Google Scholar]
- Deerwester, S.; Dumais, S.T.; Furnas, G.W.; Landauer, T.K.; Harshman, R. Indexing by Latent Semantic Analysis. J. Am. Inf. Soc. 1990, 41, 391–407. [Google Scholar] [CrossRef]
- Dumais, S.T. Latent Semantic Analysis. Annu. Rev. Inf. Sci. Technol. 2005, 38, 189–230. [Google Scholar] [CrossRef]
- Hofmann, T. Probabilistic latent semantic analysis. In Proceedings of the Fifteenth Conference on Uncertainty in Artificial Intelligence, Stockholm, Sweden, 30 July–1 August 1999; pp. 289–296. [Google Scholar]
- Blei, D.M.; Ng, A.Y.; Jordan, M.I. Latent Dirichlet allocation. J. Mach. Learn. Res. 2003, 3, 993–1022. [Google Scholar]
- Griffiths, T.L.; Steyvers, M. Finding scientific topics. Proc. Natl. Acad. Sci. USA 2004, 101, 5228–5235. [Google Scholar] [CrossRef] [PubMed] [Green Version]
- Cao, J.; Xia, T.; Li, J.; Zhang, Y.; Tang, S. A density-based method for adaptive LDA model selection. Neurocomputing 2009, 72, 1775–1781. [Google Scholar] [CrossRef]
- Arun, R.; Suresh, V.; Veni Madhavan, C.E.; Narasimha Murthy, M.N. On Finding the Natural Number of Topics with Latent Dirichlet Allocation: Some Observations. In Advances in Knowledge Discovery and Data Mining; Zaki, M.J., Yu, J.X., Ravindran, B., Pudi, V., Eds.; Springer: Berlin/Heidelberg, Germany, 2010; pp. 391–402. [Google Scholar]
- Teh, Y.W.; Jordan, M.I.; Beal, M.J.; Blei, D.M. Sharing clusters among related groups: Hierarchical Dirichlet processes. In Advances in Neural Information Processing Systems; MIT Press: Cambridge, CA, USA, 2005; pp. 1385–1392. [Google Scholar]
- Zhao, W.; Chen, J.J.; Perkins, R.; Liu, Z.; Ge, W.; Ding, Y.; Zou, W. A heuristic approach to determine an appropriate number of topics in topic modeling. BMC Bioinf. 2015, 16, S8. [Google Scholar] [CrossRef] [PubMed]
- R Core Team. R: A Language and Environment for Statistical Computing; R Foundation for Statistical Computing: Vienna, Austria, 2017. [Google Scholar]
- McCallum, A.K. MALLET: A Machine Learning for Language Toolkit; University of Massachusetts: Amherst, MA, USA, 2002. [Google Scholar]
- Jurafsky, D.; Martin, J.H. Speech and Language Processing: An Introduction to Natural Language Processing, Computational Linguistics, and Speech Recognition, 2nd ed.; Prentice Hall: Upper Saddle River, NJ, USA, 2008. [Google Scholar]
- Honnibal, M.; Johnson, M. An Improved Non-monotonic Transition System for Dependency Parsing. In Proceedings of the Conference on Empirical Methods in Natural Language Processing, Lisbon, Portugal, 17–21 September 2015; pp. 1373–1378. [Google Scholar]
- spaCy. Industrial-Strength Natural Language Processing with Python and Cython; GitHub: San Francisco, CA, USA, 2017. [Google Scholar]
- Agresti, A. An Introduction to Categorical Data Analysis; Willey & Sons: Hoboken, NJ, USA, 2007. [Google Scholar]
- Friedman, J. Greedy function approximation: A gradient boosting machine. Ann. Stat. 2001, 29, 1189–1232. [Google Scholar] [CrossRef]
- Hastie, T.; Tibshirani, R.; Friedman, J. The Elements of Statistical Learning: Data Mining, Inference, and Prediction; Springer: New York, NY, USA, 2009. [Google Scholar]
- Joulin, A.; Grave, E.; Bojanowski, P.; Douze, M.; Jégou, H.; Mikolov, T. FastText.zip: Compressing text classification models. arXiv 2016, arXiv:1612.03651. [Google Scholar]
- Haddock, C.K.; Rindskopf, D.; Shadish, W.R. Using odds ratios as effect sizes for meta-analysis of dichotomous data: A primer on methods and issues. Psychol. Methods 1998, 3, 339–353. [Google Scholar] [CrossRef]
- Brenning, K.; Soenens, B.; Mabbe, E.; Vansteenkiste, M. Ups and Downs in the Joy of Motherhood: Maternal Well-Being as a Function of Psychological Needs, Personality, and Infant Temperament. J. Happiness Stud. 2017, 20, 229–250. [Google Scholar] [CrossRef]
- Vanassche, S.; Swicegood, G.; Matthijs, K. Marriage and Children as a Key to Happiness? Cross-National Differences in the Effects of Marital Status and Children on Well-Being. J. Happiness Stud. 2013, 14, 501–524. [Google Scholar] [CrossRef]
- Veenhoven, R. Informed Pursuit of Happiness: What we should know, do know and can get to know. J. Happiness Stud. 2015, 16, 1035–1071. [Google Scholar] [CrossRef]
Variable | Distribution | |
---|---|---|
Gender | Female (42%) | Male (58%) |
Marital Status | Married (41%) | Unmarried (59%) |
Parenthood Status | Parent (39%) | Non-parent (61%) |
Males | Females | ||||
---|---|---|---|---|---|
Topic | Score | Key Words | Topic | Score | Key Words |
73 | 22.24 | game play video friend fun beat online buy board finally nintendo level switch night enjoy hour zelda xbox pokemon win | 1 | 0.30 | happy time feel purchase open great find house box hand hold parent excited buy finally home thing day man door |
66 | 21.49 | game win team play watch baseball match basketball favorite soccer league son final score tournament playoff cricket ball hit beat | 46 | 0.33 | give son daughter hug big love smile kiss morning face year wake wife husband put baby home run pick kid |
17 | 19.56 | buy phone computer problem laptop fix work purchase figure mobile issue finally internet solve today system iphone cell save smartphone | 48 | 0.34 | cat bed great fall cuddle night sit dog fun lay colleague snuggle asleep sleep discussion couch wake lap morning love |
22 | 7.01 | life happiness people experience thing full part concept event live happy avoid show occasion tradition happen quality focus science seek | 27 | 0.39 | school college son graduate daughter year accept high student program teacher award class attend proud university receive degree summer scholarship |
34 | 6.75 | ago week month couple day year past hour girlfriend good finally back great wife start half happen completely marry end | 74 | 0.39 | gift day mother give birthday surprise husband mom wife card buy father present love flower happy special receive beautiful boyfriend |
Males | Females | ||||||
---|---|---|---|---|---|---|---|
Lemma | Score | Lemma | Score | Lemma | Score | Lemma | Score |
wife | 23.58 | girlfriend | 11.34 | husband | 0.03 | boyfriend | 0.06 |
trading | 7.09 | tirupati | 6.56 | 3mth | 0.08 | hubby | 0.08 |
gf | 5.93 | massive | 5.80 | oldage | 0.09 | makeup | 0.10 |
elope | 4.96 | beggar | 4.93 | wonderla | 0.12 | blissful | 0.12 |
restaurant | 4.88 | speculate | 4.85 | knit | 0.13 | crochet | 0.15 |
seattle | 4.85 | football | 4.74 | children | 0.15 | necklace | 0.15 |
gallon | 4.73 | bet | 4.70 | goodness | 0.15 | grandkid | 0.16 |
biking | 4.63 | electronic | 4.53 | purse | 0.16 | sewing | 0.17 |
furious | 4.52 | official | 4.49 | advertise | 0.17 | babysit | 0.18 |
recovery | 4.46 | production | 4.39 | pedicure | 0.18 | stardew | 0.19 |
Males | Females | ||
---|---|---|---|
Sequence | Score | Sequence | Score |
nnp nn prp nn cc | 5.530 | cd jj nns prp nn | 0.225 |
vbd prp vbd jj nns | 3.750 | dt jj nn cc wdt | 0.230 |
prp nn nn nn vbg | 3.640 | wrb prp vbd vbg jj | 0.250 |
jj prp jj nn nn | 3.486 | prp vbd dt nns cc | 0.250 |
vbg nn prp nns dt | 3.390 | prp vbd nnp nnp vb | 0.265 |
prp nn vbg prp prp | 3.320 | vbg prp jj nn dt | 0.268 |
jj prp vbd prp vb | 3.280 | nn nn rb rb prp | 0.270 |
nnp dt nn rb | 3.250 | vbd prp vbd vbn dt | 0.280 |
prp dt nn cc prp | 3.230 | rb vbd rp nn | 0.280 |
vbn rp dt nn nn | 3.220 | prp nn nn vb dt | 0.285 |
Males | Females | ||||||
---|---|---|---|---|---|---|---|
HPOS | DPOS | DEP | Score | HPOS | DPOS | DEP | Score |
VBP | VBP | xcomp | 9.01 | VBG | VBD | csubj | 0.20 |
NN | NNS | npadvmod | 5.34 | NN | NFP | punct | 0.22 |
NN | PRP | dative | 5.04 | NNPS | NNP | amod | 0.24 |
VBD | NNP | conj | 4.58 | IN | PRP$ | poss | 0.27 |
VB | BNN | xcomp | 3.73 | PDT | RB | advmod | 0.28 |
VBD | RB | conj | 3.67 | VBN | VBD | dep | 0.28 |
VBD | UH | dobj | 3.43 | RP | NNS | npadvmod | 0.28 |
LSB | -RRB- | punct | 3.21 | UH | NNS | pobj | 0.29 |
VBN | VBD | parataxis | 3.20 | VBN | JJ | nsubjpass | 0.29 |
JJ | VBZ | conj | 3.17 | VBD | ADD | punct | 0.29 |
Parents | Nonparents | ||||
---|---|---|---|---|---|
Topic | Score | Key Words | Topic | Score | Key Words |
57 | 11875 | son daughter year child young school learn kid watch play start pick picture excited make toy show proud grand dance | 49 | 0.04 | friend girl text send talk meet date girlfriend message picture good boyfriend facebook guy post crush woman cute love pretty |
46 | 110.70 | give son daughter hug big love smile kiss morning face year wake wife husband put baby home run pick kid | 73 | 0.05 | game play video friend fun beat online buy board finally nintendo level switch night enjoy hour zelda xbox pokemon win |
44 | 6.98 | baby happy sister birth child give bear movement time month wife pregnant day boy girl son wait moment person family | 3 | 0.10 | eat food lunch restaurant favorite pizza good dinner delicious order place local chinese great meal sushi taco today burger taste |
25 | 5.23 | fun play park lot kid enjoy time friend daughter day son fish pool water catch yesterday beach weekend swim family | 76 | 0.11 | gym good feel great today workout hair work morning exercise personal yoga start cut record lift session class run haircut |
27 | 3.74 | school college son graduate daughter year accept high student program teacher award class attend proud university receive degree summer scholarship | 13 | 0.11 | friend meet good time long hang year talk mine catch close school chat college lunch childhood visit great fun bar |
Parents | Nonparents | ||||||
---|---|---|---|---|---|---|---|
Lemma | Score | Lemma | Score | Lemma | Score | Lemma | Score |
daughter | 66.10 | son | 56.23 | laws | 0.08 | marks | 0.11 |
grandson | 25.20 | granddaughter | 22.76 | toys | 0.12 | orphan | 0.13 |
grandchild | 22.10 | kid | 13.70 | anime | 0.17 | heroes | 0.17 |
oldage | 10.15 | toddler | 9.13 | roommate | 0.19 | mumbai | 0.20 |
chemo | 8.51 | child | 7.00 | brother | 0.20 | videogame | 0.20 |
bhk | 6.40 | grandkid | 6.33 | lemonade | 0.20 | sir | 0.21 |
sitt | 6.10 | maternity | 6.00 | midterm | 0.21 | neighborhood | 0.21 |
children | 5.90 | stepson | 5.35 | bully | 0.22 | exclusive | 0.22 |
helped | 5.25 | kiddo | 5.10 | russian | 0.22 | courage | 0.22 |
feeder | 4.28 | babysitter | 4.22 | girlfriend | 0.22 | games | 0.23 |
Married | Unmarried | ||||
---|---|---|---|---|---|
Topic | Score | Key Words | Topic | Score | Key Words |
57 | 126.15 | son daughter year child young school learn kid watch play start pick picture excited make toy show proud grand dance | 49 | 0.02 | friend girl text send talk meet date girlfriend message picture good boyfriend facebook guy post crush woman cute love pretty |
46 | 31.85 | give son daughter hug big love smile kiss morning face year wake wife husband put baby home run pick kid | 73 | 0.11 | game play video friend fun beat online buy board finally nintendo level switch night enjoy hour zelda xbox pokemon win |
44 | 5.31 | baby happy sister birth child give bear movement time month wife pregnant day boy girl son wait moment person family | 13 | 0.13 | friend meet good time long hang year talk mine catch close school chat college lunch childhood visit great fun bar |
37 | 3.57 | make happy mother sister father lunch law time son home wife roti part daughter morning serve brother leave learn cook | 3 | 0.15 | eat food lunch restaurant favorite pizza good dinner delicious order place local chinese great meal sushi taco today burger taste |
32 | 3.20 | temple family church easter enjoy yesterday god festival people sunday service member egg attend kid volunteer pray hunt trump morning | 76 | 0.16 | gym good feel great today workout hair work morning exercise personal yoga start cut record lift session class run haircut |
Married | Unmarried | ||||||
---|---|---|---|---|---|---|---|
Lemma | Score | Lemma | Score | Lemma | Score | Lemma | Score |
husband | 35.53 | wife | 20.86 | monopoly | 0.07 | boyfriend | 0.07 |
attended | 10.48 | hubby | 10.26 | fiancee | 0.08 | divorce | 0.11 |
oldage | 9.89 | spouse | 9.64 | dawn | 0.14 | girlfriend | 0.15 |
tempel | 7.31 | persistance | 6.95 | midterm | 0.16 | citation | 0.16 |
bhk | 6.90 | needy | 6.48 | du | 0.18 | monitor | 0.18 |
wonderla | 6.15 | seedling | 6.02 | roommate | 0.18 | mistakenly | 0.19 |
daughter | 5.68 | pit | 5.63 | 3mth | 0.19 | toys | 0.19 |
nowadays | 5.60 | helpd | 5.55 | life | 0.19 | agency | 0.19 |
son | 5.39 | toddler | 5.28 | sir | 0.20 | laws | 0.21 |
romantic | 5.23 | wend | 5.23 | enthusiasm | 0.21 | custody | 0.22 |
Topic | Score | Key Words | Topic | Score | Key Words |
---|---|---|---|---|---|
Age < 20 | 30 ≤ Age < 40 | ||||
47 | 42.47 | class pass exam test grade finish good final semester college study score hard high son school student receive daughter paper | 57 | 50.40 | son daughter year child young school learn kid watch play start pick picture excited make toy show proud grand dance |
70 | 12.84 | happy make event husband recently feel week extremely girlfriend love big small incredibly excited lastly fulfil significant super spouse plan | 46 | 7.27 | give son daughter hug big love smile kiss morning face year wake wife husband put baby home run pick kid |
21 | 9.90 | happy make month past event hour thing happen weekend small girlfriend occur big recent learn mth fiance involve twenty hrs | 65 | 4.27 | plant garden yard flower start tree air grow lawn rain water nice bloom smell spring mow seed finally grass bath |
19 | 6.30 | make happy feel today yesterday proud thing work progress turn love successful compliment real significant april pretty decision point sincerely | 42 | 3.18 | doctor find back surgery good hospital health finally pain cancer dog week appointment sick recover blood news today test vet |
40 ≤ Age < 60 | Age ≥ 60 | ||||
57 | 161.92 | son daughter year child young school learn kid watch play start pick picture excited make toy show proud grand dance | 57 | 386.56 | son daughter year child young school learn kid watch play start pick picture excited make toy show proud grand dance |
65 | 25.45 | plant garden yard flower start tree air grow lawn rain water nice bloom smell spring mow seed finally grass bath | 65 | 81.00 | plant garden yard flower start tree air grow lawn rain water nice bloom smell spring mow seed finally grass bath |
42 | 8.93 | doctor find back surgery good hospital health finally pain cancer dog week appointment sick recover blood news today test vet | 42 | 31.45 | doctor find back surgery good hospital health finally pain cancer dog week appointment sick recover blood news today test vet |
46 | 6.90 | give son daughter hug big love smile kiss morning face year wake wife husband put baby home run pick kid | 58 | 14.22 | walk weather day nice rain warm today sun beautiful sunny enjoy spring bird cool long hot sit dog morning cold |
Gender | Parenthood | Married | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Predictors | Prec. | Rec. | F | Prec. | Rec. | F | Prec. | Rec. | F | |||
Topics | Male | 0.61 | 0.87 | 0.72 | Yes | 0.65 | 0.20 | 0.30 | Yes | 0.60 | 0.21 | 0.31 |
Female | 0.55 | 0.23 | 0.32 | No | 0.64 | 0.93 | 0.76 | No | 0.61 | 0.90 | 0.73 | |
Total | 0.59 | 0.60 | 0.55 | Total | 0.64 | 0.64 | 0.58 | Total | 0.61 | 0.61 | 0.55 | |
Dependecy Bigrams | Male | 0.69 | 0.81 | 0.75 | Yes | 0.68 | 0.52 | 0.59 | Yes | 0.65 | 0.53 | 0.58 |
Female | 0.66 | 0.50 | 0.57 | No | 0.72 | 0.84 | 0.78 | No | 0.70 | 0.80 | 0.75 | |
Total | 0.68 | 0.68 | 0.67 | Total | 0.70 | 0.71 | 0.70 | Total | 0.68 | 0.69 | 0.68 | |
Lemmas (1–3 grams) | Male | 0.70 | 0.80 | 0.74 | Yes | 0.71 | 0.88 | 0.79 | Yes | 0.71 | 0.88 | 0.79 |
Female | 0.65 | 0.52 | 0.58 | No | 0.72 | 0.45 | 0.55 | No | 0.72 | 0.45 | 0.55 | |
Total | 0.68 | 0.68 | 0.67 | Total | 0.71 | 0.71 | 0.69 | Total | 0.71 | 0.71 | 0.69 | |
Word Forms (1–3 grams) | Male | 0.70 | 0.80 | 0.74 | Yes | 0.69 | 0.47 | 0.56 | Yes | 0.70 | 0.50 | 0.58 |
Female | 0.65 | 0.52 | 0.58 | No | 0.71 | 0.86 | 0.78 | No | 0.70 | 0.85 | 0.77 | |
Total | 0.68 | 0.68 | 0.67 | Total | 0.70 | 0.71 | 0.69 | Total | 0.70 | 0.70 | 0.69 | |
Char Ngrams (1–5 grams) | Male | 0.69 | 0.82 | 0.75 | Yes | 0.66 | 0.52 | 0.58 | Yes | 0.63 | 0.55 | 0.59 |
Female | 0.67 | 0.50 | 0.57 | No | 0.72 | 0.82 | 0.77 | No | 0.70 | 0.77 | 0.74 | |
Total | 0.68 | 0.69 | 0.68 | Total | 0.69 | 0.70 | 0.69 | Total | 0.67 | 0.68 | 0.67 |
FastText | Gradient Boosting | |||||
---|---|---|---|---|---|---|
Resopnse | Prec. | Rec. | F | Prec. | Rec. | F |
Gender | 0.669 | 0.669 | 0.669 | 0.680 | 0.670 | 0.675 |
Parenthood Status | 0.703 | 0.703 | 0.703 | 0.736 | 0.721 | 0.728 |
Marrital Status | 0.659 | 0.659 | 0.659 | 0.667 | 0.667 | 0.667 |
Age Group | 0.491 | 0.491 | 0.491 | 0.476 | 0.498 | 0.487 |
Lemma | Parent | Married | Male | Lemma | Parent | Married | Male |
---|---|---|---|---|---|---|---|
school | 0.99 | 1.10 | 1.03 | beautiful | 1.28 | 1.28 | 0.61 |
girlfriend | 0.22 | 0.01 | 11.34 | pretty | 0.72 | 0.35 | 1.18 |
boyfriend | 0.51 | 0.00 | 0.06 | gorgeous | 0.88 | 1.68 | 1.67 |
xbox | 0.59 | 0.33 | 2.03 | handsome | 1.39 | 1.54 | 1.90 |
football | 1.50 | 0.68 | 4.70 | lovely | 0.81 | 2.31 | 0.84 |
friend | 0.64 | 0.18 | 1.04 | ||||
happy | 1.45 | 3.42 | 0.74 | ||||
happiness | 0.93 | 1.83 | 0.96 | ||||
precious | 0.69 | 1.32 | 0.19 | ||||
blissful | 0.88 | 0.73 | 0.12 |
© 2019 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).
Share and Cite
Mohamed, E.; Mostafa, S.A. Computing Happiness from Textual Data. Stats 2019, 2, 347-370. https://doi.org/10.3390/stats2030025
Mohamed E, Mostafa SA. Computing Happiness from Textual Data. Stats. 2019; 2(3):347-370. https://doi.org/10.3390/stats2030025
Chicago/Turabian StyleMohamed, Emad, and Sayed A. Mostafa. 2019. "Computing Happiness from Textual Data" Stats 2, no. 3: 347-370. https://doi.org/10.3390/stats2030025
APA StyleMohamed, E., & Mostafa, S. A. (2019). Computing Happiness from Textual Data. Stats, 2(3), 347-370. https://doi.org/10.3390/stats2030025