Full text
MAJOR & MASTER IN MANAGERIAL AND FINANCIAL ECONOMICS RESEARCH PAPER 2021-2022 Major in Managerial and Financial Economics Research Paper Academic Year 2021 - 2022 Do board gender quotas affect how people perceive firms? A study of the California board gender quota law with Twitter sentiment data Daniel Torán Mercadé Under the supervision of Professor Jean-Noël Barrot X RAPPORT OUVERT AU PUBLIC – PUBLIC REPORT RAPPORT CONFIDENTIEL - CONFIDENTIAL REPORT
Abstract The first compulsory board gender diversity quota law in the United States was approved in 2018 in California. In this study, we aim to analyse how public perception has been influenced by the application of this gender quota law, using Twitter Sentiment Score of public companies affected by it. Specifically, the whole Twitter history between 2016-2021 of approximately 200 firms has been scrapped and the daily, monthly and yearly sentiment score has been computed. Moreover, the gender of the account associated with the tweet has been analysed in order to test differences between male and female sentiment. The results show that there is a positive effect of the increase in share of women in the board on the percentage of positive tweets. Moreover, the effects of the pool of tweets of women and men are opposite, positive for women and negative for men. Finally, the effect of the California gender quota law on Twitter sentiment has been studied. Those companies with a lower share of women(do not comply with the law after it was passed) experienced a higher increase in share of positive tweets in the post law period compared with the companies that were already complying with the law. Keywords: Twitter sentiment score (TSS), Social Media Data, board of directors, gender diversity, female directors, gender quotas. 2
Acknowledgements Having the opportunity to study a MiM with a major in Finance and Economics in HEC Paris has been a great honour and it has allowed me to grow both intellectually and emotionally. I would like to thank HEC, the program coordinator, and the program managers – Ai Ting Goh and Olivier Klein – for their dedication to us during this pandemic time. I would like to thank all the community of professors which prove that we are in the best school. HEC teaches traditional subjects like Economics, Strategy and Finance but it is also a place where new topics and ideas can be discussed in a stimulating environment. The 5 week Climate and Business Certificate has given me the opportunity to understand and reflect about topics that were not in my vital compass before but that I will be thinking about when making future career decisions. I will never forget this immersive and disruptive experience offered and the human connection I made during those 5 weeks. I would like to thank my supervisor, Jean-Noël Barrot, who guided me to better understand the research topic and how to use an innovative kind of data like social media data to bring a new perspective to gender diversity issues. I would also like to thank Floris Van Dijk for his help and long discussions about how to deal with the econometrics work of this project. I met Floris in my M1 and since then we have been collaborating in a handful of projects by mixing my coding skills with his economics research mind, achieving great success. I believe that the fact that HEC brings together people from very diverse backgrounds and nationalities is an invaluable asset. The opportunity to meet and collaborate with people with very different profiles than mine has allowed me to grow both professionally and personally and understand in a deeper way what I want to do in the future. All of that would not have been possible without the comprehension of my girlfriend Paula, my parents and family and friends, who have been supporting me from Barcelona throughout these 3 years. Thanks a lot again to everybody which helped me in making this academic and personal journey a success. 3
Contents Abstract 2 Acknowledgements 3 Contents 4 Introduction 6 Gender Quotas Research 6 Twitter Sentiment Analysis Research 6 Contributions of this master thesis 7 Paper Structure 8 Theoretical Framework 8 Gender Quotas Policy Background 8 Existing literature on gender quotas 9 Existing literature using Twitter data 11 Hypotheses 12 Methodology 15 Data 15 Twitter Sentiment Data 15 How many tweets have been scrapped and analysed? 15 Why use Twitter data? 16 Issues when scraping and performing Sentiment Analysis on Twitter data 16 Company Board Data 17 Empirical approach 17 Twitter Scraping and Sentiment Analysis Methodology 17 Twitter data extraction 17 Sentiment Analysis Pipeline 18 Regressions Analyses 21 Regressions specification 21 Results and Discussion 25 Descriptive statistics 25 Effective application of the Californian law 26 Main regression results 27 Interpretation of the results as a whole 32 Limitations of the methodology 32 Suggestions for future research 34 Conclusion 35 References 36 Appendix 38 Code Overview 39 Github Repository 39 Streamlit App 39 Code Implementation 40 Tables and Figures 41 Twitter Sentiment Analysis Data 41 Board Data 44 Relationship between Twitter Sentiment Score and % women in the board 48 Regression Results 50 4
Introduction Gender Quotas Research There has been an increasing pressure on companies by society and business actors to increase diversity in the workplace, including gender, race and religious diversity. While most actors agree that this trend is positive, there is a high discrepancy in how this diversity should be achieved and if imposing mandatory quotas is the best solution to foster the consolidation of diversity in the workplace. The focus of this kind of research is to study gender diversity issues and board quota legislation. Gender diversity and the implementation of mandated board quotas has been studied using legislation and sets of companies from many countries and study periods. Most of the latest research focuses on understanding what is the economic impact of gender quotas such whether gender diversity increases firm value, what are the immediate effects on shareholder value of imposing gender quotas on the board of directors or what is the effect of sudden changes in the pool of available female directors on the effectiveness of board gender quotas to name some concrete examples. These research topics are very focused on what companies should do when deciding whether or not to pursue gender diversity policies to increase long term value and whether or not investors should consider gender diversity as a requirement for their investment strategy. Twitter Sentiment Analysis Research However, the research objective of this study is to analyse how people perceive the application of gender diversity policies inside companies and whether or not companies with a strong percentage of women in the board of directors are discerned as more positive by customers and general citizens. By using Twitter data and performing Sentiment Analysis, the perception that people have on companies over time can be analysed to understand if the fact that some companies are applying strong gender policies whereas other companies continue with business as usual policies has an effect on the positive sentiment on those companies quantified on Twitter. Twitter data and Sentiment Analysis has been used in research papers both applied to company level data and to macroeconomic and socio-political data. In the first field, the main application of Twitter sentiment data has been to understand the perception that people have on some company decisions, like CEO appointments or some external shocks such as stock crashes or business scandals, and to assess how past Twitter sentiment can predict future stock returns. 5
In the second field, the core of the research has zoomed into understanding the correlation between Twitter sentiment score and several socio-economic indicators such as GDP (Gross Domestic Product) per capita, political stability, covid lockdowns, economic development, poverty and share of unemployment. Contributions of this master thesis The combination of board gender quotas analysis and company Twitter Sentiment Score evolution over time is an innovative research question. In addition, understanding what variables affect the Twitter Sentiment Score evolution can be explored using different kinds of exogenous shocks like the board gender quotas laws from different countries or the closing of a factory. In this thesis, the California board gender quota law has been used. Using company level data of the Twitter sentiment score over a long period of time and the percentage of women in the board of directors before and after the passing of the board gender quota law several questions can be answered: ●Firstly, which are the effects of the proactive application of gender equality policies on the perception that customers and people have of companies? ●Secondly, are those companies that are forced to increase the percentage of women in director positions because of the law negatively impacted on their Twitter sentiment score by customers and people in general? ●Finally, is there a difference between how men and women perceive companies on Twitter and whether women care more about the share of women on the board than men when analysing the perception of a company on Twitter? In this paper, the objective is to answer these questions by assessing how the first corporate gender board quota passed in the US has affected the appointment of new directors to such boards, using it as an exogenous shock that allows to divide the pool of Californian companies into 2 groups. Overall, this paper makes two main contributions, the first contribution of this paper is to the gender quota literature. This study is the first aiming to connect the observed increase in female share in boards with the Twitter positivity rate while differentiating between those companies that already comply with law versus those that must adjust their board structure in order to obey the law and avoid the fines and public opinion problem. The second contribution of this paper is a methodological one. Specifically, instead of relying on survey-based techniques or experimental data, it directly scraps Twitter data from individual users to measure changes in sentiment towards companies. In a sense, this thesis is a “proof of concept” that this publicly-available data can be used in future research. 6
Paper Structure The paper structure is detailed below. Section 2 explains the theoretical framework detailing the context and details of the California gender quota law and examples of board gender quotas in other geographies. Moreover, it presents the literature review and some conclusions on the effects of board gender quotas laws while introducing the research issue and the hypothesis. Section 3 describes the data, explains how the final dataset has been obtained and describes the empirical methodology with its robustness and pitfalls. Section 4 analyses and discusses the results. Section 5 concludes. 7
Theoretical Framework Gender Quotas Policy Background California's Senate Bill No. 826 is the first law in the United States that imposes a gender quota on corporate boards to public companies headquartered in a specific State (Senate Bill No. 826, 2018). The law was approved on the 30th of September, 2018, by California’s governor, and mandated public companies to have at least 1 female director on the board by the end of 2019 and by the end of 2021 this required minimum would increase to 2 female directors for those companies with 5 directors on the boards or to 3 female directors for those companies with 6 or more directors on the boards. Those companies that by the end of 2021 have 4 or less directors would only require to have 1 female director. The mandated board quota law has some associated penalties for non-compliance. Every year, companies will go through a compliance assessment to certify that they are following the requirements, otherwise the companies will be fined. For the first violation, a monetary fine of 100k $ has been set and 300k $ for the subsequent violations. Moreover, the law requires companies to report their compliance with its requirements by the elaboration of reports to be published on the Internet. The following table summarises the California board gender quota law requirements and fines: Table 1. California board gender quota law requirements and fines Minimum requirement Years to comply Penalty 1 woman 1 (2019) $ 100,000 fine for a first violation $ 300,000 fine for a subsequent violation 3 women at board with 6 directors or more 3 (2021) 2 women at board with 5 directors 1 woman at board with 4 directors or fewer California is a pioneer in the United States in gender diversity in the workplace and as early as in 2013 both the Senate and the House of the State passed a very similar gender quota law, but it did not enter into effect since it was not approved by the Governor, and it only remained as a non-binding Senate Resolution. Other American States such as Illinois, Massachusetts, Colorado and Pennsylvania have passed similar laws in the legislative bodies but all of them were blocked by the respective governors. On the contrary, in Europe, some countries, such as France, Italy, Belgium, Spain, Iceland, the Netherlands and Norway, have mandated board quotas for women (Winters & Jacobs-Sharma, 2016). Norway was the first country in the world to impose a binding board gender quota in the world. The law was enacted in 2003 and it ordered a 40% share of women on the boards of public companies. 8
Furthermore, on the 7th of June, 2022, the European Commission passed a bill1with EU member States to increase the gender diversity of corporate boards. The bill had been blocked by the Council for 10 years and it imposes that at least 40% of non-executive director posts or 33% of all director posts are held by the under-represented sex. SMEs (Small and Medium Enterprises) with fewer than 250 employees have been excluded and dissuasive penalties have been included but have not yet been set. Across the United States, women correspond to around250% of the educated workforce but only 16% of the board seats in companies at the Russell 3000 index are held by women and 21% of these firms do not have any women on the board. Even if the number of female directors on boards is low, there has been an increasing trend among investors to push for having more diverse board composition since more diverse companies create more value in the long run. For instance, BlackRock’s CEO, Larry Fink, in his 2018 annual letter to CEOs, highlighted the importance of having “boards with a diverse mix of genders, ethnicities, career experiences, and ways of thinking have, as a result, a more diverse and aware mindset. They are less likely to succumb to groupthink or miss new threats to a company's business model. And they are better able to identify opportunities that promote long-term growth." Existing literature on gender quotas There are mixed views in the literature of what is the real effect of imposing board quotas to increase diversity in companies. Some researchers argue that board quotas are necessary since increasing diversity in leadership positions ends up affecting diversity in the whole organisation whereas others defend that imposing board quotas is not effective since even if quotas are met, either the same women end up in many different boards or inexperienced women end up holding those seats, leading to less potential value creation for that organisation. For instance, (Sabatier, 2015) studied the French CAC 40 listed companies’ economic performance in the period 2008-2012 concluding that gender diversity in the board reduced company inefficiencies allowing firms to get closer to optimal performance with the endogeneity of board gender diversity being controlled. Moreover, the study noted that endogenous firms’ attributes such as gender promotion strategies are completely related to gender diversity on the board. Focusing on the Senate Bill No. 826 (Hwang et al., 2018) found that the passing of the law resulted in a decrease of 1.4% in company value for firms headquartered in California compared to firms in the rest of the United States. They also found that, the higher the number of female directors the company needed to add to comply with the law, the higher that decline was. However, this decrease in shareholder value was not observed in those 2Current Population Survey (CPS) 2019, Bureau of Labor Statistics 1https://www.europarl.europa.eu/news/en/press-room/20220603IPR32195/women-on-boards-deal-to-boost- gender-balance-in-companies 9
When running the script, the computational power of the computers used allowed for scraping between 25-50 tweets per second. In total, between 1100 and 2200 hours of average computational power have been needed. This was achieved by parallelizing the scripts so that tweets from different companies could be scraped simultaneously. Why use Twitter data? Twitter data has many advantages when comparing with other platforms such as Facebook or Reddit: ●The data is easily scrapable using open source libraries that allow to obtain millions of past tweets from a given account or keyword. ●The level of granularity of the data is really high, containing valuable meta-data such as geospatial data, socioeconomic indicators and some retrievable personal data. ●The standard format of communication in Twitter has been a short text between 140-280 characters for more than 10 years. On the contrary, other social media platforms incorporate much more heterogeneous forms of communication like links, images and long texts, which are difficult to scrape and to understand the whole meaning of the conversation. In addition to that, the standard format of Twitter text data allows to apply NLP (Natural Language Processing) techniques such as Sentiment Analysis, topic modelling combined with data science techniques like geospatial clustering and network analysis that allow to deepen the detail which can be obtained using tweets data. For instance, for this study, Twitter data is of paramount importance to obtain a proxy of how different people perceive a company over time with different levels of detail such as a split by gender and selected timeframes (day, month, year). Using the raw text data and the metadata, a more detailed overview of the person tweeting and its relevance for the studied variable can be obtained. Issues when scraping and performing Sentiment Analysis on Twitter data ●The Twitter accounts were collected manually to ensure that the Twitter profile was the main account representing that company and that it has meaningful activity. ●Only those companies that have a valid Twitter account have been included. For instance, if a company Twitter account had no activity whatsoever, that company has not been included. ●Due to its unstructured form, little contextual data, abbreviations, misspellings, and slang usage, Sentiment Analysis on Twitter can be difficult. 16
Company Board Data Boardex database offers director level data on board appointments which uses 8-K filings. 8-K filings reports provide detailed tracking of director appointments changes. Boardex provides an extensive set of variables on companies governance and board appointments including several variables on directors such as gender, years on the board, salary, experience, industry expertise, etc.. The percentage of women directors in company boards in California and non-California companies in the periods before and after the passing of the gender quota bill is obtained from Boardex. Empirical approach Twitter Scraping and Sentiment Analysis Methodology In Algorithm 1, an overview of the main steps performed by the algorithm and the inputs and outputs of the pipeline is provided. Twitter data extraction In order to obtain the evolution of the perception of each company on Twitter, the whole tweet history of users mentioning the company profiles was needed. This has been done setting up a web scraping script that takes as input the company Twitter profile name and the period from when the tweets need to be obtained. For the Twitter data extraction, the Python library snscrape3has been used. This Python library allows to extract data from social networks by taking as input user profiles, hashtags, or searches and time periods and returning the posts or discovered items associated with that account. For this specific analysis, the snscrape’s module snstwitter has been used to scrape the different datapoints of the tweets each company in the sample was mentioned. Snscrape was chosen among other libraries that perform a similar scraping on Twitter data because of its robustness in obtaining the whole Twitter history of an account or a search tag. Other libraries explored like Tweepy4,Twint5or GetOldTweets3 did not allow to scrape the quantity of tweets needed to perform this analysis. For instance, Tweepy uses the Twitter API to connect with Twitter and has a limit of 5000 tweets. Twint did not have a tweet scraping limitation, but it was not robust enough and the search query did not yield all the tweets referring to that profile name in the period of study. 5https://github.com/twintproject/twint 4https://github.com/tweepy/tweepy 3https://github.com/JustAnotherArchivist/snscrape 17
In order to only consider relevant and third party tweets for the sentiment, all tweets made by users mentioning the profile of the company have been included in the sample and those tweets made by the company itself or related profiles have been excluded. Supplementary Table 2 summarises the different variables scrapped per tweet using snscrape. Sentiment Analysis Pipeline Sentiment analysis (or opinion mining) is a natural language processing (NLP) technique that allows to assess whether non-structured data like text is positive, negative, or neutral. In this case, Sentiment Analysis is applied to the tweet texts of a company over time to monitor customer sentiment towards that company. The main reason to perform Sentiment Analysis on tweet data (unstructured data) is to be able to have a proxy of how people perceive that company over time. Once the Twitter data has been extracted, Sentiment Analysis is performed using the tweet text to assign a score on the tweet, with the probability of being a positive tweet. The score goes from -1 (totally negative) to +1 (totally positive). There are different algorithms to perform Sentiment Analysis using different techniques depending on the quantity of data that needs to be analysed and the accuracy of the model: ●Rule-based Sentiment Analysis algorithms: these algorithms analyse the different words used in the tweet and assign a score to the text by using manual rules of the sentiment of each word. Mainly, this type of algorithm identifies positive and negative words and counts the words of each type that appear on the text. Moreover, the rules incorporate some NLP techniques that codify text data such as Stemming (keeping only the base of the word), Tokenization (dividing words into characters or subwords), Part-of-speech tagging (assign a grammatical category to each word) and other methods. ●Machine Learning Sentiment Analysis algorithms: a machine learning algorithm has been trained using humanly labelled tweets in order to learn which combination of words correspond to each sentiment. Once an unseen tweet is fed into the classifier model, it uses the model weights computed during the learning phase to assign a sentiment to the new tweet text. In the experimentation phase, for computing the Sentiment Analysis of each tweet, 3 algorithms of each type have been tested and used to have a more reliable final sentiment score. 18
Table 3. Overview of different Sentiment Analysis algorithms. Algorithm Description Method type TextBlob Simple rule-based API for sentiment analysis Rule-Based Vader Parsimonious rule-based model for sentiment analysis of social media text. Rule-Based Flair A PyTorch-based framework for NLP tasks such as sequence tagging and classification. Embedding-based Twitter-Sentiment6 Generative recurrent neural networks (GRU) custom sentiment analysis model trained from scratch using 1.4 million labeled tweets Embedding-based The rule-based algorithms used have been the TextBlob and NLTK Vader libraries, which yield a polarity score (from -1 to 1) and the sentiment of the text with a very simple code implementation. On top of those, Flair and Twitter-Sentiment, two embedding-based algorithms (in an Embedding-based algorithm words are converted to a vector space) have been used to compare results. Flair algorithm has been trained with normal text whereas the Twitter Sentiment algorithm has been trained using text in tweet format. Rule-based algorithms are much easier to implement and are extremely fast but sometimes they can yield poor results with longer sentences (more neutral words appear and the score tends to get normalised in neutral) and when sarcasm or jargon is used. On the other hand, Embedding-based algorithms performance is higher but it takes much longer to compute the sentiment. As a comparison, Flair takes around 50-100 times longer to compute the sentiment than NLTK or TextBlob but yields an accuracy of around 90% whereas NLTK or TextBlob accuracy is around 70%.7 In the final implementation to obtain the Twitter text sentiment, only the rule-based algorithms have been included. There have been 2 main reasons for this: ●Firstly, due to the large number of tweets to be scrapped and the time needed to obtain the sentiment for those tweet texts, using embedding-based algorithms would have required to set-up a parallelized computing setting, which requires deep technical data engineering skills. ●Secondly, since in this case the text will be from Twitter posts, the total length cannot be above 280 characters, minimising the problem of reduced performance of long texts when using Rule-based methods. Moreover, those tweets texts with very few words that lack context or use slang have not been included in the final pool of tweets to reduce the possibilities of obtaining not accurate predictions. 7https://towardsdatascience.com/the-best-python-sentiment-analysis-package-1-huge-common-mistake-d6da 9ad6cdeb 6https://github.com/shahules786/Twitter-Sentiment 19
Using the polarity score obtained averaging both rule-based algorithms implemented, the raw sentiment of each tweet has been computed. Each tweet receives a positive, neutral or negative label. Finally, different time-dependent metrics have been computed to understand the evolution of the perception of each company in Twitter. Those metrics have been computed by grouping all tweets on a daily, monthly and yearly time frame and calculating the average, median and count of those metrics on each timeframe. The different time-dependent sentiment metrics computed from the raw polarity score are: ●The same polarity score and total number of tweets has been computed on a daily, monthly, and yearly time frame. ●The number and percentage of positive, negative, and neutral tweets has been computed using the same timeframes. A tweet is considered positive when polarity score is above 0, negativity when is below 0 and neutral otherwise. ●The time averaged polarity score has been normalised by using an engagement weight that gives a higher weight to the sentiment of those tweets that have higher likes, replies and retweets. In addition to obtaining the tweet sentiment and user data provided by Twitter like the device from where the tweet was sent (if it was a smart phone: Iphone, Android, etc), in order to have data on a more granular level, the gender of the person making the tweet has been computed by using an algorithm8trained to recognize names and classify them between male or female. The variable Displayname has been used to extract the first and last name of the user making that tweet. By inputting the first name to the trained classifier, it is able to predict if that name is a male or female name and a gender label is attributed to that tweet. Around 50% of tweets have been labelled either as male or female, the rest are kept as unknown. This low efficiency is because most of the users do not use their real name in their Twitter account and hence the algorithm cannot determine a gender when there is not a recognizable first name associated with that account. Nonetheless, the sentiment score of the Unknown category compared to the male category is quite similar and thus it might be considered that the bulk of the unknown category is composed of men profiles and a minimal part of women accounts. In summary, by implementing this step, time-dependent sentiment metrics with a gender label are obtained. 8https://pypi.org/project/gender-guesser/ 20
Regressions Analyses The regressions analyses include the following empirical approach: First, using DiD, we determine whether the effectiveness of the Californian law was real, meaning that those companies that were not complying with the law when it was passed, increased their share of women in the board significantly. Second, using panel data, we determine the effects of changes in the share of women on board on the sentiment towards the company. Moreover, whether the sentiment score is affected by the gender of the Twitter user and by the “forced” (by law) or “voluntary” nature of the change in the share of women on the board has been analysed. Regressions specification In this paper, we rely on fixed effects panel methods (the appendix contains a lengthier justification for this).An analysis of the evolution in the share of women on the board is conducted to assess if the increase in share of women can be attributed to the gender quota law while considering controls on firm level. The mandatory level of women in the board for 2021 is considered as baseline and the shortfall variable is constructed to determine how many women are needed to be included in the board in a given year in order to comply with the law. The shortfall variable has been computed by comparing the actual number of women in the board with the required number of women mandated by the board women quota law, which is dependent, as it has been explained in the policy background section, on board size and the year. Using the shortfall variable for each company in the year 2018, companies can be separated into 2 groups. One group that has the right share of women in the board before the law was passed and they do not need to adjust and another group that needs to incorporate women into the board and hence they need to adjust their board structure. 2018 has been chosen to separate between pre and post period since companies knew about this change by the end of 2018 and it would have been really difficult for them to already start changing board members so suddenly. Next, the Treated variable can be created by computing if the company has a positive shortfall in year 2018, meaning that they need to increase the number of women, in which case Treated takes as value 1, and it takes the value of 0 when the company has 0 or a negative shortfall, meaning that with the company’s current share of women in the board it is already complying with the mandated gender board quotas. In order to capture the effect 21
of the law in the increase of share of women, a differentiation between the years prior to the passing of the law and the years post its passing needs to be defined. The post period variable has been created to account for the difference between the period before the law was passed and the period after, when companies needed to increase the share of women to comply with the law, the years 2019, 2020, 2021 and 2022 are set as post whereas the years 2016, 2017 and 2018 are set as pre. Regression 1: DiD to Determine the effectiveness of the Californian law In order to determine how the law affected the relative speed at which the shares of women on the boards increased during the studied time period, we performed a Difference-in-differences (DiD) regression. For this, we rely on the following DiD regression with year dummies for the three years between the law’s announcement and the year it came into effect. This allows the decomposition of the increase of the shares of women on the board of the treated companies relative to those of the control companies. Regression 2.1.1a: The effect of changes in the ShareWomenBoard on sentiment Now, we want to study the effect of a change in the share of women on the board in the change in sentiment. To achieve this, the the ChangeSentiment and ChangeShareWomanBoard are obtained by taking the value for 2021 minus that of 2019 The value of ChangeSentiment is the average across genders, hence, with all the tweets included without differentiating by gender. This regression will allow to understand what is the correlation between changes in these 2 variables of interest and define if this correlation has a positive or negative trend with all the companies together and without gender differentiation. To avoid including non-significant companies that have very few observations, those companies that have less than 100 positive tweets in a given year will be excluded. 22
Regression 2.1.1b: The effect of changes in the WomenShareBoard on sentiment With this regression, the problem of having very few observations when computing the change between 2 year is overcame. Thanks to using panel data in combination with a pooled OLS model and a fixed effects model for company effects alone and company effects and time effects combined. In this regression, the panel data has observations for each company and for the years 2016, 2017, 2018, 2019, 2020, 2021. The value of ChangeSentiment is the average across genders. Regression 2.1.2a: The effect of changes in the WomenShareBoard on sentiment with gender effects This regression objective is to capture the same effects than the 2.1.1b regression but having them by gender. The baseline regression only captures how the share of women in the board affects the sentiment rate of that company but without controlling by gender In order to include the effects of gender, the interaction between the share of women in the board and the dummy variable Female and Male respectively have been created.There are 2 dummy variables by gender since it includes 3 categories: the male, female and unknown. In this regression, the panel data has observations for each company and for the years 2016, 2017, 2018, 2019, 2020, 2021. Moreover, the value is unique per gender (there are 3 genders) Regression 2.2.1: The effect of changes in WomanShare on changes in sentiment In this regression, only the tweet data for 2018, 2019, 2020 and 2021 is considered. The reason why observations prior to 2018 are not included is because the behaviours of the two groups of companies did not differ before the law was announced because the changes in ShareWomanBoard prior to 2018 were not « forced » 23
Regression 2.2.2: The effect of quota-based vs voluntary increases in WomanShare on changes in sentiment With this regression the effect of the California board quota law on how companies were perceived in Twitter depending on whether or not they are on the Treated group can be computed. (Values for 2018, 2019, 2020, 2021) 24
Results and Discussion Descriptive statistics For a deeper and customisable analysis of the data used in the study, a web application has been created using streamlit Python library. This app allows to evaluate the descriptive statistics for each company, including variables such as monthly and annual tweet count, tweet polarity, and percentage of positive-negative-neutral tweets (Supplementary Figure 1). Furthermore, these variables can also be explored by gender (Supplementary Figure 2). The application also allows to explore different descriptive variables of the companies, such as number of directors, nationality mix and women directors, by sector and by year. As shown in Supplementary Figures 3 and 4, there is a general tendency of the companies in the treated group to increase the number of women directors during the law period, whereas this increasing tendency is not so apparent in companies from the non-Treated group. These figures show what was the share of women in the board of each company before and after the law and it can be seen that for the Treated group the general trend is to increase since they were forced to do so by the law. Moreover, by looking at Suplementary Figure 5 and Suplementary Figure 6, the correlation matrix calculated with California and Non-California companies it can be seen that both groups have similar correlations in the Twitter sentiment metrics. With Supplementary Table 9, the evolution of the share of women on the board and the different Twitter sentiment analysis metrics can be observed divided between the Treated and Control group. It can be seen that the sentiment increases or gets maintained for the Treated group, which increases the share of women, whereas for the Control group the share of women is stable but the sentiment decreases in the last 2 years. 25
Interpretation of the results From Regression 1, where the implementation of the board gender quota law in California was checked, it can be seen that the law has been broadly followed and that companies started adjusting to the law early on, with a 5.5 percentage points increase in 2019. Hence, it can be stated that there are 2 differentiated groups in terms of the number of women that need to be incorporated into the boards. Moreover, to answer one of the research questions posed, by using panel data with a Fixed Effects model, it can be observed that there is a positive correlation between share of women in the board and the percentage of positive tweets, with a 0.18 percentage points increase on average per 1 percentage points of the share of women in the board. This result can be a preliminary indication that those companies with higher numbers of women on the board are better perceived by customers and people. When gender effects are included, it can be seen in Regression Results 4, there is a different effect in the Twitter positivity rate. This observation was theoritized in hypothesis 2b. The fact that women are more aware of gender issues and would be more prone to change their perception of a company is confirmed by these results. A surprising result has been found in Regression Results 5. In that regression, the effect of quota-based vs voluntary increases in the share of women in the board on changes in sentiment has been studied. What the results show is contrary to what was theoritized in Hypothesis 3a. Limitations of the methodology Number of companies with sufficient size Some companies have very few associated tweets since their Twitter activity is very minimal and customers and interested people interact with them through other channels. This creates a problem of having a lot of variability in the number of tweets with a mention the company has received in a month. Hence, for some companies the sample of tweets in a month is very large and constant over time whereas for some others there is a lot of variability and very small sample. For this reason, the companies that had a low tweet number (average <100 tweets per month) have not been included in the final analysis. 32
A more robust solution to this problem would be not only using the average but other metrics like the median and variance. For instance, by having the distribution of the number of tweets per time period instead of the mean. Those companies that are more volatile can be found more systematically. Gender of users As explained before, when predicting the gender of the person making the tweet by using the first name on the user profile some issues arise. Mainly, the fact many users do not have their official name and surnames and hence it is really difficult to pick up their gender. This is potentially an issue since over half the tweets are in this category. However, this limitation can be minimised in the methodology step by performing multi-linear regressions either excluding the unknown category from the total pool of observations or performing separately the multi-linear regression for each gender type. Company scandals effects on positivity rate With the Twitter Sentiment Analysis pipeline, the Twitter Sentiment rate on a daily basis has been computed. When there are some days with a very negative polarity rate or a lot of negative tweets this can affect the overall sentiment for that month and lead to biased estimates. A solution to avoid this would be to exclude those days that can be considered as outliers. A way of doing this would be setting up a median sentiment tweet per day and cape those days that are 3 standard deviations from the median Loopholes to the gender board quota Since in this analysis the focus is only on the change in percentage of women in the board it is not possible to distinguish between an increase in the number of women in the board and reduction of men in the board to have less board size to decrease from 7 to 5 so that less women are needed to be included in the board. For instance, companies could try to take 1 man away and replace with a woman or take out 2 men to decrease board size instead of hiring a woman. It could potentially have some effects but with the current methodology it could not be detected. 33
Suggestions for future research Following the points raised and examined throughout this paper, future research could pursue three directions. First, direct improvements on this study's methodology could verify and extend the presented findings. More advanced econometric techniques, alternative proxies for the studied variables and a larger dataset could be avenues to explore. Second, it could be interesting to extend the analysis to other countries and alternative legal requirements that have as goal an increased share of women in corporate leadership. Finally, following this paper's method for measuring changes in the public sentiment towards individual companies could be used for other corporate policies. Beyond the gender composition of the board of directors, changes in ESG strategies could be a fruitful subject to study based on this method. 34
Conclusion This master thesis objective has been to examine the impact of the California board gender quota law on how companies are perceived by customers and people in general. Twitter sentiment data has been used to estimate at scale how public companies are perceived in the public area by a very broad public. The companies with a lower share of women in the board experience a negative percentage decrease compared to firms with higher levels of women in the board. When controlling for gender, it has been observed that women have a positive effect on percentage of positive tweets when increasing the share of women in the board whereas a negative effect has been observed for men. Moreover, when using the passing of the California gender quota law as an exogenous shock, it has been seen that the Treated group companies have a positive effect on the positivity rate since they increase the share of women in the board more than the Control group. Therefore, those companies that were not complying with the law when it was passed and only started increasing the number of women on the board because they were forced to do it by the law, benefited positively in the percentage of positive tweets ratio. Overall, this paper sheds new light on the effects of mandatory board gender quotas on companies and how those companies' perception in Twitter is impacted because of differentiated gender policies among companies. Future research can investigate the impact of legal challenges to on board structure on other countries with similar legislation as well using the Twitter Sentiment Analysis methodology to obtain data about other companies and compare with different exogenous shocks. 35
References Ahern, K. R., & Dittmar, A. K. (2012). THE CHANGING OF THE BOARDS: THE IMPACT ON FIRM VALUATION OF MANDATED FEMALE BOARD REPRESENTATION. The Quarterly Journal of Economics,127(1), 137–197. Barrot, J.-N. (2021). ACCÉLÉRER LE REBOND ÉCONOMIQUE DES TERRITOIRES. 174. Bollen, J., Mao, H., & Zeng, X. (2011). Twitter mood predicts the stock market. Journal of Computational Science,2(1), 1–8. https://doi.org/10.1016/j.jocs.2010.12.007 Credit Suisse. (2012). Research Institute: Thought leadership from Credit Suisse Research and the world’s foremost experts. Eckbo, B. E., Nygaard, K., & Thorburn, K. S. (2022). Valuation Effects of Norway’s Board Gender-Quota Law Revisited. Management Science,68(6), 4112–4134. https://doi.org/10.1287/mnsc.2021.4031 Gertsberg, M., Mollerstrom, J., & Pagel, M. (2021). Gender Quotas and Support for Women in Board Elections [Working Paper]. National Bureau of Economic Research. https://doi.org/10.3386/w28463 Greene, D., Intintoli, V. J., & Kahle, K. M. (2020). Do board gender quotas affect firm value? Evidence from California Senate Bill No. 826. Journal of Corporate Finance,60, 101526. https://doi.org/10.1016/j.jcorpfin.2019.101526 Hwang, S., Shivdasani, A., & Simintzi, E. (2018). Mandating Women on Boards: Evidence from the United States [SSRN Scholarly Paper]. https://doi.org/10.2139/ssrn.3265783 Indaco, A. (2020). From twitter to GDP: Estimating economic activity from social media. Regional Science and Urban Economics,85, 103591. https://doi.org/10.1016/j.regsciurbeco.2020.103591 Leitch, D., & Sherif, M. (2017). Twitter mood, CEO succession announcements and stock returns. Journal of Computational Science,21, 1–10. https://doi.org/10.1016/j.jocs.2017.04.002 Matsa, D. A., & Miller, A. R. (2013). A Female Style in Corporate Leadership? Evidence from Quotas. American Economic Journal: Applied Economics,5(3), 136–169. https://doi.org/10.1257/app.5.3.136 Sabatier, M. (2015). A women’s boom in the boardroom: Effects on performance? Applied Economics,47(26), 2717–2727. https://doi.org/10.1080/00036846.2015.1008774 Seierstad, C., & Opsahl, T. (2010). For the Few Not the Many? The Effect of Affirmative Action on Presence, Prominence, and Social Capital of Women Directors in Norway [SSRN Scholarly Paper]. https://papers.ssrn.com/abstract=1420639 Senate Bill No. 826. (2018). Chapter 39: State of California Senate Bill No. 826, Chapter 954: An Act to Add Sections 301.3 and 2115.5 to the Corporations Code, Relating to Corporations (September 30, 2018) | Diversity & Inclusion in Law Practice 2021—PLI 36
PLUS Course Handbook Chapter. https://plusbeta.pli.edu/Details/Details?fq=id%3A(304767-CH39) Teigen, M. (2015). Gender quotas for corporate boards in Norway [Working Paper]. https://cadmus.eui.eu/handle/1814/36095 Wang, X., Zou, C., Xie, Z., & Li, D. (2020). Public Opinions towards COVID-19 in California and New York on Twitter. MedRxiv, 2020.07.12.20151936. https://doi.org/10.1101/2020.07.12.20151936 Winters, T., & Jacobs-Sharma, M. (2016). Gender Diversity on Corporate Boards: The Competing Perspectives in the U.S. and the EU. Comparative Corporate Governance and Financial Regulation. https://scholarship.law.upenn.edu/fisch_2016/13 37
Appendix Content Supplementary Figures ●Supplementary Figure 1. Snapshot of the main tab of the App showing analysis of Apple. ●Supplementary Figure 2. Snapshot of the gender analysis tab showing analysis of Tesla company. ●Supplementary Figure 3. California companies increase in share of women between pre and post period (Treated group). ●Supplementary Figure 4. California companies increase the share of women between pre and post period (Control group). ●Supplementary Figure 5. Correlation matrix with California companies. ●Supplementary Figure 6. Correlation matrix with non-California companies. Supplementary Tables ●Supplementary Table 1. Overview of the algorithm used for Twitter Scraping and Sentiment Analysis ●Supplementary Table 2. Variables scrapped per tweet using snscrape. ●Supplementary Table 3. Evolution number of tweets scraped and number of companies included. ●Supplementary Table 4. Boardex Director Level Data Variables. ●Supplementary Table 5. Variables created ad-hoc for the analysis. ●Supplementary Table 6. Evolution of share of women in boards and women directors needed. ●Supplementary Table 7. Evolution of share of women in boards with other diversity and director level variables ●Supplementary Table 8. Distribution of share of women and shortfall variables between Treated and Control group. ●Supplementary Table 9. Evolution of share of women and twitter sentiment score between Treated and Control group ●Supplementary Table 10. Regression 1: DiD for non-California companies. ●Supplementary Table 11. Regression 2.1.1b Full Results Fixed Effects and Pooled OLS ●Supplementary Table 12. Regression 2.1.2b Full Results Fixed Effects and Pooled OLS ●Supplementary Table 13. Comparison of Fixed Effects and Pooled OLS for Regression 2.2.1 ●Supplementary Table 14. Regression 2.2.2 Pooled OLS and Fixed Effects. 38
Code Overview For implementing the above mentioned methodology, the programming language Python has been used. Mainly, Data Science libraries like pandas (data wrangling), seaborn and plotly (visualisation), sklearn (regressions), TextBlob,NLTK Vader and Flair (Sentiment Analysis), snscrape (web scraping) and streamlit (web application). Moreover, a web application has been created to display the Twitter sentiment rate evolution per company and gender as well as the board composition evolution, presenting several tabs with visualisations, tables and graphs. This application uses the streamlit Python library as the main framework and is hosted in a Streamlit cloud. Github Repository The different scripts in ipynb and py formats used to perform the different steps of the methodology, analysis, tests and visualisations have been stored publicly in the following Github repositories: ●Analysis: https://github.com/dtm95/master-thesis-twitter-sentiment-analysis-gender-quota-analysis ●Web application: https://github.com/dtm95/master-thesis-twitter-sentiment-analysis-app Streamlit App To access to the Web App: link to access it Supplementary Figure 1. Snapshot of the main tab of the App showing analysis of Apple. 39
Supplementary Figure 1 shows a snapshot of the main tab of the web application. In this case, the total count of tweets per month mentioning the Apple Twitter account is shown. It can be seen how there is a massive increase in tweets for September every year. This spike corresponds to the Apple annual event, where software and hardware releases are announced. Furthermore, a detailed view of the sentiment on a daily basis is provided to observe some days with a polarity very different from other observations and detect potential outliers visually. The next tab provides an overview per gender (Supplementary Figure 2). It can be seen how there are very few females tweeting about Tesla since most of the Tweets correspond to the male and unknown category, and it can be seen that the unknown category follows a very similar trend as the male category in terms of polarity and % of positive tweets. Supplementary Figure 2. Snapshot of the gender analysis tab showing analysis of Tesla company. Code Implementation As a reference, the optimised code used to compute the Twitter Scraping and Sentiment Analysis Pipeline and a script to load the Twitter sentiment data and board data and perform part of the regression analysis has been included. It can be consulted from the github repository. 40
Tables and Figures Twitter Sentiment Analysis Data Supplementary Table 1. Overview of the algorithm used for Twitter Scraping and Sentiment Analysis 41
Relationship between Twitter Sentiment Score and % women in the board Supplementary Table 9. Evolution of share of women and twitter sentiment score between Treated and Control group Supplementary Figure 5. Correlation matrix with California companies. 48
Supplementary Figure 6. Correlation matrix with non-California companies. 49
Regression Results Supplementary Table 10. Regression 1: DiD for non-California companies. 50
Supplementary Table 11. Regression 2.1.1b Full Results Fixed Effects and Pooled OLS 51
Supplementary Table 12. Regression 2.1.2b Full Results Fixed Effects and Pooled OLS 52
Supplementary Table 13. Comparison of Fixed Effects and Pooled OLS for Regression 2.2.1 53
Supplementary Table 14. Regression 2.2.2 Pooled OLS and Fixed Effects. 54
Why use Panel Data? Panel data is formed by taking into account the same cross-sectional units over multiple time points. Since, in a panel dataset, there are multiple observations of the same entities, unobserved characteristics can be controlled and the results are much more powerful than regular one cross-section or time-series datasets in determining causal inference. Hence, panel data allows to deal with unobserved heterogeneity and resulting endogeneity leading to biassed results. The data obtained in the methodology is panel data since for each company there are several observations of the Twitter sentiment score (daily, monthly and yearly time-span) and of the share of women in the board (yearly time-span). There are several types of Panel Data Regression: ●PooledOLS is a simple OLS (Ordinary Least Squared) model that uses panel data while ignoring time and entity characteristics and focusing on dependencies between the same entities. Nonetheless, PooledOLS is not an appropriate model for Panel Data ●Fixed-Effects (FE) Model disregards the fact that there are differences in average level of the dependent variable for each entity and it assumes that those differences correspond to entity-specific characteristics that are stable over time. Hence, Fixed Effects focuses on dependencies within same entities, in this case controlling for the firm and year ●Random-Effects (RE) Model focuses on dependencies within and between entities. 55