scieee AI-readable full text Open interactive document viewer

Game Day: The role of analytics in sport organizations to help increase revenues and create a better fan experience on matchdays

Pereira, Simão Eduardo Ramos Costa

Abstract

The research gap identified in this study revolves around the limited utilization of analytics approaches by sports organizations in areas such as merchandising, food and beverages, marketing, user experience, and fan engagement. The research question seeks to understand how analytics can be employed in sports organizations to increase revenues and improve the matchday experience for fans. The primary objective of this thesis is to describe and identify how the usage of big data and analytics by sports organizations can contribute to revenue growth and enhance the fan experience. This objective is further broken down into two sub-objectives. The first is to provide an overview of the current utilization of data by sports entities and assess its effectiveness. The second is to define a Business Intelligence approach and different technologies that can be employed by sports clubs to achieve their business objectives and also increase the fans' experience. To achieve these objectives, a comprehensive analysis was conducted, utilizing a combination of qualitative and quantitative research methods. The study involved the development of Python scripts, azure cloud services such as Event Hubs, Stream Analytics and Azure SQL Database and also Power BI. The key findings of the research demonstrate the efficacy of the implemented Business Intelligence solution in improving the fan experience and driving revenue growth. By leveraging real-time data and targeted interactions, sports organizations can provide personalized experiences, optimize ticket sales, and enhance fan engagement during matchdays. This thesis contributes to the field by showcasing the potential of cloud-based BI solutions in the sports industry. It emphasizes the importance of analytics in improving revenue generation and enhancing the overall fan experience. The study demonstrates the feasibility and effectiveness of the proposed solution, laying the groundwork for further advancements in the application of real-time Business Intelligence in sports organizations.

Full text

i Master Degree Program in Data Science and Advanced Analytics Game Day The role of analytics in sport organizations to help increase revenues and create a better fan experience on matchdays Simão Eduardo Ramos Costa Pereira Dissertation presented as partial requirement for obtaining the Master Degree Program in Data Science and Advanced Analytics NOVA Information Management School Instituto Superior de Estatística e Gestão de Informação Universidade Nova de Lisboa MDSAA NOVA Information Management School Instituto Superior de Estatística e Gestão de Informação Universidade Nova de Lisboa The role of analytics in sport organizations to help increase revenues and create a better fan experience on matchdays by Simão Eduardo Ramos Costa Pereira Dissertation presented as partial requirement for obtaining the Master’s degree in Data Science and Advanced Analytics, with a Specialization in Business Analytics Co-Supervisor: Miguel de Castro Neto Co-Supervisor: Bruno Jardim November 2023 iii STATEMENT OF INTEGRITY I hereby declare having conducted this academic work with integrity. I confirm that I have not used plagiarism or any form of undue use of information or falsification of results along the process leading to its elaboration. I further declare that I have fully acknowledge the Rules of Conduct and Code of Honor from the NOVA Information Management School. Lisbon, 17 of September 2023 iv v ACKNOWLEDGEMENTS I extend my heartfelt gratitude to those who made this thesis possible: I thank my dedicated advisors, Bruno Jardim (NOVA IMS) and Rui Valente (BI4ALL), for their guidance and expertise. I am grateful to my family for their unwavering support through this long journey. Lastly my closest friends, thank you for your encouragement and camaraderie. vi Abstract The research gap identified in this study revolves around the limited utilization of analytics approaches by sports organizations in areas such as merchandising, food and beverages, marketing, user experience, and fan engagement. The research question seeks to understand how analytics can be employed in sports organizations to increase revenues and improve the matchday experience for fans. The primary objective of this thesis is to describe and identify how the usage of big data and analytics by sports organizations can contribute to revenue growth and enhance the fan experience. This objective is further broken down into two sub-objectives. The first is to provide an overview of the current utilization of data by sports entities and assess its effectiveness. The second is to define a Business Intelligence approach and different technologies that can be employed by sports clubs to achieve their business objectives and also increase the fans' experience. To achieve these objectives, a comprehensive analysis was conducted, utilizing a combination of qualitative and quantitative research methods. The study involved the development of Python scripts, azure cloud services such as Event Hubs, Stream Analytics and Azure SQL Database and also Power BI. The key findings of the research demonstrate the efficacy of the implemented Business Intelligence solution in improving the fan experience and driving revenue growth. By leveraging real-time data and targeted interactions, sports organizations can provide personalized experiences, optimize ticket sales, and enhance fan engagement during matchdays. This thesis contributes to the field by showcasing the potential of cloud-based BI solutions in the sports industry. It emphasizes the importance of analytics in improving revenue generation and enhancing the overall fan experience. The study demonstrates the feasibility and effectiveness of the proposed solution, laying the groundwork for further advancements in the application of real-time Business Intelligence in sports organizations. Keywords : Analytics; Cloud-based BI solutions; Data; Fan experience; Business Intelligence; Revenue growth vii viii INDEX 1.INTRODUCTION .............................................................................................................. 1 1.1 Motivation .............................................................................................................. 1 1.2 Objectives and Methodology ................................................................................. 1 2. BACKGROUND ............................................................................................................... 5 2.1.What is Business Intelligence and its stages .......................................................... 5 2.1.1 Modern Business Intelligence Architecture.................................................... 7 2.1.2. ETL and ELT .................................................................................................... 8 2.1.2.1. Batch vs Streaming ................................................................................... 10 2.1.3. Dimensional Modelling in Data Warehousing ............................................. 11 2.1.4. Analytics ....................................................................................................... 13 2.2. Cloud vs On Premises .......................................................................................... 14 3. RELATED WORK ........................................................................................................... 17 3.1. Analytics applications in sports ........................................................................... 17 3.2. Analytics in Food, beverage, and merchandising ................................................ 19 3.3. Analytics in Fan Engagement ............................................................................... 21 3.4. Cloud application in sports .................................................................................. 22 4.METHODOLOGY ........................................................................................................... 24 4.1. Use case 1: real time access to a data warehouse and taking live actions ......... 24 4.1.1. Tables ........................................................................................................... 25 4.1.2. Database ...................................................................................................... 26 4.1.3. Actions ......................................................................................................... 27 4.1.3.1. Action before the match ........................................................................... 27 4.1.3.2. Action during the match ........................................................................... 29 4.2. Use case 2 - using real-time location on a matchday to interact with the fans .. 31 4.2.1. Solution Architecture ................................................................................... 32 4.2.2 Software ........................................................................................................ 33 4.2.2.1 Python – Location generator ..................................................................... 33 4.2.2.2. Azure Event Hub ....................................................................................... 34 4.2.2.3. Azure Stream Analytics ............................................................................. 35 4.2.2.4. Azure SQL Database .................................................................................. 37 4.2.2.5. Power BI .................................................................................................... 38 4.2.2.6. Python – Sending Email ............................................................................ 38 5.RESULTS AND DISCUSSION ........................................................................................... 43 ix 5.1. First use case: real-time access to the data warehouse and interaction with the fans 43 5.2. Second use case: Real-time Location and interaction with the fans .................. 44 5.2.1. Azure Event Hub .......................................................................................... 44 5.2.2. Azure Stream Analytics ................................................................................ 45 5.2.2.1. Input preview ............................................................................................ 45 5.2.2.2. Test results ................................................................................................ 45 5.2.3. Azure SQL Database ..................................................................................... 46 5.2.4. Power BI ....................................................................................................... 47 5.2.5. Action with Python ...................................................................................... 50 5.3. Discussion ............................................................................................................ 51 6. CONCLUSION ............................................................................................................... 55 7.LIMITIONS AND RECOMMENDATIONS FOR FUTURE WORKS ...................................... 57 8.BIBLIOGRAPHY .............................................................................................................. 60 3 • Relevance to modern sports by highlighting the transformation of sports organizations into business entities that rely on data and analytics to improve not only athletic performance but also financial performance and fan experiences. • Importance of Fan Engagement and the critical role of fan engagement, given that fans are a significant source of income for sports organizations. • Two practical cases where we provide two situatuons that simulate real matchday situations and demonstrate how data-driven decision-making can be applied to enhance revenue and fan experiences. • Inspiration for potential BI approaches in the field of sports analytics, encouraging further research and development in this area. The previous points will be addressed in the remainder of this thesis: The "Background" section offers a review of the foundational concepts of the development of this research. In "Related Work," an analysis of previously implemented analytics approaches in the realm of sports is presented, shedding light on the existing landscape. "Methodology" elucidates the methodologies employed in both use cases, providing a clear roadmap of the research approach. The "Results and Discussion" section documents the experiments conducted and the resultant findings, facilitating a discussion and analysis of the outcomes. Serving as a synthesis of the research, the "Conclusions" section encapsulates and concludes the trajectory of work accomplished throughout this study. Lastly, the "Limitations and Recommendations for Future Works" section delves into the identified limitations of this research while also having suggestions and ideas for future investigations. 4 5 2. BACKGROUND This section presents the fundamental BI concepts that are the basis for this project solutions. We review what is Business Intelligence and what are its stages (section 2.1) and discuss the differences of using cloud and on-premises solutions (section 2.2). 2.1.WHAT IS BUSINESS INTELLIGENCE AND ITS STAGES Business intelligence is a vital area of study in the field of information systems. It involves the collection, integration, analysis, and presentation of data to support decision-making processes within organizations. The increasing availability of data and the need for data-driven decision-making have led to the growing importance of BI in modern organizations (Turban, E., Sharda, R., Delen, D., & Aronson, J. E., 2017). The process of implementing a BI system can be complex and requires careful planning and execution. It is crucial to assure data quality and governance to ensure the success of BI initiatives: "Without clean and trustworthy data, BI is useless.” (Turban, E., Sharda, R., Delen, D., & Aronson, J. E., 2017). Overall, the importance of BI in modern organizations cannot be overstated. “BI is no longer a luxury, but a necessity for organizations seeking to survive and thrive in today's competitive business environment." By collecting, analyzing, and interpreting data, BI can help organizations gain insights into their operations, identify opportunities for growth, and make informed decisions to improve their performance (Sabherwal, R., & Becerra-Fernandez, I.,2010). A BI solution involves several stages, from planning and design to implementation and maintenance. Here are the different stages of a BI solution (Watson, H. J., & Wixom, B. H., 2007): 6 Figure 1.1- Business Intelligence Framework from Watson, H. J., & Wixom, B. H. (2007). The current state of business intelligence 1. Planning and requirements gathering: The first stage of a BI solution involves defining the objectives and scope of the project. This involves identifying the business requirements, data sources, and key performance indicators (KPIs) that will be used to measure success. 2. Data acquisition and integration: In this stage, data from various sources is acquired and integrated into a central data warehouse. This involves developing data extraction, transformation, and loading (ETL) processes to ensure data quality and consistency. 3. Data modeling and analysis: Once the data has been integrated, it needs to be modeled to support the reporting and analysis needs of the organization. This involves developing a multidimensional data model and creating data cubes for efficient querying and analysis. 4. Reporting and visualization: In this stage, reports and dashboards are developed to provide business users with easy-to-understand insights into the data. This involves selecting the appropriate reporting tools and designing reports and dashboards that meet the needs of the users. 5. Deployment and implementation: Once the BI solution has been developed, it needs to be deployed and implemented in the production environment. This involves testing the solution, training users, and ensuring that it is integrated with other systems. 6. Maintenance and support: After the solution has been deployed, it needs to be maintained and supported to ensure that it continues to meet the changing needs of 7 the organization. This involves monitoring performance, making updates and enhancements, and providing user support. "Successful BI implementation requires careful attention to each of these stages, as well as effective communication and collaboration between the business and IT stakeholders involved in the project." (Watson, H. J., & Wixom, B. H., 2007). By following a structured approach to BI solution development, organizations can ensure that they are getting the most value from their data and making informed decisions based on accurate and timely information. 2.1.1 Modern Business Intelligence Architecture Data architecture is the design of the systems to support the evolving data needs of an enterprise, achieved by flexible and reversible decisions reached through a careful evaluation of trade-offs (Reis, J., & Housley, M. ,2022). Figure 2.1 - Business Intelligence Architecture - Dayal, U.; Castellanos, M.; Simitsis, A.; Wilkinson, K. (2009). The data architecture defines how the stages of the data lifecycle are implemented. These phases are responsible for converting raw data components into valuable end products, which are then ready for utilization by analysts, data scientists, ML engineers, and other professionals (Reis, J., & Housley, M. ,2022). A good BI architecture should have into account the following 5 stages: 8 ▪ Generation ▪ Storage ▪ Ingestion ▪ Transformation ▪ Serving data The BI framework initiates its role in the data lifecycle by sourcing data from origin systems and securely storing it. Subsequently, the framework must ensure data undergoes transformation before fulfilling its primary objective: delivering accessible data to analysts, data scientists, ML engineers, and similar roles. Generally, the intermediate stages – storage, ingestion, and transformation – might seem intricate and intermingled. This complexity is acceptable. While the authors delineate discrete segments within the data flow of a BI framework, the process isn't always a seamless, linear progression. Different stages of the cycle might loop back, transpire in non-sequential order, coincide, or interconnect in intriguing and unforeseen patterns (Reis, J., & Housley, M. ,2022). 2.1.2. ETL and ELT Extract, transform, and load (ETL) is a data pipeline used to collect data from various sources. It then transforms the data according to business rules, and it loads the data into a destination data store. The transformation work in ETL takes place in a specialized engine, and it often involves using staging tables to temporarily hold data as it is being transformed and ultimately loaded to its destination (Jhawar, R., & Tejada, Z. ,2022, June 21). 9 Figure 2.2 – ETL process from Jhawar, R., & Tejada, Z. (2022, June 21). ETL process in Azure. Microsoft Azure Architecture Center. Extract, load, and transform (ELT) differs from ETL solely in where the transformation takes place. In the ELT pipeline, the transformation occurs in the target data store. Instead of using a separate transformation engine, the processing capabilities of the target data store are used to transform data. This simplifies the architecture by removing the transformation engine from the pipeline. Another benefit to this approach is that scaling the target data store also scales the ELT pipeline performance. However, ELT only works well when the target system is powerful enough to transform the data efficiently (Jhawar, R., & Tejada, Z. ,2022, June 21). Figure 2.3 – ELT process from Jhawar, R., & Tejada, Z. (2022, June 21). ETL process in Azure. Microsoft Azure Architecture Center. 10 2.1.2.1. Batch vs Streaming Batch and streaming solutions are two ways of ingesting (or extract) data by organizations, but they have different strengths and weaknesses (Reis, J., & Housley, M. ,2022). Here is a brief overview of the differences between the two: Batch solutions process data in batches, typically on a scheduled basis. They are often used for analysing large volumes of historical data to identify trends, patterns, and insights. Batch solutions can be effective for tasks such as customer segmentation, predictive modelling, and data warehousing. Some popular batch analytics tools used in sport organizations include Hadoop, Spark, and Amazon Redshift (Reis, J., & Housley, M. ,2022). Advantages: • Cost-effective: Batch solutions are typically less expensive than streaming solutions because they don't require real-time processing. • High throughput: Batch solutions can handle large volumes of data and are designed for processing data in parallel. • Scalability: Batch solutions can be easily scaled up or down to accommodate changing data volumes. Disadvantages: • Latency: Batch solutions may not be able to provide real-time insights due to the time required to process data in batches. • Limited real-time decision-making: Batch solutions are not well-suited for real-time decision-making, as they are typically designed to analyze data after it has been collected. Streaming solutions process data in (almost) real-time, as it is generated. They are often used for real-time analytics, such as monitoring social media sentiment or analyzing player performance during a game. Streaming solutions can be effective for tasks such as anomaly detection, fraud detection, and real-time personalization. Some popular streaming analytics 11 tools used in sport organizations include Apache Kafka, AWS Kinesis, and Azure Stream Analytics (Reis, J., & Housley, M. ,2022). Advantages: • Real-time insights: Streaming solutions can provide real-time insights, which can be important for decision-making during a game or event. • Real-time decision-making: Streaming solutions can enable real-time decision-making, such as adjusting ticket prices or promotions in real-time based on fan behavior. • Better data freshness: Streaming solutions can provide more up-to-date data than batch solutions. Disadvantages: • Higher cost: Streaming solutions can be more expensive than batch solutions because they require real-time processing and data storage. • Complexity: Streaming solutions can be more complex to set up and maintain than batch solutions, particularly if real-time processing is required. Ultimately, the choice between batch and streaming solutions will depend on the specific needs and requirements of the sport organization. Batch solutions may be more suitable for historical analysis, while streaming solutions may be better suited for real-time decisionmaking and monitoring. 2.1.3. Dimensional Modelling in Data Warehousing A data warehouse is a centralized repository of integrated data from one or more disparate sources. Data warehouses store current and historical data and are used for reporting and analysis of the data (Tejada, Z., 2022, July 25). In the context of data warehousing, effective data modeling techniques play a pivotal role in enabling organizations to harness the power of business intelligence and analytics for informed decision-making. This chapter explores the intricacies of dimensional modeling, an approach designed to optimize data structures for efficient querying and reporting within the realm of decision support systems (Kimball, R., & Ross, M.,2013). 12 Dimensional modelling serves as the bedrock upon which data warehouses are built. It operates on the principle of organizing data into distinct dimensions and facts, providing a structured framework for comprehensive data representation (Kimball, R., & Ross, M.,2013). Central to dimensional modelling is the concept of the star schema. This schema revolves around a central fact table that encapsulates quantitative measures, or facts, pertaining to various business events. Surrounding this fact table are dimension tables, each representing a distinct business entity such as time, product, customer, or location. These dimensions enrich the data by providing contextual attributes, enabling users to navigate and analyze the data from multiple perspectives (Kimball, R., & Ross, M.,2013). An evolution of the star schema is the snowflake schema, where dimension tables are normalized to minimize data redundancy. While this normalization conserves storage space, it introduces additional complexity in querying due to increased table joins. Thus, the choice between star and snowflake schemas hinges on considerations of storage optimization versus query performance (Kimball, R., & Ross, M.,2013). Hierarchies within dimension tables play a pivotal role in aiding users to traverse data in a structured manner. Hierarchies define relationships within dimensions, enabling users to drill down or roll up data to different levels of granularity. For instance, a time dimension might comprise hierarchies such as year > quarter > month > day, facilitating a comprehensive view of temporal data (Kimball, R., & Ross, M.,2013). In the real world, dimension data is subject to change over time, necessitating strategies to address evolving attributes. Slowly Changing Dimensions (SCDs) categorize approaches to handle these changes. The choice of SCD strategy, whether Type 1 (overwrite), Type 2 (add new row), or Type 3 (add new attribute), hinges on the specific business requirements (Kimball, R., & Ross, M.,2013). The granularity of a fact table, known as the grain, shapes the level of detail at which data is stored. Defining the grain has profound implications on how data is aggregated and subsequently analyzed. Clarity in specifying the grain ensures that analytical insights align with business objectives (Kimball, R., & Ross, M.,2013). 19 improve the fans experience and increase the organization´s revenues (Ratten, V., & Dickson, G., 2020). Real time interaction with the fans for these purposes is also something that just started and so there is not a lot of literature regarding that area but next are presented some examples. 3.2. ANALYTICS IN FOOD, BEVERAGE, AND MERCHANDISING The incorporation of analytics within the domains of food and beverage as well as merchandising delves into additional dimensions of professional sports franchises (Sutton, W. A., Urban, T. L., Troilo, M., Bouchet, A., & Mondello, M., 2020). This phenomenon can be attributed, in part, to its relative contribution to an organization's revenue stream and the intricacies involved in collaborating with external service providers. The authors highlight that during the development of analytical capabilities, many organizations undergo a 'prove-it phase,' undertaking localized projects that illustrate the potential merits of business analytics to management. Given that a mere five percent of revenue for professional sports entities stems from concessions and merchandise sales (Hoover’s Inc., 2016), it becomes evident that other analytic endeavours might yield more measurable advantages. Moreover, as numerous teams outsource their food, beverage, and merchandising operations, internal projects could offer analytic exposure and sponsorship before progressing to partnerships with external concessionaires. Further research that delves into the role played by external service providers in the service profit chain (Heskett and Schlesinger, 1994) could be illuminating. It is noteworthy that while food and beverage's role has historically been minor, this dynamic might be evolving. Presently, various ownership groups hold equity stakes in concession companies that serve their stadiums. Collectively, the realms of food, beverage, and merchandising offer considerable potential for analytic initiatives, possibly serving as a strategic resource for competitive advantage for managers. Identifying optimal marketing and pricing strategies can enhance existing revenue streams and open doors to new sources. For instance, NBA teams typically generate $20 million in revenue from premium-seating customers (Lawrence et al., 2013). Understanding how additional amenities, such as upscale food and beverage offerings, influence this customer segment could greatly benefit market 20 expansion. As a starting point, Harrison et al. (2016) examine the preferences of female spectators concerning food, beverage, apparel, and merchandise at NFL games. Further insights into these aspects could contribute to retaining and attracting another crucial market segment. Additionally, as highlighted earlier, analytics can address inventory and supply-chain challenges, such as identifying which products sell during games and why. Analytics also unravels trends, encompassing factors like the day of the week, opponent, etc., influencing food, beverage, and merchandise sales throughout the season. This landscape encompasses opportunities for both cost reduction and revenue generation. A noteworthy facet emerges regarding the interaction between analytics departments supporting on-field success and those contributing to revenue generation. An interviewee underscores a "church and state relationship" between these domains. When prompted for clarification, he expounds, "there has always been a separation between the team (players, coaches, and scouts) and the rest of the business. Many teams – including ours – this separation is physical, meaning our team operations are located in a different area of the city than our business operations" (personal communication, 2016). Nonetheless, knowledge exchange and the mobilization of knowledge between firms stand as pivotal elements in optimizing organizational resources. Interestingly, this contrast with the application of analytics in more conventional industries. For instance, one of the early adopters of revenue management through analytics is American Airlines, which established a dedicated department named American Airlines Decision Technologies (later renamed SABRE). This department aided employees across business domains with analytics, occasionally surpassing the airline's core passenger air travel business in profitability (Cross, 1997). Similarly, Proctor & Gamble streamlined their analytics teams into a global analytics department under the company's IT division (Harris, 2007). Prior to this, analytics personnel were dispersed throughout the organization. These firms perceive business analytics as a means to attain a competitive edge. In essence, they view investments in analytics as ventures into tacit knowledge that can confer an advantage over competitors. Given the structure of North American professional sports leagues, where organizations compete on the field while respecting territorial rights, cultivating a core competency in revenue-oriented business analytics can indeed confer a lasting competitive edge. 21 The integration of analytics within the domains of merchandise, food, and beverage offers untapped potential for boosting revenues and curbing expenses. Despite not yet being universally perceived as a source of competitive advantage, the significance of enhancing business analytic capabilities remains widely acknowledged. 3.3. ANALYTICS IN FAN ENGAGEMENT Analytics has also been used to analyze and take conclusions out of the fan engagement during a sport event. That was the case when the winter Olympics were happening in 2022. A study made during the competition (Mehra, V., Singh, P., Bharany, S., & Sawhney, R. S. , 2023) focused on the reaction to self-censorship guidelines issued on Weibo, a major Chinese social media platform. By examining tweets related to the Olympics, the study reveals a significant pushback against self-censorship, with many expressing positive sentiments towards the event despite the restrictions. This finding underscores the critical role of social media in fostering an open environment for fan engagement, suggesting that fans, athletes, and spectators value the ability to freely share and engage with content related to sports events. The study highlights the tension between regulatory constraints and the desire for open expression, pointing to the strategic importance of social media use in sports communication and fan engagement strategies. To analyse these tweets quantitative and qualitative Analytics tools and techniques such as ANOVA and Tukey’s HSD for temporal analysis to identify significant statistical differences between groups. Python packages like Statsmodels, Seaborn, and Matplotlib were used for statistical analysis and data visualization. The research highlights the importance of sentiment analysis in understanding public opinions on social media, using text mining for polarity and emotion analysis. Tools such as the "Tidyverse" in R were also employed for sentiment analysis. The key insight from this study is that analytics techniques play a crucial role in identifying fan engagement, allowing for meaningful conclusions to be drawn from the data analysed. 22 3.4. CLOUD APPLICATION IN SPORTS The NBA has introduced the NBA CourtOptix, an AI-driven data analytics system designed to enhance fan experience by providing valuable insights into player and ball positioning during games. This system, already visible in the official NBA Twitter feed and game broadcasts, capitalizes on data related to geographical positioning to provide meaningful information about in-game actions (Microsoft., 2021, October 1). The process involves cameras tracking player movements and the ball 25 times per second, generating around 1.5 million geographical coordinates per game. For the NBA, this translates to nearly 2 billion data points throughout the season. The organization collaborates with a tracking partner to acquire this data, and Microsoft Azure serves as the pivotal tool for processing and transforming this massive data pool into actionable insights. Key Azure components utilized include Azure Data Lake Storage, Azure Machine Learning, Azure Databricks, Apache Airflow, MLflow, and Delta Lake, along with Azure Functions, Azure Cosmos DB, Azure Kubernetes Service (AKS), and Azure Event Hubs. These tools consolidate tracking and other data in the cloud, while historical records remain stored in an on-premises system powered by Microsoft SQL Server. Azure Databricks proves to be a versatile tool, enabling various skilled employees to work collaboratively. Machine learning and modelling are fundamental to the effectiveness of NBA CourtOptix. The system learns basketball concepts through machine learning, enabling it to interpret plays, dribbles, and shots. This learning process results in more sophisticated insights about the game as the system evolves. The NBA aims to personalize fan engagement by tailoring content based on individual preferences. The Azure-based platform facilitates this customization, with services like Personalizer being leveraged to present fans with tailored experiences that align with their behaviors and preferences. This strategic shift to Azure empowers the NBA to comprehend fan consumption patterns, which devices they use, and their content preferences, all contributing to a customized fan experience. Azure's capabilities offer the NBA opportunities for expansion and innovation, ensuring it stays ahead in a competitive sports and entertainment landscape. 23 24 4.METHODOLOGY In order to address the study objectives mentioned in section 1.2 and based on the concepts and work addressed in sections 2 and 3, this section describes the methodologies used for the BI solutions in both use cases. In both use cases we consider the football club Sport Lisboa e Benfica and matches that occur in its stadium, Estádio da Luz in Lisbon. 4.1. USE CASE 1: REAL TIME ACCESS TO A DATA WAREHOUSE AND TAKING LIVE ACTIONS A comprehensive football club data warehouse was constructed to explore additional realtime fan interaction methods. The objective was to replicate a plausible Benfica database and develop a BI model (figure 4.1) capable of conducting analysis and live actions. Although the following model is more used in this case, it also plays a role in the second use case as we will see. Figure 4.1 – BI Data warehouse/Model This well-structured model harnesses the power of fan_id and match_id fields, along with their interconnected relationships. These key elements serve as the catalyst for conducting a multitude of insightful analyses, unlocking valuable insights and optimizing decision-making processes for the organization. 25 4.1.1. Tables To achieve the referred model, multiple SQL tables were created to emulate the data warehouse of a football club such as Benfica. The data is included in the Fans table (Table 4.1), the Matches table (4.2), Fan_match_bridge table (Table 4.3) and Stadium_Occupancy table (Table 4.4). Table 4.1 - Metadata of Fans SQL table Table 4.2 - Metadata of Matches SQL table Table 4.3 - Metadata of Fan_match_bridge SQL table Table 4.4 - Metadata Stadium_Occupancy SQL table Field Data Type Fan_id int (Identity, Not Null) Name varchar(100) (Not Null) Phone_number varchar(20) (Not Null) Email varchar(100) (Not Null) Field Data Type Match_id int (Identity, Not Null) Home_team varchar(100) (Not Null) Away_team varchar(100) (Not Null) Game_date date (Not Null) Game_time time(7) (Not Null) Field Data Type Fan_id int (Identity, Not Null) Match_id int (Identity, Not Null) Has_ticket bit (Null) Field Data Type ID int (Identity, Not Null) Match_id int (Null) Occupant_id int (Null) Section varchar(50) (Not Null) Seat_number int (Null) Is_occupied bit(Null) Occupant_name varchar(100) (Null) Ticket_type varchar(50) (Null) Ticket_price decimal(10,2) (Null) 26 4.1.2. Database With the intention of simulating the SLB database, the previous tables were randomly populated with the following data: Table 4.5 - Fans SQL table Table 4.6 - Matches SQL table Table 4.7 - Fan_details SQL table 27 Table 4.8 - Stadium occupancy (for match_id =1) SQL table 4.1.3. Actions Within this first use case, two types of actions were executed: one prior to the start of the match and another during the match. To deploy these actions Python and its connection to Azure SQL Database were used. Potential actions include: 1. Before the match begins: If the club's database indicates that a specific fan does not possess a ticket five hours before the match, an email can be sent as a reminder to purchase tickets. 2. During halftime: If the club's database confirms that a specific fan holds a ticket for the game, a notification can be sent at halftime featuring promotional offers. 4.1.3.1. Action before the match By leveraging the created data warehouse that includes matches table, fans table and stadium occupancy data, we can determine the availability of tickets in real-time. If there are still tickets available before the match starts, we can send personalized emails to fans, reminding them to purchase the remaining tickets. Using python capabilities to connect with the SQL Database and by performing SQL queries it is possible to send a personalized email to a specific fan based if he has a ticket or not. For instance, the following code allows to get the needed conditions and information to send the email: 28 Figure 4.2 – Python code used to produce the action before the match The provided code snippet demonstrates a Python script designed to automate the process of sending email notifications to fans who do not have tickets for an upcoming Benfica match. The script leverages the previous referred database to retrieve relevant information and make informed decisions. The script begins by obtaining the current datetime using the datetime.now() function. It then queries the database to retrieve the start time of a specific game from the "Matches" table (in 35 second from a wide variety of sources. Event Hubs is designed to be scalable, reliable, and highly available, making it well-suited for processing large volumes of streaming data in realtime. Event Hubs can be used for a variety of use cases, including telemetry data ingestion, log and event aggregation, and real-time analytics. Some of the key features of Azure Event Hubs include high throughput, scalability, durability, security, and integration with other Azure services. In the context of analytics in sport organizations, Azure Event Hubs can be used to ingest and process real-time data from various sources, such as cameras, sensors, and social media, to provide real-time insights into fan behavior, player performance, and other relevant factors. By leveraging the scalability and real-time processing capabilities of Azure Event Hubs, sport organizations can improve their ability to analyze and act upon streaming data to enhance fan experience, increase revenues, and optimize performance. In this study azure event hub was used to capture and process data from the python script that simulated live location from the fans hours before the match. Due to the service being a highly scalable data streaming platform that enables real-time ingestion of massive amounts of data, this process happens almost instantly. 4.2.2.3. Azure Stream Analytics Azure Stream Analytics is a cloud-based real-time data analytics service provided by Microsoft Azure. It allows organizations to analyze and gain insights from streaming data in real-time, with minimal setup and maintenance. Azure Stream Analytics enables organizations to perform various tasks, including: 1. Data ingestion: Stream Analytics can ingest data from various sources, including event hubs, IoT hubs, and other streaming platforms. 2. Real-time data processing: Stream Analytics provides real-time data processing capabilities, allowing organizations to analyze streaming data and act upon it in realtime. 36 3. Data transformation: Stream Analytics allows organizations to transform streaming data into different formats, such as JSON or CSV, making it easier to work with. 4. Integration with other Azure services: Stream Analytics can be integrated with other Azure services, such as Azure Machine Learning, Azure Event Grid, and Azure Functions, allowing for a complete end-to-end streaming solution. 5. Visualizations: Stream Analytics can be used to create real-time dashboards and visualizations of streaming data, enabling organizations to monitor and track data trends and patterns. By leveraging the real-time processing capabilities of Azure Stream Analytics, sport organizations can improve their ability to analyze and act upon streaming data to enhance fan experience, increase revenues, and optimize performance. Using Azure Stream Analytics, the incoming data from Event Hubs is processed and transformed in real-time. Stream Analytics allows to check the data that is retrieved from the azure event hub and then transformations are applied through SQL query and finally sent to an output service, in this case, an azure SQL Database. Figure 4.7 – Azure Stream Analytics interface The Azure Stream Analytics interface, as depicted in Figure 4.7, showcases the workflow where data is inputted and processed before being sent to an output destination via an intermediary SQL query. 37 As presented the input source in this case is an event hub containing real-time location data of fans. In the provided illustration, a query has been implemented to fetch relevant information from the event hub. This query is designed to select essential fields such as fan_id, Latitude, and Longitude. Additionally, the default event hub field that captures the time of each event's entry into the event hub is also included in the query. To enhance data manipulation and streamline the data format, a transformation step has been directly integrated into the Azure Stream Analytics query. Specifically, the datetime format has been modified to adopt the pattern '1970-01-01 00:00:00'. This transformation enables more efficient data processing and prepares the information for subsequent stages of analysis and engagement. 4.2.2.4. Azure SQL Database Azure SQL Database is a cloud-based relational database management system provided by Microsoft Azure. It provides a fully-managed database service that offers high performance, scalability, and security for applications that require a relational database. In the context of analytics in sport organizations, Azure SQL Database can be used to store and manage data from various sources, such as transactional data, customer data, and other relevant data. By leveraging the high performance and scalability of Azure SQL Database, sport organizations can ensure that their applications can handle increased workload demands and provide fast access to data for analysis and reporting. In the purposed solution the processed data coming out of stream analytics is stored in a Azure SQL database (table 4.9). This database serves as a central repository for fan information, including their current location and other relevant details. The data is stored in a matter of seconds in a cloud database and ready to be used for live actions or future historical analysis. Field Data Type Fan_id bigint (Not Null) Latitude float(Null) Longitude float(Null) EventEnqueuedUtcTime datetime(Null) Table 4.9 – Metadata Fan Locations SQL table 38 This is was the table created that includes the fields fan_id, Latitude, Longitude and EventEnqueuedUtcTime field representing the datetime of each event. The data coming out of the stream analytics will populate this table in real-time. 4.2.2.5. Power BI Power BI is a cloud-based business intelligence (BI) and data visualization platform provided by Microsoft. It enables organizations to connect to various data sources, transform and model data, and create interactive reports and dashboards. In the context of analytics in sport organizations, Power BI can be used to create interactive reports and dashboards that provide insights into various aspects of the organization, such as fan behavior, player performance, and revenue streams. By leveraging the easy-to-use interface and data connectivity capabilities of Power BI, sport organizations can quickly gain insights into their data and make data-driven decisions to enhance fan experience, increase revenues, and optimize performance. Using the live connection capabilities of Power BI is possible to read in real time data from the Azure SQL database and visualize the current location of the fans by using the geographical capabilities of this service. 4.2.2.6. Python – Sending Email Python's integration with Azure services such the process of connecting to an Azure SQL database, turned out to be an essential component of the BI solution. Through the utilization of the pyodbc library, Python successfully established a connection to the database and it was possible to query from the SQL databases, retrieving essential fan information and location data in real-time. By implementing the Haversine formula, Python efficiently calculated the distances between various fan coordinates (in the Lisbon area) and Estádio da Luz. It was used the location of the Benfica stadium (Estádio da Luz) as benchmark which coordinates were obtained with the google maps API: Latitude = 38.752711 and Longitude = -9.1847739. 39 Figure 4.8 – Part 1 of Python Code used to send emails based on fans live location Python’s exceptional capabilities further came to the fore when enabling the sending of personalized notifications to fans. Leveraging the smtplib library, Python effectively configured the email parameters, facilitating the dispatch of customized notifications to individual fans based on their locations in proximity to the stadium and based on the timestamp. The powerful combination of Python and Azure’s real-time data handling capabilities made it possible to send timely, targeted messages, enriching the fans’ experience and engagement. 40 Figure 4.9 – Part 2 of Python Code used to send emails based on fans live location The code means that if the distance of the fan to the stadium is more than 5km and it is less than 3 hours to the kick-off, then the following email is sent: “We noticed that you are still far away from the stadium, and the kick-off is near. We advise you to start heading to the stadium as soon as possible due to intense traffic." Note that, in this research, we do not have access to live traffic, therefore this email is just a suggestion of what could be done given the location of the fan. As a second possible outcome of the code, if the fan is less then 5km away from the stadium and the game starts within 3 hours, the following email is sent: “Since you are nearby the stadium, come visit our official store and enjoy 20% off on every article before the game starts." 41 To be able to get the live location , the right fan name and also the email the before mentioned BI model comes into play. For instance using the Fans (Table 4.5) and FanLocation (Figure 5.6 ) SQL tables and connecting these two tables through the following SQL code we get the following output : Figure 4.10 – SQL code and output used to personalize the emails So, thanks to the BI model we can retrieve information from different tables and then send a personalized email via python. In summary, Python's versatility and integration with Azure services were instrumental in both the data generation and database interaction aspects of my thesis. By harnessing Python's capabilities, it was possible to successfully simulated real-time fan movements, established efficient connections with the Azure Event Hubs and Azure SQL database, and facilitated personalized notifications, culminating in an enriched and innovative Business Intelligence model for sports organizations. 42 43 5.RESULTS AND DISCUSSION This chapter presents the final actions taken in each Use Case and discuss the effectiveness and potential of these BI solutions. 5.1. FIRST USE CASE: REAL-TIME ACCESS TO THE DATA WAREHOUSE AND INTERACTION WITH THE FANS Using the explained methodology in section 4.1 and 4.2 a personalized email is sent to a specific fan giving certain conditions and the figures 5.1 and 5.2 show how that email would look like. Figure 5.1 – Email sent before the match Figure 5.2 – Email sent during the match Here we observe a range of automated email communication strategies that can be employed to engage with fans prior to and during sporting events. This is made feasible 44 through the utilization of the BI model, which we have previously explained, and the accompanying data pipeline architecture. What sets these communication initiatives apart is their ability to deliver emails to fans in a matter of seconds, effectively in real time. Furthermore, the email content and structure are highly adaptable, allowing for a variety of formats to align with the organization's objectives. While these outcomes may appear straightforward at first glance, they underscore the profound impact that data and analytical capabilities can have in facilitating real-time interactions with fans. This, in turn, carries the potential to significantly enhance both the overall fan experience and revenue generation. 5.2. SECOND USE CASE: REAL-TIME LOCATION AND INTERACTION WITH THE FANS In this section, we present the results throughout each phase of the data pipeline. 5.2.1. Azure Event Hub The code showed in section 4.2.2.1 sends the location of 10 fans to the azure event hub. This what happens if the event hub successfully gets the data from python (Figure 5.3). Figure 5.3 – Azure Event Hub incoming graphics overview The image illustrates the successful output of the Azure Event Hub after running the code. The lines in the graphics confirm that the data from Python was successfully transmitted to the event hub. The image also displays the number of requests made and the corresponding arrival time of the messages. It is noteworthy that the data transmission from Python to the event hub is exceptionally quick, highlighting the effectiveness of event hubs for real-time data ingestion. 51 5.3. DISCUSSION When considering the implementation of real-time data and interaction with fans, the efficiency of the solutions employed becomes crucial. In this context, both the Python random location generator and the integration of Event Hubs, Stream Analytics, SQL Database, and the final Python script offer exceptional performance. The flow of data through these platforms occurs within a matter of seconds, ensuring that organizations have access to up- to-date information in a timely manner. This real-time capability is of utmost importance when dealing with streaming data, as it enables organizations to quickly identify and respond to relevant events or trends. Furthermore, the ability to take live actions based on this data is equally significant. By ensuring that the information reaches the fans swiftly, organizations can have the desired effects, whether it be sending personalized emails regarding ticket availability or engaging fans during the match. The speed and efficiency of these solutions enable organizations to create a seamless and immediate connection with fans, enhancing their overall experience and optimizing revenue opportunities. These actions were tested several times and it is possible to say that these processes are fast and close to real-time. The emails are sent and received in a matter of seconds making these BI solutions appropriate for the challenge. Of course, it is worth mentioning that the data used for this experience is way smaller than what would happen in real-life. Both BI solutions offer several potential actions in real time. For instance, if we identify a fan located in close proximity to the stadium one hour before the game, we can utilize this solution to send them a targeted marketing message, reminding them to explore ongoing merchandising promotions at the stadium's store on that matchday. Another example would be to notify a fan who is still far from the stadium's location, advising them to take the subway instead of driving due to heavy traffic congestion in the stadium's vicinity. Furthermore, through future analysis of the stored real-time data, significant insights can be gained. For instance, by analyzing the fan location data during the two hours prior to the game, patterns may emerge. It may be observed that most fans only approach the stadium approximately 45 minutes before the game. Consequently, this information allows for strategic decisions, such as launching marketing campaigns one hour prior to the game or 52 adjusting security measures three hours before the match based on the anticipated fan presence. Emails were just one of the actions that could have been made to interact with fans. Also, the content of email and the ways to personalize even more the content is enormous. For instance, instead of email, a text message could have been sent because we have the information of the fans phone number. In terms of content and with this data warehouse that was created the email/text message could also contain information such as which kind of tickets are still available before the match or for what price the fans can still get them. By utilizing real-time data, we can create a dynamic and personalized fan experience, enhance ticket sales, and increase fan engagement. The possibilities for interacting with fans and tailoring marketing efforts are vast, ultimately leading to improved fan satisfaction and revenue generation for the organization. These examples illustrate a fraction of the multitude of possibilities that can be realized through the implementation of analytics within sports organizations. While this case study may not cover the full extent of these possibilities, it provides valuable insights into the potential benefits that analytics can offer within the sports industry. The research undertaken in this master thesis has successfully addressed the identified research gap surrounding the limited integration of analytics approaches within diverse domains of sports organizations. By offering insights into areas such as merchandising, food and beverages, marketing, user experience, and fan engagement, the study showcases the potential of analytics to revolutionize revenue growth and enhance the matchday experience for fans. The effectiveness of the implemented analytics solution resonates strongly with the research question and contributes to the advancement of the sports industry's operational and engagement paradigms. The initial research gap pinpointed the lack of comprehensive analytics utilization in nontraditional facets of sports organizations. Through meticulous investigation and empirical application of analytics techniques, the thesis has effectively bridged this gap. The showcased Business Intelligence approach utilizing Python scripts, Azure cloud services (Event Hubs, 53 Stream Analytics, Azure SQL Database), and Power BI exemplifies the adaptability of modern technologies in revolutionizing operations and interactions within sports entities. One of the central aspects addressed by the research question pertains to the potential of analytics in increasing revenues for sports organizations. The findings reveal that the integration of real-time data and targeted interactions leads to tangible benefits. By personalizing fan experiences and optimizing ticket sales strategies, sports organizations can maximize revenue generation. The presented analytics solution serves as empirical evidence of this potential, demonstrating that data-driven insights can facilitate smarter business decisions that directly impact financial growth. Enhancing the matchday experience for fans emerged as another significant dimension of the research question. The implemented analytics solution effectively showcases how real-time data analysis can elevate the fan experience. Through personalized interactions, tailored recommendations, and improved engagement, the study highlights the power of analytics in fostering a more connected and satisfied fan base. This resonates with the research gap, as the thesis not only addresses this aspect but also substantiates it through practical implementation. 54 55 6. CONCLUSION With this research, a comprehensive exploration of analytics solutions and real-time interactions within the realm of sports organizations was undertaken, addressing critical research gaps and significantly advancing the understanding of how data-driven strategies can reshape revenue growth and fan experiences. Through the development and examination of two distinct use cases, the thesis showcased the transformative potential of analytics within the sports industry. It is worth noting that the emphasis of this work was not on the software or app development aspect. The data generation employed in this thesis was purely illustrative, and the presented BI solution can be applied to any context, regardless of how the data is collected from the fans. The first use case focused on harnessing analytics to drive revenue growth within a football club. By creating, accessing, and reading from a real-time data warehouse, the study demonstrated the tangible benefits of leveraging data insights to optimize various aspects of club operations. The practical implementation emphasized how analytics can fine-tune merchandising strategies, enhance marketing approaches, and improve the overall fan experience. This use case effectively translated theoretical concepts into real-world application, highlighting the direct impact of data-driven decisions on revenue generation. The second use case delved into the live interaction aspect, showcasing how Azure cloud services can revolutionize fan engagement. Through real-time location tracking and personalized interactions, the study illustrated the potential for technology to create seamless and immersive experiences for fans during matchdays. The implementation of Azure cloud services such as Event Hubs, Stream Analytics, and Power BI provided a robust framework for understanding how real-time data can be harnessed to foster stronger connections between sports organizations and their fan base. Both use cases converge to demonstrate the power of analytics and real-time interactions in driving revenue growth and fan engagement. The strategic utilization of data insights and technological solutions offers sports organizations the opportunity to make informed decisions, optimize operations, and enhance the overall experience for fans. By addressing 56 research gaps and providing tangible examples, this work serves as a contribution to the sports industry's digital transformation journey. Regarding the research topic, which delves into the role of analytics in sport organizations to increase revenues and enhance the fan experience on matchdays, this study has shed light on the tremendous opportunities available in this area. It is evident that analytics plays a critical role in the present and future of sports organizations, and there is substantial room for improvement and innovation in this field. In conclusion, this master thesis serves as a testament to the transformative potential of analytics solutions and real-time interactions within the sports industry. By building and analyzing two comprehensive use cases, the study not only answered the research question but also showcased how data-driven strategies can drive revenue growth and enhance fan experiences. As sport organizations continue to evolve in the digital age, the insights from this thesis offer valuable guidance and inspiration for leveraging technology and data to create a new era of sports engagement and operations. 57 7.LIMITIONS AND RECOMMENDATIONS FOR FUTURE WORKS In this thesis, certain limitations were encountered that provide avenues for future work. One significant limitation relates to the software engineering aspect, which could have added substantial value and completeness to the study. Developing an actual mobile app for a sports organization would have allowed for the extraction of fan data and the testing of the BI solution in a real-world scenario. While this was not the primary objective of the research, integrating the solution with a functioning app would enhance its practical applicability. Additionally, the limitation of having only two use cases must be acknowledged. Due to time constraints and academic considerations, the exploration of fan data was limited, although there were numerous opportunities to delve into different aspects of fan engagement. Expanding the scope of use cases would enrich the research and provide a more comprehensive understanding of the potential applications of the real-time BI solution. Budget constraints and the expenses associated with cloud services imposed limitations on the exploration of additional functionalities within the Azure cloud platform. Future research could address this limitation by allocating sufficient resources to explore more advanced features and capabilities of cloud services. Additionally, considering different cloud service providers and alternative streaming data architectures could provide further insights and enhance the solution's power and efficiency. Moving forward, future research should aim to incorporate various types and larger quantities of data to enrich the analysis. For instance, integrating live traffic data, ticket holder information, or real-time weather data could enhance the precision and contextual relevance of the solution. This would allow for a more comprehensive understanding of fan behavior and enable personalized and targeted interactions. Lastly, to validate the effectiveness of the solution, it would be valuable to develop or utilize an existing app where the proposed BI solution can be applied and tested on a bigger dataset. This real-world implementation would provide empirical evidence of its practicality and efficacy in enhancing fan experiences and driving revenue. 58 By addressing these limitations and pursuing future research along these lines, a more comprehensive understanding of real-time BI solutions for sports organizations can be achieved, paving the way for enhanced fan experiences and revenue generation in the industry. 59 60 8.BIBLIOGRAPHY Apostolou, K., & Tjortjis, C. (2019, November 14). Sports Analytics Algorithms for Performance Prediction. In Proceedings of the IEEE Conference. Publisher: IEEE. ISBN: 978-1-7281-4960-8. Troilo, M., & Simkins, B. J. (2021). Business analytics, revenue management, and sport: Evidence from the field. Journal of Revenue and Pricing Management. https://www.researchgate.net/profile/Michael- Troilo/publication/346167787_Business_analytics_revenue_management_and_sport_evide nce_from_the_field/links/5fc68fc4a6fdccfea3f0830f/Business-analytics-revenue- management-and-sport-evidence-from-the-field.pdf Gong, X., & Wang, Y. (2021). Exploring dynamics of sports fan behavior using social media big data - A case study of the 2019 National Basketball Association Finals. Applied Geography, 129, 102438. https://doi.org/10.1016/J.APGEOG.2021.102438 Mehra, V., Singh, P., Bharany, S., & Sawhney, R. S. (2023). A social media analytics application of impression management and social presence theories to Twitter interaction analysis. Decision Analytics Journal, 9. https://doi.org/10.1016/j.dajour.2023.100321 McHale, I. G., & Holmes, B. (2023). Estimating transfer fees of professional footballers using advanced performance metrics and machine learning. European Journal of Operational Research, 306(1), 389–399. https://doi.org/10.1016/J.EJOR.2022.06.033 Arkenberg, C., Giorgio, P., & Deweese, C. (2019). Redesigning stadiums for a better fan experience Putting sports fans at the center of smart stadium transformation. Huettermann, M. (2021). Fan engagement in professional team sports Digital Marketing in Switzerland View project. https://www.researchgate.net/publication/357396428 Ratten, V., & Dickson, G. (2020). Big data and business intelligence in sport. Singh, N. (2020). Sport Analytics: A Review. The International Technology Management Review, 9(1), 64. https://doi.org/10.2991/itmr.k.200831.001´ IEEE Staff. (2013). 2013 3rd International Conference on Consumer Electronics, Communications and Networks (CECNet). IEEE.