Docsity

COMMUNICATION AND SOCIETY, Appunti di Analisi Dei Dati

Toggle sidebar
bg1
DATA COMMUNICATION AND SOCIETY
Exam:
· theory: 50 questions 90 mins 50% mark
· practical: mini test 30%
· creative: project work (max 5 students) more stud more expectations
choose something you’re interested in 20%
es/ who’s the pilot which is the most influenced by the weather in F1
couple of months
not presented, convincing ppt
there is preappello about only theory part
1. WHAT IS DATA? FRAMEWORKS AND DEFINITIONS
2. VALUE OF INFORMATION & COST OF ACCESS
3. DATA BROKERING, SCORING, SECURITY
4. DATA QUALITY
5. DATA QUALITY 2
6. RECOMMENDER SYSTEMS
7. DIGITAL GOVERNANCE
8. MACHINE LEARNING AND AI
9. CRYPTOGRAPHY & BLOCKCHAIN
A circle, two point and a curve we identify it as a face
è Features = characteristics that allows you to recognize people
A circle with two point, a curve with whiskers and ears à cat
Even if the 80% is the same
What’s matter is the relations between elements
You pick something so complex as a human face
1. WHAT IS DATA?
Data: (Kitchin) “the row 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”
Rn on social media platforms we can quantify social relations
Datification: “the transformation of social action info quantified data, Thus allowing for real-time tracking
and predictive analysis” (Mayer-Schoenberger and Cukier,2013)
Es/ measuring body temperature with a thermometerà sensor – values change
37 degrees = data, the data point
4 years old and your mother tells you your temp is 38—you don’t know what it means—it’s not an
information
- Data is the number
- Information is data + context that allows you to understand
- Knowledge = information that allows you to take decisions
Ackoff piramyd
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

Anteprima parziale del testo

Scarica COMMUNICATION AND SOCIETY e più Appunti in PDF di Analisi Dei Dati solo su Docsity!

DATA COMMUNICATION AND SOCIETY

Exam: · theory: 50 questions 90 mins 50% mark · practical: mini test 30% · creative: project work (max 5 students) more stud more expectations choose something you’re interested in 20% es/ who’s the pilot which is the most influenced by the weather in F couple of months not presented, convincing ppt there is preappello about only theory part

  1. WHAT IS DATA? FRAMEWORKS AND DEFINITIONS
  2. VALUE OF INFORMATION & COST OF ACCESS
  3. DATA BROKERING, SCORING, SECURITY
  4. DATA QUALITY
  5. DATA QUALITY 2
  6. RECOMMENDER SYSTEMS
  7. DIGITAL GOVERNANCE
  8. MACHINE LEARNING AND AI
  9. CRYPTOGRAPHY & BLOCKCHAIN A circle, two point and a curve we identify it as a face è Features = characteristics that allows you to recognize people A circle with two point, a curve with whiskers and ears à cat Even if the 80% is the same What’s matter is the relations between elements You pick something so complex as a human face

1. WHAT IS DATA?

Data: (Kitchin) “the row 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” Rn on social media platforms we can quantify social relations Datification: “the transformation of social action info quantified data, Thus allowing for real-time tracking and predictive analysis” (Mayer-Schoenberger and Cukier,2013) Es/ measuring body temperature with a thermometerà sensor – values change 37 degrees = data, the data point 4 years old and your mother tells you your temp is 38—you don’t know what it means—it’s not an information

  • Data is the number
  • Information is data + context that allows you to understand
  • Knowledge = information that allows you to take decisions Ackoff piramyd

Wisdom = what can allow you to predict the future Knowledge Information Data Dimensions of data: how can data vary Form: Quantitative (numeric records) Qualitative (non numeric) Structure: Structured (Data Model) Semi-structured (no predefined model) models change, smth being added Unstructed (no model at all) Source: Captured (intentionally recorded) I ask someone for data and I recevid it Delivered (computer from other data) I ask questions and I give answers to a friend who looks and it and analyses it Exhaust (byproduct other processes) Transient (lost) data produced on a specific moment and then lost forever Producer: Primary (produced ad hoc) Secondary (made available) data produced from smth else and now available Tertiary (delivered from primary and secondary eg stats) elaborated from other data Type: Attribute (features of a phenomenon) Ex matricola, from it I can’t get any information about you, it’s not an attribute data but helps the professor to identify me to give me a grade Indexical (linkable to other data) Metadata data that explains other data

Zi= expected utility of decision K NOT knowing I Ci= cost of obtaining information i knowing the value will not bring you to take a better decision value of info is negative when the value is negative you will be psychologically .. to not buy it any decision in your life that you can’t take will be the same of knowing or not knowing always negative→ if its un useful , the value will be always be negative the cost is mostly time and attention (more than money) yo can have as much money as you want, time is limited, you always have 24 hours 4 MAIN WAYS TO ACQUIRE DATA Data is made available for offline use:

  1. Downloading: data is available as discrete files
  2. Querying: data must be queried directly from the database
  3. APIs: data must be queried through an interface Data is NOT made available for offline use:
  4. scraping: data must be extracted from source
  5. Social engineering: you can convince the others parties that you have legitimate aim Download Data from the database is stored in a file which the user can download Often, the file is not dynamic: if the database changes, the file remains the same. Also the format of the file cannot be changed Database Querying
  • Users can query directly the database
  • Harder to do; users need to understand the database structure
  • Potential heavy load on the database & hardware

Database= computer program where to save data, to access it and to use it. I need to use a language of database. The most famous language is SQL The best way to access data w3shcools.com site to train people to use SQL I have to communicate with the language of the database APIs application Programming Interfaces (APIs) are programs that respond to requests for data by accessing a database and transmitting the results Request (......) Example of API : (...) Access to APi every ìtime you access you will found update data, you keep paying me just for data you interested in. If you copy everything and sell it, it would be more expensive, cause the other user will buy from me just the data he needs. Google image for free cause they train Same for Gmail cause everything is written of gmail is useful to train the system SCRAPING

  • Scrapers are programs tailor-made to go on certain websites, obtain data, and return in, usually into a user database.
  • Hard to make, uncertain, sometimes illegal.

ACCESSES

● Anyone→ open licence ● Group based access→ only specific groups cana access es medical community ● Named access→only specific individual, you individually sign a contract with a data provider and you can access the data ● Internal access→ u have to be inside of an organisation, not physically VPN company that sells you internet is the main gateway to get to the internet me→ ISP→ VPN (located in a specific position, is an intermediate that allows you internet to believe you’re in that position)→ internet TOR= global network when you connect to the tor network what happens is that yo connect to a server, than another server, then another service→ impossible to know where you are Tor Browser is a free, open-source web browser that anonymizes internet traffic by routing it through a volunteer-run network of servers called "nodes" [Tor Browser is a free, open-source web browser that anonymizes internet traffic by routing it through a volunteer-run network of servers called "nodes"] how we can monetize people data concept of credit score how probable is that the person is paying you back when a person is asking another one for money he will watch your life situation [A credit score is a three-digit number that represents your creditworthiness, based on the information in your credit report. It is a numerical estimate of how likely you are to repay borrowed money, with a higher score indicating a lower risk to lenders. Lenders use this number to decide whether to approve credit and to determine your interest rate.] register of protests/ registro dei protesti: when you have debs and you don't pay back you end up being in this register big problem for banks bc how am i supposed to know if your credit score is low, so other things isìn your life the cost of your car insurance will go up in the US, if you can afford it, you cant move people want to see if you're a worthy partner SCORING SOCIETY a society in which all of us has a variety, a score of every impact of our lif Health score:

allows you to know if probably you'll get ill in the next years → price of health insurance is based on this the quality of air in your neighborhood → the health insurance will be up for this Driving score: Used to be calculated only by one algorithm: is this person had an accident in the past x months→ if no it goes up (less insurance to pay) if yes it goes down (more insurance to pay) black boxes to put in your car that basically record anytime you're driving and in doing that they collect info about your driving style GPS [= an accurate worldwide navigational and surveying facility based on the reception of signals from an array of orbiting satellites.] Your mobile phone has different antennas, the tel receives signal of a network out in space (known as positional satellite). They transmit the exact time. At any time your know where a satellite is. It checks the difference between the satellites in terms of time, so it knows in how long the mess will be transmitted Marital score: Banks are interested in this score bc if you ask for a * for a home and you separate, you have the half of the money to pay the bank back

Every time you publish a post (always the same person post it) i can identify whos posting (hash effect) 6/ Data Quality: Core Dimensions Once more: the value of information How much is information i valuable for subject x? 𝑉𝑖 = 𝑈𝑘𝑖 − 𝑍𝑘𝑖 −𝐶𝑖 DISPERSION AND SILOING Dispersion:

  • Data comes from different sources in different formats.
  • Not all data is equally accessible. Siloes:
  • Data controlled by a single department.
  • Often emerge from data architecture choices.
  • Impede data integration.
  • Multiplication of siloes for same data.
    • Different, misaligned content.
    • Potential entropy. Why do we want to interconnect data? Complexity Combination Cost more quality data is more it'll cost to aggregate it subjective assessment = good data data valuable when it can impact decisions shadow infrastructure = work around that the worker in the organisation work with the data even if he knows it’s not a good data Accuracy impacted from many things always a function of the use you need to do with the data (dipende da quanto ti serve accurato il data) Completeness

Consistency primary key , unique → le colonne 1,2,3 e A,B,C di excel they identify a different cell A1, A2 etc refers to a cell→ foreign key Fields that should be unique but they're not The problem arrives when you have more that one A problem of inclusion (the key can exist in a cell but not as a primary key→ problem) Name C C C C C C C problem= C4 is not Timeless 13/

DATA, CHOICE & CONSUMPTION: INTRODUCTION TO RECOMMENDER

SYSTEMS

DEFINITION & OVERALL OBJECTIVE

  • «[System wherein] people provide recommendations as inputs, which the system then aggregates and directs to appropriate recipients» (Resnick & Varian, 1997).
  • «[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).
  • Keep users loyal, hooked to our platform, satisfied and who continue to consume. CHALLENGE 1: DRY CATALOG When our catalog is perceived to have too few items (Google Stadia, Nokia Ngage, Tidal): collapse of user motivation.
  • The eventual doubling of the platforms must have a considerable payoff Nokia in the picture: born to combine games and phone CHALLENGE 2: CHOICE OVERLOAD
  • The "jam experiment" (Yiengar & Lepper 2000) questions the relationship between the supply of choice and motivation to purchase.
  • The dominant theory holds that + choice + motivation + gratification.
  • Superiority of Limited Choice vs. Expansive Choice; not in the interest (60 vs 40) but in the purchase (3 vs. 30)

MUSIC

So you can imagine it as certain frequencies being filled by air over time so if I want to extract the features of a surgeons song for example sure I had all the metadata that come with the song so, who is the artist, when was this release, what is the main genre … this is important! one approach is an approach And then I feel it in either automatically or manual okay so I have my songs and each song we have some values here the other approach is purely machine run so you say I don't give you any feature I will just tell you a describe me or each let's say every intervals of 10 hertz and then you will add one feature will be placed with 80 Earths and 100 hertz how many decibels do we have here you have no worry about defining the features before and the Machine extracts the sound and then describes automatically the song in terms that you as a human being will not be able to see some values regarding some frequencies you can look at it machines describes it very precisely as safe before you have a picture of something you have a feature of something right and your story by dividing it into pixels and taking the value of pixel in terms of color if I show you won't be able to look at it and say oh this is a picture with an apple right you see only numbers here so then what happens is that the system we compare as it does and all times and find the similarities between the songs now based on how they sound not based on something you decided before the Machine instructs the information and then compare actually this is also sometimes recommend their engines can identify genres before they are formalized like when drill came out for example he wasn't initially recognised as a gerne, (trap or rap music), the machine identify a genre before we were be able to do. Netflix does the same thing with movies COMICS Music is simple bc music is one thing: air on frequency all of music in the world can be described like that can we see a difference in style? (small eyes, big eyes etc) some people took billions of pages of manga and they extracted one thing: the relation between black and white in the pages (the empty space basically)--> and that is automatically other way: subtitles, we have all the words said in a movie text→ see which words are used the most, the distribution similarity COLLABORATIVE FILTERING

  1. Take user A
  2. Find B, user similar to A.
  • Calculate similarity based on EXPLICIT and IMPLICIT data.
  1. Recommend to A the items recommended by B the low is the difference the more they’re similar PROBLEMS OF CFES usually you rate something you really really really liked or really disliked 1 star= you want to damage the restaurant or what else The problem is nobody rate Amazon sends emails week after the purchase, bc they need it, not bc they’re interested in What can I use to calculate the similarity if I don’t have the ratings If you’re girl of boy maybe, the age, status, traveled around the words and where… PROBLEMS AND CHALLENGES
  • Accuracy: how to calculate it?
  • Data pipelines: Users often don't rank on anything.
  • Implicit Ratings (consumption)
  • Higher weighing of simple recommenders in hybrid models (homophilia) Something that everybody else life at least you will consider just to check whether what all the hype is about and indeed if you look at Netflix what you actually add on your first of all on the top of it you have the new releases and then you have much hot on Netflix and then your personalized because in the end simple recommenders are still very very powerful so recommend why I recommend your engines important today so why are they class of algorithms that build your feet your feet on social media so the content that you recommenders what everybody else is watching the content based recommended so I see what you like and so what are people in your network or similar to you my catalog in order and a three to you the things of you

Some variables to reduce the noise and there are several techniques to do that the problem is in when you add this large data sets with a lot of features you may never know if you're cutting off something that actually now the relationship the amount of raining of your first day together and how long you will be staying together is clear enough as being goals but in science there is a lot there are you that can actually do better performance okay now we know about we know I introduce you to the different types of Occupational artificial intelligence what are neural network is one of the Architecture through each of machine can store information without us having to encode the rules he learns the rules you just encodes it in its own way as weight between neurons now there are three main ways of training network supervised learning and supervised learning and reinforcement and we see each one of them in details in this last part of our class so in reinforce supervised learning you give the training set as we discuss so far with the labels so the answers the unsupervised learning you don't provide a training set with the labels then you made wonder how then can you see where you're going to get there any reinforcement learning you basically give a reward to the system every time the answer is true and in this way it gradually nudges towards what you want to do reinforcement learning is a way to approach either supervised learning or a supervisor so you can imagine supervising the two main families and reinforcement learning can be applied so let's start with the easiest this is what and if I will be able and I will consider that to be my utmost satisfaction to make you cur dat data artificial when your own artificial intelligence models using things like pyths or tensorflow → sistemato Here is a clearer and more polished version of the paragraph in English: There are several techniques to reduce noise in data, but when working with very large datasets that contain many features, there is always the risk of removing information that is actually important. For example, the relationship between the amount of rainfall on the first day and how long you will stay together may seem obvious when defined as a goal, but in scientific contexts there are many other variables that could influence performance, often in non-obvious ways. We have already introduced the different types of occupational artificial intelligence. Neural networks are one of the architectures through which a machine can store information without the need for humans to explicitly encode rules. The network learns these rules on its own and represents them as weights between neurons. There are three main ways to train a neural network: supervised learning, unsupervised learning, and reinforcement learning. Here is a brief overview: ➢ Supervised learning: the model is given a training set with labels, meaning the correct answers. ➢ Unsupervised learning:the training data does not include labels. One might wonder how the model can learn, but in this case it identifies structures, clusters, or patterns within the data on its own. ➢ Reinforcement learning: the system receives a “reward” whenever it produces a correct response, gradually guiding it toward the desired behavior. Reinforcement learning can be applied to both supervised and unsupervised settings, acting as a complementary approach to these two main families of learning techniques. SUPERVISED LEARNING Flowers you have two parts: petal and sepal (=how large it is)

  • Classification:
    • The model calculates the probability one item belongs to each of the provided classes.
    • E.g. iris dataset
  • Regression
  • The model calculates the value of a variable UNSUPERVISED LEARNING here you don’t provide data dataset with labels you already tell the systems the labels, everything looks the same so it try to cluster (= calculate the distance with items) the neurons. Its more imprecise SUPERVISED & UNSUPERVISED LEARNING: TOPIC DETECTION
  • What is the «topic» of a text?
  • Identification of underlying «patterns» in texts.
  • What are textual «patterns»?
  • Groups of words that are frequently associated to each other.
  • Supervised learning: we provide topics beforehand as labels in a training set, fit a model and then apply it to unlabeled articles.
  • Our model with fit well with good labeled data and a a good ratio between number of categories and labeled entries.
  • Unsupervised learning: Latent Drichlet Association identifies «bunch of words» that often come together in the sample.
  • We decide what topic correspond to what cluster. you see there are the same words in differents texts→ this must be a TOPIC features of intelligence (what intellig meas) diff between machine learning and ai how a neural network works AI#3: LLM, Transformers & Word Embeddings Tokenization: at each word→ number assigned (computer better process numbers) → we separate sentences into words What are embeddings? Vector= it has a certain length and an direction, conventionally, represented in a cartesian space, vectors always start at a point 0.

WHY PROOF OF WORK?

i incentivise you by mining every 5 mins the transactions are put togherìther in blocks→ competition with all blocks in your computer→ this block is hashed, hashed a longside starting from 0 why is it secure the more copies you have the more is secure you identify the truth: 51% if not, is discarded smart contracts the blockchain essentially takes the role of an intermediary. it took the role of the bank (as we saw) a contract= document the two parties signed we could do it on a piece of paper, we go to a notary who simply looks at the document, makes a copy of the doc and store it so if a part say the contract is fake, you can go to the notary if everybody has a copy, if i want to change a copy, i would have to change all the copies if theres no notary, the one who make the first move in advantage (es/ apartement:money-keys) on blockchains we can do easily: if you send the money, you will unlock the key or the opposite = SMART CONTRACTS solving the problem of the notary, able to be updated in real time problem: what if we have a litigation i live in italy,you in japan. What laws we asppy on the contract? its not register in a country,but in a blockchain (if in a country you need a notary) NFTs Non-Fungible Tokens = smart contracts with licensing rights on the digital item saved ona blockchain i want to sell a piece of digital art how can i forbid you to do a copy and resell it? → NFRs = i sold you the rights if i want to Buongiorno professore, non mi è chiaro se la short list indicherà solo i gruppi che presenteranno o anche il gruppo vincitore. Dunque se il primo posto dipenderà o no anche dalla presentazione. La ringrazio.

close ended questions at the end GAIA: this is a variable= smth that contains an information; a name, a surname, personal infos.... we have diff types of variables. This is a STRING = text variables composed by letters. the string creates a qualitative info It’s a text, no numeric values, just text now we want to visualize in the shell our name → i write print, to not re text we write just “name”, not the variable → print(name) variables do not contain any space per sapere che tipo è ila variabile: type → per vederla scrivere PRINT prima per sapere numero dei caratteri: LEN A volte non puoi mettere i numeri quindi THE VARIABLE NEED TO BE CONVERTED TO string → quidi davanti al numero aggiungi : str(published_post) GRAFFA: ctrl, alt, shift ITERATION indentation = a lot of space