<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>An Uncertainty Quantification Framework for Agent-Based Modeling and Simulation in Networked Anagram Games</title></titleStmt>
			<publicationStmt>
				<publisher>Taylor &amp; Francis</publisher>
				<date>01/23/2024</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10561413</idno>
					<idno type="doi"></idno>
					<title level='j'>Journal of simulation</title>
<idno>2310-4791</idno>
<biblScope unit="volume"></biblScope>
<biblScope unit="issue"></biblScope>					

					<author>Zhihao Hu</author><author>Xueying Liu</author><author>Xinwei Deng</author><author>Chris J Kuhlman</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[In a networked anagram game, players are provided letters with possible actions ofrequesting letters from their neighbours, replying to letter requests, or forming words.The objective is to form as many words as possible as a team. The experimental datashow that behaviours among players can vary significantly. However, simulations usingagent-based models (ABM) in the literature often have not incorporated proper uncertaintyquantification methods to characterise diverse behaviours of players. In this work, wepropose an uncertainty quantification framework to build, exercise, and evaluate agentbehaviour models and simulations for networked group anagram games. Specifically,using the data of game experiments, the proposed framework considers the clustering ofgame players based on their performance to reflect players’ heterogeneity. Moreover, wealso quantify uncertainty within each cluster through statistical modelling and inference.Numerical studies of networked game configurations are conducted to demonstrate themerits of the proposed framework.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.">Introduction</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.1.">Background and motivation</head><p>Anagram games are word formation games and have been employed in a wide range of research. For example, they are used to study individual mental capabilities, and coordination and cooperation within groups. This is because anagram games are considered to be non-trivial mental tasks (e.g., <ref type="bibr">Cadsby et al. (2007)</ref>). The anagram games have a unique combination of features that make them attractive: simple and unambiguous directions, minimal space and equipment requirements to play the game, variable and controllable complexity of task (e.g., requiring greater rearrangement of letters, requiring words with greater numbers of letters, giving lesser time to form words), and straight-forward ways to quantify performance so that success is clearly defined. See Appendix A for descriptions of several works.</p><p>Anagram games can be divided into two classes, based on their goal: &#214;i&#220; rearranging scrambled letters to form a unique word, or &#214;ii&#220; identifying as many words as possible from a collection of letters. In a previous work <ref type="bibr">(Cedeno-Mieles et al., 2020)</ref>, online networked group anagram games (GrAGs) or experiments were conducted, where players share alphabetic letters to form words. Using experimental data from human subjects, an agent-based model (ABM) was developed to enable simulation of games for conditions beyond those tested <ref type="bibr">(Ren et al., 2018)</ref>. The experiments and model are described below as background. Here, we use the following terms to denote GrAG game players because they are also agents in ABMs and nodes or vertices in the game network: node, vertex, agent, and player.</p><p>Figure <ref type="figure">1</ref> depicts four consecutive time steps in a hypothetical GrAG with a simpler network configuration to aid the description. Communication channels are in purple, and on these channels a player may request letters and reply to letter requests. Overall, a player may take any of four actions, any number of times, and in any order during a 5 minute game: &#214;i&#220; request a letter from a neighbour (request sent), &#214;ii&#220; reply to a request with the letter (reply sent), &#214;iii&#220; form a word (form word), and &#214;iv&#220; think or idle (i.e., a noop condition).</p><p>In our online experiments, human players are recruited using Amazon Mechanical Turk (AMT) and these people play the GrAG remotely using a customised software game platform <ref type="bibr">(Cedeno-Mieles et al., 2020)</ref> that they access through their web browsers. Each player is initially given three letters (shown in brown, in the black boxes). During the game, players can request letters from their neighbours, and neighbours can choose to reply with the requested letters or not. For example, v 1 requests a e from v 2 at time t, and v 2 sends a reply with the e at time &#214;t &#225; 1&#220; so that e gets added to v 1 's letter set, with which it forms words. Received letters are shown in black. If a player shares a letter with the requestor, then both the requestor and the player replying have a copy of the letter. A person never loses a letter, even when they share it with others. This is to encourage sharing letters and forming more words. Also, a person may use a letter in any number of words, and any number of times within a single word. For example, v 1 uses s and e in forming sea at time &#214;t &#225; 2&#220; and seem at &#214;t &#225; 3&#220;, thus using the single e once in the first word and twice in the latter word. Games are played for 300 seconds (5 minutes). Each player typically forms between 10 and 40 words.</p><p>In GrAGs, it is seen that behaviours can vary significantly among players. The mean model <ref type="bibr">(Ren et al., 2018)</ref> does not capture this heterogeneity. A baseline ABM that only captures mean behaviour is problematic because it implies that all agent behaviours will, over time in one simulation, tend to the same mean behaviour, and all agent behaviours over many simulation instances will also tend to the same mean behaviour. Producing models that contain greater ranges of player performance more faithfully represents the ranges in behaviours observed in the games <ref type="bibr">(Cedeno-Mieles et al., 2020)</ref>. This underscores the need for methods to quantify the uncertainty in players' behaviours.</p><p>Moreover, there are limitations to the amount of experimental data that can be collected. It is wellknown that AMT does not provide an unlimited pool of candidate players. Additionally, some candidates do not show up for experiments <ref type="bibr">(Mason &amp; Suri, 2018)</ref>. We also constrained our experiments so that a person could only play the GrAG one time, to obviate learning from past experience. Consequently, we encountered limitations in the size of our candidate pool, resulting in fewer completed games than we desired. This produced two problems to overcome in building ABMs of game player behaviour: data sparsity and variability.</p><p>These challenges motivate the development of a general uncertainty quantification (UQ) framework for building ABMs of human behaviour in the networked anagram game. Our primary objective is not necessarily to generate human-like actions or behaviours, but rather to accurately quantify the uncertainty inherent in players' behaviour based on experimental data. This uncertainty is then integrated into agent-based simulations (ABS) to create more faithful representations of the diversity of players in the real-world game. The proposed UQ framework is designed to study human behaviour in various scenarios that might be expensive or practically impossible to conduct in real-world experiments. The original experiments, conducted with remote participants recruited via AMT, were limited in scope and settings. However, our proposed framework has the potential to simulate GrAGs with a large number of players and explore a variety of scenarios, including different network structures and varying numbers of players' neighbours. This not only allows for the quantification of heterogeneous behaviours among players but also provides a more comprehensive understanding of individual player behaviours. The insights gained from these simulations can then be used to guide further experiments and studies. (We use "simulation" for computations of a simulation, in computing player actions during a GrAG; we use "modeling" for the process of constructing models used in simulation.) We believe that our uncertainty quantification methodology for ABM is also applicable to other types of experiments that involve human behaviour, such as <ref type="bibr">Mason and Watts (2012)</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.2.">Novelty and contributions</head><p>The proposed framework is to design, implement, and execute a general UQ approach for building ABMs of human behaviour from networked GrAG game data, such that different agents can have heterogeneous behaviours. Based on our best knowledge, it is the first UQ framework for modelling and analysis of networked GrAGs. The key novelty is systematically modelling and simulating the networked anagram game with the considerations of data uncertainty and player's uncertainty. Rigorous hypotheses are conducted to investigate the homogeneity of players with different numbers of neighbours in the networked GrAGs. Furthermore, clustering analysis is performed to refine the quantification of heterogeneous behaviours among players. The cluster results provide a foundation to model player performance based on the experimental data for players within each cluster, such that the variability of players' abilities to play GrAGs can be better quantified. By using the probabilistic uncertainty of estimated transition probabilities of actions via the asymptotic distribution of the estimated parameters, we can further accommodate data uncertainty into the proposed framework. Incorporating the UQ scheme described above, we thus build ABMs for simulating networked GrAG games where each agent can be endowed with different transition probabilities of actions to better reflect the UQ of human behaviours.</p><p>Figure <ref type="figure">2</ref> illustrates two new models, the CWM model and the CWUQ model, in comparison with the baseline model <ref type="bibr">(Ren et al., 2018)</ref>. For the baseline model, players with the same degree will exhibit the same behaviour. In contrast, after grouping players by degree (d &#63743; 2 and d 3), the cluster-wise mean (CWM) model considers player behaviours to be different within each group. Then for each group, players are partitioned into four clusters, c &#224; 1 through 4, based on their performance. Thus, the CWM model considers four different levels of player behaviours for each degree range. Hence, while the degree d is solely based on network structure, the cluster is specified as an external input that governs players' performance. The cluster-wise uncertainty quantification (CWUQ) model is an extension of the CWM model to account for game data variability within each cluster (indicated by the error bars around each blue data point). These models are formally described and evaluated in Sections 3 and 4. The models are then used to build ABMs and conduct simulations of the anagram game for different numbers of game players and connectivity among them, and different agent performances.</p><p>The contributions of the proposed UQ framework are as follows. First, a key contribution is to systematically quantify the uncertainty of the game data through the CWM and CWUQ models. Combining hypothesis testing, statistical analysis, and clustering, player behaviours from games are partitioned by skill level in terms of &#214;a&#220; numbers of interactions with neighbours and &#214;b&#220; numbers of words formed. This immediately provides a way to specify agent models in terms of player performance: through the computed clusters. It also provides meaningful distinctions between poor-and good-performing agents. For modelling the GrAG, a per-player logit-model is constructed to determine a player's next action at time &#214;t &#225; 1&#220; based on the player's most recent action at time t and on a vector of parameters that describe the history of the player's actions and interactions with other players. Moreover, the extension of the CWM model to the CWUQ model enables the quantification of uncertainty within a cluster by accounting for variability of behaviour within it. This is achieved by sampling from distributions of model parameter values in the logit-model at each time during a simulation. Thus, this model incorporates two levels of uncertainty: that from clustering, and uncertainty in model parameters.</p><p>The second contribution is incorporating the UQ into ABM simulation of the networked GrAGs. An agent-based modelling and simulation (ABMS) software platform was constructed that executes both of the agent CWM and CWUQ models for arbitrary game configurations and for user-specified assignment of players to clusters (which dictates their performance). An in-depth evaluation of the CWM and CWUQ models, as seen in Section 4, can greatly enhance the interpretation of ABM results. Thus, the proposed framework achieves a good balance among model explainability, model flexibility, and model complexity, e.g. <ref type="bibr">(Baker, 2016;</ref><ref type="bibr">Pearl &amp; Mackenzie, 2018)</ref>. An ABM of human behaviour is expected to  <ref type="bibr">Ren et al. (2018)</ref> where a behaviour model is specified for an agent based on a player's (node's) degree in the networked anagram game, with values 2, 4, 6, and 8. (CENTER) The first of two new models is called the cluster-wise mean model, CWM. A behaviour model for an agent is specified by the pair &#226;g; c&#228;, where g &#224; 1 if the agent has degree d &#63743; 2 in the network and g &#224; 2 if d 3, and where c is the cluster number 1, 2, 3, or 4. Clusters represent different levels of performance of agents in the game. (RIGHT) The second of two new models is called the cluster-wise uncertainty quantification model, CWUQ. This model is similar to CWM, but now within each cluster, the uncertainty of behaviour is quantified. It is through the last two models that heterogeneous agent behaviours are realized in simulations.</p><p>satisfy one or more criteria such as: (1) explainability of human behaviour, (2) sufficient model complexity of human behaviour, (3) a favourable framework for UQ with consideration of computational cost, and (4) other considerations based on specific problems. We demonstrate outcomes that illustrate some of these criteria with the next contribution below.</p><p>Our third contribution is the insightful evaluation of the models in the context of ABM for human group behaviour. There are the following insights: &#214;i&#220; Variability in model predictions of numbers of words formed are dependent on clusters. Representative simulation results indicate that the number of words formed by one player in a game can vary by factors of 5 to 10. These ranges are consistent with the variability in the game data. &#214;ii&#220; Variability in interactions between players is much less than that for numbers of words formed because bounds on the number of interactions of a player are dictated by a player's degree in the network and the number of letters that a player has. &#214;iii&#220; For each of the CWM and CWUQ models, variability across agents endowed with the same cluster behaviour generally is less than the variability within a single player and is less than the variability across clusters. The latter point is particularly true when comparing the behaviour of cluster 4, which has the greatest performance compared to the other three clusters. &#214;iv&#220; We find that the CWUQ model generates at least as much variability in results as does the CWM model. In many cases, the variability for the two models is comparable. These differences are smaller than the differences produced by changes in behavioural clusters.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.3.">Paper organization</head><p>This paper is an extension of preliminary work in <ref type="bibr">Hu et al. (2021)</ref>. In that work, simulations were conducted using the CWUQ model and a 5-node star-4 network.</p><p>In this work, we run simulations using both models on the star-4 network and an 18-node graph of four connected cliques. The 18-node graph is designed to address variability of behaviours across agents and across subgraphs of different sizes, significantly extending the conditions evaluated with the star-4 graph. We compare the models and simulation predictions from them on the two networks.</p><p>The remainder of the paper is organised as follows, using Figure <ref type="figure">3</ref>. We first present the formalism for the baseline model in Section 2, which provides a point of departure for our new work, and makes the document self-contained. Then we present the two new models in Section 3, which includes the clustering method for players and quantifying uncertainty for model parameters. The simulation system is also defined. Model evaluation is in Section 4. In Section 5, we provide simulation studies using both models on two networks. A discussion concludes the work in Section 6. Related work comprises Appendix A. Appendix B contains results for a 5-player star game configuration; these results supplement those in Section 5. Appendix C shows the hypothesis testing results to demonstrate the variability of CWM and CWUQ models.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.">Experimentation and baseline model</head><p>The anagram game played by a group is described in Section 1.1 and shown in Figure <ref type="figure">1</ref>. At any time during a game, a player executes one of the actions from the action set A provided in Table <ref type="table">1</ref>. In the online experiments, most players spend the majority of their time taking no action (i.e., not requesting a letter, not replying to a letter request, and not forming a word). Hence, in models, we refer to this time as occupied in thinking, or otherwise idle. Over all 243 experiments, it is exceedingly rare for a player to take two or more actions within one second of time; therefore, in our Figure <ref type="figure">3</ref>. Technical sections of this manuscript, with arrows showing dependencies between them. Section numbers are given for topics. Section 2 is previous work and is provided as a point of departure for the current work, and to make this manuscript selfcontained. Sections 3 through 5 contain our new work and contributions.</p><p>models and simulations, we advance time in onesecond intervals over the 300-second game, with each player selecting one action at each second of a simulation.</p><p>The network configuration for each experiment was a random regular graph, meaning that each player in one game had the same number d of neighbours. Edges between pairs of players were placed randomly to meet this goal. A network was fixed during an experiment. Experiments were run with d &#224; 2, 4, 6, and 8. Each player in each game was assigned three initial letters. Additional game details are in <ref type="bibr">Ren et al. (2018)</ref>. Note that players evenly split the total earnings from a game, where the earnings are proportional to the total number of words formed by the team. Thus, our networked anagram game is a cooperative game <ref type="bibr">(Deutsch, 1949)</ref>.</p><p>Using game data from experiments, Ren et al. ( <ref type="formula">2018</ref>) constructed a multinomial logistic regression model to predict a player's action at time &#214;t &#225; 1&#220; based on the player's action at time t and the values of four temporal variables provided in Table <ref type="table">2</ref>. Let z &#224; &#214;1; Z B &#214;t&#220;; Z L &#214;t&#220;; Z W &#214;t&#220;; Z C &#214;t&#220;&#220; T 5&#8677;1 . Note that Z C &#214;t&#220; is used to ensure agents do not stagnate in thinking; this parameter forces agents to have a finite deliberation period before acting. Then the multinomial logistic regression to model &#960; ij -the probability of a player taking action a j at time (t &#225; 1), given that the player took action a i at time t-can be expressed as where</p><p>For a given i (the index i on action a i ), the parameter set is Game players in the GrAG data are grouped by their degrees d in the network G. To estimate the parameter sets B &#214;i&#220; , Ren et al. ( <ref type="formula">2018</ref>) used maximum likelihood estimation across the experimental observations for each d &#224; 2, 4, 6, and 8. Suppose that there are n observational data having the same "most recent" action a i and number of neighbours d, denote as D &#214;i&#220; d , then the next action for observation l, namely y l , has a multinomial distribution with corresponding probability &#960; li1 , &#960; li2 , &#960; li3 , and &#960; li4 (&#960; lij is the &#960; ij in Equation ( <ref type="formula">1</ref>) for observation l). The probability of observing outcome y l is where y lj indicates whether the next action of observation l is a j or not. y lj &#224; 1 if y l &#224; j, otherwise, it equals 0. Then, they conduct parameter estimation by finding the B &#214;i&#220; that maximises the log-likelihood function using the Broyden -Fletcher -Goldfarb -Shanno (BFGS) algorithm of the quasi-Newton optimisation method <ref type="bibr">(Broyden, 1967)</ref>.</p><p>Based on the estimation from the multinominal logistic model, <ref type="bibr">Cedeno-Mieles et al. (2020)</ref>; <ref type="bibr">Ren et al. (2018)</ref> presented an ABM of the GrAG, where the game is modelled as a discrete-time process. At each time step, a player executes one of the actions from the action set. They considered the set V of players and the set E of their communication channels (edges) as an undirected graph G V; E &#214; &#220;. Here all agents with the same number of neighbours d in the network G are assigned the same coefficient matrix. Thus, these agents will have the same behaviour in expectation. However, we would like agents to exhibit heterogeneous behaviour. Consequently, we devise a method to produce variability in actions among agents with the same degree d. This is the subject of the next section.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.">The proposed uncertainty quantification framework</head><p>In this section, we detail the proposed UQ framework. Section 3.1 focuses on clustering for players based on  their activity in a game, such that one can better quantify their heterogeneity. Section 3.2 describes the UQ for model parameters estimated by the multinomial logistic model for each cluster. Section 3.3 details the ABM simulation using the obtained UQ for GrAGs.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1.">Clustering methods for players</head><p>To quantify the uncertainty of player behaviours, a key goal is to partition players based on their activity. The number of letters a player requests, the number of letter requests a player replies to, and the number of words a player forms in a game are used to quantify a player's activity. We define two variables, engagements and words. Engagements is the sum of the number of requests and number of replies of a player, and words is the number of words a player forms in a game. The engagements and words are used to partition players.</p><p>In experiments, the number of neighbours that a player had was either d &#224; 2, 4, 6, or 8. All players had the same number of neighbours in one game so that they could gather multiple sets of data on players with the same d. We want to study whether players should be partitioned based on their number of neighbours since a player with more neighbours can request more letters and reply to more letter requests. Figure <ref type="figure">4</ref> shows the numbers of engagements and words for players with different numbers of neighbours. It is shown that engagements increase with the number of neighbours, but become saturated when the number of neighbours is greater than four. The numbers of words are nearly the same for different numbers of neighbours. In summary, game data for players with d &#224; 4, 6, and 8 neighbours are observed to be similar, and these data are different from those of players with d &#224; 2 neighbours.</p><p>To determine whether we can divide players into separate groups, we conduct hypothesis testing of twosample t-tests on engagements and words:</p><p>where &#956; eng d and &#956; word d for d &#224; 2; 4; 6; 8 are the mean engagements and words for players with d neighbours, respectively. We also denote &#956; eng 468 and &#956; word 468 as the mean numbers of engagements and words for players with either 4, 6, or 8 neighbours, respectively, and perform hypothesis testing on players with 2 neighbours and players with 4, 6, or 8 neighbours:</p><p>After partitioning players into two groups based on their number of neighbours, we use the k-means clustering method <ref type="bibr">(Hartigan &amp; Wong, 1979)</ref> in each group to quantify the variability in players' abilities. Before clustering players, the engagement and words are standardised first, so no variable would dominate the clustering. To determine the number of clusters in the k-means clustering, we use the Bayesian Information Criterion (BIC) as our criterion <ref type="bibr">(Li et al., 2016)</ref>. Based on the BIC and the size of data, we select four clusters, which gives the smallest BIC values. After clustering players in each group, we denote the formed clusters as D &#214;i&#220; &#226;g;c&#228; , i &#224; 1; 2; 3; 4 for data with initial action a i , where g &#224; 1; 2 is the group number and c &#224; 1; 2; 3; 4 is the cluster number.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2.">Quantifying uncertainty for model parameters</head><p>In the mean multinomial logistic regression model <ref type="bibr">(Cedeno-Mieles et al., 2020)</ref> of Section 2, the next player action depends on the parameter matrix B &#214;i&#220; and input vector z by mapping them to a probability vector &#960; i &#224; &#214;&#960; i1 ; &#960; i2 ; &#960; i3 ; &#960; i4 &#220; T through Equation ( <ref type="formula">1</ref>).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>The uncertainty in the estimated</head><p>B&#214;i&#220; matrix results in different probabilities &#960; ij , therefore, leading to diversity in outcome actions. To quantify these uncertainties, we use two approaches, the CWM and CWUQ approaches from Figure <ref type="figure">2</ref>, which are described next.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2.1.">Method 1: Within-cluster mean CWM approach</head><p>We apply the multinomial logistic regression to each cluster, and parameter matrices B &#214;i&#220; &#226;g;c&#228; are estimated for each cluster in each group. In this approach, uncertainty quantification depends on clustering players, and the B &#214;i&#220; &#226;g;c&#228; matrix will be the same for all players in the same cluster. Thus, they will have the same probability vectors given the same set of z vector values. We compare this approach with the approach below, which quantifies the uncertainty of model parameters.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2.2.">Method 2: Within-cluster uncertainty quantification (UQ) CWUQ approach</head><p>In order to study the heterogeneous behaviour of players in the same cluster, we utilise the asymptotic normality property of MLE to quantify the uncertainty for parameter matrix B  <ref type="bibr">(Sweeting, 1980)</ref>. That is, as sample size increases, the maximum likelihood estimator &#946;mle of parameter &#946; approximates a multivariate normal random variable where I&#214; &#220; is the Fisher information matrix <ref type="bibr">(Fisher, 1922)</ref> and n is number of observations in D &#214;i&#220; &#226;g;c&#228; . We can estimate &#946; with the MLE &#946;mle and covariance matrix &#8963; with I&#214; &#946;mle &#220; 1 =n. Then, we directly draw samples from the asymptotic normal distribution in Equation ( <ref type="formula">4</ref>). Consequently, we can calculate the corresponding probability vector based on the sampled &#946;, again using Equation (1). Note that the use of asymptotic normal distribution requires a large sample size. In our data, there can be situations with small sample sizes for certain pairs of actions. For instance, among 311 observations in group 1 cluster 2, where the initial action is request (a 3 ), only two observations transition to reply (a 2 ), three observations transition to request (a 3 ) again, and there are no observations that transition to forming words (a 4 ). The remainder of the transitions is to idle (a 1 ). When the pair of actions occur infrequently, we avoid the use of the asymptotic distribution and instead utilise point estimators.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.3.">Simulation models</head><p>The simulation system models the GrAG of Figure <ref type="figure">1</ref>. Simulation input parameters are provided in Table <ref type="table">3</ref>. This table also thereby provides much of the configuration of a simulation. The parameters are divided into three sections by three Table <ref type="table">3</ref>. Summary of parameters and their values used in simulations of GrAGs. The first section contains variables that are physical entities that map directly to a GrAG. The second section contains model parameters that prescribe node (i.e., player, agent) behaviours. The third section contains the simulation parameter. Sections are delineated by three horizontal lines.</p><p>Parameter Description Networks G&#214;V; E&#220;.</p><p>Two networks: &#214;i&#220; the star graph of Figure <ref type="figure">7</ref> and &#214;ii&#220; the group of cliques in Figure <ref type="figure">8</ref>. Number n , of owned letters.</p><p>The number of owned letters initially assigned to a player. Initial letters L init k .</p><p>The set of initial n , letters assigned to a player v k . Word corpus C W .</p><p>The corpus of 1015 3-letter words is taken from <ref type="url">http://www.wordfind.com/3-letter-words/</ref>, accessed January 12 2018. (At the time of this writing, eight words have presumably been removed, since the web page shows 1007 words.) Only 3-letter words are considered in simulations. Duration of GrAG t g .</p><p>GrAG duration is fixed at t g &#224; 300 seconds. Group, g.</p><p>There are two groups: g &#224; 1 corresponds to nodes with degree d &#63743; 2 in the game network and g &#224; 2 corresponds to nodes with degree d 3. Cluster, c.</p><p>For each group g, there are four clusters (c): c &#224; 1 through 4. Group-cluster &#226;g; c&#228;.</p><p>The group-cluster pair &#226;g; c&#228; determines the behaviour regime for each node. Behaviour classes C.</p><p>There are two behaviour classes: the CWM model C &#956; and the CWUQ model C &#946; . Each node is assigned a behaviour class. Game player behaviour models M. Each player in a GrAG is assigned a behaviour model M, which consists of the triple M &#224; &#226;C; g; c&#228;.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Player actions a.</head><p>The set A of actions a is given in Table <ref type="table">1</ref>. Number of iterations n iters .</p><p>Each simulation is composed of n iters &#224; 50 individual dynamics instances, where each instance starts from time t &#224; 0, with initial conditions reset, and then the dynamics of the system are executed for t g discrete time steps.</p><p>horizontal lines. The first section contains physical parameters of the game. The second section contains parameters of behaviour models that simulate player actions in a GrAG. These are produced from the methods described in this section. The third section of the table, with only one value, is purely a simulation parameter: the number of simulation instances to perform in order to address stochasticity of the models. Details on parameter selections are given in Section 5.1 on the simulations; the purpose here is to list the parameters because they support the simulation models. All parameters, including the word corpus, can easily be changed through configuration files to run additional simulations.</p><p>Equation (1) provides the key computations of the ABM in generating the probabilities &#960; ij of an agent v k taking action a j , j 2 f1; 2; 3; 4g, at time t given its most recent action a i at time &#214;t 1&#220;, where actions are given in Table <ref type="table">1</ref>. This equation is used for each of the CWM and CWUQ models (the B &#214;i&#220; matrices vary between models). Game behaviour data for players in each cluster c are used to fit a per-cluster model. Further, the network structure defines the group g to which each agent belongs. Thus, in total, a game player behaviour model M is given as M &#224; &#226;C; g; c&#228;, where C is the behaviour class, g is the group, and c is the cluster number. Hence, the CWM model is M &#956; &#224; &#226;C &#956; ; g; c&#228; and the CWUQ model is M &#946; &#224; &#226;C &#946; ; g; c&#228;.</p><p>A simulation is composed of a collection of simulations instances (also called iterations or runs). An iteration is a sequence of simulation steps from time t &#224; 0 to t g seconds, in one-second time steps, such that actions of all players are computed at each t. The state of the system at t &#224; 0 constitutes the initial conditions for a simulation instance. Within one simulation, all instances have the same initial conditions. These initial conditions and properties (see Table <ref type="table">3</ref>) are read from various input files. The processes of forming words and sharing letters in an iteration are shown in Figure <ref type="figure">1</ref>.</p><p>In each iteration, the letters that a player can share with her neighbours are her owned (i.e., initially assigned) letters. There may be duplicate letters between pairs of players, including neighbours of an agent v k . A player v k that receives a letter from a neighbour v i cannot then share that letter with a different neighbour v , . This is in accordance with the experiment rules. Table <ref type="table">4</ref> defines internal variables used in the algorithms of the simulation system.</p><p>Algorithm 1 provides the overall simulation structure: reading inputs, initialising variables, and iterating over simulation iterations, time, and agents v k 2 V. Algorithm 2, invoked from Algorithm 1 on step E.2.i.c., provides the steps for computing the next action a j &#214;t&#220; for node or agent or game player v k , at each (iteration, time) pair.</p><p>Algorithm 1: Algorithm NETWORKEDGROUPANAGRAMGAME. 1 Input: Data in Table 1 through 3. 2 Output: &#214;i&#220; a j ; &#214;ii&#220; p act ; &#214;iii&#220; z; and &#214;iv&#220; &#951;. Each of these outputs is prefaced with the iteration number iter, time t, and node or player or agent ID v k . 3 Steps: # Read inputs from files. A. G&#214;V; E&#220;, and compute N&#226;k&#228; for each agent v k 2 V. B. C W , n iters , and t g . C. for each v k 2 V: 1. L init k , C, g, c, and &#961;. 2. C, g, c over all C 2 fC &#956; ; C &#946; g, g 2 f1; 2g, and c 2 f1; 2; 3; 4g. D. Set L 0 k with all L init i for all v i 2 N&#226;k&#228;. # Do simulations over iterations and over time and over nodes/ agents. E. for iter &#224; 1 to n iters : 1. for each (v k 2 V): Reset L ih k &#224; L init k , z &#224; 0, B 1 k &#224; ;, B 2 k &#224; ;, W k &#224; ;. 2. for t &#224; 1 to t g : i. for each v k 2 V: a. Receive all letter requests from neighbors N&#226;k&#228; of v k , sent to v k at the previous time &#214;t 1&#220;, and put in buffer B 1 k . b. Receive all letter replies from v k 's neighbors that are in response to v k 's letter requests, sent to v k at the previous time &#214;t 1&#220;, and put in L ih k ; mark this letter request in B 2 k as fulfilled. c. Call Algorithm 2, (VERTEX ACTION), computing v k 's next action. d. Write next action and other variables in Output section above.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.1.">Clustering players</head><p>Table 5 shows the p-values of two-sample t-tests. For engagements, the p-values show that 2 neighbours is significantly different from 4, 6, and 8 neighbours, while pairs of values among 4, 6, and 8 neighbours are not significantly different. For words, the p-values show that 2 neighbours is significantly different from 4 neighbours, while, again, pairs of values among 4, 6, and 8 neighbours are not significantly different. Though 2 neighbours is not significantly different from 6 and 8 neighbours, respectively, 2 neighbours is significantly different from 4, 6, and 8 neighbours together. This means that we can collect players into two groups: those players with 2 neighbours [group g &#224; 1] and those players with 4, 6, or 8 neighbours [group g &#224; 2].</p><p>Figures <ref type="figure">5(a</ref>,<ref type="figure">b</ref>) show the clustering results using the k-means method. The left plot is for 2 neighbours, and the right plot is for 4, 6, and 8 neighbours. Different clusters are marked with different colours and numbers, 1 through 4. In Figure <ref type="figure">5</ref>(a), the black cluster is the least active, and the blue cluster is the most active. In Figure <ref type="figure">5</ref>(b), the blue cluster is the least active, and the green cluster is the most active. Figure <ref type="figure">6</ref> provides the same data, but the mean and median points within each cluster are shown.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2.">Quantifying uncertainty for model parameters</head><p>Table <ref type="table">6</ref> shows one set of z values, for the group g &#224; 1, and we use these z values to generate heterogeneous probability vectors. Table <ref type="table">7</ref> shows generated probability vectors sampled from the asymptotic normal distribution of &#946; for group g &#224; 1. The four clusters correspond to clusters in Figure <ref type="figure">5</ref>(a). In each cluster, the first row provides the probability vector from the CWM model, and the bottom four rows provide generated probability vectors from the CWUQ model. Players in cluster  4 have lower to-idle (a 1 ! a 1 ) transition probability than players in other clusters, so players in cluster 4 are the most active ones in group g &#224; 1, which can be confirmed in Figures <ref type="figure">5(a)</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.">Agent-based simulation results from networked group anagram games</head><p>In this section, we present simulation scenarios and results and explanations from the simulations. Note that the simulation process of the game follows very closely the actual experimental procedures, by design, so that experimental data could be used to develop agent models of player behaviours for the agent-based simulations (ABSs). The simulation models are presented in Section 3.3.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.1.">Simulation scenarios</head><p>We analyse two anagram game configurations of players.</p><p>Figure <ref type="figure">7</ref> is a star-4 graph, with a hub node 0 and four leaf nodes. This network was analysed in <ref type="bibr">Hu et al. (2021)</ref>. We include new results for it in Appendix B. The second graph is a graph on 18 nodes consisting of four clique subgraphs (K 3 , K 4 , K 5 , and K 6 ), where K j is a clique on j  Table <ref type="table">7</ref>. Sampling from the asymptotic normal distribution of &#946;, where the initial state is a 1 (idle) and the group g &#224; 1. The top left part is for cluster 1, the top right part is for cluster 2, the bottom left part is for cluster 3, and the bottom right part is for cluster 4. One can see these clusters in Figures <ref type="figure">5(a)</ref>. Each row is a probability vector for next actions. The first row (mean) is from the clusterwise mean model (CWM), and the bottom four rows are four samples from the cluster-wise uncertainty quantification model (CWUQ). a i ! a j means transition from a i to a j , so the value under each column represents the probability of next action (e.g., idling, replying with letter, requesting letter, and forming words).</p><p>Cluster 1 Cluster 2</p><p>a 4 Mean 0.957 0.006 0.014 0.022 mean 0.942 0.010 0.031 0.017 Sample 1 0.955 0.008 0.014 0.023 sample 1 0.944 0.009 0.028 0.019 Sample 2 0.957 0.006 0.015 0.023 sample 2 0.944 0.010 0.029 0.018 Sample 3 0.958 0.009 0.013 0.019 sample 3 0.941 0.010 0.031 0.018 Sample 4 0.951 0.006 0.019 0.024 sample 4 0.942 0.008 0.031 0.019 Cluster 3 Cluster 4</p><p>a 4 Mean 0.917 0.018 0.043 0.023 mean 0.880 0.020 0.051 0.049 Sample 1 0.923 0.017 0.040 0.020 sample 1 0.868 0.019 0.060 0.054 Sample 2 0.922 0.018 0.040 0.020 sample 2 0.868 0.019 0.057 0.056 Sample 3 0.912 0.020 0.046 0.022 sample 3 0.874 0.023 0.053 0.050 Sample 4 0.914 0.018 0.047 0.022 sample 4 0.869 0.022 0.060 0.050 Figure 7. Star network used for simulations. Nodes are game players and edges represent communication channels that can be used to share letters. The centre node (hub) has degree d &#224; 4 and hence is in group g &#224; 2 and the four leaf nodes each have degree d &#224; 1 and so are in group g &#224; 1.</p><p>nodes. These four cliques are connected in a circle arrangement. See Figure <ref type="figure">8</ref>. These two graphs are motivated by the following considerations. First, our two groups (g &#224; 1 and 2) are based on the degrees of nodes. Hence, we devised one graph that had multiple nodes of degree d &#224; 1 so that these nodes are in g &#224; 1. This is the star graph. We devised the second graph that had multiple nodes of degree d 3 so that these nodes are in g &#224; 2. This is the 4-clique graph. Second, we want multiple nodes in a graph to have the same degrees and neighbourhoods so that we can assess variability in behaviours across nodes. For this goal, we have four nodes with degree d &#224; 1 in the star graph, and we have multiple similar nodes in each clique of the 4-clique graph. Third, for the 4-clique graph, we want multiple cliques, of different sizes, so that we can assess differences in agent or node behaviours as degree increases. Also, these network configurations are different from those used in experiments, thus illustrating the ability of simulations to address a wide range of player interaction patterns. This section uses the 4-clique graph because it is larger and more nuanced, enabling more detailed analyses. Many simulations are performed on each game configuration where input parameters are varied.</p><p>Numbers n , of letters are specified and specific letter assignments are made so that players (agents) can form words when they choose this action. Four letters are used per player in the star graph, since some players have only one neighbour, and three letters are used per player in the cliques graph because each node has more neighbours. One goal in these simulations is to determine how many words a player can form. Consequently, the initial letter assignments to players are done by human decision-making, to ensure that a sufficient number of vowels and that often-occurring consonants are either owned by players or can be requested from neighbours. At the other end of the spectrum, we can assign players very poor letters (e.g., x, y, z, q) so that no matter the model, a player cannot form words. We have not done this in this work because we want to understand model behaviours. The game duration is the same as that used in experiments, and a word corpus is used to determine valid words that agents form.</p><p>In this work, each simulation is comprised of n iters &#224; 50 iterations, and results are presented as time point-wise averages over all 50 instances and as boxplots that also account for the data of all 50 iterations. Fifty iterations provide mean results consistent with those for simulations between 30 and 50 iterations.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.2.">Simulation results</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.2.1.">Basic time history results</head><p>Figure <ref type="figure">9</ref> shows variability in results across all 50 runs or instances of one simulation, for the CWM model and values of group g and cluster c, i.e., <ref type="bibr">[g, c]</ref>. The results are number of words formed by node (i.e., player) 5 as a function of game time. The four plots correspond to node 5 of the 4-clique network with behaviour models assigned according to &#226;g; c&#228; &#224; &#226;2; 1&#228;, [2, 2], [2, 3], and <ref type="bibr">[2,</ref><ref type="bibr">4]</ref>, respectively, where g &#224; 2 because node 5 has degree d 3, i.e., d 5 &#224; 3. In each plot, the 50 gray curves are results from the 50 runs, the magenta curve is the time point-wise average with &#8963; one standard deviation, and the black curve is the time point-wise median value. The results show that the individual curves (i.e., simulation instance results in gray) across the 50 runs can vary considerably, with the largest variations occurring for &#226;2; 4&#228; in Figure <ref type="figure">9(d):</ref> the range in numbers of words at t &#224; 300 seconds is from 20 to 110 words. Also, the cluster-to-cluster differences can be large, particularly when comparing with the behaviour of cluster 4. These ranges of variability can change with C and &#226;g; c&#228;, i.e., with model M, and result from the variability in the data of Section 4.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.2.2.">Comparisons of time histories of similar nodes over all player actions</head><p>We focus on the K 6 clique of the graph in Figure <ref type="figure">8</ref> and specifically, the behaviours of nodes 12 through 14. Figure <ref type="figure">10</ref> shows the time histories for the five types of events: number of letter replies received (replRec) in response to this player's requests for letters from its neighbours; number of letter replies sent (replSent) in response to letter requests that it receives; the number of requests for letters that the node receives from neighbours (reqRec); the number of requests for letters that this player sends to neighbours (reqSent); and the number of words (words) that this player forms. Each plot is data for one node. The first column of plots is for the CWM model M &#956; &#224; &#226;C; g; c&#228; &#224; &#226;C &#956; ; 2; 2&#228;, and the second column of plots is the corresponding data for the CWUQ model M &#946; &#224; &#226;C; g; c&#228; &#224; &#226;C &#946; ; 2; 2&#228;. (The two low degree nodes in the 4-clique graph use the same two models M &#956; and M &#946; , with &#226;g; c&#228; &#224; &#226;1; 2&#228;.)</p><p>Nodes 12 through 14 have the same properties and same connectivity (i.e., the same neighbours), so their behaviours should be the same, modulo stochasticity. We see that for both models, the behaviours of these nodes can vary node-to-node. Nodes 13 and 14 have differences in numbers of letter requests received (magenta, reqRec) and of letter replies sent (orange, replSent). The differences are greatest for node 12, in both models, where the magenta and orange curves are concave down; the corresponding curves for nodes 13 and 14 are less distinctive. Across all nodes, the time histories of letter requests sent (brown, reqSent) and letter replies received (blue, replRec) are similar. The average number of words formed varies between 11 and 24 across nodes. These data indicate that variability in results can be generated due to the stochasticity of each behaviour model, per Section 4. However, the error bars cover these differences in average values. It is also observed that replies sent (in response to letter requests, orange) lags the letter requests received (magenta) for all nodes.</p><p>Examining general trends in the behaviours of all models and conditions, we observe the following. Players request letters throughout the game. They reply to letters throughout the game. That is, they do not request all neighbouring letters at the outset of a game, which is one strategy; the game data do not exhibit this behaviour and hence neither do our models. Generally, simulation results show that players request all neighbour letters during a game. In a game, the number of letter requests that can be made of neighbours (reqSent) is bounded by the number of letters a player originally possesses and by the number of neighbours. This, in turn, affects all other sharing types of actions: letter requests received (by a neighbour), letter replies sent, and letter replies received. Hence, the variability in these quantities is lesser than that for words formed. There is no practical limit on the number of words a player can form and hence variability is greater. This is why we focus on numbers of words formed in subsequent results.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.2.3.">Comparisons of time histories of nodes from cliques using models that incorporate behaviours from different clusters</head><p>In this section, we examine the time histories of numbers of words formed for eight nodes of the 4-clique graph of Figure <ref type="figure">8</ref>. For each of the four cliques, we chose two nodes: the unique node that is connected to two other cliques and one of the remaining nodes that is only connected to other nodes of the particular clique. Node IDs are given in the plot legends. Of the eight nodes, seven are high degree nodes, i.e., degree d 3, and so are in group g &#224; 2; only node 0 is low degree, i.e., degree d &#63743; 2, and so is in group g &#224; 1. We intentionally select combinations of clusters for high and low degree groups to demonstrate wide range of behaviours that can be produced with the models. The magenta curves for (letter) requests received (legend: reqRec) must be greater than or equal to the orange curves for (letter) replies sent (legend: replSent), and similarly the brown curve must be greater than or equal to the blue curve because a player must send at least as many (letter) requests sent (legend: reqSent) as (letter) replies received (legend: replRec).</p><p>Figure <ref type="figure">11</ref> provides time histories for the eight chosen nodes for different combinations of clusters for group g &#224; 1 low degree and group g &#224; 2 high degree nodes, for the CWM model M &#956; . In the first plot, low degree (ld) nodes have &#226;g; c&#228; &#224; &#226;1; 1&#228;, while high degree (hd) nodes have &#226;g; c&#228; &#224; &#226;2; 1&#228;. The blue curve for node 0 is in mid-range compared to the curves for other nodes. In the second plot, Figure <ref type="figure">11</ref>(b), the only change is that the lone group g &#224; 1 node is now assigned cluster 4 behaviour. The number of words formed by this node greatly increases (by 4&#8677;), while those for the high degree nodes remain similar to those in the first plot. In the third plot, Figure <ref type="figure">11</ref>(c), the behaviour clusters for low degree and high degree nodes are 3 and 2, respectively. The numbers of words formed by each node are greater than those in Figure <ref type="figure">11</ref> now nodes 2 through 17 roughly form 2&#8677; to 3&#8677; the number of words that are formed by node 0.</p><p>These results indicate that the behaviours of agents can change markedly when the clusters assigned to low and high degree agents change. Further, it demonstrates the efficacy of clustering player behaviours, by engagement and by words in Section 3, to capture differences in player performance. Clearly, heterogeneity in player behaviours is achieved.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.2.4.">Comparisons of time histories and end-ofgame data between the CWM and CWUQ models</head><p>As noticed in Figure <ref type="figure">10</ref>, the average curves are similar between the two models M &#956; and M &#946; . However, there are differences: &#214;i&#220; the average number of words formed by each of nodes 12 and 13 are different between the two models; and &#214;ii&#220; the variability of results (quantified by  <ref type="figure">8</ref>. In each plot, results for the same eight nodes are provided. Two nodes come from each of the four cliques, where one node is connected only to other nodes of the clique, and the other node is also connected to two other cliques in the overall network. The values plotted are mean time point-wise averages, &#8963; one standard deviation, of numbers of words formed across all 50 instances of a simulation. The results for nodes 2 through 17 in each plot are similar (to within stochastic variation) because all of these nodes are in group g &#224; 2 since each has degree d 3. Thus, as the cluster for the high degree nodes changes across plots, the cluster is constant for each plot, so all of these nodes are assigned the same behaviour model. Only node 0 is in group g &#224; 1 because it has degree d &#224; 2 &#63743; 2. The &#226;g; c&#228; pairs for low degree (ld) and high degree (hd) nodes are given under each plot. The plots show that different combinations of &#226;g; c&#228; for ld and hd nodes can have large effects on the number of words formed in the game. For example, compare the blue curve versus the high-degree node curves in each of (b) and (d).</p><p>standard deviation) are greater for the CWUQ model M &#946; . To the first point, in Figures <ref type="figure">10(a</ref>,<ref type="figure">b</ref>), the average number of words formed are 14 and 24, respectively, for node 12. That is, M &#946; generates more words than does M &#956; . To the second point, in comparing these same two figures, the standard deviation is much greater for the M &#946; model-generated results.</p><p>To examine the variability of median behaviours in numbers of words formed for nodes between the two models M &#956; and M &#946; , we continue to look at the eight nodes studied in Figure <ref type="figure">11</ref> for the 4-clique graph. The new results that we address here are provided in Figure <ref type="figure">12</ref> and we focus on high degree (i.e., group g &#224; 2) nodes. Each plot shows on the x-axis two values of each node ID. Red boxplots are for M &#946; and blue boxplots are for M &#956; . Again, because nodes 2 through 17 all have degree d 3 (i.e., are denoted hd for high degree nodes), they all correspond to group g &#224; 2 and hence are assigned the same behaviour model. In Figures <ref type="figure">12(a</ref>,<ref type="figure">b</ref>), the clusters assigned to high degree (hd) and low degree (ld) nodes produce behaviours such that the red bars for M &#946; show greater variability in median numbers of words formed across nodes 2 through 17 than does M &#956; .</p><p>However, note that not all combinations of clusters generate more variability in median numbers of words formed in the CWUQ model. In Figure <ref type="figure">12</ref>(c), M &#956; and M &#946; produce comparable variability in median values across nodes. In Figure <ref type="figure">12</ref>(d), too, M &#956; and M &#946; generate similar median values that vary across nodes. The main result is that the CWUQ model (M &#946; ) produces at least as much variability as does the CWM model (M &#956; ).</p><p>Hypothesis tests are conducted to demonstrate the variability of CWM and CWUQ models (see results in Appendix C). First, we test if there is no difference between mean number of words formed by nodes with high degrees. The results in Table <ref type="table">C1</ref> show that in Figures <ref type="figure">12(a</ref>,<ref type="figure">b</ref>), nodes assigned the CWM model have no difference in the mean numbers of words formed, while nodes assigned the CWUQ model have significant differences in the mean numbers of words formed. In Figures <ref type="figure">12(c</ref>,<ref type="figure">d</ref>), Figure <ref type="figure">12</ref>. Simulation results of word counts for game configuration of a 4-clique graph. Results are provided for the same eight nodes (two nodes per clique) across all plots: one node in a clique that is only connected to other nodes in the clique, and the one unique node that is also connected to two other cliques. Each plot assigns to low degree (ld) and high degree (hd) nodes different clusters c as part of their behaviour models; the two clusters are fixed in each plot. The plots (a) and (b) have combinations of &#226;g; c&#228; for ld and hd nodes that result in greater variability in median values of numbers of words formed across nodes for the CWUQ model (M &#946; , in red) compared to that for the CWM model (M &#956; , in blue). However, there is not always such a difference. In (c), M &#956; and M &#946; produce similar variability. Similar variabilities between models are observed in (d). In all cases, there is always at least as much variability in numbers of words formed for M &#946; as for M &#956; .</p><p>both CWM and CWUQ models show significant differences among mean numbers of words by nodes.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.2.5.">Comparisons of CWM and CWUQ model behaviours within and across cliques</head><p>Comparisons are now made between the two models, M &#956; and M &#946; , for all nodes of the 4-clique network and for all four clusters of behaviour for the high degree nodes. We focus on the number of words formed by each node at the end of the game, i.e., at time t &#224; 300 seconds. Data for all 50 runs of a simulation are presented as boxplots. Data for the CWM model are provided in Figure <ref type="figure">13</ref> and the corresponding data for the CWUQ model are given in Figure <ref type="figure">14</ref>. Plots are for different model clusters c, and the boxplots of nodes are colored for the clique to which they belong.</p><p>Figure <ref type="figure">13</ref> shows four plots of number of words formed for each of the 18 nodes. The change in the plots is the cluster c &#224; 1, 2, 3, and 4, assigned to the 16 high degree nodes. The cluster, of course, changes the behaviour model for the nodes, and this is observed in the median values of numbers of words for all nodes, which increase as the cluster number increases from 1 to 4. The variability for each node also increases as cluster number increases. The point of interest is the variability of these results within cliques and across cliques, viewing each plot separately. In Figure <ref type="figure">13(a-c</ref>), it is seen that the median values do not change appreciably within cliques, nor across cliques. For cluster 4, the last plot, there is variability in median values among nodes within K 4 and within K 5 , but not across cliques. Note that we do not expect massive variability in this case because all nodes of all cliques K 4 , K 5 , and K 6 use the same g &#224; 2 models; the increased degree of nodes in K 6 , compared to the degrees of nodes in K 4 , for example, play no discriminating role because this model holds for all nodes with degree d 3. Hence, the conclusion is that the CWM model does not produce great levels of variability across nodes. Also, it is observed that the 16 nodes with g &#224; 2 have increasingly different behaviour from those of nodes 0 and 1, where degree d &#224; 2 and therefore g &#224; 1, as cluster c increases from 1 to 4. This again Figure <ref type="figure">13</ref>. ABS results of final number of words formed per agent in the 4-clique network for the CWM behavioural model M &#956; &#224; &#226;C &#956; ; g; c&#228; (these are the number of words formed through the 300 second game). Each plot shows boxplots of words formed for every node in the network along the x-axis. The y-axis range varies across the plots. The difference across plots is the cluster used for the high degree (hd) node behaviour, which varies in &#226;g &#224; 2; c&#228;: (a) &#226;2; 1&#228;; (b)&#226;2; 2&#228;; (c) &#226;2; 3&#228;; and (d) &#226;2; 4&#228;. The low degree nodes-only nodes 0 and 1-are M &#956; &#224; &#226;C; g; c&#228; &#224; &#226;C &#956; ; 1; 1&#228;. The boxes in each plot are color coded by the clique in which a node resides. The boxes of one color are nodes in one clique. We focus on cliques K 4 , K 5 , and K 6 because each agent in each clique has the same model, so we can compare the node behaviours of each clique. There is little variability in the median values, within and across cliques, for clusters c &#224; 1, 2, and 3. There is greater variability within cliques for cluster 4, but there is little variability across cliques.</p><p>points to the efficacy of partitioning game player behaviour into different clusters, to form separate models for them -this enables greater diversity of player behaviours in simulations.</p><p>Turning now to Figure <ref type="figure">14</ref> for the CWUQ model M &#946; , the same four types of plots are shown as in Figure <ref type="figure">13</ref>. Some of the same trends hold as in the previous plot: numbers of words formed increases as c increases, the differences between the behaviours of nodes with g &#224; 1 and g &#224; 2 increases as c increases for the 16 g &#224; 2 nodes, and the variability in results per node increases as c increases.</p><p>But there are differences between these two sets of plots. The variability in results across nodes in Figure <ref type="figure">14</ref>(a) for M &#946; is 18:6% greater compared to that in Figure <ref type="figure">13</ref> </p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.">Discussion</head><p>This work presents and evaluates two methods to quantify uncertainty and build ABMs of human behaviour. Based on the data from group anagram games, the proposed methods provide a comprehensive uncertainty quantification framework for agent-based modelling and simulation. Such a frame is not limited to modelling anagram games, but can be widely applicable to other systems. Motivation, novelty, and contributions of our uncertainty quantification approach and ABMs are provided in Section 1. The methods work best when a data set can be partitioned along natural parameter dimensions as is the case in this work.</p><p>Through the comparison of model outputs via simulations of two networked GrAGs, we find that the CWUQ model can better quantify and generate uncertainty than the CWM model. Note that in Figure <ref type="figure">14</ref>. ABS results of final number of words formed per agent in the 4-clique network for the CWUQ behavioural model M &#946; &#224; &#226;C &#946; ; g; c&#228; (these are the number of words formed through the 300 second game). Each plot shows boxplots of words formed for every node in the network along the x-axis. The y-axis range varies across the plots. The difference across plots is the cluster used for the high degree (hd) node behaviour, which varies in &#226;g &#224; 2; c&#228;: (a) &#226;2; 1&#228;; (b) &#226;2; 2&#228;; (c) &#226;2; 3&#228;; and (d) &#226;2; 4&#228;. The low degree nodes-only nodes 0 and 1-are M &#946; &#224; &#226;C; g; c&#228; &#224; &#226;C &#946; ; 1; 1&#228;. The boxes in each plot are color coded by the clique in which a node resides. We focus on cliques K 4 , K 5 , and K 6 because each agent in each clique has the same model, so we can compare the node behaviours of each clique. The greatest variation of the median values of words generated for nodes in each cluster occurs for clusters 2 and 4. There is some variability in clusters 1 and 3. some cases, the uncertainty generated from the two models is comparable in Section 5. A possible explanation is that some results reported in Section 5 are based on averaging data over 100 simulations at each time step of the 300-second game. The overall behaviour of the two models across many simulation instances could be end up being similar, indicating that the variability may be averaged over the entire game in the CWUQ model.</p><p>There are several directions for future research. Note that the multinomial logistic regression used in this work assumes a linear parametric form, which may not be satisfied in some sophisticated social experiments. However, we can modify the parametric statistical model (i.e., multinomial logistic regression) by some nonparametric statistical model such as generalised Gaussian process. Moreover, we can explore Bayesian approaches for modelling and uncertainty quantification <ref type="bibr">(van de Schoot et al., 2021)</ref> to alleviate extreme value problems caused by data scarcity in the asymptotic normal distribution. The proposed method can also be extended beyond the situation of three-letter words by adjusting the word corpus to include words of varying lengths.</p></div></body>
		</text>
</TEI>
