<?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 Richard Tsai 蔡秉遑 on Medium]]></title>
        <description><![CDATA[Stories by Richard Tsai 蔡秉遑 on Medium]]></description>
        <link>https://medium.com/@richardtsai_22113?source=rss-39d121bf37cf------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*DpIWeNnXsDeudPSzIcUzYA.jpeg</url>
            <title>Stories by Richard Tsai 蔡秉遑 on Medium</title>
            <link>https://medium.com/@richardtsai_22113?source=rss-39d121bf37cf------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 14 Nov 2026 20:21:12 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@richardtsai_22113/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[What I’ve learned from the Korean Starbucks data scientist.]]></title>
            <link>https://medium.com/@richardtsai_22113/what-ive-learned-from-the-korean-starbucks-data-scientist-d1a7e7af1bc4?source=rss-39d121bf37cf------2</link>
            <guid isPermaLink="false">https://medium.com/p/d1a7e7af1bc4</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Richard Tsai 蔡秉遑]]></dc:creator>
            <pubDate>Mon, 10 Oct 2022 08:16:06 GMT</pubDate>
            <atom:updated>2022-10-12T01:23:53.048Z</atom:updated>
            <content:encoded><![CDATA[<p>A friend recommended the book “The art of data” to me, written by the Korean Starbucks data scientist 차현나. She introduces her workflow of conducting data analysis. She also gives concrete examples to show how the workflow is implemented in real life. Highly recommend this book, <a href="https://www.books.com.tw/products/0010907701?utm_source=www&amp;utm_medium=share&amp;utm_content=copy&amp;utm_campaign=product&amp;utm_term=0010907701">“The Art Of Data.” </a>I will then walk through her concepts here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KItlgCKdC_RrKTYc6QfxCQ.jpeg" /></figure><h3>First step: Design data</h3><ol><li><strong>Ask questions.</strong></li><li><strong>Break down questions.</strong></li><li><strong>Gather data</strong></li><li><strong>Analyze data</strong></li></ol><h3>Second step: Tell your story with data</h3><ol><li><strong>Put data puzzle together</strong></li><li><strong>Give a direction</strong></li><li><strong>Share the data <br></strong>customize for different shareholders.</li></ol><h3>Third step: Decide with data</h3><ol><li><strong>Build an action plan</strong></li><li><strong>Get feedback from the set. </strong><br>Either from on-site workers’ feedback or website A/B testing.</li><li><strong>Catch reaction from consumers.</strong></li></ol><p>It will be easier to understand when practicing it on cases.</p><h3>Case: “My restaurant’s revenue decreases.”</h3><h3>First step: Design data</h3><h4><strong>1. Ask questions:</strong></h4><p>My restaurant’s revenue decreased. What did I do wrong? Are there other reasons?</p><h4>2. Break down questions.</h4><ul><li>What does reducing revenue mean? Compare to yesterday? Last week? Last month? Last year?</li><li><strong>What did I do wrong: </strong><br> Is the restaurant’s setting the same as before? Consider changes in decoration, menu, billboard, tableware, ads, sales clerks, service, food, and product display.</li><li><strong>Other reason: </strong><br>Consider external reasons that reduce revenue. Maybe fewer people visit this neighborhood. Perhaps a new competitor emerges. Maybe the weather changed. Maybe the economy is in a recession?</li></ul><h4>3. Gather data</h4><p>Gather data to answer the questions. Collect customer feedback from social media. Know your industry’s trend by searching keywords.</p><p>Gather sales data down to the hour.</p><h4>4. Analyze data</h4><h3>Second step: Tell your story with data</h3><ol><li><strong>Put data puzzle together<br></strong>Make a sales chart base on weekends, weekdays, hours, and months to analyze. We may figure out sales decreased much more on the weekend.</li><li><strong>Give a direction<br></strong>We may separate our target audience into weekday customers, weekend customers, and customers that do not come on weekends. Improve sales by providing different tractions to them.</li><li><strong>Share the data <br></strong>Share data with others and customize the presentation for different shareholders.</li></ol><h3>Third step: Decide with data</h3><ol><li><strong>Build an action plan</strong></li></ol><ul><li>We figure out pizza sales better on weekends and sandwich sales better on weekdays.</li><li>Our action plan can be to boost sales of sandwiches on weekdays by offering discounts when getting more than one sandwich. Or we can make a bundle with a sandwich to boost sales of other products.</li></ul><p><strong>2. Get feedback from the set. <br></strong> Listen to shopkeepers, and they will give valuable insights. They might tell you that the sandwich is too challenging to prepare on-site.</p><p><strong>3. Catch reaction from consumers.<br></strong>The action plan may either work or not.</p><p>When a customer is not buying, it may be that the bundle price is too high or the quality of the product is not satisfying.</p><p>If we fail to boost the sales on weekdays, we can try to increase the sales on weekends. Suppose customers on weekends are mostly young generations. Do interviews to figure out what the young generation likes. Promote your product on social media, which targets young audiences.</p><h3>Conclusion</h3><p>Be curious and ask questions. Get the “why” behind the trend. Break down questions into measurable metrics. Then make action plans. Finally, get feedback from customers. Those are keys to a great data analysis.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d1a7e7af1bc4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is AB testing for?]]></title>
            <link>https://medium.com/@richardtsai_22113/what-is-ab-testing-for-a9ff5c8997a9?source=rss-39d121bf37cf------2</link>
            <guid isPermaLink="false">https://medium.com/p/a9ff5c8997a9</guid>
            <dc:creator><![CDATA[Richard Tsai 蔡秉遑]]></dc:creator>
            <pubDate>Sun, 22 May 2022 16:46:38 GMT</pubDate>
            <atom:updated>2022-05-22T16:49:09.888Z</atom:updated>
            <content:encoded><![CDATA[<h3>Should I use AB testing?</h3><p>E-commerce may often ask, whether should I change a button or layout of my website to increase sales? Usually, e-commerce does AB testing to answer these kinds of questions. <br> However, there are questions that AB testing can’t solve.</p><h4>What AB testing is for</h4><p>AB testing is often used for evaluating new features, UI, or products. <br> Take 2 sets of users, and show one set of users the control version which is the original version. And show the other set the testing version. See how they respond differently and conclude which version is better. <br> For example, Amazon uses AB testing to decide whether personalized product recommendation increases sales. Another use case is testing changes in the backend and see if it affects user behavior.</p><h4>What AB testing is NOT capable of</h4><ul><li><strong>Testing new experiences </strong><br>Old users may either hate totally new experiences which is called ‘change aversion’ or they may be super excited about the new changes and try all of them which is called the ‘novelty effect’. <br> These come with two problems. How much <strong>time </strong>do you need for the user to adapt to the experience and reflect on the true impact of your change? And also what is your <strong>baseline comparison.</strong></li><li><strong>Long term effects</strong> <br>The long-term effect such as will user recommend your site to others to buy a car is hard for AB testing. Or like changing a logo is quite more a long term effect. You just can’t get an answer from a short-term evaluation.</li><li><strong>Can’t tell if you are missing something</strong></li></ul><h3>Other techniques rather than AB testing</h3><p>AB testing is more like a <strong>“quantitive” </strong>measurement. There are other techniques to support Ab testing. More deep and “<strong>qualitative”</strong> measurements.</p><ul><li>Research on user logs perspectively</li><li>Experiment research</li><li>Focus group</li><li>Surveys</li><li>Human evaluation</li></ul><p>Reference: <a href="https://classroom.udacity.com/courses/ud257">Udacity A/B testing</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a9ff5c8997a9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[TPU on Kaggle]]></title>
            <link>https://medium.com/@richardtsai_22113/tpu-on-kaggle-aba442496ec4?source=rss-39d121bf37cf------2</link>
            <guid isPermaLink="false">https://medium.com/p/aba442496ec4</guid>
            <category><![CDATA[tpu]]></category>
            <dc:creator><![CDATA[Richard Tsai 蔡秉遑]]></dc:creator>
            <pubDate>Fri, 09 Oct 2020 15:41:49 GMT</pubDate>
            <atom:updated>2020-10-09T15:41:49.925Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>How to use TPU on Kaggle?</strong></h3><pre># 偵測 啟動 TPU <br>tpu = tf.distribute.cluster_resolver.TPUClusterResolver()<br>tf.config.experimental_connect_to_cluster(tpu)<br>tf.tpu.experimental.initialize_tpu_system(tpu)<br><br># 啟動 distribution strategy<br>tpu_strategy = tf.distribute.experimental.TPUStrategy(tpu)<br><br># 把 model 建在 strategy scope 會使得 model 在 TPU RUN <br>with tpu_strategy.scope():<br>    model = tf.keras.Sequential( … ) # define your model normally<br>    model.compile( … )<br><br># 正常 train model <br>model.fit(training_dataset, epochs=EPOCHS, steps_per_epoch=…)</pre><h3>Batch size, learning rate</h3><p>若想要TPU 跑得快，試著增加batch size. 習慣是 128 elements per core. (ex: batch size of 128*8=1024 for a TPU with 8 cores). Batch size of 8 per core 就可看到速度增加.</p><p>以下是怎麼 用cores定義 batch size:</p><pre>BATCH_SIZE = 16 * tpu_strategy.num_replicas_in_sync</pre><p><strong>Reference</strong>: <a href="https://www.kaggle.com/docs/tpu">https://www.kaggle.com/docs/tpu</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aba442496ec4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Science Expert Panel]]></title>
            <link>https://medium.com/@richardtsai_22113/data-science-expert-panel-ac33889d1ffe?source=rss-39d121bf37cf------2</link>
            <guid isPermaLink="false">https://medium.com/p/ac33889d1ffe</guid>
            <dc:creator><![CDATA[Richard Tsai 蔡秉遑]]></dc:creator>
            <pubDate>Wed, 01 Nov 2017 00:46:47 GMT</pubDate>
            <atom:updated>2017-11-01T00:46:47.747Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6EL7oJVQeeuEekG_S_EntA.jpeg" /></figure><p>Data Science society 所舉辦的講座，邀請各領域的資料科學家談談資料科學如何被應用。有著global investment manager “Schroders”, Candy crush遊戲公司”King”, 資料技術顧問公司“Satalia”, 進修課程<a href="https://generalassemb.ly/">General Assembly</a>和我這次最感興趣的醫療數據分析公司”QuintilesIMS”.</p><p>這些專家被問到請給在場的學生一些過來人意見。他們提到<br>1. 別侷限住自己專注的領域，有可能你的Team某些人請假而讓整個計畫停滯 不前，如果你能因為有些基本其他領域知識，適時站出來做點貢獻，整個TEAM才能繼續運轉。又或者你懂其他人在做什麼，讓你更能與人溝通合作。</p><p>2. 不要只談論用多快的速度，多小的記憶體解決問題，而是我們在解決什麼問題。</p><p>3. <strong>Try to understand why the algorithm works.</strong> 別只是建立運作方法，試著解釋其背後含義。 就算你的algorithm對，醫生若不知道其背後道理，還是不會輕易相信。</p><p>4.試著了解你是怎麼樣<strong>性格</strong>的人。你是喜歡幾個禮拜就見到成效的人，那你可能適合在公司工作。如果你喜歡長時間解決一個問題所帶來的成就感，那你應該在類似學術的環境工作。</p><p>5. <strong>誠實</strong>的面對。對於你不知道的事要承認。這領域太廣泛，沒有人知道所有事情。</p><p>6. 多做些<strong>Side Projects</strong>, 哪怕只是運算自己的睡眠時間，參加hackathon，或是Kaggle competition. 多多累積自己的經驗，學習會更多，也才有東西秀給人家看。</p><p>7.當你對一個技術感到熟悉時，就該是時候嘗試學習新的東西。</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ac33889d1ffe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Provably beneficial AI]]></title>
            <link>https://medium.com/@richardtsai_22113/provably-beneficial-ai-59836a72b937?source=rss-39d121bf37cf------2</link>
            <guid isPermaLink="false">https://medium.com/p/59836a72b937</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[ucl]]></category>
            <category><![CDATA[human-compatible-ai]]></category>
            <category><![CDATA[stuart-russell]]></category>
            <dc:creator><![CDATA[Richard Tsai 蔡秉遑]]></dc:creator>
            <pubDate>Mon, 30 Oct 2017 22:48:42 GMT</pubDate>
            <atom:updated>2017-10-30T22:49:36.951Z</atom:updated>
            <content:encoded><![CDATA[<p>Provably beneficial AI</p><p>試著記錄我在UCL 經歷到的事情。雖然跟Data Science 主題有點偏離。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vLL1dOqr41EWbsuxuwFnYw.jpeg" /></figure><p>學校 artificial intelligence 社團邀請Stuart Russell, University of California, Berkeley 教授來講述”Provably beneficial AI” (人工智慧發展的威脅，如何去面對設計AI.) Stuart 著作”Artificial Intelligence A modern approach” 一書可說是AI 的先驅。 在他的<a href="https://www.ted.com/talks/stuart_russell_how_ai_might_make_us_better_people#t-513173">TED talk </a>也可看到Professor Russell在講述這項議題。<br> 當Elon Musk , Stephen Hawking 和 Bill Gates 都擔憂 AI發展對人類生存造成的威脅。End of Human Race!!!!!! Professor Russell又如何看待這件事？ 他笑著說首先這些人都不是研究AI 的。但這些憂慮也絕非空穴來風。人工智慧有兩件事情必須要擔憂，第一件當你下達指令給他，他可能解讀錯誤產生錯誤的結果。第二，對他而言指令是第一，不論是用什麼方式達成指令。</p><p>那怎麼辦？ 那就應該從一開始就設計好AI，而不是假裝這些事情不會發生。 所以Professor Russell 致力開發 Human -compatible AI. 有三個目標。<br>1. AI只能更加實現人類的目的(沒有自己存活的意識) <br>2. AI並不知道 人類目的的意義 <br>3. AI藉由觀察人類行為 了解人類目的。</p><p>例子： 一個機器人被下指令去買咖啡，他會想我因為要買咖啡所以我不能被關掉，我會把所有在Starbuck擋在我面前排隊的人除掉。</p><p>如果他Follow Human -compatible AI 原則<br> 他會想，我可能會被關掉，但那是因為我有做錯事，我並不想做錯事。在被人類關掉後，他會學習什麼是錯事。</p><p>透過文獻與對人類的學習，可能就不會發生，機器人在家要幫小孩煮東西吃，但發現冰箱沒食物，這時看到一隻貓，所以就把貓抓來煮個小孩吃的狀況。</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=59836a72b937" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>