Docsity

Business Analytics SEM0222, Appunti di Business Planning

Anteprima parziale del testo

Scarica Business Analytics SEM0222 e più Appunti in PDF di Business Planning solo su Docsity!

BUSINESS

ANALYTICS

Paolo Cantore & Anna Novaresio Anno Accademico 2025/ SEM

I- BUSINESS ANALYTICS INTRODUCTION

Business Analytics is the application of data analytics to the field of business. An example of how business analytics might be applied is offering specific discounts to different classes of travelers based on the amount of business they offer or have the potential to offer. The key-word is target, with business analytics we can target the perfect buyer to present to them the product in a certain way and for understand as much as possible their information. For ex. You are in the business of designing, manufacturing and selling medical equipment used by hospitals. You are able to understand the possibility of equipment failure well before the equipment actually fails, by carrying out analysis of the errors or warnings captured in the equipment logs. Business analytics must not be confused with

  • Data analytics is the analysis of data, whether huge or small, in order to understand it and decide how to use the knowledge hidden within it.
  • Data science is an interdisciplinary field that derives knowledge from data and applies it for predictive or other purposes. Expertise about underlying processes, system and algorithm is used.
  • Big data analytics is the analysis of huge amount of data or the analysis of difficult-to-crack problems. Usually, this requires an enormous amount of storage and/or computing power, including massive amounts of memory to hold the data and a huge number of high-speed processors to crunch the data and get its essence.
  • Data mining and machine learning; Data mining refers to the process of mining data to find meaningful patterns hidden within the data. The term data mining brings to mind mining earth to find useful minerals. Just as important minerals are often buried deep within earth and rock, useful information is often hidden in data, neither easily visible nor understandable. Data mining uses techniques such as supervised machine learning and unsupervised machine learning to perform mining tasks. Data techniques, algorithms and tools have been around for a very long time, recent developments in technology, computation and algorithms have
  1. Marketing and Sales Marketing and sales teams use business analytics to identify the most effective marketing channels, target the right customers and tailor offers based on factors like geography and buying behavior. In retail, analytics helps create bundled product offers based on purchasing patterns. Logistics companies use it to optimize delivery times and meet commitments. Airlines analyze travel history to design personalized offers and build customer loyalty. Travel agencies use past customer data to understand preferences- such as adventure, spiritual, or historical trips- so they can focus their marketing efforts more effectively and efficiently.
  2. Human Resources Retention is the biggest problem faced by an HR department in any industry, especially in the service industry. An HR department can identify which employees have high potential for retention by processing past employee data.
  3. Product Design Risks factored in during product design, subsequent issues faced during manufacturing, and any resultant issues faced by customers or field staff can be a rich source of data. This analysis may reveal issues with materials for example.
  4. Service Design Like products, services are also carefully designed and priced by organizations. Identifying components of the service also depends on product design and cost factors compared to pricing.
  5. Customer Service and Support Areas This is an area in which data analysis is applied significantly. A service strategy can be accordingly drawn up, or necessary changes to the support structure may be carried out, based on the analysis of the data available to the industry.
  6. Innovation

Analytics supports smarter, faster, fact-based decision-making across the innovation lifecycle. Different analytics types serve different managerial levels:

  • Descriptive & diagnostic  operational managers
  • Predictive & Prescriptive  Strategic and executive levels Innovation analytics integrates processes, people, knowledge, quality and service to drive competitive advantage. Knowledge management and organizational vision drive innovation. Competitive advantage comes from transforming information into actionable knowledge. Data analytics (process)
  • data modelling (strategic output) enable innovation success. Innovation analytics answers key business questions: Descriptive analytics – What happened and why? Market analysis, competitor research, customer feedback Situational Analytics – What is happening now? Market protentional assessment, sales trend, industry activity Predictive Analytics – What will happen next? Forecasting demand, estimating market success, guiding strategic decision

Lifecycle

The steps of the typical business analytics project are as follows:

Sample means a section or subset of the population selected for analysis (random selection or selected using stratification). Several sampling techniques are avaible to ensure that the data integrity is maintained and the conclusions and hypothesis can be applied to the population.

  • Random sampling, every member of the population has an equal chance of being selected. Selection is completely random, ensuring fairness and reducing bias.
  • Systematic sampling, samples are selected at regular intervals from the population (e.g. every 10th^ record or daily over a fixed period)
  • Cluster sampling, the population is divided into cluster (group), and random samples are taken from each cluster to ensure representation across different segments, especially when the population is geographically or structurally diverse. Sampling benefits are reduced data volume while still retaining key characteristics of the overall population, faster processing and analysis enabling quicker application of insight, lower computing requirements for making analysis faster, easier and more efficient. Sampling caveats are the risk of inaccurate results if sampling is poorly designed and a non-representative sample (e.g. using only one month’s data to represent an entire year) may fail to capture important variations and trends, leading to misleading conclusions.

Statistical parameters of interest

Mean

The mean (average) is a commonly used measure to quickly summarize dataset. It provides a simple way to represent overall performance or trends over a period of time. Benefits vs caveat:  The means offers a straightforward way to evaluate performance and long-term trends.  Sensitivity to outliers: very high or low value can skew the mean.  No volatility: it does not capture the data dispersion, how data are volatile.

 No trends: it doesn’t capture up/downwards trends in a time series.

Median

Median is the middle value by ordering the values in either ascending order or descending order. In many cases, median may be more representative than mean. It clearly divides the data set at the middle into two equal partitions; that is 50 percent of the values will be below the median, and 50 percent of the values will be above the median. If you have to work out median through manual calculations, you have to arrange the data points in ascending or descending order and then select the value of the middle term if there are an odd number of values. If there are an even number odd values, then you have to sum up the middle two terms and then divide the sum by 2.

Mode

Mode is the data point in the dataset that occurs the most.

Range

The range is a simple but essential statistical parameter. It depicts the distance between the end point of the data set arranged in ascending or descending order (i.e., between the maximum value in the data set and the minimum value in the data set). This provide the measure of overall dispersion of the data.

Quantiles

Quantiles are also known as percentiles. Quantiles divide the dataset arranged in ascending or descending order into equal partitions. The median is nothing but the data point dividing the data arranged in ascending or descending order into two sets of equal number of elements. Hence, its is also known as the 50th^ percentile.

Standard deviation

The standard deviation is manually calculated as follows:

  • First the means of the data set or distribution is calculated
  • Then the distance of each value from the means is calculated (the deviation)
  • Then the distance as calculated previously is squared
  • Then the squared distance are summed up

Probability in simple terms is the chance of an event happening. In some cases, we may have some prior information related to the event; in other cases, the event may be random. If an event is not likely to happen, the probability of the same is 0. However, if an event is sure to happen, the probability of this is 1.

Rules of probability

Probability of mutually exclusive events

The probability of two mutually exclusive events (say X and Y) happening at the same time is 0 as by definition both do not happen at the same time: P(X and Y) = P(X ᴖ Y) = 0. The probability of n mutually exclusive events (say A1, A2…AN) happening at the same time is 0 as by definition all these events do not happen at the same time: P(A1 and A2 and…AN) = P(A1 ᴖ A2 ᴖ… ᴖ AN) = 0. However, the probability of one of the two mutually exclusive events (say X or Y) happening is the sum of the probability of each of these events happening: P(X or Y) = P(X U Y) = P(X) + P(Y). Example: What is the probability of a dice showing 1 or 3? P(A) = 1/ 6 and P(3) = 1/ P(1 or 3) = P(1) + P(3) = 1/6 + 1/6 = 2/6 = 1/

Probability of mutually non exclusive events

Mutually nonexclusive events are the ones that are not mutually exclusive; two events A and B are mutually exclusive if the events A and B have at least one common outcome. The probability of two mutually nonexclusive events (i.e., the sum of the probability of each of these events happening minus the probability of both of these events happening at the same time, or in other words together) is P(X or Y) = P(X U Y) = P(X) + P(Y) – P(X ᴖ Y). The probability of n mutually nonexclusive events is P(A1 or A2 or …or AN) = P(A1 U A2 U…U AN) = P(A1) + P(A2) +…+ P(AN) – P(A1 ᴖ A2 ᴖ A3 ᴖ … ᴖ AN). Two sets are nonmutually exclusive if they share common elements.

Let us consider two sets of all numbers from 1 to 10 and the set of all odd numbers from 1 to 16: Set A = {1,2,3,4,5,6,7,8,9,10} Set B = {1,3,5,7,9,11,13,15} Two sets are nonmutually exclusive since they share the common elements of {1,3,5,7,9}. Example: An urn contains two red, four green, five blue, and three yellow marbles. If a single random marble is chosen from the box, what is the probability that it is a red or green marble? P(red or gree) = P(red) + p(green) – P(red)P(green) = 2/14 + 4/14 – 2/144/14 = 0.14 + 0.28 – 0.04 = 0.

Probability of mutually independent events

The probability of two mutually independent events happening at the same time is P(X and Y) = P(X) * P(Y)

Probability of mutually complementary events

The probability of event A is P(A) and the probability of its complement, an event not occurring, is P (Ac) = 1 – P (A)

Probability distributions

Random variables are important in analysis. Probability distributions depict the distribution of the values of a random variable. The distributions can help in selecting the right algorithms, and hence plotting the distribution of the data is an important part of the analytical process; this is performed as a part of exploratory data analysis (EDA). The following are some important probability distributions:

- Normal distribution, a huge amount of data is considered to be normally distributed if the distribution is normally centered around the mean. Normal distribution is observed in real life in many situations. On account of the bell shape of the distribution, the normal distribution is also called bell curve. The prosperities of normals distribution typically have 68 percent of the values within +/- 1 standard deviation, 95% of the values within +/- 2 standard deviation, and 99.7% percent

P(X=k)=(15 k)(0.2)^k(0.8)^15−k P(X≤4)= 0.0352 + 0.132 + 0.231 + 0.25 + 0. P(X≤4) ≈ 0.

- Poisson distribution, represents the independent events happening in a time interval. The arrival of calls at a call center or the arrival od customers in a banking hall or the arrival of passengers at an airport terminus follows Poisson distribution. Example: At a specific bank branch office, the average arrival rate is 20 customers per hour. Since customer arrivals occur randomly over a fixed period of time, this situation can be modeled using a Poisson distribution with a mean (λ) of 20. We are interested in the upper tail probability, meaning we want to find the probability that 26 or more customers arrive in one hour: Using the Poisson distribution with λ = 20, the probability of 26 or more customers arriving in an hour is: P(X≥26)=11.22%

  • Uniform distribution
  • Chi-squared distribution
  • Exponential distribution

Conditional probability

The conditional probability is the probability of event A occurring given that event B has already occurred. It is the probability of one event occuriring with some relationship with the other events. This conditional probability is written as P(A|B), meaning the probability of A given B has occurred.  If A and B are both independent events (where event A occurring has no impact on event B occurring), then the conditional probability of (A| B) is the probability of event A, P(A). P(A}B) = P(A)

 If events A and B are not independent (they occur both), P(A|B) = P(A AND B) / P(B) Conditional probability has many areas of application and is also used quite frequently in analytics algorithms. Example: In a group of 100 electronics shopping customers, 40 bought TV (event A), 30 purchased sound systems (event B), and 20 purchased a TV system and a sound system. If a customer chosen at random bought a TV system, what is the probability they also bought sound system? Step 1: P(A) is given in the question as 40 percent, or 0.4. Step 2: P(B) is given that is 0.3. Step 3: P(A∩B), this is the intersection of A and B, purchasing both A and B is 0.2. Step 3: Now use the formula to calculate the conditional probability. P(B|A) = P(A∩B) / P(A) = 0.2 / 0.4 = 0.5. The probability that a customer bought a sound system, given that they purchased a TV system, is 50 percent.

II – BUSINESS ANALYTICS PROCESS

The purpose of business analytics is to derive information from data in order t make appropriate business decision. Data can be real time or historical. Typically, you build a business model from historical data, and after you are satisfied with the accuracy of the model, you can deploy it in production for real-time data analysis.

 Data can be from a primary source, which is your own source—data from an internal database or from your own research. You have full control of the data collected.  Data can be from a secondary source which is a secondary place that sells data, or data that already exists apart from the business database. Some examples of secondary sources include official government reports, newspaper articles, and census data. The advantage of using primary data is that you are designing the type of information required for solving the problem at hand, so the data is of good quality, and less time is required to prepare the data for further analysis. An abundance of data may exist inside the organization in various databases: operational database, manufacturing and production database, HR and finance database, IT database, Data warehouse, NoSQL database, metadata. Most organizations store data across multiple databases, so business analytics often requires combining data from several sources. Because this data may have been collected for different purposes, it usually needs to be cleaned and prepared before analysis. This preparation process is called data munging or data wrangling, which involves transforming the data so it can properly address the business problem. Databases Many types of databases:  Operational database: this includes data related to day-to-day business transactions such as vendor management, supply chains, customer complaints and customer feedback  Manufacturing and production database: this includes data related to the manufacturing process, production details, supply-chain management, production schedule, and repair and maintenance of machinery  HR and finance database: this includes data related to HR and finance functions such as employee leave, personnel data, job skills, attrition, and salaries.  IT database: this includes data related to information systems such as IT assets inventory, licensing details, software, and various logs.  Data warehouse: A data warehouse is a unified database that integrates data from multiple sources within an organization. Before storage, the data is cleaned, normalized, and preprocessed to improve analysis, reporting, and decision-making. It also supports online

analytical processing (OLAP) and features like data summarization and multidimensional analysis (slice and dice).  NoSQL database: this addresses the limitations of relational databases and handle the massive amounts of data generated on the web. They can store both structured and unstructured data and do not require a predefined schema before storing data  Metadata: This is data about the data. It is descriptive information about a particular dataset, object, or resource, including how it is formatted and when and by whom it was collected (or example, web metadata, XML, and JSON format). Sampling A sample is “a smaller collection of units from a population used to determine truths about that population” (Field, 2005).  Sampling in analytics. When big data infrastructure is unavailable, analysts often use a sample (a smaller subset of the population) to build analytical models.  Representative sample. The sample must accurately represent the population to ensure reliable conclusions.  Sampling choice. The sampling technique depends on the business problem and type of data being analyzed.  Time-related data (Time-series) Data collected through repeated measurements over time. Used for studying trends, cycles, and seasonal patterns (e.g., GDP trends, housing sales, stock market data, Twittersentiment). Cyclic patterns: Fluctuations without a fixed time period Seasonal patterns: Changes that occur at specific times of the calendar. For large time-series datasets (e.g., stock trades recorded every millisecond), analysts often sample selected time periods or records instead of using all data.  Non–time-dependent data (Cross-sectional). Data where time has no significance (e.g., employee income, job skills, credit transactions, age, gender) Records are independent of each other, and analysts can sample randomly for analysis.  A Probability sampling (fair selection). Ensures every member of the population has an equal chance of selection. The common sampling methods are: o Random sampling: Every individual has an equal probability of being selected.

  • Ordinal: Categories with a defined order, but intervals are not guaranteed equal (e.g., gold, silver, bronze; survey agreement scales).
  • Interval: Equal intervals between values but no true zero (e.g., temperature in Fahrenheit).
  • Ratio: Equal intervals and a true zero, allowing meaningful ratios (e.g., height above sea level, water levels). Before analysis, it is important to identify and prepare variables with the correct data types, since many tools allow transformation between types Handling missing Values Databases sometimes have missing values because data wasn’t recorded. If these missing values are used directly in analysis, the results may be inaccurate or misleading, so they must be handled before analysis. Common methods include: ✓ Ignoring the values
  • Not very effective but sometimes used.
  • If only a few records are missing and the dataset is large, those rows can be deleted without significantly affecting results.
  • Often used when the label or meaning of the value is missing. ✓ Filling with the average (mean) or mode
  • A simple method where missing values are replaced with the average (for numeric data) or mode (most frequent value) of that attribute.
  • Not suitable for time-series data, where values change over time (e.g., daily soil moisture). ✓ Filling with the mean of the same category (bin)
  • If data is grouped into categories (e.g., income groups like high, medium, low), missing values can be replaced with the mean value of that category. ✓ Predicting the most probable value
  • Use other attributes in the dataset to estimate the missing value.
  • Statistical or machine learning methods such as Bayes’ theorem or decision trees can be used to predict the most likely value. Handling unwanted values

Duplicate, junk, and null characters should be cleaned from the database before the analytics process. The same process discussed for handling empty values can be used. The only challenge is to identify the junk characters, which is sometimes hard and can cause a lot of issues during the analysis. Data Transformation Sometimes raw data does not produce meaningful results during analysis because it may be skewed, not normally distributed, or measured on different scales. In such cases, data transformation is required to make the data more suitable for analysis. Common transformation methods include: ✓ Normalization – scaling variables to a common range Some analytical techniques, such as regression, assume that data is normally distributed and that all variables are treated equally. However, predictor variables may have different measurement units, which can cause some variables to influence the results more than others. To solve this, variables are normalized to a common scale.

  • Z-score Normalization Also called zero-mean normalization, this technique standardizes data using the mean and standard deviation. A new value is calculated by adjusting each value relative to the dataset’s mean and spread. A’ = (A – meanA) / SDA ✓ Data aggregation – combining data values into summarized forms Data aggregation involves creating new variables by applying mathematical functions (such as sum or average) to one or more existing variables. This helps simplify data and improve understanding. To make data closer to a