Docsity

Data communication Society notes, Appunti di Teorie e tecniche della comunicazione multimediale

Toggle sidebar
bg1
DATA COMMUNICATION SOCIETY
Tuesday 11:45-14:00
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
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30

Anteprima parziale del testo

Scarica Data communication Society notes e più Appunti in PDF di Teorie e tecniche della comunicazione multimediale solo su Docsity!

DATA COMMUNICATION SOCIETY

Tuesday 11:45-14:

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.

  • Form ➜ refers to the nature of the data in terms of whether it's measurable or descriptive:

- Quantitative: numbers (temperatures, scores..), it’s easier to manipulate

- Qualitative non-numeric, descriptive data (language, images and sounds),

is richer in meaning and harder to manipulate

  • Structure ➜ refers to how data is organized or formatted

- Structured: data fits into a predefined model and it’s easier to manipulate

(e.g. ID cards)

- Semi-structured: there is a model but it changes over time, adapting to

changing needs, it’s not a pre-defined one

- Unstructured: there’s no model at all, and it is much more difficult to

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:

  1. Data Capture ➜ placement, calibration, interconnection, transport of data
  2. Data Cleaning ➜ we have the data and we need to make it usable for our purposes
  3. Data Exploration ➜ data is interpreted looking for patterns (things that repeat themselves) and recurrences (or lack thereof) in order to understand the process under examination
  4. Data modeling ➜ use data to build models of processes in order to anticipate or describe urban processes
  5. Governance ➜ using data to inform policies What is code? Code refers to a set of instructions written in a programming language that tells a computer (or specifically, its microprocessor) what tasks to perform. It is the foundation of all software, apps, and digital systems. The instructions we give to the computer have to be in binary code. High level language uses a syntax which is close to the human language (like python), they’re easier to understand but slower. High level language still need to be converted into low level language to be understood by the computer, and to use this we need the compiler. Low level languages/ machine code instead are very difficult to master but super fast and we have a lot of control over what is happening. Source vs. Compiler: The source code is the human-readable text written by programmers in a high-level programming language. Example: Writing a Python script or a Java program.
  • Data VISUALIZATION Make data communicable. The value of information How much is information i valuable for subject x? To estimate the value of information we need to consider the context of situation, for example if I need to decide to go out the information about the weather are extremely important, otherwise if I have to choose which movie I need to watch at home that information is not so relevant anymore. We usually use this formula: Vi = Uki — Zki — Ci Ui=expected utility of decision K knowing I Zi= expected utility of decision K knowing I Ci=Cost of obtaining information i Expected utility is the good of expected decision. The value of the information depends on what we need to do and how it influences our decisions. The more a decision is important to us, the more the first part of the equation will be high. Families of data and ways to acquire it 2 main families of data: Data is made available for offline use, we can access this data by:
  • Downloading ➜ data is available as discrete files (for example, a CSV or Excel file)

- Data from the database is stored in a file which the user can download in

his computer

- Often, the file is not dynamic: if the database changes, the file remains the

same. Also the format of the file cannot be changed.

  • Querying ➜ data must be queried directly from the database

- Users can query (ask) directly the database for specific information

- Harder to do; users need to understand the database structure and how

the information is stored inside it.

- Potential heavy load on the database & hardware, if many people are

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.

  • APIs ➜ APIs are like bridges that let you access data from a database without directly interacting with the database.

- Application Programming Interfaces (APIs) are programs that respond to

requests for data by accessing a database and transmitting the results.

- Request can come from a human or from another software.

- APIs protect the database from access and manage usage. APIs keep

track of each access, so we can charge per call.

- Relatively flexible: API can return different shapes of data, potentially

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:

  • Scraping ➜ data must be extracted from sources. Scrapers are programs tailor-made to go to certain websites, obtain data, and store it into a user database. It’s hard to make, uncertain, sometimes illegal. Client-Server Architecture: Your computer (client) requests a web page from a web server. A web server is a specialized computer designed to serve web content. If we build a scraper we basically build a robot that goes on the web sites, extract the information we need and store that for us.

Techniques include:

- Mimicking human-like scrolling and clicking patterns.

- Adjusting speed to avoid being flagged as non-human activity.

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

- Medical history

- Consumption habits

- Physical activity (tracked via sensors)

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:

- Income Difference: Disparities in earnings between partners.

- Past Relationships: The frequency of previous interactions and

relationships.

- Housework Contribution: The percentage of household chores performed

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:

- Physical and mental impairments.

- Medical history.

- Lifestyle choices (e.g., high-risk activities).

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:

- GDPR (General Data Protection Regulation) in Europe

- State-specific regulations in the U.S.

- Company-specific policies

- Individual user practices based on ethics

- Decreto legislativo 101/

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:

- Dispersion: Data comes from different sources in different formats (not in a

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.

- Siloing: Data are controlled by a single department, often emerge from

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:

  • Accuracy ➜ How well the data reflects the real-world objects, events, or phenomena it represents. ➜ Example: A dataset of customer addresses is accurate if every address matches the real locations.
  • Completeness ➜ The extent to which all required data is present. We take a sample of the data, for horizontal completeness you ask yourself how

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:

  • Costs caused by low data quality

- Direct costs, costs related directly to the low quality data (bad things that

happen because of low quality data). E.g. healthcare records with low quality data, you prescribe some wrong medication

- Indirect costs, represent the consequences and broader impact of poor

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)

  • Costs of improving or assuring data quality

- Prevention costs, to make sure you don’t get low-quality data later, this is

the hardest part in convincing the institutions (especially public ones). It’s about training, monitoring and standard development costs.

- Detection costs, represent the expenses associated with finding and

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.