Scarica Data Communication Society e più Appunti in PDF di Analisi Dei Dati solo su Docsity!
D A T A C O M M U N I C A T I O N S O C I E T Y – T H E O R Y
DEFINITION AND FRAMEWORKS
WHAT IS DATA?
Datafication = method to transform things into data, in particular “the transformation of social action into quantified data, thus allowing for real-time tracking and predictive analysis. Data = “the raw material produced by abstracting the world into categories, measures and other representational forms
- numbers, characters, symbols, images, sounds, electromagnetic waves, bits – that constitute the building blocks from which information and knowledge are created” (Kitchin, 2014). To understand the meaning of a piece of data, which is considered as the raw material, a context is needed: if you know the context that piece of data becomes information (data + context). But a piece of information is irrelevant for you if you are not able to connect it to meaningful actions: when it is connected to meaningful actions, information becomes knowledge. For example, if we measure temperature: the temperature is the data, and it becomes information as when know he context (the temperature of human body). Dimensions of data – how can data vary? form o quantitative (numeric records) = easier to aggregate and manipulate because you can use math rules o qualitative (non-numeric) = qualitative data has to be translated into numbers in the computer structure – predefined model or not? o structure = it follows a model ( for example, ID number of ID cards in Italy ) o semi-structure = there is no predefined model, but it changes according to the needs of the moment o unstructured = it doesn’t follow any model at all ( for example, the notes taken in class ) source o captured = intentionally recorded for a purpose o derived = data that comes from manipulating other forms of data o exhaust = byproduct of other processes ( for example, power consumption data: the amount of electricity used was a data originally recorded for bills and then thrown away since storing was very expensive; but now storing data is cheaper and this type of data has become primary data from which we derive data, and it is used a lot for purposes ) o transient = lost data and not captured at all producer – who is producing this kind of information? o primary = produced ad hoc o secondary = made available ( for example, asking some information the municipality about people living in the city: this is not primary data, but secondary since it comes from a study conducted by others and then made available to me ) o tertiary = derived from primary and secondary type of data o attribute = features of a phenomenon ( for example, eyes color, weight of a car, year you were born ) o indexical = they don’t tell anything about entity, but they are linkable to other data, and they are useful to connect data – a piece of data connected to an entity is an indexical data ( for example, page number which is useful to find certain information in the book ) o metadata = data that describes how data is connected, meaning that metadata describes you other data ( for example, collecting information about hair color about people in this room means classifying these pieces of data into specific categories such as dark, light, blond hair… -the classification chosen is metadata )
DIGITAL MATERIALITY
Digital materiality: digital vs. analog Digital materiality refers to how to record and store data
analog data has a direct relationship with the entity is measured ( for example, mercury thermometers which goes up and down depending on the body’s temperature – having a 1 to 1 relationship with the temperature ) it doesn’t have units digital information is digital, so it expresses through numbers ( for example, in digital thermometers we have a sensor that captures the temperature and transforms it into number ) very kind of digital information has boxes, it is segmented; at the very basic level, the smallest box you can have in digital information is a bit (which is only 1 or 0) and can be understood only through binary code The microprocessor is a machine that has a certain number of pins ( as chip, which has a sort of legs coming out of it that are the only way through which the chip communicates with the outside world – and the only thing a chip can understand is if there is current coming in the pins or not ) – the microprocessor doesn’t understand letters or images, but it can understand only if there is current coming to this pins or not, which means if we need to use a microprocessor we need a method to communicate with it, using only “there is currant” or “there is no current”. And this method is binary code. What is binary code? How does it work? In our daily life, we use number with a base of 10, because we have 10 fingers. That is the same principles on which binary is based: here the base isn’t 10, rather it is 2. You write numbers in boxes starting from right: the first box is 0, then we have 1 and so on. The position of numbers is very important, since it means the exponent of the base. The number in binary in 50. Digital information is more convenient, but less conventional because you have to transform it (and to transform it, you have to simplify it). Transistors = this is the key technology that has allowed the development of IT as we know it today; it is an electronic component that allows you to do logical operations and mathematical operations in binary in an automatic way. Since the 1950s progress in silicon transistors made microprocessors drop in costs and size, which allowed informatics to intertwine with many processes of life (there are thousands and thousands of transistors in one chip now). However, the fact that binary processes became smaller and cheaper is not enough to explain the world today: we have to mention protocols. in the 1970s we agreed in a way to transmit data from computer to computer, in other words a protocol for data transmission emerged as dominant: the TCP/IP (protocol to which all the machines that want to speak on the internet must align) – for example, this protocol allows to know which elements are number or letters in a data in binary; moreover, data is sent in packets (labelled) on the Internet that have to be reassembled once received, since they come in a very random order and not continuous and ordered important for data whose integrity and security are critical ( for example, if you send an e-mail, all the words must be sent integrally ) other protocols: for example, when watching videos on YouTube, the protocol used is UTP (it doesn’t check if you got all the packets or data, because it privileges the speed so that the video goes continuously and in order) Thanks to share protocols, any item can speak with each other, without considering the type of item we are using. Storage is another thing that has become easier: now that we have cheaper processors, so we can put those processors into sensor to have a lot of data. In 1980s one gigabyte of storage would have cost 1 million dollars, while now it costs 10 cents of dollars: why? what killed the price of storage? Streaming, because people don’t download anymore. The same things happened with processors.
when you can see the source code, so the software is released alongside its source code, we speak about open- source software. So, open-source software = software in which you can see and modify the source code in high level language. For example, Firefox is open source since you download and modify it. o a software is made by many pieces of software in which we can find also open sources o entails a lot of security issues, this because anybody can contribute to them (also malevolent parties) o a lot of large infrastructure we use today rely on open sources most of the software we use every day is, instead, closed source = you cannot see nor modify the source code, you just file a license to use the executable (you cannot buy license to use it)
WHAT IS A DATABASE?
Database = a data storage technology which organizes data by interlinking it; the core elements that compose a database are:
- values = what populates the cells of a table (tables are the way through which we organize dataset ) in Excel, which are organized in records with keys
- keys = unique identifiers of records (= data structure that is composed of fields or variables); each records have a unique identifier (in the left side of the screen in Excel) For example, if you have two tables (one with personal data and the other with medical information, how can I link one table to the other? The keys are the element that allow us to link them together: in this case the key is the Tax ID (codice fiscale) because it is univocal code that identify a unique person.
HOW TO ESTIMATE THE VALUE OF DATA?
Most of the money are spent in data cleaning, that means making data usable. Why should we invest money in cleaning? And why should we follow the five steps of data? Because there is value in what we are doing, since someone will pay for get this work done (that is collecting and analyze data). To understand the valuable information, it has to be considered in the context ( for example, it is less valuable for me the price of stock of Apple, but it is valuable for me the information about where I will have class tomorrow ). The value of a piece of information can be modelled as following:
Vi = Uki − Zki − Ci
o Ui = expected utility of decision K knowing I (the benefit that a certain decision will bring you or how important the decision is to you, knowing a particular information) o Zi = expected utility of decision K knowing I (the benefit that a certain decision will bring you or how important the decision is to you, not knowing a particular information) o Ci = cost of obtaining information I (in most case, the cost doesn’t refer to money, rather it refers to time and effort in order to have this information, that is the cognitive cost)
The more a decision is important to you, the more valuable is the information: an information is more valuable if it makes me taking a better decision (if I don’t know this information, I will take a worse decision). When you design your way to communicate a certain kind of data, you have to keep in mind which is your target, the Uki and the expected costs. If we want to make a piece of information more valuable, we can work on:
- Uki how can you make Uki higher the Zki? You need to show that that piece of information is very important for a decision ( for example, air quality becomes more relevant in the context of certain decisions, such as when a woman is pregnant )
- Costs this part reducing cost is a pure matter of design ( how easy is it for you to get this type of information ?); the emotional cost, instead, has more to do with culture since it has to do with the way people interact with the environment
FOUR MAIN WAYS TO ACQUIRE DATA
Four main ways to acquire data, divided in two families: Data made available for offline use - owners of these data want you to have these data, by providing people with ways to download data to conduct analysis
- Downloading the data = means that whoever owns the data, extract the data from the database, store it in a file and allows you to access the data. o often, the file is not dynamic: if the database changes, the file remains the same; also, the format of the file cannot be changed ( for example, it would be useless for social media because social media changes continuously ) o cheapest way to collect data
- Querying the database = you speak directly to the data base, so you are provided with access to the database, and you can have exactly the data that you want; however, you need to know how to speak to database (the most widespread language to interact with the database is SQL) o very precise but harder to do, since users need to understand the database structure o potential heavy load on the database and hardware o nobody tends to give you the access to the database because it would lead to security issues
- Using APIs (Application Programming Interfaces) = programs that respond to requests for data by accessing a database and transmitting the results (this is in-between you and database, since APIs goes to the database, scratches the data that you need and gives it to you) o request can come from a human or from another software o APIs protect the database from access and manage usage: APIs keep track of each access, so we can charge per call o they are low barrier of access than querying, but retain the flexibility of querying: API can return different shapes of data, potentially according to the users’ need (shapes are encoded in the API) o not heavy as querying since you don’t have to download data Data is not made available for offline use - whoever owns the data is not going to make it possible to download information ( for example in social media : in the terms of service, which is the contract that you sign when you make an account on social media, it is explicitly said that you cannot download information )
- Scraping = you can build robot that go online and acquire data that you need as if they were human user (and save it in a database) o scrapers are programs tailor-made to go on certain websites, obtain data, and return in, usually into a user database o hard to make, uncertain, sometimes illegal How does scraping works? When you want to use a webpage, your computer (client) makes a call to a server (= special kind of computer whose only purpose is to serve, to present stuff to somebody who requests 24/7). The server sends to your computer an HTML file, which is a particular class of language known as mark-up language: that is a language that doesn’t really do things, so you cannot have inputs, but it just specifies how a document should look and be used with Hypertext; moreover HTML is the only language a server uses: a web browser is a player of HTML files, which specifies how the document should be built (this is the reason why documents opened in different devices looks differently, because the servers are different). So, whatever you are seeing in your screen, unless it is video or audio, is HTML file: that means that if you want to extract data
- closed data (per-use, custom license) = the owner of data establishes a license one-to-one with the user (if you want the data, you must accept the data and use those data only for the purpose decided)
- shared data licenses (pre-emptive license) = they don’t tell you exactly how to use the data, but they will tell what NOT TO DO with those data (you can use data for whatever you want, but not for some cases)
- open data (open license) = data can be used for whatever you want, without limitation, including reselling An example of open data is the sex offender register published in the USA, where everyone is able to see also where these people live. This affects also house-selling in some areas, meaning that the value of real estate lowers and people with less money come in: therefore, the neighborhood become poor and also schools stop to be built (since the district has no money), becoming a ghetto. This example of open data and transparency tells us that it is not always good, because they can manage part of the population. To access data, there are different types of access :
- anyone = open license ( for example the bus timetable )
- public access = license that limit use, so everybody can access but you cannot do whatever you want with those information ( for example, Twitter feed )
- group - based access = it means that ensembles of people can access the information, but they need to authenticate themselves ( for example medical data can be accessed by all the doctors, and they have to authenticate themselves before accessing )
- name access = you as a person have access to data, since there is a contract between you and the data owner which is regulated by the contract ( for example the driving license )
- internal access = data can be accessed only by people inside the company, and it is regulated by an employment contract with policies ( for example sale reports ) Credit score = when you ask the bank for a loan, the bank assumes the risk that you will not pay back, so the bank prices the loan depending on the risk of not having the money back (that is the interests). Anyone could enter a bank and ask for a small amount of money, so credit has become something offered to everybody in the population (in the past, loan was given only to merchants or kings): this led banks to the need of knowing the risk that you will not pay back. Everyone has a credit score, which is a number that express the likelihood that show how it is likely that we pay back a debt that we have contracted, and it is publicly available. Credit score is based on very simple information, such as if you have borrowed money in the past and if you have paid it back, your health (if you have a terminal disease, the bank is less likely to lend you money). This is an example of scoring society , meaning that society keeps assigning metrics to people: health score = the likelihood that you got ill, which is important for healthcare insurance o factors could be medical history, physical activity, consumption style… driving score = probability of having a car accident o in Italy, car insurance has bonus or malus depending on how many accidents you have done o another factor is where you live marital score = probability of premature ending of a marriage, which is useful for bank that has to give mortgage for a house in a couple split o factors are difference in income (the amount of money each partner has), past relationships, percentage of housework done by the partner (and difference in the way the physical beauty is perceived by others) Data about society and people are collected by data brokers, which are middlemen between suppliers and customers that collect and sell data. So, data brokering is a medium through which data are collected, bought and sold. In particular, data can be collected legally or illegally legal way = data gathered with the consensus of subjects ( for example fidelity cards, through which information about your purchasing are collected ) illegal way = data breaches , which is the black market for data brokering (people who are selling information illegally) o when a data breach happens, the company is forced to report within 72h o “Have I been Pawned?” is a website that shows if your account has been in a data breach
DATA QUALITY
Starting from the concept of “value of information”, it refers to how much good we expect from a certain decision, knowing a certain information. This is useful to estimate how much is an information valuable for a subject. Value of information is a result of data cleaning and integration. At a macro-level, we consider the way data is supplied in a society, looking at two issues in data supplying that are equal impactful in raising costs:
- Dispersion = data comes from different sources in different formats, and it is also possible that some data are not equally accessible. Therefore, the cost of joining data together is proportional to the dispersion and heterogeneity: the more dispersion, the higher costs. o data inertia = the more effort you put in a certain way of working with data, the harder is for you to tell them to change their way of collecting data For example: informal constructions are buildings or part of buildings built without permission. In Italy informal constructions are managed by prefectures (offices of the central governments in cities): each prefecture produces its data in different format, and then there is one single person in the Minister of Infrastructure, who receives all these emails every month and his only job is trying to collect all this data in a unique file. In a situation of dispersion like this, this guy spends a lot of time in order to collect data and is constantly lacking behind.
- Siloing = data exists, but it is kept by a single department or organization for itself, and no access is provided outside. This leads to data inertia, because whoever needs this data will try to collect it by itself. For example, the Financial Minister of Albania has data about incomes of Albania and its citizens, but it keeps it for himself. However, Tirana needs those data for social housing (case popolari): to give houses to people, Tirana has to control if those people is poor and so it needs to know their average income is low; moreover, Tirana has no idea about how much money people do. Since those data are soiled, Tirana sends investors to houses to control what people possess to understand people’s income: now they have a system that works, and it is almost impossible to change it (also because they have invested so much). Why do we want to interconnect data? complexity – urban systems tend towards complex systems combination – understanding and governing complex systems require models combining different data sources cost - the cost of combining data sources is proportional to their heterogeneity and dispersion
- accuracy = how close is the data that we have to the phenomenon that the data is supposed to represent o the level of accuracy depends on the purpose ( for example, if I measure my body temperature it is important that the thermometer measures accurately if I am 37° or 40°; however, it doesn’t need to express the result too accurately, such as 37,98700°) o the problem of names (“Genève”, “Geneva”, “Genf”), character encoding and upper-/lowercase, can be › syntactic = does X belong to the domain of information? ( for example, is Ndrew a name? how close is it to something else in that domain ) › semantic = does X correspond to X?
- completeness = do we have enough data to represent the phenomenon that we are looking at? o horizontal completeness – do I have enough variables to represent what I need to represent accurately? ( for example, if I make a dataset about people in class, and I have only the first names: therefore, I cannot associate for example grades ) o vertical completeness – do I have enough cases? ( for example, if I make a dataset about people in class, and I decide to take only the names of people in front row, there will be gaps in emission data ) › it measures gaps, so cases that should be in the dataset but that are not ( for example, if the sensor of air quality stops measuring it )
- consistency = it can be understood in two ways o conformity = do all the data points in the dataset obey to the same rules in terms of formatting? ( for example, when we write apostrophes instead of accents when writing in uppercase; so if you use some letters with apostrophes and some with accent in a dataset, there will be a problem of conformity ) o structural consistency = how the database is structured in terms of the relationships between records › key – keys should be unique and if these are duplicated, then we have a problem of structural consistency ( for example, if in university we have two students with the same student number, there is a problem of structural consistency because a key should identify a unique student ) › inclusion – referential integrity ( for example, if I consider medical records, they contain a unique key for each person, which is linked to a foreign key in the table about socio- demographic information ) › functional dependency
- timeliness = dimension that measures the distance in time between when the data was taken and the moment in which the decision involving this data has to be taken ( for example, if I have to decide the gift for your birthday, I cannot consider the wish list that you last updated when you were 7) o it is not absolute, rather it depends on the kind of decision you have to take, and it is very consequential
- comparability = it doesn’t have to do with the specific of the dataset, rather it measures how much this data can be stacked against another dataset regarding the same phenomenon o to acquire comparability, you need to have consistency, equal completeness and you need to be accurate (moreover, the methods we use to measure something must be the same) o essential to fill information out of data and to make people trust the data o usually this is the problem when companies do corporate social responsibility (public report in which they say how much they are compline with the social environmental and governance obligations: since each company is using different versions ESG metrics, when you try to compare them is very difficult)
- accessibility
- value
LOW DATA QUALITY COSTS
Costs caused by low quality data direct costs = costs related directly to the fact that you have low quality data (verify data, re-enter the data from scratch, or compensate people to which this data has caused problems) indirect costs = not relate to immediate damage, but in the long term (costs based on low reputation, wrong decisions or sunk investments) The longer you go on with data quality problem, the costlier will be to change and solve these problems. Costs of improving or assuming data quality prevention costs = costs to prevent getting bad data detection costs repair costs = most costly, because once you find out that you have data quality issues, you need to fix them (by recollecting data for example) – “ one dollar spent in fixing data quality issues before the data becomes the basis upon you take wrong decision, saves you from one-hundred-dollar problem ”
DATABASE STRUCTURE
Database = ensemble od datasets connected together through keys. The following schema is an example of database structure, which is a set of tables connected through keys. This is the model of database which is more diffuse.
- data warehouses = kind of database which powers 90/95% of the database we have in the world o data is organized in tables and data related to keys o first you design the structure of the database and then you input the data o since database has inertia, the more data you input in the database, the costliest will be to change (extreme rigid and costly to modify) o data warehouses are very efficient as long as you have consistency, meaning that you know that the data will come and fit into the structure you have built o it is good for 2D structured data, but bad for semi-structured or unstructured data, for multidimensional arrays and for anticipating new kinds of data o the bulk of the cost is in the design and operation of the database
- every line (vertical dimension) is an observation – for example, if you are building a database of air quality, every line will be a moment in which you sample the data and only one 8one observation per line!)
- every column is a variable
- each type of observational unit forms one table – if you are monitoring air quality and, in particular the pollutions, in one table you will have only this case; all the other data regarding sensors, where they are located and so on, they go on a separate table connected with the one about pollutions with a key Problem 1: you have multiple types in one single table. This is a dataset containing the top 100 of Billboards with o all the 52 weeks of the year as variable o all the information about the artists and the position of the song in each week If you try to analyze this dataset, you won’t be able to do it in Excel because you have two different units in one table: information about the song and information about their position in one single table. The issue here is that the week number is not a variable, it is a value that we want to analyze. So, the tidy version of this would consist in two tables: o one table containing the information about the song (song and artist) and there is a key (song 1, song 2 etc...) o and then you have the same key, the year, the date + week number and ranks So, weeks are not variables, they are values, which means that now you have 52 entries for each song: 52 entries for song 1, 52 entries for song 2 and so on. For a human it is much harder to understand the tidy version because this is made for machine to use (it is a lot more redundant and bigger as a file, but much faster and easier for a machine processor): tidy version is not meant for human! Problem 2: headers as values In this case, week number is used as a variable, so you are using values as header: that means that you are using what are effectively the content of a variable as the name of the variable. How can we fix it? We have to put the week number as a variable and replicate it for each song. In the second dataset says how many people fall under a certain income level depending on their religion. Here again, we are using a variable value (income level) as the name of the variable.
Problem 3: multiple values in one column Here we have some sociodemographic information. The problem is that there are more than one variable in one column: for example m04 consists of two variable (gender and age bracket). In the tidy data, you have to split this into three columns: gender, age bracket and number of cases) Example: Dataset of the UN about migration. What are the problems?
- the first 10 lines are used to describe the dataset
- a variable is stored inside a row: how can you fix it? Before you arrive to the first country, you have “World, Developed Regions, Least developed countries…” And the only way in which this table explains which one are categories is by writing in bold or indenting to clean this up, each country must be a variable, and the characteristics must be values in cells
- “country of origin”: if you put this on Panda, it would consider what is under as part of this column This was built by human for human, in order to be easy for humans. But if you want to analyze this data, you have to spend time cleaning it before using it. So, to sum up:
“Systems that have the effect of guiding the user in a personalized way to interesting or useful objects in a large space of possible options» (Burke, 2002)” How do users perceive a catalog? dry catalog = users perceive that they don’t have enough choices considering what they are paying choice overload = opposite problem of dry catalog, regarding the feeling of having too much choice Both of these issues can lead the user to the decision of dropping out. For example, Nokia Ngage was a videogame console released in 2000: at that time was the foremost mobile phone in the world, so Nokia mobile phones were extremely popular. This is also the time in which the Nintendo Gameboy was popular: this originated as a black and white videogame console and then involved in color videogame consol. Therefore, Nokia decided to put videogames and mobile phones together by producing videogames on the phone. Another example: Google Stadia wanted to offer a cloud that virtualized computer: PC emulated online used to play videogames, so that you could play every videogame in every type of device, such as mobile phones. Nevertheless, the catalog of Google Stadia was never equal to the catalog of Gameboy. Both Nokia Ngage and Google Stadia suffered the problem of dry catalog, since user perceived to have enough choice. As a consequence they collapsed of user motivation. Nowadays the same happens for Netflix and Amazon Prime: Netflix is perceived to have a larger catalog than Prime, and this is the reason why streaming services struggle to survive. The "jam experiment" (Yiengar & Lepper 2000) questions the relationship between the supply of choice and motivation to purchase. They found out that if you are having more choice, you will be more interested in the product; but if you have more choice, you will not necessarily buy more. On the contrary, you buy more when you have less choice.
TYPES OF RECOMMENDATION SYSTEMS
Since mid 2000 we have been building systems to help user to navigate between several choices. How do we build this kind of agents?
- simple recommenders = they basically output a likelihood of consumptions depending on a single variable. So, you take one variable, calculate the average and then you output recommendations: you are inclined to consume something that other people have consumed (that’s why rankings are published – homophily = the idea that you will do what other people have done)
- content base recommenders = calculate similarity based on intrinsic features of the items. In particular, they take what you have already consumed and find similarities in the catalog. How to calculate similarities? To do that you must have every item described in columns: when an element analyzed is present you have a 1, whether if not you have a 0; by summarizing these values and dividing the result by the number of variables you can compare items and obtain the similarity between them. The analyst builds the catalog and decides which variable will represent my catalog.
This way of describing something as a vector , which is something that has direction (starts always from 0) and magnitude (how large it is). The ability to represent things with vectors is the basis of Artificial Intelligent (AI), since the direction of the vector tells us something. You have to see where the vector ends to describe it. Depending on the number of values, we have different numbers of dimensions (bidimensional, tridimensional and so on…). So, if we consider only a variable (presence the house), we will have a one-dimensional vector and Snow White will be described as one-dimensional vector of magnitude 1. But this is not enough to describe a fairytale, since the house is present in every fairytale. Therefore, we should consider a bidimensional vector taking two variables into account (the house and the witch, for example): if both are present the vector will be bidimensional. And so on… The vector represented here is a tridimensional vector with coordinates 1-1-1. Beyond tridimensional it becomes impossible to visualize, and you can only conceptualize it. Not all features that describe our items are equally important and we can reflect this by weighing these feature (assigning an index of how much something is important). The weight ca be decided by the analyst or by dividing in some way that this operation becomes automatic. For example, if we want to analyze the similarity between sentences, we can eliminate automatically the words that a more frequently present and not important in determining the meaning of the sentence In the case of fairytales, to reflect the importance of the different items, we multiply each of them by a certain weight. Moreover, features that are frequently present in summarizes can be eliminated since they are not impactful: for example, a dragon would be more impactful than the presence of a house in a fairytale. This opens a problem: for complex things such as movies, what variables should we use to classify and how we can extract variable for thousands of movies? Here operations has to be done automatically: by processing subtitles (with Phyton for example) or by revising reviews… › extract the soundtracks or the voices, by processing subtitles and calculate what are known as concurrency (people say these words a lot and from this you can understand the main topic of the movie = topic analysis) › analyzing colors, since movies tend to have a palette of colors, for example thrillers are associated to blue) and then calculate similarities (compare palettes and not interested in understanding the genre) › applying to images entity recognitions in order to recognize what is in the image, so you can use it to recognize the entities that are present in the movie (remember that you don’t have to derive anything, but only analyze similarities and compare!) This is easier to do with music (and this is why Spotify work better in providing recommendations), since it comes already with a lot of metadata (who is the artist, the year it was released, and which is the genre…) that can be used as variable (encoded in binary variable). But this is not enough, because the official genre of the song usually is derived of the genre of the album in which the song is included (if move only with meta data we are already failing, because we have to recommend songs and not album); so, if I am trying to recommend you a song, I cannot use only meta data. Technically speaking you can represent music with attitude and frequency, and it is not necessary to have data about genres, because you can calculate similarities considering tones, frequency and so on … this is an example of how to extract the features automatically.
- collaborative filtering engines = predict likelihood of consumption based on the behavior of others. In this case, you have agents that make some choices about variables by rating them. This simplified version assumes that these people are more or less the same kind of individual and assumes that they are expressing rating about things that they consume (when you rate something is known ad explicit data ).
The following project was run with the United Nations (2017-2023) and investigated the problem that institution don’t seem to want to move toward data-driven-decision-making in housing across Europe and Central Asia. So, what they have done in this project was to investigate people that worked with these pieces of data about housing. To understand this, they introduced two concepts:
- concept of data culture
- data culture + data infrastructure (the technology people use to work on data) = together build data ecologies , which are the entire factors that impact the way that you work with data all of this is communication and there is no computer part on this, so you need to be able to extract information Urban data ecologies: objects of study
- epistemologies and representations = the way they understand things, meaning what they consider good or bad work, how they consider the institution is considered by the employees ( for example, in this case of housing, the employes believed that they were not assigning houses to people in a fair way; so they tend to side step them because they thought the organization should be dedicated in providing housing to people ) 2. practices and norms o practices = you look at what people do with data and at what they take for granted ( for example, in many countries you have problems of siloing, that is institutions are not sharing data, so people working in these organizations took for granted that data would not come from other institution and they had to build by themselves and find a way to observe data ) o norms = rules given by the institution that can be formal (guidelines and instructions) and informal (ways in which a workgroup organizes himself) – the actual norms that people obey to are the informal ones, since they are the ones that make you feel bad if your colleague criticizes you
- formats and infrastructure = what kind of format does the workgroup use to store and circulate data o format = refers both to file formats or to analog formats (print something and highlight something for example – sheets marked with colors become the database)
- knowledge and expertise = what do you know? how to do something? o the problem observed with knowledge in both private institutions (banks) and public ones is that we tend to operate on a sunk-cost balance with knowledge, meaning that we are naturally disinclined to do anything that contradicts something on that we invested so much ( I spent a long time to understand a way to work with data and I don’t want to change it – data inertia ): in public institutions above all, it is very difficult to upgrade the knowledge of the worker, because whatever you do, the second the worker goes back to the office, he goes back doing things in the way he is used to (data culture remains stuck in the past, crystalized) this is an issue because we are constantly asking for the evolutions of our cities and we pay for that to be done
MACHINE LEARNING AND AI
What does we mean as being “intelligent” when we say “artificial intelligence”? When we talk about artificial intelligence (AI) , we need to start by defining what is “smart”. Being “smart” doesn’t necessarily indicate cultural debt, it is not about how much a person knows; indeed a light can be smart; so it means to be able to respond to external inputs (something happens outside of you, and you are able to respond to it and adapt). So, you are smart when you respond to external input, adapting in order to minimize risks and maximize value (the contrary is “dumb”, so you are not able to respond to external inputs or you adapt to them in ways that are counterproductive). Example: Smart thermostat, which regulates the amount of heat you should have in your house (early ‘60s) – when the temperature is hot the wax melts and blocks the heating; whereas when the temperature is cold the wax solidifies and opens the heating. This highlights that the concept of “smart” has nothing to do with “electronics”, instead it means that it is able to perceive an external input and reconfigure itself (or something else) to respond to that input. So smartness is different from intelligence: intelligence is a broader e more complex notion. When we speak about artificial intelligence, many times we refer to smartness, BUT intelligence is larger than that and it entails five dimensions:
- ability to observe , so to perceive external inputs and acquire data by itself - SMARTNESS
- ability to retain the data , so it can store data in a memory for enough time at least to learn (to build a model, used to predict how a system will be) - SMARTNESS
- ability to learn , so integrate data into models (if x then y) - SMARTNESS
- ability to respond , so to employ data to respond to external inputs by adjusting the system - SMARTNESS
- ability to forecast , so to anticipate external inputs (if forecast a, scenario b) – INTELLIGENCE Taken together this five dimension forms what we call “intelligence”.
ARTIFICIAL INTELLIGENCE
Artificial Intelligence describes forms of intelligence that rely on machines to work (not on living beings). These machines simulate or mimic human behavior: so we recognize as intelligent only machines able to replicate human intelligence (that we call Artificial Intelligence). We can distinguish two family of AI:
- broad intelligence = the idea of a machine able to simulate the full spectrum of human intelligence (this we don’t have, and it is improbable!)
- narrow intelligence = machines that simulate specific facets of human intelligence ( for example, ChatGPT is able to simulate the ability to construct language, but suck when you try to make it to mathematics ) The field of Artificial Intelligence , historically, has started from the ‘50s: most of experiments was about creating machines able to create games. The reason is that games, such as chess, are highly formalized and easy to simulate: if you play chess with a computer is almost indistinguishable from playing with a human being (on the contrary, playing FIFA is not equal to the real experience). So, they made the rules of the game abstract and found ways to mathematically express the rules: once put them in the computer, the computer would be able to play the game there was the idea of abstracting the rules of the phenomenon and finding the way of making hem mathematically (top-down). By the ‘80, it became clear that this approach was not building significant results: as soon as you move to something more fluid as language or image recognition, it became extremely expensive to fill in the computer all the elements to make, for example, translations in an acceptable way. However, at that time (‘90s) another field started to raise, which is the idea of Machine Learning : this doesn’t start from the rules, rather it starts from the texts and makes the computer deduce the rules (bottom-up). Nevertheless, the technology to that properly started to appear in the 2000: one of them is the Neural Network Architecture. Neural networks were conceptualized in the 1960/70, but they were re-discovered in the 2000 when there were the technologies to make machine learning possible. And what we know today as “Artificial Intelligence” is an application of deep learning (you don’t have explainability, because it happens in a part in which we don’t have knowledge and where it loses all the relations – I know how it works but I cannot explain it **) ***^1. So, deep learning is a subset of machine learning, which is a subset of the idea of the broader field of artificial intelligence (which flips the original idea of AI).
MACHINE LEARNING
Machine Learning = application of artificial intelligence where a computer/machine learns from the past experiences (input data) and makes future predictions. The performance of such a system should be at least human level” ( Adams 1959 ). This kind of definition implies that machine learning is a class of algorithms that allows a machine to solve a problem ( for example, prediction -what is the probability that this is true- and classification ) based on statistical past performance. How does machine learning work? We provide our algorithm with training, validation and test sets
- the training set contains data we already know the solution for (we feed the machine learning algorithm) o machine Learning meets a lot of data about something: if we want to train an algorithm to recognize a cat, we need to fill the machine with a lot of images we already know they represent a cat. ( Example: Gmail uses personal e-mail sent by users to train machines in change of a free account for users ).