<?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 Putri Wikie on Medium]]></title>
        <description><![CDATA[Stories by Putri Wikie on Medium]]></description>
        <link>https://medium.com/@putriwikie?source=rss-8093741f9f93------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*NBpnjLLnhzUGCRRr</url>
            <title>Stories by Putri Wikie on Medium</title>
            <link>https://medium.com/@putriwikie?source=rss-8093741f9f93------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 04:12:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@putriwikie/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[Adopting Statistical Process Control for Monitoring and Alerting System on Business Metrics]]></title>
            <link>https://medium.com/bukalapak-data/adopting-statistical-process-control-for-monitoring-and-alerting-system-on-business-metrics-c96dd6a7f62a?source=rss-8093741f9f93------2</link>
            <guid isPermaLink="false">https://medium.com/p/c96dd6a7f62a</guid>
            <category><![CDATA[business-metrics]]></category>
            <category><![CDATA[business-intelligence]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[alerting-software]]></category>
            <dc:creator><![CDATA[Putri Wikie]]></dc:creator>
            <pubDate>Tue, 14 Apr 2020 03:00:27 GMT</pubDate>
            <atom:updated>2020-04-14T03:15:02.511Z</atom:updated>
            <content:encoded><![CDATA[<h4>An alternative anomaly detection technique for time-series data sets</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*UI21DPxa1AmTeDSKx7tm0g.jpeg" /><figcaption>Image Source: <a href="https://unsplash.com/photos/JKUTrJ4vK00">Unsplash</a></figcaption></figure><p>To quantify the performance of a company, business metrics are defined and are further monitored on a daily basis. The monitoring itself is aimed to assess whether the company is well-performing or to detect abnormal phenomenons that could negatively impact the business. In a growing start-up company, the total number of business metrics could reach up to thousands of metrics. The manual monitoring on those metrics requires an enormous effort, when an automatic diagnostic tool is not yet available in the company.</p><p>This article gives an alternative solution by Bukalapak to do automatic monitoring activity on thousands of business metrics and to send an alert to stakeholders, when an unusual pattern is detected.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hKXPpSZl0vBsU3YiaV0J8A.jpeg" /><figcaption><strong>Figure 1. </strong>General<strong> </strong>working flow of business-metric monitoring and reporting at Bukalapak, if an anomaly was detected</figcaption></figure><h3><strong>Introducing internal automatic monitoring and alerting system</strong></h3><p>To answer the aforementioned challenge, we initiated to build an in-house tool that allows us and our stakeholders to do direct monitoring on their metrics of interest as well as to quickly detect if there is an unusual pattern in the data. This tool would automate and standardize the diagnostic work across the company. The tool adopts Statistical Process Control (SPC) framework, where variations and seasonal effects are considered.</p><p>SPC is commonly used in the manufacturing industry to determine whether a process is under control, i.e. the process is consistent, where the estimated-variations are coming from commonly known sources of the process. We focused on one of basic tools of quality control in SPC, namely Shewhart-chart or well-known as control chart, to mainly monitor the variations on the measured data points (in our case, a data point is referred to as a value on a business-metric at time <em>t</em>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iMxDYCKEXtb6aokPKLZDaA.jpeg" /><figcaption><strong>Figure 2. </strong>The monitoring and alerting system on high-level flow diagram</figcaption></figure><h3><strong>Let’s get technical!</strong></h3><p><em>Caution</em><strong><em>.</em></strong><em> This section shows the technical part of the system. If you are a business stakeholder who does less care about the statistical technique, please feel free to jump to the next section (Section: An Example).</em></p><p><strong>Step 1<br></strong>Supposed we have a series of data points that have a seasonal pattern <em>S </em>(unit: “day”). On time point <em>t</em>, we would determine whether a data point <em>Yt</em> does not significantly deviate from the seasonal-common pattern.</p><p><strong>Step 2<br></strong>At the data preprocessing step (first box on Fig 2), we first take the ratio of a value to be monitored with respect to the corresponding value at the previous <em>S</em> days. The ratio <em>R</em> of the monitored-value <em>Y</em> for a given time t (unit: “day”) is defined as,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/723/1*EnC6EzI7FokZtfBRiZuOjg.png" /></figure><p>Further, the <em>Rt</em> is transformed by sigmoid function as such the values fall in between 0 and 1. The monitoring is then followed <em>proportional control chart</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/1*j1ayHB5JOwow9YDl-al9AA.png" /></figure><p><strong>Step 3<br></strong>The upper (<em>UCL</em>) and lower (<em>LCL</em>) control limit is estimated by</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/724/1*1hjOUhWBodEQ1MQIMAUkMw.png" /></figure><p>where <em>N</em> is the sample size (i.e. the number of data points) and <em>R_bar</em> is as follows,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/785/1*fV-HUhgSW2doBZuPAwgRgw.png" /></figure><p>It is worth noting that a minimum of twenty-five data points is needed to have enough power on the control limits [1].</p><p><strong>Step 4<br></strong>The system would create an alert and would notify users, when <em>R’_t</em> is greater than <em>UCL</em> or <em>R’_t </em>is less than the <em>LCL</em>. Hereafter, such a data point is called an anomaly. The treatment of the detected anomaly depends whether its cause is known. The unknown anomaly indicates that there is an intrusion in the data set and a further investigation is worthy to be initiated. Montgomery [1] suggested excluding the known anomalies for the calculation of <em>LCL</em> and <em>UCL</em>, as it is not the usual process that we would like to detect. We, however, replace the outlier values by the center point of the data set (e.g. median or mean), as we need this data point to determine the control limits for the next following months. The <em>Rt</em> is then adjusted by,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/787/1*Bddm8HYHamJm0ZMDaUrmQQ.png" /></figure><p>The aforementioned step-by-step calculation is summarized on Fig.3.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kscGpWUZ8epv0OdQpFgdEQ.jpeg" /><figcaption><strong>Figure 3.</strong> Flow diagram for calculating lower and upper bound on a control chart for a given data set within a certain time-window. Please note that this process is repeated as the time-window is moving, as such the threshold keeps being updated overtime.</figcaption></figure><h3><strong>An example</strong></h3><p>Supposed a series of synthetic data set that contains 47 points and has weekly seasonal cycle (<em>S</em>=7), is available for monitoring and for alerting (Fig. 4a). The scenario is as follows. Let’s assume that the values reflect the daily number of transactions. A <em>proportional control chart </em>is built using the first 46 data points and the task is to determine whether the 47th data point is a “normal” or an “anomaly”.</p><p>To that end, the values are transformed to the ratio scale (<em>R’t</em>) and <em>UCL</em> as well as <em>LCL</em> are further estimated, resulting in a <em>proportional control chart </em>on Fig. 4b. The last data point (<em>t</em>=47) crosses the <em>UCL</em>, which indicates that an anomaly presents. In this case, an alert is created and is sent to users by the system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tJanJu13eo7HuIsI0IRa1A.jpeg" /><figcaption><strong>Figure 4.</strong> (a) Time-series plot on the synthetic data set with weekly seasonal pattern. X-axis is time point <em>t</em> and y-axis is the number of transactions at the corresponding time point <em>t</em>; (b) Ratio plot from the synthetic data set (solid-line), as well as its UCL and LCL (dashed-line). Note: the first seven data points were not plotted as it was used as references to calculate ratio on Eq. (1).</figcaption></figure><p>As <em>UCL</em> and <em>LCL</em> highly depend on the average value of a data set, the thresholds may be overestimated if an outlier/anomaly exists in the data set. As a consequence, the control chart is much less powerful to detect upcoming potential anomalies. To handle this limitation, the anomaly is modified <strong>for the purpose of further monitoring</strong> (<em>t&gt;</em>47), by first re-estimated the<em> R’_47</em> with the median of all previous <em>R’_T</em> (<em>T </em>= 1, …, 46); and second re-estimated <em>R_47</em> by Eq. (5).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f97MAy3bhqgOe47NEIJ0pg.jpeg" /><figcaption><strong>Figure 5. </strong>(a) Ratio plot from the synthetic data set (solid-line), as well as its <em>UCL</em> and LCL (dashed-line), where the point on t=47 is re-adjusted. (b) Time-series plot on the synthetic data set, where the number of transactions on t=47 is adjusted for further monitoring purposes.</figcaption></figure><p>We are aware that the <em>proportional control chart </em>may be not intuitive enough to detect the seasonal trend on the data set (as the y-axis that may be confusing for business-stakeholders) and to make an adjustment for a new data point. To preserve the interpretability of the data, we re-transformed the <em>proportional control chart </em>to its original scale, especially for <em>UCL</em> and <em>LCL</em> (Fig. 6).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*17oTJJm1CrHCtSUzm_TVqQ.jpeg" /><figcaption><strong>Figure 6. </strong>Time-series plot (solid-line) on the synthetic data set and its thresholds (dashed-line), where the data point at t=47, marked by orange-crossed-line, is (a) the true value (b) adjusted <strong>for further monitoring purposes.</strong></figcaption></figure><h3><strong>Remarks</strong></h3><p>We employed the concept of statistical process control to build an automatic system that could help monitor business metrics activity on daily and real-time basis. The system detects a data point that does not follow the common trend. Should such a data point occur, the system creates an alert that is sent to users. We are aware that applying time-series methods might be more relevant. The alternative approach, however, is more adaptable, easily maintained, and scalable on production level. More importantly, it does not sacrifice the accuracy of anomaly detection.</p><h3><strong>Disclaimer</strong></h3><p>This tool was implemented in the internal Bukalapak monitoring platform, when our databases were built on-premises. The system has been deprecated, since we moved to cloud databases system. We, however, think that start-ups in their early phase and face similar concern may benefit from this information. This article also shows an alternative anomaly detection technique on time-series data sets.</p><h3><strong>Contributors</strong></h3><p>Data Scientists behind the system: Fatia Kusuma Dewi, Nur Siti Muninggar, Arief Yudha Satria, Putri Wikie Novianti.</p><p>Grateful to have Adrianus Galang, Guruh Hapsara and Hafidh Rashemi Rafsanjany, our fellow-engineers, who implemented the system and made it widely available in the company.</p><h3><strong>Main Reference</strong></h3><p>[1] Montgomery, Douglas C. 2013. <em>Introduction to statistical quality control, fifth edition</em>. 2005. Hoboken, NJ: Wiley</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c96dd6a7f62a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bukalapak-data/adopting-statistical-process-control-for-monitoring-and-alerting-system-on-business-metrics-c96dd6a7f62a">Adopting Statistical Process Control for Monitoring and Alerting System on Business Metrics</a> was originally published in <a href="https://medium.com/bukalapak-data">Bukalapak Data</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[COVID-19’s effect on Indonesia]]></title>
            <link>https://medium.com/bukalapak-data/covid-19s-effect-on-indonesia-929cb17737a1?source=rss-8093741f9f93------2</link>
            <guid isPermaLink="false">https://medium.com/p/929cb17737a1</guid>
            <category><![CDATA[covid19]]></category>
            <category><![CDATA[data-stories]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[coronavirus]]></category>
            <category><![CDATA[lockdown]]></category>
            <dc:creator><![CDATA[Putri Wikie]]></dc:creator>
            <pubDate>Mon, 23 Mar 2020 07:01:31 GMT</pubDate>
            <atom:updated>2020-03-27T01:54:26.708Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>COVID-19’s effects in Indonesia</strong></h3><p><em>How many real positive cases of Coronavirus are in Indonesia; How fast is its growth; and How it will impact local small and medium businesses in Indonesia</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*qLsVo_LfhT5qIdfeNzOaEA.jpeg" /><figcaption>Working from home as one of the preventive acts towards the COVID-19 spread (<a href="https://unsplash.com/photos/0hO1QgI1H8g">source</a>)</figcaption></figure><p>In the last couple of months, we have been flooded by news related to COVID-19 (also known as Novel Coronavirus). It was first dominated by news from mainland China, especially from the city of Wuhan, but then it grew significantly to other countries across continents. The first spread of the virus in China was unfortunately close to the Chinese New Year holiday period, when most Chinese in the mainland travel across the country. Non-Chinese citizens were also likely to travel abroad to fill-up their holiday time, which might have increased the spread velocity. The World Health Organization (WHO) has then declared COVID-19 as a global pandemic on <a href="https://time.com/5791661/who-coronavirus-pandemic-declaration/">March 11</a>, <a href="https://www.livescience.com/first-case-coronavirus-found.html">115</a> days after its first existence was confirmed in China.</p><p>To date, the Coronavirus has had a relatively low (estimated-) <em>basic reproductive number</em> (<strong>R0</strong>) of 2.13 to 3.33 [<a href="https://www.ijidonline.com/action/showPdf?pii=S1201-9712%2820%2930083-7">ref</a>] (other studies predicted R0=4 [<a href="https://www.imperial.ac.uk/mrc-global-infectious-disease-analysis/news--wuhan-coronavirus/">ref</a>]). The <em>R0 </em>means that one infected-person could infect two to three other people. It is important to note that the R0 may be further updated, as the virus is not yet well-known. Despite its relatively low R0 compared to previous infectious disease outbreaks, the impact of the pandemic has heavily affected different aspects of life, ranging from economics, tourism, education to religious matters (Figure 1).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/857/1*raSuVk0MsjwH-MTWN-6qjw.png" /><figcaption><strong>Figure 1</strong>. Comparison of basic reproductive number from selected infectious disease. Abbreviation: MERS: Middle East respiratory syndrome; COVID-19: Coronavirus disease; SARS: Severe acute respiratory syndrome. (<a href="https://www.popsci.com/story/health/how-diseases-spread/">Source</a>)</figcaption></figure><p>This article gives an overview about the COVID-19 outbreak in Indonesia, especially about its penetration into the country, the general public’s reactions, and the potential outcomes from possible actions the government could take.</p><h3><strong>Coronavirus’ Penetration in Indonesia</strong></h3><p>Indonesia, the 4th most populous country in the world, was one of the latest countries in Southeast Asia to experience the Coronavirus outbreak. The Indonesian government <a href="https://www.cnnindonesia.com/nasional/20200229140011-20-479310/ahli-ungkap-tiga-alasan-indonesia-masih-bebas-corona">initially claimed</a> that they had been prepared to fight the outbreak since the endemic began in China. Despite all the efforts to prepare the country from the contagion, unfortunately, Indonesia officially announced its <a href="https://www.thejakartapost.com/news/2020/03/02/indonesias-first-covid-19-patient-danced-with-infected-japanese-woman-before-contracting-virus.html">first COVID-19 positive case</a> on March 2nd, involving two citizens in West Java (Jawa Barat) who had been in direct contact with a Japanese tourist from Malaysia. Since then, similar to other infected-countries, the number of COVID-19 cases has exponentially grown.</p><h4>Estimating the Initial Risk in Indonesia’s Provinces</h4><p>In Indonesia, since the outbreak started from overseas, it is fair to assume that the early phase of the disease’s spread is likely correlated with proximity to international travelers and tourists who unknowingly carried the virus. Given the popular tourist destinations in Indonesia, we estimate the risk of top fourteen provinces to get a new positive COVID-19 case from overseas (Figure 2).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bz9Ze_80KRwrF1UQwraeEw.jpeg" /><figcaption><strong>Figure 2.</strong> The risk-level of the provinces to get a new positive COVID-19 case from abroad based on possible contact with foreigners. Assumption: a province with high density of tourist visits from previously-infected countries may have more risk of carrying the Coronavirus. The tourist density in each province is estimated by the number of international-tourist arrivals in the corresponding province in 2018. A further assumption is the distribution of tourist visits in 2019 and early 2020 is similar to 2018.</figcaption></figure><p>The main contributor of the high-risk of the top-three provinces is the number of tourist visits, especially international tourists from infected-countries. As Indonesia is an archipelago, a country consisting of thousands of islands, many people travel domestically via air travel, which could lead to fast wide-spread contagion once the virus got into the country.</p><h4>Distribution of Confirmed COVID-19 Cases</h4><p>As of March 22nd, the <a href="http://bl.id/PantauCorona">number of confirmed positive cases in Indonesia is 541</a>, mostly affecting people in productive-ages (21 to 69 years old). For reference, China and Hong Kong have similar age distributions (Figure 3). It’s no surprise that productive people are more likely to come into physical contact and allow the disease to spread, since the virus transmits through close human contact. The fatality rate, however, increases <em>up to 7x</em> for the senior population (&gt;80 years old) as compared to those in the productive population[<a href="http://rs.yiigle.com/yufabiao/1181998.htm">ref</a>].</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0mTEGRdV3B55PR4QsEs8Gg.jpeg" /><figcaption><strong>Figure 3. </strong>The age distribution of reported-infected COVID-19 people in China (<a href="http://rs.yiigle.com/yufabiao/1181998.htm">source</a>), Hong Kong (<a href="https://data.gov.hk/en-data/dataset/hk-dh-chpsebcddr-novel-infectious-agent">source</a>) and Indonesia (<a href="https://docs.google.com/spreadsheets/u/1/d/1ma1T9hWbec1pXlwZ89WakRk-OfVUQZsOCFl4FwZxzVw/htmlview?usp=sharing#">source</a>, with 84 unknown-age). y-axis shows the proportion of the number of infected-people on each age group.</figcaption></figure><p>The numbers of <strong>reported</strong> cases are what we hear from the news. However, the <strong>real</strong> number is likely to be higher than that, which we will explore in the next section. This is either due to <a href="https://foreignpolicy.com/2020/02/19/indonesia-coronavirus-screening-may-miss-virus-carriers/">lack of proper test kits</a>, <a href="https://www.channelnewsasia.com/news/asia/indonesia-lack-of-coordination-covid-19-coronavirus-12530558">poor coordination by officials</a>, or <a href="https://www.nytimes.com/2020/02/11/world/asia/coronavirus-indonesia-bali.html">reluctance of the general public to get tested</a>.</p><p>So the question is, just how different are the number of <strong><em>real</em></strong> cases from the <strong><em>reported</em></strong> cases?</p><h3>Modeling COVID-19 real positive-cases in Indonesia</h3><p>From the <em>reported</em> cases, we can get two data points: total number of confirmed positive Coronavirus cases, as well as total deaths in the country. These are the cases from people who wanted to be tested, and received a test kit for COVID-19.</p><p>To estimate just how many <em>real</em> cases of Coronavirus in Indonesia, we would need to create a model from the number of reported cases. <a href="https://docs.google.com/spreadsheets/d/17YyCmjb2Z2QwMiRRwAb7W0vQoEAiL9Co0ARsl03dSlw/edit?usp=sharing">In this model</a>, we would need three additional parameters, namely fatality rate, doubling time and days from infection to death. The parameter definitions are as follows:</p><blockquote><strong>Fatality rate </strong>= total reported deaths / total reported positive cases<br><strong>Doubling time</strong> = days for positive cases to double in number<br><strong>Days from infection to death</strong> = days from infection to symptoms + days from symptoms to death</blockquote><p>We can infer this by either using the current statistics in Indonesia, or using other countries as proxies for comparison. For this <a href="https://bit.ly/2y2LSRn">simulation</a>, we compared the rates in South Korea (where <a href="https://www.sciencemag.org/news/2020/03/coronavirus-cases-have-dropped-sharply-south-korea-whats-secret-its-success">officials took swift measures of containment</a>) and Italy (which unfortunately now has the <a href="https://www.theguardian.com/world/2020/mar/22/italian-pm-warns-of-worst-crisis-since-ww2-as-coronavirus-deaths-leap-by-almost-800">largest total deaths in the world</a>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/1*qnpMH3y46pqpL2p4yXYWJw.png" /><figcaption>Footnotes: Scenario 1, Scenario 2 and Scenario 3 are the simulations where we assume that the values on the corresponding parameters follow the statistics in Indonesia, South Korea, and Italy, respectively. References for the parameters: [<a href="https://docs.google.com/spreadsheets/u/1/d/1ma1T9hWbec1pXlwZ89WakRk-OfVUQZsOCFl4FwZxzVw/htmlview?usp=sharing">1</a>]; [<a href="https://gisanddata.maps.arcgis.com/apps/opsdashboard/index.html#/bda7594740fd40299423467b48e9ecf6">2</a>]; [<a href="https://gisanddata.maps.arcgis.com/apps/opsdashboard/index.html#/bda7594740fd40299423467b48e9ecf6">3</a>]; [<a href="https://docs.google.com/spreadsheets/d/1dwnYrnbDMO7NpaC1WqA689SRJrVzYYbBmfoMOVv9OXw/edit#gid=0">4</a>]</figcaption></figure><p>Surprisingly, even with the conservative numbers from the simulation, we can see our current (22nd March) estimated <em>real</em> positive cases (~3,500), approximately <strong>7x larger </strong>than<strong> </strong>the current <em>reported</em> cases (514). This suggests that we can expect the Coronavirus issue to be more severe and widespread than the current numbers suggest.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/592/1*xPEXmfA7I8yHz0RqRxqZOw.png" /><figcaption><strong>Figure 4. </strong>Prediction on the real cumulative number of growth, based on reported cases. More details on the model, assumption and the numbers are available <a href="https://bit.ly/3djJjdT">here</a>. The Logistic Regression notebook can be accessed <a href="https://bit.ly/2y2LSRn">here</a>.</figcaption></figure><h4><strong>Gauging Indonesia’s Reaction to COVID-19 using Bukalapak Data</strong></h4><p>Initially, the public did not have a significant reaction towards COVID-19, when endemic only in China. As it began to spread rapidly in Indonesia, people started seeking defensive measures against the virus. The demand for health-masks started to increase (Figure 5) as it was believed to prevent virus infection. However, according to the WHO, masks are not effective for general Coronavirus prevention. <a href="https://www.who.int/emergencies/diseases/novel-coronavirus-2019/advice-for-public/when-and-how-to-use-masks">These</a> are the suggestions from WHO related to the issue,</p><ul><li><em>If you are healthy, you only need to wear a mask if you are taking care of a person with suspected 2019-nCoV infection.</em></li><li><em>Wear a mask if you are coughing or sneezing.</em></li><li><em>Masks are effective only when used in combination with frequent hand-cleaning with alcohol-based hand rub or soap and water.</em></li></ul><p>Despite the aforementioned-comments from WHO and the increasing prices of masks due to limited supply, demand continues growing exponentially. From Bukalapak’s internal data, we see the trend is similar with hand sanitizer, hand soap, and alcohol-based hand rubs. We also notice that demand for thermometers has also increased, suggesting that people might have increased their awareness of the importance of early detection by monitoring their body temperature. (Figure 5)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CZHH1L3I9rLsOeHND9r_eA.jpeg" /><figcaption>F<strong>igure 5.</strong> The trend of normalized interest score on grouped-selected queries (that was calculated from the internal data at Bukalapak)</figcaption></figure><p>WHO has also suggested boosting the body immune system, e.g. by doing physical exercise and consuming healthy foods. In Indonesia, folk medicine (well known as Jamu) are believed to serve that purpose. Figure 6 shows the significant trends on the interest towards herbaceous plants, the base-material for Jamu.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iu41oKRlKeDbtsy2-BSp6w.jpeg" /><figcaption><strong>Figure 6.</strong> Interest score on herbal drinks in Indonesia. (a) The plot is the smoothed-spline plot from the interest score provided by Google Trends; (b) The smoothed-spline plot of from the searches at Bukalapak platforms by using keywords that are related to folk medicines.</figcaption></figure><p>As people minimize human contact, demand for commuting and traveling has substantially decreased. Below you can see the demand for travel-related products at Bukalapak, such as train tickets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ch3swY7XvvneNdK_InLSIg.jpeg" /><figcaption><strong>Figure 7.</strong> The normalized interest score that was estimated from the smoothed-spline trend on transactions of traveling-related virtual products at Bukalapak.</figcaption></figure><p>Several major provinces in Indonesia (e.g. West and Central Java) have suggested for its residents to work from home; to limit their outdoor activities; and to cancel any activities that involve a large number of people. This has pushed people to stock-up their food-supplies. In Bukalapak, we see an increasing trend of search actions in the food-category, especially those related to daily basic needs such as rice and sugar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rUVJm6nOXojpM8L2AVVQ6w.jpeg" /><figcaption><strong>Figure 8.</strong> The trend on the searches at food-related keywords (based on internal data at Bukalapak)</figcaption></figure><h3>Planning for Uncertain Futures</h3><p>A number of countries, including Indonesia, are currently recommending citizens to <a href="https://www.theguardian.com/world/2020/mar/22/italian-pm-warns-of-worst-crisis-since-ww2-as-coronavirus-deaths-leap-by-almost-800">undergo Social Distancing</a> by reducing non-essential gatherings and keeping significant distance from one another. Another recommendation <a href="https://www.weforum.org/agenda/2020/03/covid-19-prevention-touching-face/">not touching your face</a>, and <a href="https://www.unicef.org/coronavirus/everything-you-need-know-about-washing-your-hands-protect-against-coronavirus-covid-19">deliberate hand washing with soap</a>. However, tackling the ongoing crisis will require more serious effort. Learning from other countries’ attempt to control the growth of the spread, there are a couple of options that should be considered by the Indonesian government.</p><h4>Option 1 — Testing the Masses</h4><p>South Korea, Japan, Taiwan and Singapore are countries that have undertaken mass-testing to early detect their citizens with COVID-19, allowing for individual treatment and mitigation plans to prevent further spread. If Indonesia follows this route (which is <a href="https://www.liputan6.com/news/read/4208638/150-kit-tes-tiba-di-indonesia-pemerintah-akan-lakukan-rapid-test-corona">currently planned by the Indonesian government</a>), we can expect the number of positive cases to rise drastically for all those who have <a href="https://www.kompas.com/sains/read/2020/03/19/120200123/tentang-virus-corona-covid-19-apa-itu-istilah-odp-pdp-dan-suspek">yet to be tested</a>. This will hopefully incentivize the government to take necessary actions to cope with the rising number of cases.</p><h4>Option 2 — Lockdown</h4><p>Indonesia’s closest neighbors, Philippines and Malaysia have taken a more aggressive way to combat the outbreak. Lockdown has applied in those countries since March 12 and March 18, 2020, respectively. Despite detecting the first positive cases more recently, Indonesia has the highest mortality rate (as of March 22) and fastest time to double in Southeast Asia. The government should take immediate but wise actions to suppress this spread. As it’s been effectively proven to reduce the growth in Wuhan [<a href="https://www.nature.com/articles/d41586-020-00741-x">ref</a>], should the Indonesian government take the lockdown option?</p><p>If it is applied in Jakarta, where the most cases are reported (~60%, as of March 23), the immediate impact of this policy to our small and medium enterprises (SMEs) are obviously the loss of their transactions. We estimated that<strong> more than a half million potential transactions on SMEs </strong>would be lost during the first week of lockdown in Jakarta (the number was estimated from a time-series model by considering weekly and monthly seasonal effects and by using internal data at Bukalapak).</p><h3>Remarks</h3><p>People have proactively sought protection against COVID-19, especially since the first positive case was announced in the country. Using the current data points that we have, we notice that the Coronavirus crisis is unfortunately growing at an alarming rate. These extraordinary times have caused a surge in demand of maskers, hand sanitizers, and other goods thought to be important to combat the pandemic. However, social distancing and hand washing with soap are key actions to slow down the spread of the pandemic. Furthermore, the government must take extra measures to enforce social distancing and prevent the ballooning growth of positive cases in Indonesia.</p><blockquote>Keep yourselves up to date with the latest Coronavirus news and statistics:<strong> </strong><a href="http://bl.id/PantauCorona"><strong>bl.id/PantauCorona</strong></a></blockquote><p><em>Authors: </em><a href="https://medium.com/@putriwikie"><em>Putri Wikie Novianti</em></a><em>, </em><a href="https://medium.com/@albenft"><em>Alben Tumanggor</em></a><em>, </em><a href="https://medium.com/@ichafizha"><em>Hafizha Husnaisa</em></a><em> and </em><a href="https://medium.com/@jkurn"><em>Jonathan Kurniawan</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=929cb17737a1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bukalapak-data/covid-19s-effect-on-indonesia-929cb17737a1">COVID-19’s effect on Indonesia</a> was originally published in <a href="https://medium.com/bukalapak-data">Bukalapak Data</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Evaluation on how products’ ranking from a new proposed search strategy differs from its legacy]]></title>
            <link>https://medium.com/bukalapak-data/evaluation-on-how-products-ranking-from-a-new-proposed-search-strategy-differs-from-its-legacy-71814fd99b3b?source=rss-8093741f9f93------2</link>
            <guid isPermaLink="false">https://medium.com/p/71814fd99b3b</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[ab-testing]]></category>
            <category><![CDATA[experiment]]></category>
            <category><![CDATA[search]]></category>
            <dc:creator><![CDATA[Putri Wikie]]></dc:creator>
            <pubDate>Fri, 03 Jan 2020 09:23:48 GMT</pubDate>
            <atom:updated>2020-01-03T09:40:11.004Z</atom:updated>
            <content:encoded><![CDATA[<p>A simple yet powerful statistical test as a judgment whether products’ ranking from two strategies is significantly different</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/476/1*9-iaCquisx_qBAmW3VtCdA.jpeg" /></figure><h3>Background</h3><p>As one of the important funnels to the growth of e-commerce businesses, a search engine receives high attention to be constantly refined for better user experience. Once a new search strategy is proposed, a natural next step is to first test the strategy on a subset of users and compare its impacts to currently applied strategy (referred to as legacy). This test or experiment (as also known as A/B test) is conducted by randomly splitting sampled-users into two groups (namely users who will experience (i) legacy and (ii) a new strategy) and further by observing the difference performance of both strategies given metrics of interest.</p><p>An offline-assessment, however, may be considered as a preliminary judgment whether a new algorithm would potentially bring a significant change, as compared to legacy. This article shows how to do an assessment prior to an experiment, as such the chance of finding unimpactful changes is minimized. In the context of search strategy improvement, the impact of a new search strategy can be preliminary assessed by comparing the difference of products’ ranking between two strategies. The premise is, an experiment is worthy to be initiated if the order of searched-products is different between legacy and a new proposed strategy.</p><h3>The proposed offline assessment</h3><p>Suppose for a given keyword <em>k</em>, <em>N</em> products are recorded their ranks that are resulted from both legacy and a new strategy, as illustrated in Table 1.</p><p><strong>Table 1. </strong>Rank comparison of products for a given keyword</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*16n7y4pJkraG58By5PLmeA.jpeg" /></figure><p>Next, to quantify whether the expected value of <em>D</em> is different with zero, a t-test is carried out to test this following hypothesis, <br>H0 : There is no difference in ranking between legacy and new strategy<br>H1 : There is a difference in ranking between legacy and new strategy</p><p>The analysis is then repeated to other top- keywords. To adjust for the false discovery rate due to the multiple comparisons, p-values from the tests is therefore corrected. To elaborate on the necessity of this multiple testing correction, consider this following example. Let say 10,000 statistical tests are simultaneously performed, in which all of them resulted in rejecting the null hypothesis with a critical value of 5%. As in each test, there is a 5% chance of making a false decision, there will be approximately 500 false positive findings out of the 10,000 tests. The multiple testing correction plays a role to control for the false discovery rate, i.e. finding a significant result by chance. Here, a less conservative Benjamini-Hochberg (BH) procedure is chosen for multiple testing correction. The BH procedure works as follows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zAdwDad4Q0c5kKs528jB0Q.jpeg" /><figcaption><strong>Figure 1.</strong> Pseudocode for Benjamini-Hochberg correction. It is important noting that the pseudocode is modified as such the output can be directly compared to . See p.adjust documentation on R CRAN for further details. order: returns a vector whose elements are indexes of the sorted input values (in ascending order if decreasing=FALSE or descending order if decreasing=TRUE). pmin: returns the parallel minima of the input values; cummin: returns a vector whose elements are the cumulative minima of the elements of the argument.</figcaption></figure><p>For a keyword, we may conclude that a new algorithm yields different products’ ranking as the legacy when the adjusted p-value is lower than a predetermined critical value.</p><h3>A practical example</h3><p>To have a better illustration of the proposed pre-experiment assessment, “shoes” was used as a keyword and two strategies were involved to rank the products, i.e. legacy and a new strategy. The products and its rank resulted from the strategies are partly depicted in Table 2.</p><p><strong>Table 2. </strong>Rank comparison of searched-products when “shoes” was used as a keyword</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/973/1*q9EVI57kjs4G9CGSQePmzQ.jpeg" /></figure><p>Visually, the new strategy gave different ranking to the searched-products as the legacy (Figure 2).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/251/1*2_-BrybkQhGASZ27F4R_TQ.png" /><figcaption><strong>Figure 2.</strong> A heatmap from Table 2 to visualize the difference of ranking between legacy and a new strategy.</figcaption></figure><p>A more formal test was conducted to test the difference in ranking between two strategies. In this example, the p-values resulted from such test is 0.01515. Further, the test was applied to ten selected keywords and p-value from each keyword was recorded. The adjusted p-values following the procedure in Figure 1 are presented in Table 3.</p><p><strong>Table 3.</strong> The p-values and adjusted p-values resulted from t-statistics on the ten selected keywords</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/894/1*tFGC0N_e7fTGcOLhHYQ0Gw.jpeg" /></figure><h3>Concluding remark</h3><p>This article demonstrates the use of a simple yet powerful statistical test, i.e. t-statistics with Benjamini-Hochberg correction, as a judgment whether products’ ranking from two strategies is significantly different. The pre-assessment plays a role to prevent conducting an unnecessary experiment, as such production costs can be minimized. It is important noting that this approach is not aimed to evaluate the quality of a new ranking, but rather to evaluate whether a set of ranking yielded from two settings are not significantly similar. This approach can also be used for any other ranking refinement problem, such as for a recommendation system.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=71814fd99b3b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bukalapak-data/evaluation-on-how-products-ranking-from-a-new-proposed-search-strategy-differs-from-its-legacy-71814fd99b3b">Evaluation on how products’ ranking from a new proposed search strategy differs from its legacy</a> was originally published in <a href="https://medium.com/bukalapak-data">Bukalapak Data</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Share and Seek Knowledge unto the Land of Aristotle]]></title>
            <link>https://medium.com/inside-bukalapak/share-and-seek-knowledge-unto-the-land-of-aristotle-b1f42e3388b1?source=rss-8093741f9f93------2</link>
            <guid isPermaLink="false">https://medium.com/p/b1f42e3388b1</guid>
            <category><![CDATA[bukalapak]]></category>
            <category><![CDATA[conference]]></category>
            <category><![CDATA[ifsc]]></category>
            <category><![CDATA[inside-bukalapak]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Putri Wikie]]></dc:creator>
            <pubDate>Fri, 11 Oct 2019 10:50:46 GMT</pubDate>
            <atom:updated>2019-10-11T10:57:08.966Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CRD_MDB0rNqKHmklRwmulQ.jpeg" /><figcaption>View of Thessaloniki. The white building next to the sea is the Thessaloniki Musical Hall, where the IFCS 2019 conference took place. (Photos is taken from the conference’s website)</figcaption></figure><blockquote>“Machine learning it is not about methods, but principles”<br><strong>Theodoros Evgeniou</strong>, Professor Decision Sciences and Technology Management INSEAD Paris, <em>at Plenary Invited session, IFCS 2019</em>: “<em>Principles for building your own machine learning methods: From theory to application to practice</em>”</blockquote><p>Flooding by a huge amount of data, Bukalapak is so fortunate by the given chance to optimize the use of such sources to empower more and more small and medium enterprises (SMEs) in Indonesia through dozen of its Data Scientists who passionately work transforming structured and unstructured data to be actionable insights. One could argue that supervised and unsupervised learning are the most commonly used techniques in data science, especially in the e-commerce domain. Data Scientists at Bukalapak face daily challenges that require the knowledge of such techniques in order to answer business problems of ours. We have a number of in-house research that, in our opinion, could not only end-up in the production, but should also in scientific contribution. With the spirit of sharing, we (three Data Scientists at Bukalapak) presented our research to the scientific community, by attending the 2019 conference of the International Federation of Classification Societies (IFCS) that took place on 26th — 29th of August 2019 at Thessaloniki, Greece. It was such a great honor to be the representative of the company to participate as a contributing speaker to share our research with the other fellow research scientists and practitioners from twenty-nine countries.</p><p>The conference was formally opened by <strong>Theodore Chadjipadelis</strong>, the director of IFCS-2019 Conference, at the Thessaloniki Concert Hall. He recalled the significant attribution of the society to the birth of Data Science, where “Data Science, classification, and related methods” was set as the title for the IFSC conference back in 1996. The community were aware of the rapid change of (big-) data availability (which further affected methods to utilize such data) and tried to respond to it by hosting a biannual conference as a place for researchers, academia, and practitioners for exchanging ideas as well as establishing networking and collaboration.</p><p>At the first panel discussion on Data Science, Elections and Government,<strong> Athanasios Thanopoulos</strong>, President of the Hellenic Statistical Authority, addressed a topic related to the aforementioned massive data availability. He floored his opinion that better data can make all types of decision-makers to make better decisions, but more data do not necessarily mean better data or faster and better decisions, as (i) speed of processing is a challenge faced by humans and (ii) emulating aspects of human decision making is a key challenge faced by machines (not facing speed or volume constraints).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*79pYWqe48GTc3CMCU5uwCQ.jpeg" /><figcaption>David J Hand gave a talk at the IFCS 2019, Thessaloniki Greece.</figcaption></figure><p>An Emeritus Professor of Mathematics at Imperial College London, the former president of the Royal Statistical Society, as well as the author of a famous book <em>“The Improbability Principle: Why Coincidences, Miracles, and Rare Events Happen Every Day”</em>, <strong>David John Hand</strong>, delivered a short lecture entitled: <em>“Deciding what is what: Classification from A to Z</em>”. He gave an important (and persuasive) remark about one of the performance measurements of a classification model, i.e. area under the receiver operating characteristics curve (AUC). He strongly suggested:</p><blockquote>“Do not use the AUC to evaluate classifiers unless you are sure it is the right measure of performance”</blockquote><p>The reason is as follows,</p><p>“The AUC (area under the receiver operating characteristics curve) is equivalent to a cost-weighted average of miss-classification rates as thee classification threshold varies, where the averaging distribution depends on the classifier used.<br>This is absurd. The relative belief that the different values of the threshold (a probability) will appropriate depends on the problem and the objectives, not on the data nor the method you use to analyze the data. <br>The relative severity of the two kinds of misclassification cannot depend on the classifier used. <strong>The AUC is (then) fundamentally incoherent</strong>.”</p><p>Given his numerous significant contributions, David John Hand was awarded IFCS 2019 Research Medal by the committee.</p><p><strong>Julie Jose</strong>, a Professor of Statistics at Ecole Polytechnique in France, shared her though and research findings on the consistency of supervised learning with missing values. She made a remark that a simple mean-based imputation technique is bad for estimating parameter, but it works well for prediction. The remark could strengthen the reason to use of the imputation technique, as it is efficient to apply in practice.</p><p>Apart from classification, Clustering analysis received high attention from society as well. An attempt for neutral benchmarking studies of clustering was initiated during the conference. The session was hosted by <strong>Iven Van Mechelen</strong> (Professor at the Faculty of Psychology and Educational Sciences, KU Leuven Belgium) and <strong>Christian Hennig</strong> (Senior lecturer in Statistics at UCL London). Five research topics on clustering benchmarking were presented and were intensively discussed, including (statistical-)clustering methods, type of data sets, and metrics performances. Furthermore, <strong>Vladimir Batagelj</strong> (a Professor Emeritus of Ljubljiana Slovenia) recalled the concept of graph clustering, from the definition to application at the Plenary Invited talk. On a separate occasion, <strong>David Hunter </strong>(a Professor at Penn State Department of Statistics) discussed clustering in networks and model-based clustering without parametric assumption.</p><h4>Our Contribution</h4><p>We were glad to the given opportunity to participate at the conference as a speaker and to contribute to the community by sharing our scientific research. The three research topics that were presented at the conference are as follows (the underlined-names are the presenter)</p><ol><li>Knowledge graph mining and affinity analysis for product recommendation on online marketplace platforms</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B49MSdn-2Ed_fkD7YNTcsQ.jpeg" /></figure><p>Authors: <a href="https://www.linkedin.com/in/nur-siti-muninggar-33686810a/">NS Muninggar</a>, RA Permadi, S Simbolon, Verra Mukty and PW Novianti. <br>Snapshot: A multi-stage machine learning technique (ranging from knowledge graph mining, clustering via speaker-listener label propagation algorithm, to affinity analysis) were applied to improve our recommendation systems, specifically to provide complementary items.</p><p>2. User profiling for a better search strategy in e-commerce website</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*x1_FTgICwshEAffpjoVMmg.jpeg" /></figure><p>Authors: <a href="https://id.linkedin.com/in/putri-wikie-novianti-3bb97718">PW Novianti</a> and FK Dewi<br>Snapshots: The study focuses on the application of machine learning algorithm to find users’ signal that were incorporated in the search strategy. Both offline and online validations were performed to evaluate the new proposed search strategies.</p><p>3. Double helix multi-stage text classification model to enhance chat user experience in e-commerce website.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kGZ2AhG1rsZPTg7QOEIe1Q.jpeg" /></figure><p>Authors: <a href="https://id.linkedin.com/in/fiqryrevadiansyah">F Revadiansyah</a>, A Ghifari and R Meyvriska<br>Snapshots: The study emphases on text-based classification on the chat feature to detect emptiness product stock from the seller’s text messages.</p><h4>Remarks</h4><p>The conference was attended by academia, research scientists and practitioners. It was a great opportunity to share part of our research and, more importantly, to get a positive response from the community. We always believe that science and research could help us in reaching our goal in a more efficient way.</p><p>p.s. shall you interested to get more details about our research, please feel free to stop-by at our base camp in Kemang Timur Raya 22, South Jakarta, Indonesia (we have much more research topics inside!)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b1f42e3388b1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/inside-bukalapak/share-and-seek-knowledge-unto-the-land-of-aristotle-b1f42e3388b1">Share and Seek Knowledge unto the Land of Aristotle</a> was originally published in <a href="https://medium.com/inside-bukalapak">Inside Bukalapak</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Evaluation on how products’ ranking from a new proposed search strategy differs from its legacy]]></title>
            <link>https://medium.com/inside-bukalapak/evaluation-on-how-products-ranking-from-a-new-proposed-search-strategy-differs-from-its-legacy-74a1bf60a929?source=rss-8093741f9f93------2</link>
            <guid isPermaLink="false">https://medium.com/p/74a1bf60a929</guid>
            <category><![CDATA[evaluation]]></category>
            <category><![CDATA[bukalapak]]></category>
            <category><![CDATA[search-ranking]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[multiple-testing]]></category>
            <dc:creator><![CDATA[Putri Wikie]]></dc:creator>
            <pubDate>Thu, 07 Feb 2019 11:48:11 GMT</pubDate>
            <atom:updated>2019-11-21T06:51:29.030Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Background</strong></h3><p>As one of the important funnels to the growth of e-commerce businesses, a search engine receives high attention to be constantly refined for better user experience. Once a new search strategy is proposed, a natural next step is to first test the strategy on a subset of users and compare its impacts to currently applied strategy (referred to as legacy). This test or experiment (as also known as A/B test) is conducted by randomly splitting sampled-users into two groups (namely users who will experience (i) legacy and (ii) a new strategy) and further by observing the difference performance of both strategies given metrics of interest.</p><p>An offline-assessment, however, may be considered as a preliminary judgment whether a new algorithm would potentially bring a significant change, as compared to legacy. This article shows how to do an assessment prior to an experiment, as such the chance of finding unimpactful changes is minimized. In the context of search strategy improvement, the impact of a new search strategy can be preliminary assessed by comparing the difference of products’ ranking between two strategies. The premise is, an experiment is worthy to be initiated if the order of searched-products is different between legacy and a new proposed strategy.</p><h3><strong>The proposed offline assessment</strong></h3><p>Suppose for a given keyword <em>k</em>, <em>N</em> products are recorded their ranks that are resulted from both legacy and a new strategy, as illustrated in Table 1.</p><p><strong>Table 1. </strong>Rank comparison of products for a given keyword</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*16n7y4pJkraG58By5PLmeA.jpeg" /></figure><p>Next, to quantify whether the expected value of <em>D</em> is different with zero, a t-test is carried out to test this following hypothesis, <br>H0 : There is no difference in ranking between legacy and new strategy<br>H1 : There is a difference in ranking between legacy and new strategy</p><p>The analysis is then repeated to other top- keywords. To adjust for the false discovery rate due to the multiple comparisons, p-values from the tests is therefore corrected. To elaborate on the necessity of this multiple testing correction, consider this following example. Let say 10,000 statistical tests are simultaneously performed, in which all of them resulted in rejecting the null hypothesis with a critical value of 5%. As in each test, there is a 5% chance of making a false decision, there will be approximately 500 false positive findings out of the 10,000 tests. The multiple testing correction plays a role to control for the false discovery rate, i.e. finding a significant result by chance. Here, a less conservative Benjamini-Hochberg (BH) procedure is chosen for multiple testing correction. The BH procedure works as follows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zAdwDad4Q0c5kKs528jB0Q.jpeg" /><figcaption><strong>Figure 1.</strong> Pseudocode for Benjamini-Hochberg correction. It is important noting that the pseudocode is modified as such the output can be directly compared to . See p.adjust documentation on R CRAN for further details. order: returns a vector whose elements are indexes of the sorted input values (in ascending order if decreasing=FALSE or descending order if decreasing=TRUE). pmin: returns the parallel minima of the input values; cummin: returns a vector whose elements are the cumulative minima of the elements of the argument.</figcaption></figure><p>For a keyword, we may conclude that a new algorithm yields different products’ ranking as the legacy when the adjusted p-value is lower than a predetermined critical value.</p><h3>A practical example</h3><p>To have a better illustration of the proposed pre-experiment assessment, “shoes” was used as a keyword and two strategies were involved to rank the products, i.e. legacy and a new strategy. The products and its rank resulted from the strategies are partly depicted in Table 2.</p><p><strong>Table 2. </strong>Rank comparison of searched-products when “shoes” was used as a keyword</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/973/1*q9EVI57kjs4G9CGSQePmzQ.jpeg" /></figure><p>Visually, the new strategy gave different ranking to the searched-products as the legacy (Figure 2).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/251/1*2_-BrybkQhGASZ27F4R_TQ.png" /><figcaption><strong>Figure 2.</strong> A heatmap from Table 2 to visualize the difference of ranking between legacy and a new strategy.</figcaption></figure><p>A more formal test was conducted to test the difference in ranking between two strategies. In this example, the p-values resulted from such test is 0.01515. Further, the test was applied to ten selected keywords and p-value from each keyword was recorded. The adjusted p-values following the procedure in Figure 1 are presented in Table 3.</p><p><strong>Table 3.</strong> The p-values and adjusted p-values resulted from t-statistics on the ten selected keywords</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/894/1*tFGC0N_e7fTGcOLhHYQ0Gw.jpeg" /></figure><h3>Concluding remark</h3><p>This article demonstrates the use of a simple yet powerful statistical test, i.e. t-statistics with Benjamini-Hochberg correction, as a judgment whether products’ ranking from two strategies is significantly different. The pre-assessment plays a role to prevent conducting an unnecessary experiment, as such production costs can be minimized. It is important noting that this approach is not aimed to evaluate the quality of a new ranking, but rather to evaluate whether a set of ranking yielded from two settings are not significantly similar. This approach can also be used for any other ranking refinement problem, such as for a recommendation system.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74a1bf60a929" width="1" height="1" alt=""><hr><p><a href="https://medium.com/inside-bukalapak/evaluation-on-how-products-ranking-from-a-new-proposed-search-strategy-differs-from-its-legacy-74a1bf60a929">Evaluation on how products’ ranking from a new proposed search strategy differs from its legacy</a> was originally published in <a href="https://medium.com/inside-bukalapak">Inside Bukalapak</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>