






































































Studia grazie alle numerose risorse presenti su Docsity
Guadagna punti aiutando altri studenti oppure acquistali con un piano Premium
Questa pagina non è visibile nell’anteprima
Non perderti parti importanti!







































































Paolo Cantore & Anna Novaresio Anno Accademico 2025/ SEM
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
Analytics supports smarter, faster, fact-based decision-making across the innovation lifecycle. Different analytics types serve different managerial levels:
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.
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 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 is the data point in the dataset that occurs the most.
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 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.
The standard deviation is manually calculated as follows:
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.
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/
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.
The probability of two mutually independent events happening at the same time is P(X and Y) = P(X) * P(Y)
The probability of event A is P(A) and the probability of its complement, an event not occurring, is P (Ac) = 1 – P (A)
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%
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.
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.
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.