




























































































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!





























































































Examples Of Statistics Application: § Big data: large scale data sets with high volume velocity and variety requiring advanced technologies for storage, processing and analysis. § Artificial intelligence : it is a simulation of human intelligence by machine s, enabling them to perform tasks, reason and learning autonomously. § Machine learning : mathematical expression of new data, that id automatic. o Deep learning (it is part of machine learning): o Business analytics : data-driving decisions making using statistical analysis fro business improvement. § Data mining : process of discovery meaningful patterns, trends, and insights from large datasets through statistical and computational techniques. § Predictive intelligence : predictive maintenance uses data analysis to predict and prevent equipment failure before they happen. § Business intelligence: it means putting information/ gathering, analysing, and visualising data to gain actionable insights that supports strategic decision making § Dashboard : practice of presenting key data and metrics in a visual format typically through a centraliste interfacce or dashboard. Ø Data visualisation : visual representation of data (ex. Graphs) § VOC (Voice of the Costumer): collection and analysis of costumer's feedback, preferences and expectations to understand their needs.
The main topics of statistics are:
The decision-making process follows a specific order: 1 - Problem: first of all, we have to choose which the problem is and to pose a question that we need to answer. 2 - Data: according to the problem we want to solve, we have to collect some data. We can collect data from scratch, or we can use data that we have already collected for some diSerent reasons. This basically means that we can choose whether to use primary data (when we collect them) or secondary data (when they have been already collected).
3 - Information: we have to transform data into information. This transformation process is done by descriptive statistics. 4 - Knowledge: we want to generalise the information we have to a wider range of cases. This generalisation process is done by inferential statistics. 5 - Decision: the answer to the initial problem. ! Many company usually start from the ‘answer / decision’ step. Tu us is strong since when we start from the solution we want to obtain, we will always find some data that confirm our thesis, however, this does not mean that it is the correct solution. In fact, we have to start from the ‘question step and collect the data, analyse them ,.., to find a decision.
Data source s can be divided according to the time and the purpose for which they were/ are collected: Ø Primary data : those data are collected to fulfil specific research goal. Primary research involves finding out new, first-hand information. Ø Secondary data : those data are / were originally collected for other aims but are used to support our research question. Secondary research involves gathering existing information. We can divide data into:
Ø Primary data : those data are collected to fulfil specific research goal. Primary research involves finding out new, first-hand information Pros : o Directory relevant to the business o Up-too-date data obtained o Competitors do not have access to the findings Cons : o Time consuming o Of ten expensive o Results may be misleading if the research (sample size is too small, questions are unclear or there is interviewer basis). Ø Secondary data : those data are / were originally collected for other aims but are used to support our research question. Secondary research involves gathering existing information. Pros : o Often quick and easy to collect o A wide range of secondary data is available, especially on the internet. Cons : o Data may not be reliable or up to date o May not be totally relevant o May not be in a form that is easily interpreted and analysed.
§ Parameter : a summary measure that is computed or describe a characteristic of the population Ex. Mean consumption of wine § Statistic : a summary measure that is computed to describe a characteristic of the sample therefore depending not he sample used to compute it. Where: Ø Population: the totality of objects under consideration Ø Sample: it a part of the population a group of the population. In other words, a sample is a portion of the population that is selected for information collection and analysis. Therefore, we use the parameter to summarise population feature while we use statistics to summarise sample feature and then we use inference on the population from the sample.
How can I understand if the sample/result are reliable? What is important when collecting data is to collect them randomly. The random sampling is a procedure in which each parameter of the population is chosen strictly by chance, each member of the population is equally likely to be chosen and every possible sample of \n\ object is equally likely to be chosen. The resulting sample is called a random sample. The sampling process and procedure are a multitude, but all of them in a way follow randomness. v Dealing with Uncertainty Statements: § “Italians drive car: a survey shows that only 35% do not respect the speed limit” è actually, we cannot say if the people answering the survey were honest or not, in fact a survey means that people say things, and answer a question it. Therefore, it is not objected è It is unclear the moment and the duration of such event. è The statement is trying to make the readers think that 35% is a low number, because the statement says ‘ only ’ § “This is the biggest aquatic park in Europe”
è There are many ways to quantify ‘big’, we cannot say in which way it is the biggest; there are many ways to measure the same thing § “90% of our customer are satisfied” è Maybe the customers are very few, the base is important è There is selection hazard, in fact tit is the 90% of the costume that answered the survey and not the 90% of the costume è We cannot fully comprehend what satisfied means § “The shampoo makes hai up to 4 times brighter” è ‘Up to’ means that it could be also lower’, this kind of sentences are used in advertising § “The San Domenico Ski resort has a good 35 kms of ski slope!” è They want you to thing that 35 is a high number, saying ‘good’, but is it not § “The visitors have increased by 300% in the last year!” è The initial base is missing.
By columns : The variables are written by columns. The value is called ‘ observed variable’ since we have the values of those variables. When we do not have the values, we call them ‘ random variables’ A variable is a characteristic of a statistical unit (the single element in our data set, in our row) that can assume more than one value (it cannot be constant). To be a variable it needs at least 2 existing values, a variable is something that should vary. By rows : we have statistical units, which are the element that belong to the sample or to population. The number of rows is indicated by N = population size n = sample size è We have to remember that the sample size is important, but what is pivotal the randomness.
The values that the variable can assume are important, and those values are called distinct values or modalities. According to the type of distinct values, I can understand what type of variable I have. There are two possible ways to classify the variables:
Revenues Quantitative Ratio Scale Price of a product Quantitative Ratio Scale Years Quantitative Interval Scale Kelvin Degrees Quantitative Ratio Scale Date (day of the year) Quantitative Interval scale Hour Quantitative Interval Scale GPA Quantitative Interval Scale è Satisfaction level: o It is a Quantitative Interval Scale if you have at least 1 to 7 modalities. o It is a Qualitative Ordinal variable if you have less than 7 modalities Ex. low-mid-high o It is a Qualitative nominal variable if you have 2 modalities Ex. Yes/No è Starting from a high level of richness, it is possible to reclassify it in a lower level of variable. However, it is not possible to do the opposite. Dummy Variable: It is a qualitative nominal variable that can only assume two values: 0 and 1. It is strange since we can apply a lot of quantitative methods even if it is a qualitative variable (x ex. we can compute the percentage of it) Data Visualisation It is the way to visualise the variable, and so the way to summarise the variables and the information. According to the type of data visualisation we want to do, we have to answer this question: “how many variables?”; we have to remember the lower, the better, it important to simplify. § Only one variable: univariate data visualisation § Two variables: bivariate data visualisation § More than two variables: multivariate visualisation. (It is not easy to create a variable that is putting together two diSerent variables)
We can divide Univariate Data Visualisation into two subgroups:
X fi Pi Fi X1 f1 P1 F1 (P1) X2 f2 P2 F2 (P1+P2) .. .. .. .. Xk Fx n Pk 1 Fk= 1
Ø Each row is my last dinners where I didn’t cook Analyse each row: Ø The first column is a qualitative variable which is nominal Ø The second column is qualitative nominal variable Ø The third columns is a qualitative ordinal variable Analyse the raw data concerning the 1st^ variable: Type of food Frequency Distribution Table: Type fi pi Fi Ethnic 3 0.3 / Fast food 4 0.4 / Pizza 3 0.3 /
Analyse the raw data concerning the 2nd^ variable: Home delivery Dummy variable – it can assume only 2 values: 1 and 0 Home Delivery fi pi Fi 0 6 0.6 / 1 4 0.4 / 10 1.0 / Analyse the raw data concerning the 3rd^ variable: Price Price fi pi Fi Low 4 0.4 F1=p Mid-low 3 0.3 F2=p1+p2 oppure F2=F1+p2 —> 0.4+0.3=0. Mid-high 2 0.2 F3=p1+p2+p3 oppure F2=F2+p3 —> =0. High 1 0. 10 1. o The Fi is important so as to calculate some other values o In any possible frequency distribution table, the last column (Fi) must be equal to 1. o Being an ordinal variable, the pie chart is not an optimal choice of representation. A better way is through the bar chart (It is not wrong to use the pie chart, but the best option remains the bar chart). Ø In this case we can use the same colour, it is not mandatory to use diSerent colours as in pie chart. Ø We put the variables at the same distance.
o Fi: cumulative function, is the Frequency F(x) is the specific variable the value can assume. The cumulative frequency is the relative frequency of the values that are equal to or lower then x (specific variable) Ex: Let’s visualize it: Stick Chart: Prof advice: on the y axes, you can both put pi and fi, but it is more eSective to put the relative frequency (pi) o It represents the Pi o The variable ‘number of cars’ is a quantitative discrete variable and being a quantitative variable, we don’t have to put all the variables at the same distance o The diSerence to the bar chart is that here the starting point is 0 and we have sticks Step chart (for cumulative frequency):
The height of each step corresponds to the percentage o Cumulative frequency means that frequencies are cumulated, so we start from 0 and it has to reach 100%. o We have to sum all the frequencies. o All the frequencies are inside a point and therefore we have diSerent steps. Ex. Of visualisation of a numerical discrete variable with many distinct values or a numerical continuous variable We need to bin the variable because in this way it can’t be visualised. The variable has to be reclassified with BINS (classes/intervals) Ø Bins with equal width In this case, the role of the analyst is quite easy: choice of the number of bins Ø Bins with arbitrary width In this case the role of the analyst is crucial and quite complex: select the size of each bin v Option 1: bins with equal width Ex. X= n of WhatsApp messages sent by a sample of 20 people on Christmas Day § The variables are numerical discrete § Sample size: 20 § Raw data: 76, 74, 86, 34, 48, 12, 48, 54, 98, 108, 64, 72, 28,52, 82, 88, 92, 54, 106, 60 7 - step process:
§ Frequency Density Ci = is the frequency density and it is the percentage of observations for each unit interval, on average. The frequency densisty is what can be used for comparisons. § Width of each BIN Wi = it important when we choose BINS with arbitrary width, however it is important to put it also in this case since it is important to calculate the Ci.
We can understand the shape of the distribution. The shape is elated to the way the variable is distributed. in statistics the variables have two tails.
Ex. Datas: Ø 50 shopping malls Ø X= “distance from Milan” (in Km) Those data have already been binned; we have only to visualise them. We have to take into consideration the fact that the widths of the classes are diSerent.
è Ogiva Recap of univariate data visualisation: Charts Variables Pie/Donut chart Qualitative nominal (ordinal) Bar chart Qualitative ordinal (nominal) Stick chart Quantitative discrete – few distinct values Step chart Quantitative discrete – few distinct values Histogram Quantitative continuous – many distinct values Ogiva Quantitative continuous – many distinct values
It is very used in financial systems. Time series plot It is interesting because we are creating a timing longitudinal analysis. Therefore, the same variables across the time. The variables are two: the variable we want to analyse and the time. We need: Raw data: time-related statistical unit (ex. Year, quarter, month week, day, min., sec…) From the statistical unit we can measure or count a single variable which usually is a quantitative variable. Some example s of variables are: § revenues, § prices, § orders, § GDP