<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Jerry on Medium]]></title>
        <description><![CDATA[Stories by Jerry on Medium]]></description>
        <link>https://medium.com/@jxudata?source=rss-a6cf48db9600------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*YV2HlFz3lYGUksfFXB_pOg.jpeg</url>
            <title>Stories by Jerry on Medium</title>
            <link>https://medium.com/@jxudata?source=rss-a6cf48db9600------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 06:26:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jxudata/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[The origin of machine learning and machines]]></title>
            <link>https://jxudata.medium.com/the-origin-of-machine-learning-and-machines-554d1c9ad541?source=rss-a6cf48db9600------2</link>
            <guid isPermaLink="false">https://medium.com/p/554d1c9ad541</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[neural-networks]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Jerry]]></dc:creator>
            <pubDate>Wed, 28 Oct 2020 07:15:26 GMT</pubDate>
            <atom:updated>2020-10-28T07:15:26.587Z</atom:updated>
            <content:encoded><![CDATA[<p>subscribe at <a href="https://overcookeddata.substack.com/">https://overcookeddata.substack.com/</a></p><p>There are lots of machines in Machine Learning: Gradient Boosting Machines, Boltzmann Machine, Helmholtz Machine, Support Vector Machine, etc. So, what’s the matter with these <strong>machines</strong>. More importantly, why is it <strong>machine</strong> learning?</p><p>In this article, I will introduce the history of the following:</p><ul><li>Machine</li><li>Learning Machines</li><li>Machine Learning</li><li>Machines in Machine Learning</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/863/0*POfobMNAXk5MouRX.png" /></figure><h3>Machine</h3><p>Before we call it computers, people used the term, “Machine”, which was introduced by Alan Turing in his seminal 1936 paper as “UTM” (Universal Turing machine). Back then, “computer” is used to describe a person who did calculations. Until 1970s, it was not uncommon for companies and governments to advertise jobs as “computers”.</p><p>‘Machine’ is also used for naming of the ACM (Association for Computing Machinery), which was founded as the Eastern Association for Computing Machinery at a meeting at Columbia University in 1947.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*PCIGmbCSZ_sBRyl4.gif" /></figure><p>Don’t forget that computers in the 50s were literally machines. The Electronic Numerical Integrator and Computer (ENIAC) was one of the first large general-purpose digital computers. By the end of its operation in 1956, ENIAC weighed more than 30 short tons, was roughly 8 ft × 3 ft × 98 ft in size, occupied 1,800 sq ft and consumed 150 kW of electricity. Another important aspect is that to develop functionalities, the machine requires rewiring, restructuring, or redesigning the machine due to its fixed program, which is very different from modern concept of software and hardware.</p><h3>Learning Machines</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/296/0*6EdnzZsOeFjMRkeb.jpeg" /></figure><p>The first combination of “machine” and “learning” comes from Turing. In his 1950 seminal paper, which titled “Computing Machinery and Intelligence” and introduced Turing test to the general public, he created the term “Learning Machines” and used it as one of the headings. He has some quite interesting descriptions of a learning machine, where he compared it to the Constitution:</p><blockquote><em>The idea of a learning machine may appear paradoxical to some readers. How can the rules of operation of the machine change? They should describe completely how the machine will react whatever its history might be, whatever changes it might undergo. The rules are thus quite time-invariant. This is quite true. The explanation of the paradox is that the rules which get changed in the learning process are of a rather less pretentious kind, claiming only an ephemeral validity. The reader may draw a parallel with the Constitution of the United States.</em></blockquote><p>He also describes the concept of Black Box, which is now one of the most important fields in Machine Learning:</p><blockquote><em>An important feature of a learning machine is that its teacher will often be very largely ignorant of quite what is going on inside, although he may still be able to some extent to predict his pupil’s behaviour.</em></blockquote><h3>Machine Learning</h3><p>In 1952, Arthur Samuel developed one of the first AI programs. It was a checkers program for IBM 701. In his 1959 paper titled Some Studies in Machine Learning Using the Game of Checkers, he popularized the term “Machine Learning”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nq7pZWMbNfdO46Dj.png" /></figure><h3>Machines in Machine Learning</h3><p>However, where do these machines come from?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/0*cdswYzfTP-Uti8UO.png" /></figure><ul><li>Boltzmann Machine was named by Ackley, D., Hinton, G., &amp; Sejnowski, T., in 1985 in the paper <em>A Learning algorithm for boltzmann machine.</em></li><li>Helmholtz Machine was named by Peter, Dayan; Hinton, Geoffrey E.; Neal, Radford M.; Zemel, Richard S. in 1995 in the paper <em>The helmholtz machine</em>.</li><li>Support Vector Machine was actually called Support-vector Networks. It was invented by Corinna Cortes and Vladimir Vapnik in their 1995 paper. The term Support Vector Machine probably comes from the first sentence:</li></ul><blockquote><em>The </em><strong><em>support-vector</em></strong><em> network is a new learning </em><strong><em>machine</em></strong><em> for two-group classification problems.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IThSb-6R5ampwua-.png" /></figure><ul><li>Gradient Boosting Machines was introduced by Friedman in his 1999 paper <em>Greedy Function Approximation: A Gradient Boosting Machine</em>.</li></ul><p>They were called ‘Machine’ for many reasons, one of them is actually patent law.</p><p>In statutory United States patent law, software and computer programs are not explicitly mentioned. US courts tried clarify the boundary between patent-eligible and patent-ineligible subject matter for computers and software.</p><p>Section 101 of <a href="https://en.wikipedia.org/wiki/Title_35,_United_States_Code">title 35, United States Code</a>, provides:</p><blockquote><em>Whoever invents or discovers any new and useful process, </em><strong><em>machine</em></strong><em>, manufacture, or composition of matter, or any new and useful improvement thereof, may obtain a patent therefor, subject to the conditions and requirements of this title.</em></blockquote><p>In case the invented “algorithms” need to be patented, the scientists preferred to use the word “machine”.</p><p>One great video I found during writing of the article is <a href="https://en.wikipedia.org/wiki/Patrick_Winston">Patrick Winston</a>’s <a href="https://calango.org/lessons/10066/learn/lecture-16-learning-support-vector-machines/"><strong>Lecture 16: Learning: Support Vector Machines</strong></a><strong>.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KtUXE3e9WcR8kjiy.png" /></figure><p>I would like to share one snippet<strong>:</strong></p><blockquote><em>Well, I want to talk to you today about how ideas develop, actually.</em></blockquote><blockquote><em>Because you look at stuff like this in a book, and you think, well, Vladimir Vapnik just figured this out one Saturday afternoon when the weather was too bad to go outside.</em></blockquote><blockquote><em>That’s not how it happens. It happens very differently.</em></blockquote><p>Later in the video, he told the interesting history of Support Vector Machines:</p><blockquote><em>So around 1992, 1993, Bell Labs was interested in hand-written character recognition and in neural nets.</em></blockquote><blockquote><em>Vapnik thinks that neural nets — what would be a good word to use?</em></blockquote><blockquote><em>I can think of the vernacular, but he thinks that they’re not very good.</em></blockquote><blockquote><em>So he bets a colleague a good dinner that support vector machines will eventually do better at handwriting recognition then neural nets.</em></blockquote><blockquote><em>And it’s a dinner bet, right?</em></blockquote><blockquote><em>It’s not that big of deal.</em></blockquote><blockquote><em>But as Napoleon said, it’s amazing what a soldier will do for a bit of ribbon.</em></blockquote><blockquote><em>So that makes colleague, who’s working on this problem with handwritten recognition, decides to try a support vector machine with a kernel, in which n equals 2, just slightly nonlinear, works like a charm.</em></blockquote><blockquote><em>Was this the first time anybody tried a kernel?</em></blockquote><blockquote><em>Vapnik actually had the idea in his thesis but never though it was very important.</em></blockquote><blockquote><em>As soon as it was shown to work in the early ’90s on the problem handwriting recognition, Vapnik resuscitated the idea of the kernel, began to develop it, and became an essential part of the whole approach of using support vector machines.</em></blockquote><blockquote><em>So the main point about this is that it was 30 years in between the concept and anybody ever hearing about it.</em></blockquote><blockquote><em>It was 30 years between Vapnik’s understanding of kernels and his appreciation of their importance.</em></blockquote><blockquote><em>And that’s the way things often go, great ideas followed by long periods of nothing happening, followed by an epiphanous moment when the original idea seemed to have great power with just a little bit of a twist.</em></blockquote><blockquote><em>And then, the world never looks back.</em></blockquote><blockquote><em>And Vapnik, who nobody ever heard of until the early ’90s, becomes famous for something that everybody knows about today who does machine learning.</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=554d1c9ad541" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How will the COVID-19 pandemic reshape FinTech]]></title>
            <link>https://jxudata.medium.com/how-will-the-covid-19-pandemic-reshape-fintech-8ffda5f2b5de?source=rss-a6cf48db9600------2</link>
            <guid isPermaLink="false">https://medium.com/p/8ffda5f2b5de</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[banking]]></category>
            <category><![CDATA[covid19]]></category>
            <category><![CDATA[consumer-finance]]></category>
            <category><![CDATA[fintech]]></category>
            <dc:creator><![CDATA[Jerry]]></dc:creator>
            <pubDate>Sat, 04 Apr 2020 22:18:12 GMT</pubDate>
            <atom:updated>2020-04-05T08:51:03.284Z</atom:updated>
            <content:encoded><![CDATA[<p>FinTech will further embrace Artificial Intelligence during and after the COVID-19 pandemic. A.I. is the underlying engine supporting all the changes happening. To prepare for the future world, we need better identity verification, need real-time big data, need to be more personalized to operate completely online.</p><h3>Contact-less Payment</h3><p>Paper money is almost 1000 years old and the oldest paper money was introduced in Song dynasty China during the 11th century. However, if you go to China, (almost) no one is using cash anymore. You can see QR codes of WeChat Pay or AliPay everywhere.</p><p>COVID-19 gives us one more reason to kill cash: <strong>hygiene</strong>.</p><p>Do you know that paper money can reportedly carry more germs than a household toilet? Some study found that virus can live on cash for more than 17 days. We will get ride of pennies. We will get rid of paper money. They are simply old and dirty.</p><p>Not surprising? You are mostly using credit card anyway? A study in 2019 found that credit card is on average dirtier than NYC public bathroom and paper money.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/591/1*igj1yLFwpHP2TqX3xUSS1w.png" /><figcaption>Source: <a href="https://www.huffpost.com/entry/dirty-money-germs_l_5cdec311e4b09e057802bdca">Huffpost</a> and <a href="https://lendedu.com/blog/dirty-money-credit-cards/">LendEDU</a></figcaption></figure><p>We should promote contact-less payments, which include payment with facial recognition, NFC, and or voice.</p><h3>Consumer Finance</h3><ul><li><strong>Stress testing of risk management</strong></li></ul><p>Those who have been doing proper risk management will survive the short-term crisis. With million of people being unemployed and losing income, consumer finance industry is facing a unprecedented risk as users lose ability or willingness to repay.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dR_4wAZiSEWebyl2" /><figcaption>Cover of NYT</figcaption></figure><p>Economists have been warning about the economic recession but few expected this to be a pandemic-driven crisis. This is not a drill. In the field of BNPL (Buy Now Pay Later) in Australia, Zip Co has been doing credit check on its customers while Afterpay does not. UBS predicts Zip Co is better placed with debt crisis compared to Afterpay¹. BNPL players who didn’t diversify it’s merchant partners will also face tremendous amount of risk in the short run, especially those who rely heavily on fashion, luxury, and travel.</p><ul><li><strong>Discretionary spending is not dying</strong></li></ul><p>The recession following COVID-19 pandemic will make people rethink their consumption. People will cut down discretionary spending, especially leisure travel and luxury. However, discretionary spending is not dead and will exist for a long time.</p><p>This current wave of stay-at-home lifestyle drives Furniture and Home Fitness sales. For example, Peloton is in surging demand right now that you should expect delivery delays of up to a month, according to their website.</p><p>There will certainly be a reshuffle in consumer spending after COVID-19. In the future, people will probably rethink fast fashion, luxury, unnecessary consumer electronics, and other verticals. It is still unclear now what changes will happen as they largely depend on how long-lasting and how severe this pandemic is becoming.</p><ul><li><strong>It is an antidote to economic recession</strong></li></ul><p>To stimulate consumption, in addition to local cities giving out consumer vouchers, the government is counting on consumer finance.</p><p>According to Financial Times⁴,</p><blockquote>Ye Yanfei, an official at the China Banking and Insurance Regulatory Commission, said at a press conference on Sunday the government would “count on” consumer credit to help consumption recover.</blockquote><h3>Personal Finance Management</h3><p>It is time to rethink personal finance management as well. It is a lesson for everyone to control debt and diversify their portfolio. There is a huge psychological impact on consumers, especially those suffered financial hardness during the pandemic.</p><p>MX, a digital transformation platform for banks and credit unions, has released a study showing that 60% of those 1000 customers surveyed said “their main financial institution doesn’t make them financially stronger, but that could change if they moved toward digital banking”².</p><p>According to a 2019 survey by GOBankingRates³, almost half of Americans live paycheck to paycheck. But, is it just become they don’t earn enough income? Not exactly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*Su_J0ASPurIp-atj" /><figcaption>Source: GOBankingRates</figcaption></figure><p>As illustrated by the chart, a large proportion is due to poor finance management. We need more transparent and responsible personal finance management tools to improve financial health.</p><h3>Mobile Banking</h3><p><strong>To Customer</strong></p><p>Many big banks are simply taking mobile banking as supplement to their brick-and-mortar business. Now it’s time to change this. With the video conferencing and identification technologies, why do most people still need to go to banks? Signing document? E-sign it. Submitting paper document? Scan it. Or even better, bank will come and pick it up. Traditional banks will abandon their luxury downtown branch office and embrace a technology called the Internet.</p><p>There is also incentive coming from the customers. Needless to mention that for hygiene reasons, people will avoid going to physical banks. As Ryan Caldwell, founder and CEO of MX, said in a press release,</p><blockquote>“Americans are turning to mobile banking as a way to take control of their finances and plan for their economic future. With increased consumer engagement across mobile banking applications, financial institutions have the responsibility to not only deliver a great user experience, but also to provide meaningful advice and guidance that’s critical to the financial well being of consumers, especially during times of economic uncertainty.”</blockquote><p><strong>To Business</strong></p><p>Alex Rampell, a General Partner at Andreessen Horowitz, wrote an article⁵ calling for government to collaborate with FinTech to help the last mile of identifying, adjudicating, and disbursing of the $350B stimulus package. The article has a great example:</p><blockquote>For many banks, the way you apply for an SBA 7a loan is to prepare tons of documents, go to your local branch, and then wait as long as 90 days. Wells Fargo has a fancy website, but for SBA loans it directs you to your local branch for a process that takes dozens of hours of form collections and physical signatures followed by months of waiting.</blockquote><p>It’s year 2020. We have so many FinTech companies with financial information of millions of small businesses. Yet, we still cannot get rid of these tedious business. It is time to go online.</p><p><strong>Welcome to the AI-driven, cashless, online, and personalized FinTech world.</strong></p><p><em>Opinions are of my own.</em></p><p>Reference</p><p>[1] <a href="https://www.ft.com/content/2c92a474-6cde-11ea-89df-41bea055720b">https://www.ft.com/content/2c92a474-6cde-11ea-89df-41bea055720b\</a></p><p>[2] <a href="https://www.mobilepaymentstoday.com/news/mx-study-reveals-increased-mobile-banking-use-amid-covid-19/">https://www.mobilepaymentstoday.com/news/mx-study-reveals-increased-mobile-banking-use-amid-covid-19/</a></p><p>[3] <a href="https://finance.yahoo.com/news/49-americans-living-paycheck-paycheck-090000381.html">https://finance.yahoo.com/news/49-americans-living-paycheck-paycheck-090000381.html</a></p><p>[4] <a href="https://www.ft.com/content/76105d94-6996-11ea-a3c9-1fe6fedcca75">https://www.ft.com/content/76105d94-6996-11ea-a3c9-1fe6fedcca75</a></p><p>[5] <a href="https://a16z.com/2020/03/31/stimulus-depends-on-fintech/">https://a16z.com/2020/03/31/stimulus-depends-on-fintech/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8ffda5f2b5de" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The aroma cup for Oolong]]></title>
            <link>https://jxudata.medium.com/the-aroma-cup-for-oolong-cf6b586a06be?source=rss-a6cf48db9600------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf6b586a06be</guid>
            <category><![CDATA[tea]]></category>
            <dc:creator><![CDATA[Jerry]]></dc:creator>
            <pubDate>Sat, 10 Aug 2019 21:01:51 GMT</pubDate>
            <atom:updated>2019-08-10T21:01:51.292Z</atom:updated>
            <content:encoded><![CDATA[<p>I was reading about teawares the other day and learned about this interesting cup, aroma cup. It is the first time I’ve heard about it and it’s worth writing a story.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/0*NEnWWPowMImgkiiO.jpg" /><figcaption>source: <a href="https://zhuanlan.zhihu.com/p/23150357">https://zhuanlan.zhihu.com/p/23150357</a></figcaption></figure><p>The aroma cup, or sometimes called fragrance cup (闻香杯), is a cup specifically used to small tea. It is the one on the right in the picture above. An aroma cup, a tasting cup, and a saucer together form a set, as seen in the picture. Aroma cup is taller and thinner than the tasting cup on the left. Its cylindrical shape is designed to enhance the fragrance of the tea.</p><p>It’s not very common to see aroma cup these days since it’s used for oolong tea and also you can just smell tea using the lid or directly from tasting cup. I think the aroma cup adds more fun to a tea ceremony.</p><p>Here are some video clips that explain how to use an aroma cup and I highly recommend trying after seeing them.</p><p>[1] The Guide to Brewing Tea — Mei Leaf</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FpuldqGnW9P0%3Fstart%3D1307%26feature%3Doembed%26start%3D1307&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DpuldqGnW9P0&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FpuldqGnW9P0%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/f67fe570b4a7dcce0b7b42c811a2a160/href">https://medium.com/media/f67fe570b4a7dcce0b7b42c811a2a160/href</a></iframe><p>[2] How to Use An Aroma Cup for Tea — bon teavant</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FwUl1_FeACmg%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DwUl1_FeACmg&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FwUl1_FeACmg%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/747c0bc79294c53114ae15345e4dc954/href">https://medium.com/media/747c0bc79294c53114ae15345e4dc954/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf6b586a06be" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How big is your class?]]></title>
            <link>https://jxudata.medium.com/how-big-is-your-class-6c2fb54edf51?source=rss-a6cf48db9600------2</link>
            <guid isPermaLink="false">https://medium.com/p/6c2fb54edf51</guid>
            <dc:creator><![CDATA[Jerry]]></dc:creator>
            <pubDate>Wed, 07 Aug 2019 01:24:23 GMT</pubDate>
            <atom:updated>2019-08-07T01:44:17.369Z</atom:updated>
            <content:encoded><![CDATA[<h3>How big is your class? The class size paradox.</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/764/0*0KLWuaRMlZS5iIiM.png" /><figcaption>source: <a href="http://nyceducator.com/2017/05/is-there-any-point-to-uft-class-size.html">http://nyceducator.com/2017/05/is-there-any-point-to-uft-class-size.html</a></figcaption></figure><p>Let’s say this university has two classes, with sizes 10 and 50. Each student can only go to one class and all the classes are full.</p><p>The school advertises the average class size to be (10+50)/2 =30. However, you don’t believe this and then you randomly selected 6 students from the school, asked them one question: “How big is your class?” One student said 10 and the remaining five said 50. You may then calculate the average class size to be (10+50*5)/6 = 43.33. Apparently, this is larger than what the school advertises but which one is correct?</p><p>The python simulation is as follows: we have ten classes with sizes ranging from 5 to 100, randomly. The average class size is 56.9. Instead of talking to random students, we gather everyone and ask their class sizes. We collecte everyone’s response and calculate the average to be 67.64, which is still larger than average class size.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bdea702b35c0e479a47881a296c2c481/href">https://medium.com/media/bdea702b35c0e479a47881a296c2c481/href</a></iframe><p>It turns out that, the latter is actually <strong>average experienced class size</strong>, which is different from <strong>average class size</strong>. Basically, more students experience higher class sizes in bigger classes, hence larger experienced class size. This is known as the <strong>class size paradox</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c2fb54edf51" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How long do you need to wait for the bus?]]></title>
            <link>https://medium.com/the-data-science-daily/how-long-do-you-need-to-wait-for-the-bus-2d377a2505a4?source=rss-a6cf48db9600------2</link>
            <guid isPermaLink="false">https://medium.com/p/2d377a2505a4</guid>
            <category><![CDATA[bus]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[exponential]]></category>
            <category><![CDATA[parafox]]></category>
            <category><![CDATA[statistics]]></category>
            <dc:creator><![CDATA[Jerry]]></dc:creator>
            <pubDate>Fri, 26 Jul 2019 09:00:19 GMT</pubDate>
            <atom:updated>2019-07-28T17:31:35.140Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*X6obZhm6mqFi-DMY.jpg" /><figcaption>source: <a href="https://www.sftodo.com/sanfrancisco/cable-car-san-francisco/">https://www.sftodo.com/sanfrancisco/cable-car-san-francisco/</a></figcaption></figure><p>Suppose there is a bus, 🚌, it arrives at the bus stop every 10 minutes, how long, on average, do you need to wait for the bus?</p><p>Let random variable X represent waiting time. X follows a uniform distribution. In extreme cases, the individual either waits 10 minutes (when arrives, the bus just left) or no time, (just in time to catch the bus).</p><p>Hence, we have a = 0, b = 10 for uniform distribution. The mean of the uniform distribution is 1/2*(a+b), we have 5 mins.</p><p>However, if, <strong>on average</strong>, the bus arrives at the bus stop every 10 minutes, how long, on average, do you need to wait for the bus?</p><p>I chose to write this blog is because of this interesting phenomenon.</p><p>The number of bus arrivals in a certain time period is considered a Poisson distribution. The time interval between bus arrivals then follows an Exponential distribution. One interesting property of Exponential distribution is <strong>memoryless</strong> i.e. P(T&gt;t+s|T&gt;s) = P(T&gt;t). The literal explanation is that, when you arrive at the bus stop, it doesn’t matter how long the next arriving bus has traveled. As a result, the waiting time is the expected arrival interval, which is 10 minutes in this case.</p><p>This is known as the <strong>Waiting Time Paradox</strong>. I am still looking for a more intuitive explanation of the second question. For people who are interested, please visit <a href="https://jakevdp.github.io/blog/2018/09/13/waiting-time-paradox/">https://jakevdp.github.io/blog/2018/09/13/waiting-time-paradox/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2d377a2505a4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-data-science-daily/how-long-do-you-need-to-wait-for-the-bus-2d377a2505a4">How long do you need to wait for the bus?</a> was originally published in <a href="https://medium.com/the-data-science-daily">The Data Science Daily</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is heaping for yellowing?]]></title>
            <link>https://medium.com/teatopia/what-is-heaping-for-yellowing-f55ed85dc351?source=rss-a6cf48db9600------2</link>
            <guid isPermaLink="false">https://medium.com/p/f55ed85dc351</guid>
            <category><![CDATA[yellow-tea]]></category>
            <category><![CDATA[china]]></category>
            <category><![CDATA[heaping]]></category>
            <category><![CDATA[tea]]></category>
            <dc:creator><![CDATA[Jerry]]></dc:creator>
            <pubDate>Fri, 26 Jul 2019 06:36:54 GMT</pubDate>
            <atom:updated>2019-07-26T06:36:54.483Z</atom:updated>
            <content:encoded><![CDATA[<p>Heaping for Yellowing is one of the steps of making yellow tea. Yellow tea is a rare and expensive tea from China. In order to make yellow tea, there are additional steps needed to be performed compared to the making of green tea.</p><p>The formal definition of Heaping for Yellowing is <em>将在杀青或揉捻或烘之后的茶叶，趁热用布或纸将茶叶包裹，放置使其黄变的过程</em>。<em>[1]</em></p><p>Heaping for yellowing is, <em>using cotton or paper, to wrap tea leaves after fixation or rolling or drying, when they are warm, to make them yellow.</em></p><p>The process is illustrated in the following pictures:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*HBWKhWWq_JIt5eah.jpg" /><figcaption>source: <a href="http://www.puercn.com/cpp/hcha/156531.html">http://www.puercn.com/cpp/hcha/156531.html</a></figcaption></figure><figure><img alt="source: https://www.xincha.com/zhishi/36508/" src="https://cdn-images-1.medium.com/max/543/0*7Wiww1_WfefSxlSz.jpeg" /><figcaption>source: <a href="https://www.xincha.com/zhishi/36508/">https://www.xincha.com/zhishi/36508/</a></figcaption></figure><p>It can happen after fixation or rolling or drying, but the goal is the same: to get the yellowness. There is a series of chemical and physical reactions going on during heaping, chlorophyll is being destroyed (due to heat and damp) and substances like lutein are gradually being produced, which makes the tea becoming pure and mild. [2]</p><p>Many factors affect this process, the more water content or higher leaf temperature, the faster yellowing under warm and wet condition. [3]</p><p><strong>Reference</strong></p><p>[1] <a href="http://www.puercn.com/cpp/hcha/156531.html">http://www.puercn.com/cpp/hcha/156531.html</a></p><p>[2] <a href="http://www.ishuocha.com/ldteas/yellow/qthc/71707.html">http://www.ishuocha.com/ldteas/yellow/qthc/71707.html</a></p><p>[3] <a href="http://www.sohu.com/a/148856314_488910">http://www.sohu.com/a/148856314_488910</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f55ed85dc351" width="1" height="1" alt=""><hr><p><a href="https://medium.com/teatopia/what-is-heaping-for-yellowing-f55ed85dc351">What is heaping for yellowing?</a> was originally published in <a href="https://medium.com/teatopia">Teatopia</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AUC - ROC in a nutshell (well, almost)]]></title>
            <link>https://medium.com/the-data-science-daily/auc-roc-in-a-nutshell-well-almost-3f0cc2b44905?source=rss-a6cf48db9600------2</link>
            <guid isPermaLink="false">https://medium.com/p/3f0cc2b44905</guid>
            <category><![CDATA[classification]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Jerry]]></dc:creator>
            <pubDate>Sun, 07 Jul 2019 09:37:36 GMT</pubDate>
            <atom:updated>2019-08-29T04:00:09.491Z</atom:updated>
            <content:encoded><![CDATA[<p>Let’s explain ROC and AUC first:</p><ul><li><strong>What is ROC? </strong>The ROC curve is created by plotting the true positive rate (TPR) against the false positive rate (FPR) at various threshold settings [1].</li><li><strong>What is AUC? </strong>The area under the ROC curve.</li></ul><p>First of all, let’s assume that you know what are TP, TN, FP, FN. There are several concepts you need to know:</p><p><strong>Sensitivity (TPR)</strong>: True Positive Rate (same as recall), it measures the proportion of positives that are correctly identified as positive.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/628/1*necbVVu5-TX0G1dOgFtaCw.png" /><figcaption>formula for sensitivity</figcaption></figure><ul><li><strong><em>To understand</em></strong><em>: If our classifier to detect dog images, Sensitivity is then the number of correctly classified dog images divided by the number of total actual dog images.</em></li></ul><p><strong>FPR</strong>: fall-out or false positive rate, it is calculated as the ratio between the number of negative events wrongly categorized as positive (false positives) and the total number of actual negative events (regardless of classification).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*CRKiXi4-hbHfG_H9_I_8gA.png" /><figcaption>formula for FPR</figcaption></figure><ul><li><strong><em>To understand</em></strong><em>: If our classifier to detect dog images, false positive rate is then the number of non-dog images classified as dog divided by the number of total actual non-dog images.</em></li></ul><p>If these two concepts still sound confusing, please take a look at the plots shown in <a href="https://towardsdatascience.com/understanding-auc-roc-curve-68b2303cc9c5">Understanding AUC ROC Curve</a>.</p><p>Our classifier will yield a list of scores given a list of instances. There are two types of instances, ➕and ➖. Each type (➕/➖) has a distribution of scores (be aware that these are scores, not probabilities, not classes). To assign an instance to ➕or ➖, one needs to set a threshold T.</p><p>Keep in mind that the ROC curve is created by plotting the true positive rate (TPR) against the false positive rate (FPR) at various threshold settings [1].</p><p>Let’s look at the following synthetic data set with classifier’s output.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/872/1*nM_fQe2RzN_FItHGCazibg.png" /><figcaption>the threshold is set to 0.65</figcaption></figure><p>Here:</p><ul><li>TPR = TP/(TP+FN) = 2/(2+2)=1/2</li><li>FPR = FP/(FP+TN) = 1/(1+3) = 1/4</li></ul><p>Thus, we have a point to plot on our ROC curve, i.e. <strong>(1/4, 1/2)</strong>. Basically, we simply need to try all threshold and we get ourselves a ROC curve, we then compute the area under the curve to get AUC.</p><p>Feel free to play around using this interactive tool:</p><p><a href="http://www.navan.name/roc/">http://www.navan.name/roc/</a></p><p>Actually, it is actually what happens behind the scene in scikit-learn’s <a href="https://github.com/scikit-learn/scikit-learn/blob/master/sklearn/metrics/ranking.py">roc_auc_score</a> function.</p><p>What else do we know about AUC? It seems pretty vague to us what the area actually means. Here is an alternative explanation: the probability of correct ranking of a random “positive”-“negative” pair [2]</p><p>Using the above synthetic data set, we have 3 ➕ and 4 ➖. Therefore, we have 12 (➕, ➖) pairs. Among those 12 pairs, 10 of them, i.e. (id-3, id-1), (id-3, id-2), (id-6, id-1), (id-6, id-2), (id-6, id-4), (id-6, id-5), (id-7, id-1), (id-7, id-2), (id-7, id-4), (id-7, id-5), are correctly ranked, i.e. score of ➕ is higher of that of ➖. Hence, AUC of this classifier is 10/12. One can verify if it is correct.</p><p>[1] <a href="https://en.wikipedia.org/wiki/Receiver_operating_characteristic">https://en.wikipedia.org/wiki/Receiver_operating_characteristic</a></p><p>[2] <a href="https://www.alexejgossmann.com/auc/">https://www.alexejgossmann.com/auc/</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UilrWAGRfoqANdktpl6frQ.jpeg" /><figcaption>pc: KV</figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3f0cc2b44905" width="1" height="1" alt=""><hr><p><a href="https://medium.com/the-data-science-daily/auc-roc-in-a-nutshell-well-almost-3f0cc2b44905">AUC - ROC in a nutshell (well, almost)</a> was originally published in <a href="https://medium.com/the-data-science-daily">The Data Science Daily</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>