Inside OKCupid: The math of online dating - Christian Rudder

Sistemul OKCupid: Matematica dating-ului online - Christian Rudder

1,232,216 views

2013-02-13 ・ TED-Ed


New videos

Inside OKCupid: The math of online dating - Christian Rudder

Sistemul OKCupid: Matematica dating-ului online - Christian Rudder

1,232,216 views ・ 2013-02-13

TED-Ed


Vă rugăm să faceți dublu clic pe subtitrările în limba engleză de mai jos pentru a reda videoclipul.

00:00
Translator: Andrea McDonough Reviewer: Bedirhan Cinar
0
0
7000
Traducător: Ana Joldes Corector: Alexandra Masgras
00:17
Hello, my name is Christian Rudder,
1
17903
1714
Bună, mă numesc Christian Rudder,
00:19
and I was one of the founders of OkCupid.
2
19641
2209
și am fost unul dintre fondatorii OK Cupid.
00:21
It's now one of the biggest dating sites in the United States.
3
21874
2918
E printre cele mai mari site-uri de dating din SUA.
00:24
Like most everyone at the site, I was a math major,
4
24816
2391
Ca mai toți de la site, am terminat matematica
și cum deja știți,
00:27
As you may expect, we're known for the analytic approach we take to love.
5
27231
3440
suntem faimoși pentru viziunea analitică asupra iubirii.
00:30
We call it our matching algorithm.
6
30695
1638
Îl numim algoritmul potrivirii. Algoritmul Ok Cupid
00:32
Basically, OkCupid's matching algorithm helps us decide
7
32357
2588
ne ajută să aflăm dacă doi oameni ar putea ieși la o întâlnire.
00:34
whether two people should go on a date.
8
34969
1876
00:36
We built our entire business around it.
9
36869
1872
Întreaga noastră afacere se bazează pe el.
00:38
Now, algorithm is a fancy word,
10
38765
1960
„Algoritm" e un termen pretențios,
00:40
and people like to drop it like it's this big thing.
11
40749
2485
iar oamenii îl folosesc ca pe ceva important,
00:43
But really, an algorithm is just a systematic,
12
43258
2288
însă, de fapt, un algoritm e doar o cale sistematică de a rezolva o problemă.
00:45
step-by-step way to solve a problem.
13
45570
2223
00:47
It doesn't have to be fancy at all.
14
47817
2177
Nu are de ce să fie pretențios.
În această lecție voi explica
00:50
Here in this lesson,
15
50018
1151
00:51
I'm going to explain how we arrived at our particular algorithm,
16
51193
3008
cum am creat și cum folosim acest algoritm special.
00:54
so you can see how it's done.
17
54225
1411
00:55
Now, why are algorithms even important?
18
55660
1934
Care e importanța algoritmilor?
00:57
Why does this lesson even exist?
19
57618
1580
De ce există de fapt?
00:59
Well, notice one very significant phrase I used above:
20
59222
3420
Rețineți una dintre frazele folosite anterior:
01:02
they are a step-by-step way to solve a problem,
21
62666
2339
sunt căi sistematice spre rezolvarea unei probleme,
și, după cum știți,
01:05
and as you probably know, computers excel at step-by-step processes.
22
65029
3418
calculatoarele excelează la astfel de procese.
01:08
A computer without an algorithm
23
68471
1589
Un computer fără algoritm e practic un teanc de hârtii costisitor.
01:10
is basically an expensive paperweight.
24
70084
2724
01:12
And since computers are such a pervasive part of everyday life,
25
72832
2989
Și cum aceasta sunt esențiale vieții de zi cu zi,
01:15
algorithms are everywhere.
26
75845
1547
algoritmii sunt pretutindeni.
01:18
The math behind OkCupid's matching algorithm is surprisingly simple.
27
78590
3197
Matematica folosită de algoritmul nostru e surprinzător de simplă.
01:21
It's just some addition, multiplication, a little bit of square roots.
28
81811
4002
Constă în adunare, înmulțire și câteva operații cu radicali.
01:25
The tricky part in designing it
29
85837
1690
Dificultatea întâlnită la construirea lui a constat în felul în care ceva misterios,
01:27
was figuring out how to take something mysterious,
30
87551
2565
ca atracția umană,
01:30
human attraction,
31
90140
1150
01:31
and break it into components that a computer can work with.
32
91314
2784
poate fi transformată în ceva procesat de calculatoare.
Întâi am avut nevoie de date pentru a potrivi oamenii,
01:34
The first thing we needed to match people up was data,
33
94122
2553
01:36
something for the algorithm to work with.
34
96699
1992
ce erau apoi prelucrate de algoritm.
01:38
The best way to get data quickly from people is to just ask for it.
35
98715
3158
Cel mai bun mod de a le obține de la oameni
e pur și simplu să întrebi.
01:41
So we decided that OkCupid should ask users questions,
36
101897
2727
Am decis ca OK Cupid să pună întrebări utilizatorilor
01:44
stuff like, "Do you want to have kids one day?"
37
104648
2357
precum, „Vă doriți copii într-o bună zi?"
„De câte ori vă spălați pe dinți?"
01:47
"How often do you brush your teeth?"
38
107029
1758
01:48
"Do you like scary movies?"
39
108811
1392
„Vă plac filmele de groază?"
01:50
And big stuff like, "Do you believe in God?"
40
110675
2077
și lucruri mai importante precum „Credeți în Dumnezeu?"
01:53
Now, a lot of the questions are good for matching like with like,
41
113843
3064
Majoritatea întrebărilor ajută la găsirea similarităților
01:56
that is, when both people answer the same way.
42
116931
2156
când două persoane răspund la fel.
01:59
For example, two people who are both into scary movies
43
119111
2548
Astfel, doi oameni cărora le plac filmele de groază
02:01
are probably a better match than one person who is and one who isn't.
44
121683
3321
ar fi un cuplu mai bun
decât cineva căruia-i plac și altcineva căruia îi displac.
02:05
But what about a question like,
45
125028
1493
Dar cu întrebări ca
02:06
"Do you like to be the center of attention?"
46
126545
2062
„Doriți să fiți în centrul atenției?"
02:08
If both people in a relationship are saying yes to this,
47
128631
2628
Dacă ambii parteneri răspund da, atunci s-ar putea să aibă mari probleme.
02:11
they're going to have massive problems.
48
131283
2093
02:13
We realized this early on,
49
133400
1245
Am realizat asta din timp și am decis că aveam nevoie
02:14
and so we decided we needed a bit more data from each question.
50
134669
3269
de mai multe detalii la fiecare întrebare.
02:17
We had to ask people to specify not only their own answer,
51
137962
2763
Am rugat oamenii să specifice nu doar propriul răspuns,
02:20
but the answer they wanted from someone else.
52
140749
2265
ci și cel dorit de la partener.
02:23
That worked really well.
53
143038
1501
A funcționat bine, dar aveam nevoie de încă o dimensiune.
02:24
But we needed one more dimension.
54
144563
1604
02:26
Some questions tell you more about a person than others.
55
146191
2643
Unele întrebări oferă mai multe detalii decât altele.
02:28
For example, a question about politics, something like,
56
148858
3395
De exemplu, o întrebare legată de politică precum:
„Ce e mai rău, incendierea cărților sau cea a drapelului?"
02:32
"Which is worse: book burning or flag burning?"
57
152277
2288
02:34
might reveal more about someone than their taste in movies.
58
154589
2810
poate dezvălui mai mult decât gustul cuiva în filme.
02:37
And it doesn't make sense to weigh all things equally,
59
157423
2619
Cum nu toate lucrurile pot fi evaluate la fel,
am adăugat un aspect final datelor.
02:40
so we added one final data point.
60
160066
1596
02:41
For everything that OkCupid asks you,
61
161686
2024
Pentru toate întrebările de la OK Cupid, puteți specifica
02:43
you have a chance to tell us the role it plays in your life.
62
163734
2829
rolul acestora în viața dumneavoastră, de la irelevant la obligatoriu.
02:46
And this ranges from irrelevant to mandatory.
63
166587
2319
02:49
So now, for every question, we have three things for our algorithm:
64
169446
3222
Deci la fiecare întrebare, algoritmul dispune acum de trei lucruri:
02:52
first, your answer;
65
172692
1352
răspunsul dumneavoastră;
02:54
second, how you want someone else -- your potential match -- to answer;
66
174617
4140
apoi, cum doriți ca posibila pereche să răspundă,
02:58
and third, how important the question is to you at all.
67
178781
2788
și, în final, importanța întrebării pentru dumneavoastră.
03:02
With all this information,
68
182710
1252
Cu aceste informații,
03:03
OkCupid can figure out how well two people will get along.
69
183986
3118
OK Cupid poate stabili dacă doi oameni se potrivesc.
03:07
The algorithm crunches the numbers and gives us a result.
70
187128
3006
Algoritmul preschimbă numerele în rezultate.
Uitați un exemplu practic:
03:10
As a practical example,
71
190158
1152
03:11
let's look at how we'd match you with another person.
72
191334
2525
să vedem cum putem să vă potrivim cu o altă persoană, să zicem B.
03:13
Let's call him "B."
73
193883
1189
Rata compatibilității cu B depinde de întrebările răspunse în comun.
03:16
Your match percentage with B is based on questions you've both answered.
74
196023
3482
03:19
Let's call that set of common questions "s."
75
199529
2425
Să le spunem întrebărilor comune „s".
Într-un exemplu simplu, folosim un set „s" limitat,
03:22
As a very simple example, we use a small set "s"
76
202559
2349
03:24
with just two questions in common,
77
204932
1641
cu doar două întrebări în comun, după care vom calcula compatibilitatea.
03:26
and compute a match from that.
78
206597
1828
03:28
Here are our two example questions.
79
208449
1671
Uitați cele două întrebări exemplu.
03:30
The first one, let's say, is, "How messy are you?"
80
210144
2381
Să zicem că prima e: „Cât de dezordonat sunteți?"
03:32
And the answer possibilities are:
81
212549
2096
iar răspunsurile posibile sunt:
03:34
very messy, average and very organized.
82
214669
3361
foarte dezordonat, acceptabil și foarte organizat.
Să zicem că ați răspuns „foarte organizat"
03:38
And let's say you answered "very organized,"
83
218054
2060
03:40
and you'd like someone else to answer "very organized,"
84
220138
2760
și doriți pe altcineva cu același răspuns,
03:42
and the question is very important to you.
85
222922
2256
iar întrebarea e foarte importantă pentru dumneavoastră.
03:45
Basically, you're a neat freak.
86
225202
1492
Adică sunteți foarte îngrijit.
03:46
You're neat, you want someone else to be neat, and that's it.
87
226718
2868
Sunteți îngrijit, și doriți ca și celălalt să fie așa.
03:49
And let's say B is a little bit different.
88
229610
2015
Să spunem că B e puțin diferit.
03:51
He answered "very organized" for himself,
89
231649
2039
Deși a răspuns foarte organizat, „acceptabil” e tot un răspuns bun
03:53
but "average" is OK with him as an answer from someone else,
90
233712
3007
03:56
and the question is only a little important to him.
91
236743
2402
și întrebarea e puțin relevantă pentru el.
să ne uităm la a doua întrebare, cea din exemplul anterior:
03:59
Let's look at the second question, from our previous example:
92
239169
2893
„Vă place să fiți în centrul atenției?"
04:02
"Do you like to be the center of attention?"
93
242086
2056
Răspunsurile pot fi doar da sau nu.
04:04
The answers are "yes" and "no."
94
244166
1514
04:05
You've answered "no," you want someone else to answer "no,"
95
245704
2995
Ați răspuns „nu", doriți ca și celălalt să răspundă „nu",
04:08
and the question is only a little important to you.
96
248723
2391
iar întrebarea e doar puțin importantă.
B a răspuns „da", vrea ca celălalt să răspundă „nu",
04:11
Now B, he's answered "yes."
97
251138
1621
04:12
He wants someone else to answer "no,"
98
252783
1776
04:14
because he wants the spotlight on him,
99
254583
2274
astfel ca el să fie în centrul atenției,
04:16
and the question is somewhat important to him.
100
256881
2430
iar întrebarea e destul de importantă pentru el.
04:19
So, let's try to compute all of this.
101
259335
1999
Să calculăm toate acestea.
04:21
Our first step is, since we use computers to do this,
102
261972
2503
Primul pas este, devreme ce folosim calculatoare,
04:24
we need to assign numerical values
103
264499
1867
să atribuim valori numerice
04:26
to ideas like "somewhat important" and "very important,"
104
266390
2627
ideilor ca „destul de important" și „foarte important",
04:29
because computers need everything in numbers.
105
269041
2211
deoarece calculatoarele pot procesa doar cifre.
04:31
We at OkCupid decided on the following scale:
106
271276
2403
Aici, la OK Cupid, am ales următoarea scală:
04:33
"Irrelevant" is worth 0.
107
273703
1946
„irelevant" are valoarea 0, „puțin important" valorează 1,
04:36
"A little important" is worth 1.
108
276173
1889
04:38
"Somewhat important" is worth 10.
109
278538
1809
„destul de important" valorează 10,
04:40
"Very important" is 50.
110
280831
1754
„foarte important" înseamnă 50 și „obligatoriu" 250.
04:42
And "absolutely mandatory" is 250.
111
282609
3612
04:46
Next, the algorithm makes two simple calculations.
112
286245
2631
Apoi, algoritmul efectuează două operații simple.
04:48
The first is: How much did B's answers satisfy you?
113
288900
3246
Prima calculează în ce măsură v-a mulțumit răspunsul lui B,
adică, numărul posibil de puncte obținut de B pe scala dumneavoastră.
04:52
That is, how many possible points did B score on your scale?
114
292170
3793
04:55
Well, you indicated that B's answer to the first question,
115
295987
3212
Ați menționat că răspunsul dat de B la prima întrebare legată de dezordine
04:59
about messiness,
116
299223
1166
contează foarte mult.
05:00
was very important to you.
117
300413
1350
05:01
It's worth 50 points and B got that right.
118
301787
2230
Valorează deci 50 de puncte și B a răspuns corect.
05:04
The second question is worth only 1,
119
304375
1737
A doua întrebare valorează doar 1, fiind puțin importantă,
05:06
because you said it was only a little important.
120
306136
2278
iar B a răspuns greșit.
05:08
B got that wrong,
121
308438
1197
05:09
so B's answers were 50 out of 51 possible points.
122
309659
2782
Deci răspunsurile lui B valorează 50 de puncte din 51.
05:12
That's 98% satisfactory. Pretty good.
123
312465
2608
Sau satisfacție de 98%.
Destul de bine.
05:15
The second question the algorithm looks at is: How much did you satisfy B?
124
315097
3949
A doua întrebare verificată de algoritm e cât de mult l-ați mulțumit pe B.
Pentru B răspunsul la prima întrebare valorează un punct și 10 la cea de-a doua.
05:19
Well, B placed 1 point on your answer to the messiness question
125
319070
3259
05:22
and 10 on your answer to the second.
126
322353
1953
05:24
Of those 11, that's 1 plus 10, you earned 10 --
127
324745
3387
Din cele 11 puncte, adică 1 plus 10, ați obținut 10,
05:28
you guys satisfied each other on the second question.
128
328156
2595
mulțumindu-vă reciproc la a doua întrebare.
05:30
So your answers were 10 out of 11 equals 91 percent satisfactory to B.
129
330775
4242
Răspunsurile date au obținut 10 din 11, adică 91% satisfacție pentru B.
05:35
That's not bad.
130
335041
1151
Nu e deloc rău.
05:36
The final step is to take these two match percentages
131
336216
2507
La urmă se obține un singur număr pentru ambii parteneri din cele două procentaje.
05:38
and get one number for the both of you.
132
338747
1866
05:40
To do this, the algorithm multiplies your scores,
133
340637
2611
Pentru asta, algoritmul vă înmulțește scorurile,
apoi extrage un radical de ordin n, unde n înseamnă numărul întrebărilor.
05:43
then takes the nth root,
134
343272
1665
05:44
where "n" is the number of questions.
135
344961
2183
Deoarece s, sau numărul întrebărilor, din acest exemplu e doar 2,
05:47
Because s, which is the number of questions in this sample,
136
347168
2830
05:50
is only 2,
137
350022
1841
05:51
we have: match percentage equals the square root
138
351887
3665
scorul final va însemna rădăcina pătrată din 98% înmulțit cu 91%.
05:55
of 98 percent times 91 percent.
139
355576
2896
05:58
That equals 94 percent.
140
358496
1784
Adică 94%.
06:00
That 94 percent is your match percentage with B.
141
360304
3204
Acel 94% semnifică compatibilitatea cu B.
06:03
It's a mathematical expression of how happy you'd be with each other,
142
363532
3243
Sau expresia matematică a fericirii determinată de ceea ce cunoaștem deja.
06:06
based on what we know.
143
366799
1183
De ce folosim înmulțirea și nu extragem radical din media celor două punctaje?
06:08
Now, why does the algorithm multiply,
144
368006
1786
06:09
as opposed to, say, average the two match scores together,
145
369816
2769
06:12
and do the square-root business?
146
372609
1670
06:14
In general, this formula is called the geometric mean.
147
374303
2529
Formula se numește medie geometrică,
06:16
It's a great way to combine values that have wide ranges
148
376856
2627
un mod bun de a combina valori numerice extinse reprezentând proprietăți diferite.
06:19
and represent very different properties.
149
379507
1915
Ideală pentru compatibilitatea romantică.
06:21
In other words, it's perfect for romantic matching.
150
381446
2413
06:23
You've got wide ranges and you've got tons of different data points,
151
383883
3247
Aveți mulțimi variate și tone de informații
despre filme, politică, religie, practic despre orice.
06:27
like I said, about movies, politics, religion -- everything.
152
387154
3438
06:30
Intuitively, too, this makes sense.
153
390616
1838
Acest lucru se înțelege chiar și intuitiv.
06:32
Two people satisfying each other 50 percent
154
392478
2775
Când doi oameni se satisfac 50%, aceștia ar face un cuplu mai bun
06:35
should be a better match than two others who satisfy 0 and 100,
155
395277
3952
decât doi oameni ce se satisfac în materie de 0, respectiv 100%,
06:39
because affection needs to be mutual.
156
399253
1814
fiindca iubirea trebuie împărtășită.
Mai adăugăm o mică corecție marginii de eroare,
06:41
After adding a little correction for margin of error,
157
401091
2491
06:43
in the case where we have a small number of questions,
158
403606
2571
dacă avem, să zicem, un număr mic de întrebări, ca în exemplu,
06:46
like we do in this example,
159
406201
1317
06:47
we're good to go.
160
407542
1172
și suntem practic gata.
06:48
Any time OkCupid matches two people,
161
408738
1912
Atunci când OK Cupid combină doi oameni, se urmează pașii menționați.
06:50
it goes through the steps we just outlined.
162
410674
2032
06:52
First it collects data about your answers,
163
412730
2269
Întâi se adună informația din răspunsurile date,
apoi vi se compară alegerile și preferințele
06:55
then it compares your choices and preferences to other people's
164
415023
2985
cu cele ale altora, prin procese matematice simple.
06:58
in simple, mathematical ways.
165
418032
1967
Abilitatea de a transforma date reale
07:00
This, the ability to take real-world phenomena
166
420023
2923
07:02
and make them something a microchip can understand,
167
422970
2415
în ceva ce poate fi utilizat de un microcip este, cred eu,
07:05
is, I think, the most important skill anyone can have these days.
168
425409
3277
cea mai importantă aptitudine a cuiva în ziua de azi.
07:08
Like you use sentences to tell a story to a person,
169
428710
2423
Așa cum folosiți fraze pentru a relata ceva,
folosiți algoritmi pentru a povesti ceva unui computer.
07:11
you use algorithms to tell a story to a computer.
170
431157
2484
Învățând limbajul, vă puteți împărtăși poveștile.
07:14
If you learn the language, you can go out and tell your stories.
171
434349
3033
Sper ca asta să vă fie de ajutor.
07:17
I hope this will help you do that.
172
437406
1753
Despre acest site

Acest site vă va prezenta videoclipuri de pe YouTube care sunt utile pentru a învăța limba engleză. Veți vedea lecții de engleză predate de profesori de top din întreaga lume. Faceți dublu clic pe subtitrările în limba engleză afișate pe fiecare pagină video pentru a reda videoclipul de acolo. Subtitrările se derulează în sincron cu redarea videoclipului. Dacă aveți comentarii sau solicitări, vă rugăm să ne contactați folosind acest formular de contact.

https://forms.gle/WvT1wiN1qDtmnspy7