Loan rejected in 4 seconds: who decided?
A loan form on your phone at night, and four seconds later: rejected. Who really decided? No person even read it. And the machine inside never said no. It only gave a number. Somebody had already drawn a red line on that number. Below the line: rejected.
हिन्दी में पढ़ें
रात को फ़ोन पे लोन का फ़ॉर्म भरा, और चार सेकंड में जवाब आया: रिजेक्टेड। असल में फ़ैसला किसने किया? किसी इंसान ने फ़ॉर्म पढ़ा तक नहीं। और अंदर बैठी मशीन ने ना नहीं कहा था। उसने बस एक नंबर दिया था। उस नंबर पे किसी ने पहले से एक लाल लकीर खींच रखी थी। नंबर लकीर से नीचे, तो रिजेक्टेड।
Who drew that line? The answer comes midway.
हिन्दी में पढ़ें
वो लकीर किसने खींची? इसका जवाब बीच में मिलेगा।
What this video answers
I am BSK. I build products with AI, and every rule's source is on screen. After this, you can say who really decides in a yes or no machine. Know this already? Stay anyway. A spam filter is coming that called a mail spam only when almost a hundred percent sure.
हिन्दी में पढ़ें
मैं बी एस के, ए आई से प्रोडक्ट बनाता हूँ। हर नियम का सोर्स स्क्रीन पे होगा। इसके बाद आप ख़ुद बता पाएँगे कि हाँ या ना वाली मशीन में असल फ़ैसला कौन करता है। अगर ये आप पहले से जानते हैं, तो भी रुकिए। एक स्पैम फ़िल्टर आएगा, जो मेल को तभी स्पैम कहता था, जब लगभग सौ परसेंट पक्का हो।
Three parts. The machine's score, the red line on it, and the same shape hiding everywhere. And at the end, what the bank must give you in writing.
हिन्दी में पढ़ें
तीन हिस्से हैं। मशीन का स्कोर, उस पे लाल लकीर, और वही ढाँचा, जो हर जगह छिपा है। और आख़िर में वो चीज़, जो बैंक को आपको लिखकर देनी होती है।
What you need first
This channel has a full AI course, but this video stands alone. First: in this kind of learning, a machine learns from examples that each carry the right answer. Second: from such answers, a machine can learn to guess a number, like a phone's price. There is a video on each. And when the answer is just yes or no? That is today.
हिन्दी में पढ़ें
इस चैनल पे ए आई का पूरा कोर्स है, पर ये वीडियो अकेले भी चलेगा। पहली बात: इस तरह की सीख में मशीन ऐसे उदाहरणों से सीखती है, जिनके साथ उनका सही जवाब लिखा हो। दूसरी बात: ऐसे जवाबों से मशीन किसी नंबर का अंदाज़ा लगाना सीख सकती है, जैसे फ़ोन का दाम। इन दोनों पे चैनल पे अलग वीडियो हैं। पर जब जवाब कोई नंबर नहीं, बस हाँ या ना हो, तब? आज वही।
What is classification in machine learning?
Many people believe this: a machine rejected my loan. The machine made the decision. It sounds right. But does it hold? Let us test it on a table where the answer is also yes or no. We made this table of four hundred old phones ourselves, for teaching. No phone in it is a real listing.
हिन्दी में पढ़ें
बहुत लोग मानते हैं: मेरा लोन मशीन ने रिजेक्ट किया। फ़ैसला मशीन का था। सुनने में ठीक लगता है। पर क्या ये टिकता है? इसे एक ऐसी टेबल पे परखते हैं, जहाँ जवाब भी हाँ या ना है। ये चार सौ पुराने फ़ोनों की टेबल हमने सिखाने के लिए ख़ुद बनाई है। इसमें कोई भी फ़ोन असली लिस्टिंग नहीं है।
Each phone's columns: age, storage, battery health and asking price. And the last column: sold within thirty days, or not. The machine got three hundred of them, each with its answer: sold, or not. Then a phone it had never seen. Two and a half years old, battery fine, asking eleven and a half thousand rupees.
हिन्दी में पढ़ें
हर फ़ोन के कॉलम: उम्र, स्टोरेज, बैटरी की सेहत, और माँगा गया दाम। और आख़िरी कॉलम: तीस दिन के अंदर बिका, या नहीं। मशीन को इनमें से तीन सौ फ़ोन दिए, हर एक के साथ उसका जवाब भी: बिका, या नहीं। फिर एक ऐसा फ़ोन, जो उसने कभी नहीं देखा था। ढाई साल पुराना, बैटरी ठीक-ठाक, और माँगा गया दाम साढ़े ग्यारह हज़ार।
What are we asking about it? Not a price. Just this: will it sell in thirty days, or not? Will the phone sell. Is the message spam. Should the loan be given. Each time, one question: which group does this case go in? Looking at a case and saying which group it goes in is called classification.
हिन्दी में पढ़ें
इसके बारे में हम क्या पूछ रहे हैं? दाम नहीं। बस इतना: ये तीस दिन में बिकेगा, या नहीं? फ़ोन बिकेगा या नहीं। मैसेज स्पैम है या नहीं। लोन मिले या नहीं। हर बार सवाल एक है: ये मामला किस ग्रुप में जाएगा? किसी मामले को देखकर बताना कि वो किस ग्रुप में जाएगा, इसे क्लासिफ़िकेशन कहते हैं।
Classification picks one of a fixed set of groups, while a price question wants a value that varies continuously.
हिन्दी में पढ़ें
क्लासिफ़िकेशन पहले से तय ग्रुपों में से एक चुनता है, जबकि दाम वाला सवाल लगातार बदलने वाला मान माँगता है।
Why a model gives a probability: logistic regression
We asked yes or no. Its answer: zero point six. Sixty out of a hundred. Not yes, not no. Near a hundred means it very likely sells in thirty days. Near zero, hardly any chance. For now, assume the score is honest. Of ten phones at sixty, about six really sell.
हिन्दी में पढ़ें
हमने हाँ या ना पूछा था। मशीन का जवाब आया: शून्य दशमलव छह। यानी सौ में साठ। न हाँ, न ना। सौ के पास मतलब, तीस दिन में बिकने की पूरी उम्मीद। शून्य के पास मतलब, लगभग कोई उम्मीद नहीं। अभी के लिए मान लीजिए कि ये स्कोर ईमानदार है। साठ वाले दस फ़ोनों में से लगभग छह सच में बिकते हैं।
Take the same phone, change only its price. Watch the score. Nine thousand: about ninety eight in a hundred. Eleven and a half thousand: sixty. Thirteen thousand: just sixteen. It learned what the table holds. A phone cheap for its age sells fast.
हिन्दी में पढ़ें
अब वही फ़ोन लीजिए, और बस उसका दाम बदलिए। स्कोर देखिए। नौ हज़ार माँगे, तो सौ में लगभग अट्ठानवे। साढ़े ग्यारह हज़ार, तो साठ। तेरह हज़ार, तो सिर्फ़ सोलह। मशीन ने वही सीखा जो टेबल में था। अपनी उम्र के हिसाब से सस्ता फ़ोन जल्दी बिकता है।
How is the score made? Two parts. A weight for each column, and a curve shaped like an S. A weight is how hard a column pulls the score. Each column's number is multiplied by its weight, and all are added up. Then the total goes through that S curve. However big or small the total, it lands between zero and one.
हिन्दी में पढ़ें
ये स्कोर बनता कैसे है? इसके दो हिस्से हैं। हर कॉलम का एक वज़न, और अंग्रेज़ी के एस जैसा एक मोड़। वज़न मतलब, कोई कॉलम स्कोर को कितना खींचता है। हर कॉलम के नंबर को उसके वज़न से गुणा करते हैं, और सबको जोड़ देते हैं। फिर ये जोड़ उस एस जैसे मोड़ से निकलता है। जोड़ कितना भी बड़ा या छोटा हो, वो शून्य और एक के बीच आ जाता है।
This method is called logistic regression. Regression, because it really does output a number, the probability of selling. The group is picked later, by the red line. Learning works the same way here. Keep nudging the weights until the error stops falling. On screen, you can watch it fall. The score is the logistic function of a weighted sum plus a bias. The weights are those that minimise log loss.
हिन्दी में पढ़ें
इस तरीक़े को लॉजिस्टिक रिग्रेशन कहते हैं। नाम में रिग्रेशन इसलिए है, क्योंकि ये सच में एक नंबर ही निकालता है, बिकने की प्रोबैबिलिटी। ग्रुप तो बाद में वो लाल लकीर चुनती है। सीखना यहाँ भी वैसा ही है। वज़न थोड़ा-थोड़ा खिसकाते जाइए, जब तक ग़लती घटना बंद न कर दे। स्क्रीन पे वो ग़लती गिरती दिख रही है। स्कोर, वज़न वाले जोड़ और एक बायस का लॉजिस्टिक फ़ंक्शन है। वज़न वो चुने जाते हैं, जिनसे लॉग लॉस सबसे कम हो।
There is another way to get a score. Find the five most similar phones in the table, and see how many sold. The nine thousand phone: all five neighbours had sold. Five of five, a score of one. Whatever the method, what comes out is a score. And a score alone rejects nobody. So who does?
हिन्दी में पढ़ें
स्कोर निकालने का एक और तरीक़ा भी है। टेबल में इस फ़ोन से सबसे मिलते-जुलते पाँच फ़ोन ढूँढिए, और देखिए कितने बिके। नौ हज़ार वाले फ़ोन के पाँचों पड़ोसी बिक गए थे। पाँच में पाँच, यानी स्कोर एक। तरीक़ा कोई भी हो, बाहर एक स्कोर ही निकलता है। और अकेला स्कोर किसी को रिजेक्ट नहीं करता। तो रिजेक्ट कौन करता है?
What is a threshold in machine learning?
Now the red line. The real decision hides here. Picture a dial from zero to a hundred. Somebody has drawn a red line on it. The needle is the machine's score. Needle above the line: yes. Below: no.
हिन्दी में पढ़ें
अब वो लाल लकीर। असली फ़ैसला यहीं छिपा है। एक डायल सोचिए, शून्य से सौ तक। उस पे किसी ने एक लाल लकीर खींच दी है। डायल की सुई है मशीन का स्कोर। सुई लकीर से ऊपर, तो हाँ। नीचे, तो ना।
Here the picture stops. On a car's dial, the red line marks real danger. Here nothing about the phone changes at the line. It is just a place someone chose. In the real machine, the needle? Its score. And the red line? The cut-off called the threshold. Our eleven and a half thousand phone, at sixty. Line at fifty: yes. Line at seventy: no. Same phone, same score.
हिन्दी में पढ़ें
बस, यहाँ तस्वीर रुकती है। गाड़ी के डायल पे लाल लकीर असली ख़तरा बताती है। यहाँ लकीर पे फ़ोन में कुछ नहीं बदलता। वो बस किसी की चुनी हुई जगह है। तो असली मशीन में सुई क्या है? उसका स्कोर। और लाल लकीर? वो हद, जिसे थ्रेशोल्ड कहते हैं। हमारा साढ़े ग्यारह हज़ार वाला फ़ोन, साठ पे। लकीर पचास पे हो, तो हाँ। सत्तर पे हो, तो ना। फ़ोन वही, स्कोर वही।
Now a hundred phones the machine has never seen. Fifty nine of them really sold within thirty days. Line at fifty. Yes to sixty five phones, but fourteen did not sell within thirty days. And eight that would have sold got a no. So mistakes come in two kinds. A wrong yes, a wrong no.
हिन्दी में पढ़ें
अब सौ ऐसे फ़ोन, जो मशीन ने कभी नहीं देखे। इनमें से उनसठ सच में तीस दिन के अंदर बिके। लकीर पचास पे। मशीन ने पैंसठ फ़ोनों को हाँ कहा, पर उनमें से चौदह तीस दिन में नहीं बिके। और आठ फ़ोन, जो बिक जाते, उन्हें ना मिली। यानी ग़लती दो तरह की होती है। ग़लत हाँ, और ग़लत ना।
Raise the line to ninety. Think: will the scores change, or only the yes and no? Not one score changed, not one weight. Only where the line sits. The result? Wrong yeses fall to three. But wrong noes rise to thirty.
हिन्दी में पढ़ें
अब लकीर नब्बे पे खिसकाते हैं। सोचिए: मशीन के स्कोर बदलेंगे, या सिर्फ़ हाँ और ना? मशीन का एक भी स्कोर नहीं बदला, एक भी वज़न नहीं बदला। सिर्फ़ लकीर की जगह बदली। और नतीजा? ग़लत हाँ घटकर बस तीन। पर ग़लत ना, बढ़कर पूरे तीस।
Down to thirty, and it flips. Four wrong noes, but twenty five wrong yeses. No line removes both mistakes. Somebody has to choose which one to live with. Back to the loan. A wrong yes means money lent that never returns.
हिन्दी में पढ़ें
लकीर तीस पे लाइए, तो उल्टा। ग़लत ना सिर्फ़ चार, पर ग़लत हाँ पच्चीस। कोई भी लकीर दोनों ग़लतियाँ ख़त्म नहीं करती। किसी को चुनना पड़ता है कि कौन सी ग़लती चलेगी। अब लोन पे लौटिए। ग़लत हाँ का मतलब: पैसा दिया, और वापस नहीं आया।
And a wrong no means a person who would have repaid in full was turned away. Perhaps asking for a loan for the first time. Which mistake costs more? That is not a maths question. It is a business decision, and an ethical one. So who drew the red line? People at the lender. Not the machine.
हिन्दी में पढ़ें
और ग़लत ना का मतलब: एक इंसान, जो पूरा पैसा लौटा देता, उसे दरवाज़े से लौटा दिया गया। शायद वो पहली बार लोन माँग रहा था। कौन सी ग़लती ज़्यादा महँगी है? ये गणित का सवाल नहीं है। ये बिज़नेस का फ़ैसला है, और नैतिकता का भी। तो लाल लकीर किसने खींची? लोन देने वाली कंपनी के लोगों ने। मशीन ने नहीं।
A Reserve Bank committee wrote a related principle in its twenty twenty five report. Final authority stays with people, and they can overrule the machine. Next time someone says the machine said no, ask them: who drew the line? Half is only a default. With calibrated scores, the cheapest cut follows directly from the two costs. Otherwise it is tuned on held-out data by measured cost.
हिन्दी में पढ़ें
रिज़र्व बैंक की एक कमेटी ने दो हज़ार पच्चीस की रिपोर्ट में इसी से जुड़ा एक सिद्धांत लिखा। आख़िरी फ़ैसला इंसानों के हाथ में रहे, और वो मशीन की बात पलट सकें। अगली बार कोई कहे कि मशीन ने मना किया, तो उससे पूछिए: लकीर किसने खींची? आधे पे लकीर बस डिफ़ॉल्ट है। स्कोर कैलिब्रेटेड हों, तो सबसे सस्ती लकीर दोनों ग़लतियों की क़ीमत से सीधे निकल आती है। वरना उसे अलग रखे डेटा पे ख़र्च नापकर चुना जाता है।
How does a spam filter work? Naive Bayes
What is the best known yes or no machine in your life? The spam filter. Classification again: spam or not. And what does it do? It counts words. We wrote twenty four short messages ourselves, for teaching. Ten spam, fourteen real, like bring milk on the way home.
हिन्दी में पढ़ें
आपकी ज़िंदगी की सबसे जानी-पहचानी हाँ या ना वाली मशीन कौन सी है? स्पैम फ़िल्टर। ये भी क्लासिफ़िकेशन है: स्पैम, या नहीं। और वो करता क्या है? बस शब्द गिनता है। हमने सिखाने के लिए चौबीस छोटे मैसेज ख़ुद लिखे। दस स्पैम, और चौदह असली, जैसे घर आते हुए दूध ले आना।
The word click came seven times in spam. Not once in the real messages. The machine counts the words in each message. The order is thrown away; only the counts are kept. The starting guess: ten of our twenty four messages were spam. Then each word shifts that guess a little.
हिन्दी में पढ़ें
क्लिक शब्द स्पैम में सात बार आया। असली मैसेजों में एक बार भी नहीं। मशीन हर मैसेज के शब्द गिन लेती है। शब्दों का क्रम फेंक दिया जाता है, बस गिनती रखी जाती है। शुरू का अंदाज़ा: हमारे चौबीस में से दस मैसेज स्पैम थे। फिर हर शब्द उस अंदाज़े को थोड़ा सा खिसकाता है।
Click pushes towards spam. Home pushes towards real. And this method is a little naive. It assumes each word has nothing to do with the others. Hence its name, naive Bayes. Feed it instant loan approved, click now. Spam score, nearly one.
हिन्दी में पढ़ें
क्लिक दिखा, तो स्पैम की तरफ़। होम दिखा, तो असली की तरफ़। और ये तरीक़ा थोड़ा भोला है। वो मानकर चलता है कि हर शब्द का बाक़ी शब्दों से कोई लेना-देना नहीं। इसलिए इसका नाम है नाइव बेज़। अब इंस्टेंट लोन अप्रूव्ड, क्लिक नाउ, जैसा मैसेज डालिए। स्पैम स्कोर लगभग एक।
And a friend's message: are you free now? Score about fifty seven. Free and now pushed it over the line. With the line at fifty, your friend's message goes to spam. And you would never know. That is why, in nineteen ninety eight, four researchers built a filter. It called a mail spam only when ninety nine point nine percent sure.
हिन्दी में पढ़ें
और दोस्त का मैसेज: आर यू फ़्री नाउ? यानी क्या तुम अभी फ़्री हो? स्कोर लगभग सत्तावन। फ़्री और नाउ ने उसे लकीर के पार धकेल दिया। लकीर पचास पे हो, तो आपके दोस्त का मैसेज स्पैम में चला जाएगा। आपको पता भी नहीं चलेगा। इसीलिए उन्नीस सौ अट्ठानवे में चार रिसर्चरों ने एक फ़िल्टर बनाया। वो मेल को तभी स्पैम कहता था, जब निन्यानवे दशमलव नौ परसेंट पक्का हो।
A question, in your head. Why not put the line at fifty? Because losing a real mail costs far more than seeing one spam mail. They wrote that reason themselves. Because it treats words as unrelated, its probabilities are rough. The paper said so itself, yet the ninety nine point nine line still suited the task.
हिन्दी में पढ़ें
एक सवाल, जवाब मन में दीजिए। उन्होंने लकीर पचास पे क्यों नहीं रखी? क्योंकि असली मेल खो देने की क़ीमत, एक स्पैम मेल देख लेने से कहीं ज़्यादा है। ये वजह उन्होंने ख़ुद लिखी। शब्दों को अलग मानने की वजह से इसकी प्रोबैबिलिटी बहुत सटीक नहीं होती। उस पेपर ने ख़ुद ये माना, फिर भी निन्यानवे दशमलव नौ की लकीर उस काम के लिए ठीक बैठी।
Fraud alerts and medical tests: the same score and line
Once you see this shape, you will see it everywhere. A fraud alert on your card: a score and a line behind it. Line too low, and your card keeps getting blocked. A medical screening test. There too, a score and a line.
हिन्दी में पढ़ें
ये ढाँचा एक बार दिख गया, तो हर जगह दिखेगा। आपके कार्ड पे फ़्रॉड का अलर्ट। पीछे एक स्कोर है, और एक लकीर। लकीर बहुत नीची, तो आपका कार्ड बार-बार बेवजह रुकेगा। बीमारी की जाँच वाला टेस्ट। वहाँ भी एक स्कोर, और एक लकीर।
But there, a wrong no means an illness that was missed. So whoever sets that line may prefer a wrong yes. That has a cost too: another test, and days of worry. The shape is the same. The line differs everywhere, because the cost of a mistake differs. And this is not just theory. The same committee's report counted almost six hundred AI applications from surveys. Some running, some being built. About one in seven was in deciding loans.
हिन्दी में पढ़ें
पर वहाँ ग़लत ना का मतलब है, एक बीमारी जो पकड़ में नहीं आई। इसलिए वहाँ लकीर रखने वाले ग़लत हाँ झेलना पसंद कर सकते हैं। उसकी भी क़ीमत है: एक और जाँच, और कुछ दिन की चिंता। ढाँचा वही है। लकीर हर जगह अलग है, क्योंकि हर जगह ग़लती की क़ीमत अलग है। और ये सिर्फ़ किताबी बात नहीं है। रिज़र्व बैंक की उसी कमेटी की रिपोर्ट में, सर्वे से, ए आई के लगभग छह सौ काम गिने गए। कुछ चालू थे, कुछ बन रहे थे। हर सात में से लगभग एक, लोन के फ़ैसले में था।
The same report, as an example, called loan decisions high risk, and fraud detection medium risk. Because here the table holds you, not phones. So what is in your hands?
हिन्दी में पढ़ें
उसी रिपोर्ट ने उदाहरण के तौर पे लोन के फ़ैसले को ऊँचे जोखिम वाला काम बताया, और फ़्रॉड पकड़ने को बीच के जोखिम वाला। क्योंकि यहाँ टेबल में फ़ोन नहीं, आप हैं। तो आपके हाथ में क्या है?
Loan rejected? The right to know why
Said plainly: when the decision is about a person, being accurate is not enough. Knowing why it was a no, and being able to complain about it, matter just as much. And what if the machine learned from old decisions where some people were already refused for no good reason? There is a separate video on that.
हिन्दी में पढ़ें
सीधी बात ये है: जब फ़ैसला किसी इंसान के बारे में हो, तो सिर्फ़ सही होना काफ़ी नहीं है। उतना ही ज़रूरी है ये जानना कि ना क्यों मिली, और उस फ़ैसले की शिकायत कर पाना। और अगर मशीन ने ऐसे पुराने फ़ैसलों से सीखा हो, जिनमें कुछ लोगों को पहले से ही बेवजह ना मिलती थी? उस पे चैनल पे अलग वीडियो है।
That committee made a recommendation in twenty twenty five. People should have an effective way to complain about AI decisions too. What can you ask for today? The Reserve Bank's rule: if a loan application is rejected, the bank shall state the main reasons in writing. Any bank loan, credit cards too. But this rule is for commercial banks, not for every lender.
हिन्दी में पढ़ें
उसी कमेटी ने दो हज़ार पच्चीस में एक सिफ़ारिश की। ए आई के फ़ैसलों पे भी लोगों के पास शिकायत का असरदार रास्ता हो। और आज आप क्या माँग सकते हैं? रिज़र्व बैंक के नियम में लिखा है: लोन की अर्ज़ी रिजेक्ट हो, तो बैंक उसकी मुख्य वजह लिखकर बताएगा। बैंक का कोई भी लोन हो, क्रेडिट कार्ड भी। पर ये नियम कमर्शियल बैंकों के लिए है, हर लोन देने वाले के लिए नहीं।
Information only, not legal or financial advice. Read the latest rules on the Reserve Bank's site.
हिन्दी में पढ़ें
ये सिर्फ़ जानकारी है, क़ानूनी या फ़ाइनेंशियल सलाह नहीं। ताज़ा नियम रिज़र्व बैंक की साइट पे पढ़िए।
Who decides when a loan is rejected: the answer
So what happened to that loan at night? The machine gave a number. And it fell below a line chosen by people at the lender. So now you tell me: a loan rejected in four seconds. Who really decided? The machine only gave a score. The line decided, and people chose it, by which mistake costs more.
हिन्दी में पढ़ें
तो उस रात वाले लोन के साथ हुआ क्या? मशीन ने एक नंबर दिया। और वो नंबर उस लकीर से नीचे था, जो लोन देने वाली कंपनी के लोगों ने चुनी थी। तो अब आप बताइए: चार सेकंड में लोन रिजेक्ट हुआ। असल में फ़ैसला किसने किया? मशीन ने बस स्कोर दिया। फ़ैसला उस लकीर ने किया, जो इंसानों ने चुनी, ये देखकर कि कौन सी ग़लती ज़्यादा महँगी है।
Where would you draw the loan line? Comment below. Next question: why does a model perfect in practice fail the real exam? Want straight answers like these? Subscribe, so you do not miss the next one.
हिन्दी में पढ़ें
आप लोन की लकीर कहाँ रखते? कमेंट में बताइए। अगला सवाल: प्रैक्टिस में परफ़ेक्ट मॉडल, असली इम्तिहान में फ़ेल क्यों होता है? ऐसे सवालों के सीधे जवाब चाहिए, तो सब्सक्राइब कीजिए, ताकि अगला वीडियो आपसे न छूटे।
Ideas to keep
- Classification
- Looking at a case and saying which group it goes in is called classification.
- Logistic regression
- How is the score made? Two parts. A weight for each column, and a curve shaped like an S. A weight is how hard a column pulls the score. Each column's number is multiplied by its weight, and all are added up. Then the total goes through that S curve. However big or small the total, it lands between zero and one. This method is called logistic regression. Regression, because it really does output a number, the probability of selling. The group is picked later, by the red line.
- Threshold
- In the real machine, the needle? Its score. And the red line? The cut-off called the threshold.
THE WORKED CASE
Follow the example
We made this table of four hundred old phones ourselves, for teaching. No phone in it is a real listing. We asked yes or no. Its answer: zero point six. Sixty out of a hundred. Not yes, not no. Near a hundred means it very likely sells in thirty days. Near zero, hardly any chance. For now, assume the score is honest. Of ten phones at sixty, about six really sell. Take the same phone, change only its price. Watch the score. Nine thousand: about ninety eight in a hundred. Eleven and a half thousand: sixty. Thirteen thousand: just sixteen. It learned what the table holds. A phone cheap for its age sells fast. Now the red line. The real decision hides here. Picture a dial from zero to a hundred. Somebody has drawn a red line on it. The needle is the machine's score. Needle above the line: yes. Below: no. Here the picture stops. On a car's dial, the red line marks real danger. Here nothing about the phone changes at the line. It is just a place someone chose. In the real machine, the needle? Its score. And the red line? The cut-off called the threshold. Our eleven and a half thousand phone, at sixty. Line at fifty: yes. Line at seventy: no. Same phone, same score. Now a hundred phones the machine has never seen. Fifty nine of them really sold within thirty days. Line at fifty. Yes to sixty five phones, but fourteen did not sell within thirty days. And eight that would have sold got a no. So mistakes come in two kinds. A wrong yes, a wrong no. Raise the line to ninety. Think: will the scores change, or only the yes and no? Not one score changed, not one weight. Only where the line sits. The result? Wrong yeses fall to three. But wrong noes rise to thirty. Down to thirty, and it flips. Four wrong noes, but twenty five wrong yeses. No line removes both mistakes. Somebody has to choose which one to live with. Back to the loan. A wrong yes means money lent that never returns. And a wrong no means a person who would have repaid in full was turned away. Perhaps asking for a loan for the first time. Which mistake costs more? That is not a maths question. It is a business decision, and an ethical one. So who drew the red line? People at the lender. Not the machine.
Check your understanding
Go to the source
- Sahami, Dumais, Heckerman, Horvitz, "A Bayesian Approach to Filtering Junk E-Mail", AAAI Workshop on Learning for Text Categorization, 1998 (AAAI Technical Report WS-98-05)
- RBI, FREE-AI Committee Report, "Framework for Responsible and Ethical Enablement of Artificial Intelligence", 13 Aug 2025, Sutra 2 "People First" (para 4.3.1)
- RBI, Reserve Bank of India (Commercial Banks - Responsible Business Conduct) Directions, 2025, RBI/2025-26/170, 28 Nov 2025 (page: "Updated as on October 1, 2026"), para 331