








































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!









































General info: Theory sessions on Tuesday, and once any two weeks we’ll have practical sessions of coding online. Evaluation: 3 parts, the first one during the ordinary session, written exam with open questions (50% of the grade), if we fail we can take it again in two weeks. The second part is the coding exam, so we’ll have to produce a code (30% of the grade). The third part is the project work (20% of the final grade). We don’t have a dead line for doing this, we can choose whenever we want to take the exam during these 2 yrs because the grades remain forever and we can take the exams in the order we like. Lesson 1 October 1st DEFINITIONS AND FRAMEWORK Datification refers to the process of transforming various aspects of human life and organizational activities into data that can be quantified, tracked, and analyzed. It involves collecting and converting information—such as behaviors, decisions, social interactions, and physical events—into digital formats for use in analysis, prediction, and decision-making. ➜ An example of datification is the facial recognition, where something that seemed to be continuous like the face, was transformed into numbers (into data), adding distances from each part of the face which is a very unique feature for each individual, and it then allowed AI facial recognition to work. Datification: «the transformation of social action into quantified data, Thus allowing for real-time tracking and predictive analysis» (MayerSchoenberger and Cukier , 2013) The purpose of datification is becoming a pretty fundamental infrastructure in our daily life. It is a cornerstone of the digital economy and drives technologies like AI and the Internet of Things (IoT). What is data? A data is basically the raw number, the raw material produced by abstracting the world into categories, measures and other representational forms (like
numbers, characters, symbols, images, sounds…) that constitute the building blocks from which information and knowledge are created. ➜ The number in a thermometer is a data: a child will understand the data but he won’t understand what it means. An adult instead, who knows what’s the human body temperature on average, will. Data + context results in an information. Raw data alone is not enough: context is essential for understanding it. Information gains significance when it can inform decisions or actions. Value arises not from the information itself but from its ability to drive purposeful and effective actions. Knowledge is a piece of information that can actually inform your current or future actions and can be used for decision making. This class will focus on how to effectively communicate data to engage the public. Dimensions of data - How can data vary? Data can vary significantly depending on its form, organization, origin, creator, and type. Recognizing these dimensions is essential for understanding, managing, and analyzing data effectively in various contexts.
is richer in meaning and harder to manipulate
(e.g. ID cards)
changing needs, it’s not a pre-defined one
manipulate (e.g most data on social media like videos and images) The model changes according to the different need we have at that moment
phenomenon through numerical encoding. Digital information is more convenient but will always be less accurate than the analog one because the accuracy is constrained and limited by the number of bits available (e.g., 2 bits can represent only 4 values). It’s easy to store and transmit using digital systems (e.g., internet, USB drives), making it the backbone of modern technology. However, it sacrifices some nuances of the original data. Binary code Binary code is essential for understanding how computers operate. Computers use a microprocessor, a machine that has a certain number of pins and doesn’t understand images, words and so on. The computer interprets data as electrical signals (current or no current), so the only way to communicate with it it's the binary code. Humans typically use base 10 (decimal) for everyday numbers due to having ten fingers. In base 10, the position of digits represents different powers of ten (e.g., thousands, hundreds, tens, units). Binary uses base 2, where each position represents powers of two. Positional Notation In base 10: Each digit’s value is determined by its position. Example: 1,125 = (1 \times 1000 + 1 \times 100 + 2 \times 10 + 5 \times 1). In binary: Each digit’s value is also determined by its position. Example: 010010 = (0 \times 32 + 1 \times 16 + 0 \times 8 + 0 \times 4 + 1 \times 2 + 0 \times 1). Transistors (& Standardization) To the Rescue The basic technology that allowed the IT to develop as we know it today is transistor. We managed to make transistor smaller and smaller to the point that now we have millions of transistors in a single chip. Since the 1950s progress in silicon transistors made microprocessors drop in costs and size, which allowed informatics to intertwine with many processes of life.
At some point, in the 1970’s we agreed to a way to transmit data from a computer to another, and one protocol emerged as dominant, the TCP/IP protocol, that has allowed for easy and cheap data transport. The protocol gives the information about the number, where it starts and finishes and orders all the packets in a continuous way. This protocol is important for those information which are critical, because it privileges integrity and security. UDP is another protocol, that doesn’t check if we have all the packs of data, it simply needs the data to come as soon as possible. It privileges fastness and efficiency. Data project Any kind of data project has 5 steps:
his computer
same. Also the format of the file cannot be changed.
the information is stored inside it.
querying the database at the same time E.g. flight booking system to check for available flights. Instead of downloading a list of all flights, you enter a search query like "flights from New York to London", and the system pulls the relevant data from the database.
requests for data by accessing a database and transmitting the results.
track of each access, so we can charge per call.
according to the users’ need. Shapes are encoded in the API. Data-poor environments raises the cost of any large-scale data-driven approach because of data friction (Edwards 2010). In absence of APIs or downloadable data (e.g. IMDB), we need scrapers, or data collection automata: software that collects data from disparate online sources and unifies them into centralized databases. E.g. Think about the weather app on your phone. The app doesn’t store weather data on your phone. Instead, it uses an API to query a weather service, which responds with the latest weather data. The app then displays that data to you. Data that is not made available for offline use, which we can acquire by:
Techniques include:
Some websites, particularly Chinese social media, have advanced detection systems that make scraping challenging. The Role of AI in Scraping AI can enhance the effectiveness of scrapers by improving accuracy and adapting to detection mechanisms. CAPTCHA systems are designed to differentiate between humans and machines, often requiring human validation for training machine learning models. Conclusion The landscape of web scraping is a dynamic interplay between data analysts seeking access and web designers implementing security measures. Continuous adaptation and ethical considerations are crucial for successful data scraping strategies. Lesson 3 October 22nd DATA ECONOMICS: TRANSPARENCY, SCORING AND SECURITY We’re living in a society in which we have an abundance of data, so the concepts of privacy and transparency are fundamental. Transparency is defined as the act of disclosing information, while its opposite, opacity, involves making information unavailable. As a society we value transparency over opacity. Transparency includes information but leaves out the notion of algorithm. Transparency can have negative systemic effects, such as increased poverty in neighborhoods due to declining property values. Example: Air quality data can lead to similar outcomes, where neighborhoods with poor air quality see a drop in property values. The concept of algorithm is often misunderstood, it basically is a set of instructions that process input to produce output. Recommendation algorithms, which analyze inventory to suggest items to users based on likelihood of consumption are used a lot nowadays.
The process of algorithmic operation is often a black box, where inputs (stimulus) and outputs (response) are visible, but internal workings remain unknown. There is a concern about mono-directional loops in data observation, where users are unaware of who is monitoring them. Online Presence and Job Applications Employers often search for candidates online, which can lead to biases based on outdated or forgotten online content. The right to be forgotten, as established by the GDPR in the EU, allows individuals to request the deletion of their online choices. The U.S. lacks similar comprehensive data privacy laws, leading to potential issues in data management. Data Licensing and Access Data is always released with a license, that defines what can be done with data. Data licenses are the terms and conditions under which software or data is released. They regulate ownership, sharing and re-uses of data. Data can be released under various licenses, which dictate how it can be used. Closed licenses require a one-on-one agreement for data use, often at a higher cost. Shared data licenses are less restrictive, allowing broader use with specific prohibitions. Data Access Levels Friction is introduced as a concept representing the obstacles to accessing data, which can affect both time and cost. Open Data (open license) Open data refers to data that is freely available for anyone to use, including for resale. It is often shared under specific conditions, such as licenses that dictate how the data can be used. Examples of Open Data ➜ The sex offender registry in the US is publicly accessible. This data can influence real estate values as people may avoid living near registered offenders. / Bus timetable
Historical Context of Data Collection The evolution of data collection began with the first mass attempts to assign scores to individuals. Credit Scoring originated in the 19th century, allowing broader access to loans. Banks assess risk based on the likelihood of repayment. A credit Score is a numerical representation of an individual’s likelihood to repay borrowed money. Credit scores were initially compiled by private investigators. The majority of their work involved gathering personal information for lending entities. Since the 1970s, banks began sharing credit scores, leading to centralized databases. Individuals can now access their credit scores publicly. Countries maintain registries of individuals who fail to repay debts. Credit Scores: Credit scores are numerical representations of a person's creditworthiness, or their ability to repay borrowed money. They’re essential for major life decisions (e.g., buying a car, moving, finding a job), and serve as a foundational scoring system in society. Types of Scores: Health Score ➜ probability of falling ill ➜ useful for health insurance
Driving Score ➜ Probability of having a car accident Importance: Influences car insurance rates. Calculation: Based on past driving behavior (e.g., accidents in the last 12 months). Geographic location affects insurance costs (e.g., living in southern Italy vs. northern Italy). Technology: Insurance companies use GPS devices in cars to monitor driving habits. Data collected includes mileage, speed, and driving style. Challenges: Difficulty in accurately attributing driving behavior to specific individuals. Relationship Score ➜ probability of premature ending of marriage Purpose: Useful for banks when assessing mortgage applications for couples.
Data Analysis: Observations of couple dynamics (e.g., frequency of interactions) can inform predictions about relationship stability. Scores can significantly impact individuals’ lives, influencing financial decisions and personal relationships. The use of technology and data analytics raises ethical considerations regarding privacy and the accuracy of these scores. Communication and Relationships The frequency and manner of communication can impact relationships. Emotional tone (e.g., anger) affects how individuals interact. The percentage of free time spent together is significant. The number of interactions between partners is crucial for the relationship's health. Main Variables Influencing Relationships:
relationships.
by each partner. Additional considerations: The impact of physical attractiveness on relationships is complex due to cultural variables. These variables can provide a numerical accuracy score of about 60%. Data and Insurance Insurance companies use standardized questionnaires to assess health risks. Key health variables include:
Data Brokering Data brokering is the process of collecting, buying, and selling data about individuals or companies. Data brokers gather information from various sources (like public records, online activity, and purchasing behaviors), then organize and sell this data to businesses, marketers, or other organizations for targeted advertising, research, or decision-making purposes.
Implications of Data Breaches Data breaches can lead to the sale of user information on the dark web. Users often reuse usernames and passwords, making them vulnerable. Companies are required to report data breaches within 72 hours. Tools for Checking Data Breaches Websites like Have I Been Pwned allow users to check if their email has been involved in a data breach. Data Protection Regulations Data protection is governed by various levels:
Conclusion Despite regulations, data security is never fully guaranteed. Awareness and proactive measures are essential for protecting personal information. Encryption and Hashes Encryption is a process that turns readable data (plaintext) into unreadable data (ciphertext). The purpose is to protect sensitive information from unauthorized access. How it works: Encryption algorithms use a key to scramble the data so that only someone with the correct key can decrypt and read the original data. Hashing is a process that takes input data (like a password) and turns it into a fixed-size string of characters (a hash). The hash is a unique representation of the input data, but it's impossible to reverse-engineer the original data from the hash. How it works: Hash functions use an algorithm to convert the data into a string of bits. Even a small change in the input data results in a completely different hash. This makes it a great way to verify data integrity. A collision occurs when two different pieces of input data produce the same hash. This is a problem because it undermines the uniqueness of hashes. Why they matter: If different data can produce the same hash, it can create security risks (e.g., an attacker could create different data that results in the same hash as a legitimate file or password).
Lesson 4 October 29th DATA QUALITY: CORE DIMENSIONS How good our data is? 𝑉𝑖 = 𝑈𝑘𝑖 − 𝑍𝑘𝑖 − 𝐶𝑖 we already saw this formula to measure how much is information valuable for subject x We live in a world full of data, but we still got problems in data quality. At the macro level, meaning the way data is supplied across institution and in society, we have two big issues that impact in raising the cost to access data:
standardized way) and not all data is equally accessible. The cost of joining the data together is proportional to the dispersion degree. An example of that is data of informal construction, for which prefectures used a centralized database for years. Another problem is related to data inertia, the more effort you put in a certain way to collect and work with this data, the harder it will be to change the way you deal with these data.
data architecture choices. This impede data integration and there’s a lot of multiplication of siloes for same data, leading to different, misaligned content and a less effective system, because a lot of resources are wasted. This leads also to potential entropy. The collection of data from different sources and combine it to perform some meaningful action has become important to deal with contemporary problems and that’s why we want to interconnect data. Understanding and governing complex systems require models combining different data sources. The cost of combining data sources is proportional to their heterogeneity and dispersion. If we move to the micro context instead, we consider other key metrics:
The picture shows the possible scenario related to these kind of assessments: Issues of data quality impact: ◦ Trust^ ➜^ If data is inconsistent, inaccurate, or incomplete, users are less likely to trust its insights, leading to skepticism about its reliability. ◦ Decision making^ ➜^ Poor data can lead to ineffective decision-making and flawed analyses. Data driven decision is made when you trust data, and it works if it’s good data, so subjective and objective assessment are both good. ◦ Resource allocation^ ➜If the data is^ flawed, resources may be misdirected, causing inefficiencies or lost opportunities ◦ Efficiency^ ➜^ Inconsistent or incorrect data increases the time and effort needed to clean, reconcile, and verify it before use. This inefficiency delays processes and increases operational costs, impacting overall productivity. Possible question for the exam: he gives us a data set and we need to check the quality of the data talking about the metrics.
Lesson 5 November 5th DATA QUALITY PT.2 DATABASES, TIDY DATA, DATA MANAGEMENT Impact of bad data on costs for the organization:
happen because of low quality data). E.g. healthcare records with low quality data, you prescribe some wrong medication
data quality on the organization, they’re costs based on lower reputation, costs based on wrong decisions or actions and sunk investment costs (when investments cannot be recovered)
the hardest part in convincing the institutions (especially public ones). It’s about training, monitoring and standard development costs.
documenting data issues before they impact decision-making or operations. Effective detection reduces the likelihood of low-quality data affecting business processes, but it also involves investments in analysis and reporting.