<?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 Rafi Naufal Aziz on Medium]]></title>
        <description><![CDATA[Stories by Rafi Naufal Aziz on Medium]]></description>
        <link>https://medium.com/@rafinflaziz?source=rss-4df5a95895f9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*id7l-QPScAiDAFAXLFPWFQ.png</url>
            <title>Stories by Rafi Naufal Aziz on Medium</title>
            <link>https://medium.com/@rafinflaziz?source=rss-4df5a95895f9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 19 Nov 2026 16:28:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rafinflaziz/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[Hierarchical Clustering Analysis of Well Water Quality in Bandung (Using Python)]]></title>
            <link>https://medium.com/@rafinflaziz/hierarchical-clustering-analysis-of-well-water-quality-in-bandung-using-python-8d28fb2e7802?source=rss-4df5a95895f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/8d28fb2e7802</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[clustering]]></category>
            <category><![CDATA[hierarchical-clustering]]></category>
            <dc:creator><![CDATA[Rafi Naufal Aziz]]></dc:creator>
            <pubDate>Thu, 12 Oct 2023 10:40:13 GMT</pubDate>
            <atom:updated>2023-10-12T10:40:13.875Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YgMwfN7-FAAKt8jYPpHCGg.jpeg" /></figure><h3>Background</h3><p>Many regions around the world still face challenges in providing the access to <strong>clean and safe water</strong> to their populations. <strong>Bandung</strong>, one of the largest city in Indonesia, is influenced by multiple industrial activities and urbanization that can damage the water quality in its environment. Many Bandung’s residents rely on <strong>well water</strong> as a primary source of water (including drinking water), making it essential for the government and related institutions to monitor and improve the quality of water from these sources.</p><p>This report aims to address the critical issue of well water quality in Bandung by implementing data analysis techniques, specifically <strong>hierarchical clustering analysis</strong>, to provide valuable insights and recommendations for government agencies and institutions responsible for water resource management and public health.</p><h3>Objectives</h3><p>The primary objectives of this analysis are as follows:</p><ol><li><strong>Identify Water Quality Clusters</strong>: Through clustering analysis, I aim to group well water sources in Bandung into clusters with similar water quality profiles. These clusters will provide a clearer understanding of regional trends and variations in water quality.</li><li><strong>Promote Public Health and Environmental Awareness</strong>: Additionally, this analysis can be seen as a contribution to the enhancement of public health and the preservation of the environment by promoting public health and environmental awareness, especially in the quality of well water for the residents of Bandung.</li></ol><h3>Dataset</h3><p><strong>For some privacy reason, I can’t share the dataset source here.</strong></p><p>The dataset has 160 rows and 11 columns. Let’s take a quick look at the data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/924/1*unFyS71M8LBaTuoYT4L3Wg.png" /><figcaption>Figure 1. Snippet of the data</figcaption></figure><p>The first column is an ID where its values are formatted as <em>Region Code-Water Type-Sample Number</em>. As we will see later, there are 2 type of water:</p><ul><li>ASAM (drinkable)</li><li>AS (not drinkable)</li></ul><p>and 7 different region code:</p><ul><li>MJ (Majalengka)</li><li>BL (Baleendah)</li><li>CP (Ciparay)</li><li>PC (Pacet)</li><li>PL (Pangalengan)</li><li>RC (Rancaekek)</li><li>SR (Soreang)</li></ul><p>The rest of the columns are indicators of how much the water is contaminated by the associated substances.</p><h3>Pre-analysis</h3><h4>Extraction</h4><p>As mentioned earlier, the ID values are formatted as <em>Region Code-Water Type-Sample Number</em>. To make the analysis easier, I will extract the region code and water type from the ID value into their own column.</p><p>To extract the region code, two possible ways come into my mind. The first way is to select the first two letters of the ID value. The second way is to split the ID value by the character “-”, then select the first string.</p><pre># by first two letters<br>data[&#39;Region&#39;] = data[&#39;Sampel ID&#39;].str[:2]<br><br># by splitting then get the first string<br>data[&#39;Region&#39;] = data[&#39;Sampel ID&#39;].str.split(&#39;-&#39;).str[0]</pre><p>Actually, both ways produce the same result. However, it will be more safe and convenient if I do it the second way. Why? Because there might be an inconsistency in the data input caused by human error. For example, a region code value might have more than 2 letters, or the inputter might mistakenly input the first part with the water type instead of the region code.</p><p>Indeed, when I extract the water type value using the second way (with the split method), I spot such a problem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*emnbnwMAhDRqbOXNAMBZvA.png" /><figcaption>Figure 2. Incorrectly inputted data</figcaption></figure><p>As you can see, there are some ID that have been incorrectly inputted. Fortunately, there are only 5 rows that contain these errors, so I can fix them manually by rewriting the ‘type’ value for these rows.</p><pre># rewrite the type of those 5 rows<br>data.loc[[51, 53, 54], &#39;Type&#39;] = &#39;AS&#39;<br>data.loc[[52, 69], &#39;Type&#39;] = &#39;ASAM&#39;</pre><p>Here is a quick look at the data after I extract the two columns.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gMuJ-yjQtU61NdZSFWTqsw.png" /><figcaption>Figure 3. Data snippet after region code and water type extracted</figcaption></figure><h3>EDA</h3><p>Before proceeding into the clustering analysis, it is essential to do EDA first in order to gain a deep understanding of the dataset and the patterns it may reveal.</p><h4>Region and Water Type Variable</h4><p>In the dataset, it is important to notice that each region is represented by a relatively similar number of well samples, ranging from 18 samples to 27 samples. This balanced distribution of data across regions ensures that our analysis and clustering results will be relatively robust and unbiased by its geographical location.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*XgG8rzkX_q6D5Fqwc7cm-Q.png" /><figcaption>Figure 4. Number of well in each region</figcaption></figure><p>However, in this dataset, there are higher number of well with undrinkable water (AS) in comparison to well with drinkable water (ASAM). This disproportion emphasizes a significant concern regarding the availability of safe drinking water sources in the regions of Bandung, as a considerably larger proportion of the wells are observed to exhibit water quality issues.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/1*K5fX9D7pwXeb1KWs_cLaKw.png" /><figcaption>Figure 5. Number of well from each water type</figcaption></figure><p>While several regions like Pacet and Pangalengan already have more drinkable-water wells than undrinkable ones, most of the regions still grapple with a concerning disparity. In these areas, the amount of undrinkable-water wells not only surpasses their drinkable counterparts but does so by a substantial margin.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*IN0JMBapiemOFXRqA_R-Qw.png" /><figcaption>Figure 6. Number of well in each region by water type</figcaption></figure><h4>Substances Concentration Variable</h4><p>Regarding the variables related to substances concentration, every single one of them has a positive skewed distribution. Because the plot for all 10 substances is too large, as an example, I will only show the distribution of three variable along with the correlation between each two of them.</p><p>As for the results, there isn’t any notable result except for the fact that the Cadmium (Cd) and Lead (Pb) are highly correlated. Deeper knowledge about chemistry and water engineering might be needed to gain meaningful insights from this result.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/603/1*UbH-b3nesurC7KX8Gfyfhw.png" /><figcaption>Figure 7. Distribution of 3 (out of 10) substance along with correlation between each two of them</figcaption></figure><h4>All Variable</h4><p>In any region, calculated by the mean of concentration, three substances dominates among another: iron (Fe), manganese (Mn), and zinc (Zn). In most of the regions, wells are heavily contaminated by iron. Some exceptions are Pacet and Pangalengan, where the wells are contaminated dominantly by manganese, and Soreang, where the wells are contaminated by iron and manganese equally.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/713/1*O49UK3oy6rWKiIeGDC-0qw.png" /><figcaption>Figure 8. Mean of Substances Concentration in Each Region</figcaption></figure><p>If we take a look back at figure 6, Pacet and Pangalengan are the only region that have more drinkable-water water source than the undrinkable one. This may suggest that low level of iron (or high level of manganese) contamination is one of the indicator for a healthy, drinkable water.</p><p>However, if we look at the next two plots, where these are similar to figure 8 but separated by the water type, there are undrinkable water with high level of manganese as well as drinkable water with high level of iron. Therefore, at least for now, neither manganese contamination level nor iron contamination level can be considered as an indicator of undrinkable water.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/706/1*CxVS2wHZ8k6_TLU-1oxbFQ.png" /><figcaption>Figure 9. Mean of Substances Concentration in Each Region (undrinkable water)</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/706/1*wnPDoiMxyw9lSAfUurdO9w.png" /><figcaption>Figure 10. Mean of Substances Concentration in Each Region (drinkable water)</figcaption></figure><h3>Clustering</h3><p>We now turn our attention to the core of our analysis: clustering analysis.</p><h4>Methods</h4><p>In this analysis, I will specifically use <strong>hierarchical clustering</strong> method with four kinds of linkage:</p><ul><li><strong>Single linkage</strong>, where the distance of two clusters A and B is defined with the <strong>minimum</strong> distance between a point in A and a point in B.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/329/1*m2fxFV57k-WlkfImhFCNow.png" /></figure><ul><li><strong>Complete linkage</strong>, where the distance of two clusters A and B is defined with the <strong>maximum</strong> distance between a point in A and a point in B.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/316/1*C8k5Rkqo3z3af6JeagsLlA.png" /></figure><ul><li><strong>Average linkage, </strong>where the distance between two clusters A and B is defined as the average of the distances between every points in A and every points in B.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/489/1*rt3yN7aSmePUYrCWEpMYzw.png" /></figure><ul><li><strong>Ward’s linkage</strong>, where at each step, it joins two clusters A and B that minimize the increase in SSE (sum-squared error) defined as below.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/934/1*7GA7agQKQBJu4sn9vHf4iA.png" /></figure><p>Note that at each step in single linkage, complete linkage, and average linkage, they join the two clusters with the smallest distance, as measured with the respective distance definition.</p><p>In python, you can perform hierarchical analysis by utilizing the functions offered by the <strong>SciPy</strong> package.</p><pre># importing the functions from scipy<br>from scipy.cluster.hierarchy import dendrogram, linkage</pre><p>If you are not familiar yet with the concept of hierarchical clustering, I suggest you to read <a href="https://towardsdatascience.com/understanding-the-concept-of-hierarchical-clustering-technique-c6e8243758ec">this article</a> and <a href="https://en.wikipedia.org/wiki/Hierarchical_clustering">this wikipedia page</a>. You can also read the <a href="https://docs.scipy.org/doc/scipy/reference/cluster.hierarchy.html">scipy documentation</a>.</p><h4>Number of Cluster</h4><p>From previous EDA, we have seen that the data often can be divided into three categories. For example, in figure 6, there three categories are</p><ol><li>region where the number of AS well-water is more than ASAM water,</li><li>region where the number of ASAM well-water is more than AS, and</li><li>region where the number of AS well-water and ASAM well-water are equal.</li></ol><p>Another example is present in figure 8, where the three categories are</p><ol><li>region where the concentration mean of iron is higher than manganese,</li><li>region where the concentration mean of manganese is higher than iron, and</li><li>region where the concentration mean of iron and manganese are equal.</li></ol><p>Therefore, through this exploration of the inherent structure and pattern of the data, I will choose <strong>three</strong> as the number of cluster in this analysis. Of course, these categorization may seems arbitrary (indeed they are). However, as we will see in the clustering result, the selection of three clusters is not a bad decision.</p><h4>Aggregation</h4><p>The clustering process will be based on the substances concentrations value at each region. Because one region contains several wells, we need to aggregate them first. In this analysis I use the <strong>mean aggregation</strong>. You can see the result as below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eUU0rToPR1jzXfhE-oJ9qw.png" /><figcaption>Figure 11. Mean-aggregated data based on region code</figcaption></figure><h4>Results (dendrogram)</h4><p>After applying the four clustering methods to the aggregated data, we achieve four dendrograms for each methods.</p><p>According to the single method, we can see that <strong>CP</strong> with <strong>MJ </strong>are the most similar ones, therefore they might be belong to the same cluster. On the other side, we can also see that <strong>RC </strong>and <strong>SR </strong>are similar, so they might have their own cluster too. The next point that is closer to <strong>RC </strong>and <strong>SR </strong>is <strong>BL</strong>, followed by <strong>PL</strong> and <strong>PC</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kwNJYRHBLjPEdkMPaCOGFg.png" /><figcaption>Figure 12. Single linkage dendrogram result</figcaption></figure><p>In fact, if we look at the next three dendrogram resulting from the average linkage, complete linkage, and ward linkage, we can see the similar pattern with only a slight difference. In these three methods, BL-RC-SR cluster are joined with the PC-PL cluster, rather than joined with PL and then PC like we have seen from the single linkage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rfHuiWOQXxRYFCkv76JTYw.png" /><figcaption>Figure 13. Average linkage dendrogram result</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MYK7XRl0_ywsh0vrBBndaw.png" /><figcaption>Figure 14. Complete linkage dendrogram result</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d3f2FB6snLtOyPRdthe9Yw.png" /><figcaption>Figure 15. Ward linkage dendrogram result</figcaption></figure><h4>Geographical Plot</h4><p>To support our consideration, let’s take a look at how these cluster represents the regions in geographical perspective.</p><p>It’s not hard to acquire longitude and latitude data for each region. I manually input them from Google Maps. For the plotting, I use <a href="https://plotly.com/python/plotly-express/">Plotly Express</a>.</p><p>Remember that we have two distinct results: one from single method, one from the other methods. Here is both results plotted on a map.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/763/1*RQjCY2SHeyA1OwQdqrPHtQ.png" /><figcaption>Figure 16. Geographical plot of the result from single method</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/745/1*ETkOtMlaiBE_dfJ6Kv7Qow.png" /><figcaption>Figure 17. Geographical plot of the result from other methods</figcaption></figure><p>Comparing these two results, I personally like the second one, where the regions are separated by latitude coordinate. It is intuitive and easy to interpret. However, we might need more data to make a clear conclusion, such as altitude and water distribution network.</p><h4>Clustering Summary</h4><p>To summarize the preceding results, Ciparay (<strong>CP</strong>) and Majalengka (<strong>MJ</strong>) are always joined first resulting in <strong>CP-MJ</strong> cluster. In all four results, this <strong>CP-MJ</strong> cluster consistently joined last with a cluster containing the rest of the regions.</p><p>On the other side, Rancaekek (<strong>RC</strong>) and Soreang (<strong>SR</strong>) are always be the second points joined then resulting in <strong>RC-SR</strong> cluster. After that, this <strong>RC-SR</strong> cluster will always be joined with Baleendah (<strong>BL</strong>) resulting in <strong>RC-SR-BL</strong> cluster. In the single linkage result, the<strong> RC-SR-BL </strong>cluster is joined with Pangalengan (<strong>PL</strong>), resulting in<strong> RC-SR-BL-PL</strong> cluster, then joined with Pacet (<strong>PC</strong>), resulting in <strong>RC-SR-BL-PL-PC</strong> cluster. However, in other three results, <strong>PC</strong> and <strong>PL </strong>are joined first resulting in <strong>PC-PL</strong> cluster, then joined with the <strong>RC-SR-BL</strong> cluster, resulting <strong>RC-SR-BL-PL-PC</strong> cluster.</p><h3>Recommendation</h3><p>As we mentioned before, we will choose to divide regions into three clusters. There are two different clustering results that can be derived:</p><ol><li><strong>CP-MJ</strong> cluster, <strong>SR-RC-BL-PL</strong> cluster, <strong>PC </strong>cluster (single linkage)</li><li><strong>CP-MJ</strong> cluster, <strong>SR-RC-BL</strong> cluster, <strong>PC-PL</strong> cluster (other linkages)</li></ol><p>Based on our previous analysis, <strong>I recommend the second clustering result</strong>. Why? Firstly, because it is resulted from three different linkage methods, while the first clustering is resulted only from the single linkage method. Secondly, it is supported by geographical data: the second clustering has more intuitive and reasonable distinction based on each regions’ location; also it is more interpretable.</p><h3>Conclusion</h3><p>In conclusion, the clustering analysis performed in this study has successfully achieved the first objective by grouping well water sources in Bandung into clusters with similar water quality profiles. With our results, we have gained valuable insights into the regional trends that define the well water structure in Bandung. These clusters also provide a clearer understanding of the geographical factors that influence water quality, allowing the government agencies and institutions to produce more precise targeting of treatment strategies.</p><p>Moving forward, this knowledge will also encourage society to promote public health and environmental awareness, especially in the quality of well water for the residents of Bandung.</p><h3>Code</h3><p><a href="https://github.com/rafinflaziz/clustering-well-water">https://github.com/rafinflaziz/clustering-well-water</a></p><h3>Reference</h3><p>A.C Rencher. (2002). <em>Methods of Multivariate Analysis 2nd Edition.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8d28fb2e7802" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[4 Perbedaan Antara Variansi dan Simpangan Baku]]></title>
            <link>https://medium.com/@rafinflaziz/4-perbedaan-antara-variansi-dan-simpangan-baku-c4cdc148c561?source=rss-4df5a95895f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/c4cdc148c561</guid>
            <category><![CDATA[peluang]]></category>
            <category><![CDATA[variansi]]></category>
            <category><![CDATA[simpangan-baku]]></category>
            <category><![CDATA[matematika]]></category>
            <category><![CDATA[statistika]]></category>
            <dc:creator><![CDATA[Rafi Naufal Aziz]]></dc:creator>
            <pubDate>Thu, 12 Oct 2023 08:43:57 GMT</pubDate>
            <atom:updated>2024-05-11T06:27:21.405Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k-bsH22rfGo-i1lDnClScA.jpeg" /><figcaption><a href="https://www.freepik.com/free-vector/business-performance-analysis-with-graphs_3585415.htm#query=data%20insights&amp;position=5&amp;from_view=keyword&amp;track=ais">Image by rawpixel.com on Freepik</a></figcaption></figure><h3>Latar Belakang</h3><p>Ketika pertama kali belajar ilmu statistika, saya dikenalkan pada beberapa ukuran statistik dasar seperti rerata, variansi, dan simpangan baku. Ketiga ukuran tersebut memiliki perannya masing-masing dalam mendeskripsikan suatu data: rerata mendeskripsikan ukuran pemusatan data, sedangkan variansi dan simpangan baku mendeskripsikan ukuran sebaran data.</p><p>Kemudian, saya sadar bahwa variansi dan simpangan baku sama-sama mengukur sebaran data. Tidak hanya itu, keduanya juga saling berkaitan jika kita lihat dari rumusnya. Dengan kata lain, diberikan nilai variansi, kita bisa langsung mendapatkan nilai simpangan baku.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/289/1*2vHyLp_-e_fLhG8GtgB4jg.png" /></figure><p>Dari sini, satu pertanyaan muncul di benak saya.</p><blockquote>Jika <strong>variansi</strong> dan <strong>simpangan baku</strong> sama-sama menggambarkan <strong>sebaran data </strong>dan keduanya saling berkaitan, mengapa kita harus mempelajari keduanya? Tidakkah menghitung atau mempelajari salah satunya saja sudah cukup?</blockquote><p>Dalam tulisan ini, saya akan mencoba menjelaskan secara singkat empat perbedaan utama antara variansi dan simpangan baku, serta kapan kita menggunakan masing-masing konsep tersebut.</p><p><strong>Catatan<br></strong>Saya akan fokus pada perbedaannya saja, sehingga saya tidak akan membahas apa itu variansi dan simpangan baku secara mendalam. Jadi, diharapkan pembaca sudah familiar dengan kedua konsep ini.</p><h3>Perbedaan Simpangan Baku dan Variansi</h3><h4>Satuan</h4><p>Perbedaan utama antara variansi dan simpangan baku adalah satuan<strong>. </strong>Simpangan baku memiliki satuan yang sama dengan data asli, sedangkan variansi tidak. Untuk lebih jelasnya, perhatikan data berikut.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/343/1*RY3QvU9643kGtJ9bwMqYHA.png" /></figure><p>Dari data tersebut, kita bisa mendapatkan beberapa nilai statistik dasar: <strong>rerata, variansi, </strong>dan <strong>simpangan baku. </strong>Reratanya adalah 165.86 cm, variansinya adalah 21.98 cm², dan simpangan bakunya adalah 4.69 cm.</p><p>Kita bisa melihat bahwa variansi, tidak seperti rerata maupun simpangan baku, memiliki satuan yang berbeda dengan data asli. Inilah mengapa kita memerlukan simpangan baku yang dihitung dengan mengakar-kuadratkan variansi: <strong>kita butuh ukuran penyebaran data dengan satuan yang sama seperti data aslinya.</strong></p><p>Namun, kalimat tersebut malah menimbulkan pertanyaan baru. Kenapa kita butuh ukuran yang satuannya sama dengan data asli? Ketika kita ingin mendeskripsikan besar suatu persegi, bukankah mengatakan “panjang sisi persegi ini 3 cm” sama saja dengan mengatakan “luas persegi ini 9 cm²”?</p><h4>Interpretasi</h4><p>Sayangnya, statistika tidaklah sesederhana analogi persegi. Dalam kasus persegi, memang tidak ada bedanya menggambarkan besarnya suatu persegi dengan cm dan cm². Akan tetapi, dalam mendeskripsikan sebaran data, ada keunggulan tersendiri dalam menggunakan simpangan baku daripada variansi: karena satuannya sama dengan data aslinya, simpangan baku <strong>lebih mudah diinterpretasikan</strong>. Agar lebih terbayang, perhatikan ilustrasi berikut (data tinggi badan sebelumnya).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m1u15V6u_TlseXXH7Q7MBw.png" /></figure><p>Dalam kasus ini, kita dapat menginterpretasikan rerata dan simpangan baku dengan mengatakan bahwa kebanyakan peserta berada pada rentang 165.86 ± 4.69 cm. Interpretasi seperti ini sangatlah intuitif dan dapat dicerna dengan mudah bahkan oleh orang awam sekalipun.</p><p>Selain itu, kita bisa mendapatkan gambaran mengenai peserta seperti apa yang tergolong tinggi atau pendek (relatif dari peserta lainnya). Biasanya, kita hanya menggunakan nilai rerata untuk mendapatkan gambaran tersebut: peserta dengan tinggi badan di atas rerata tergolong tinggi dan peserta dengan tinggi badan di bawah rerata tergolong pendek. Klasifikasi seperti ini masih terlalu luas untuk menggambarkan mana peserta yang tinggi dan yang pendek (contoh: 165 dianggap pendek dan 167 dianggap pendek meskipun bedanya hanya 2 cm). Dengan adanya simpangan baku, kita bisa mendapatkan gambaran yang lebih khusus: peserta yang tingginya berada di luar rentang 165.86 ± 4.69 cm merupakan peserta yang tinggi atau pendek.</p><p>Lebih jauh lagi, berdasarkan <a href="https://en.wikipedia.org/wiki/Chebyshev%27s_inequality">ketaksamaan Chebyshev</a>, kita bisa yakin bahwa setidaknya 75% data pasti akan berada pada 2 simpangan baku (dari reratanya). Teorema ini makin memudahkan interpretasi simpangan baku.</p><p>Sebagai contoh lain, misalnya saya mempunyai jasa perbaikan laptop. Saya tahu dari data historis bahwa rerata waktu perbaikan laptop adalah 7 hari dengan simpangan bakunya adalah 1 hari. Dengan demikian, saya bisa meyakinkan pelanggan saya bahwa perbaikan laptop akan selesai dalam waktu 5 sampai 9 hari (7 ± 2 hari) karena setidaknya 75% laptop pasti selesai diperbaiki dalam rentang ini¹.</p><p>Sejauh ini, kita telah melihat dua perbedaan utama dari simpangan baku dan variansi. Kita juga telah melihat beberapa manfaat dalam menggunakan simpangan baku daripada variansi.</p><p>Lalu kapan variansi digunakan?</p><p>Dalam praktiknya, variansi akan lebih banyak digunakan daripada simpangan baku ketika kita berurusan dengan statistika teoritis, terutama teori peluang. Ada beberapa alasan kenapa penggunaan variansi begitu ekstensif dalam ranah teoritis.</p><h4>Sifat Matematis</h4><p>Ketika kita berbicara mengenai teori peluang, seringkali kita berurusan dengan distribusi (distribusi peluang) alih-alih observasi. Akibatnya, kita sudah tidak memandang variansi sebagai suatu hasil perhitungan lagi, melainkan sebagai sebuah properti dari suatu distribusi.</p><p>Sebagai sebuah properti, variansi memiliki satu <a href="https://en.wikipedia.org/wiki/Bienaym%C3%A9%27s_identity">sifat</a> menarik:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/453/1*_GOhnwdXp5bA1H8_e03hgQ.png" /></figure><p>Artinya, variansi dari <em>n </em>penjumlahan variabel acak akan sama dengan penjumlahan kovariansi dari setiap dua (dari <em>n</em>) variabel acak. Sifat ini sangat berguna karena kita bisa memanipulasi variansi secara aljabar (<em>algebraically</em>). Ditambah lagi, sifat ini berlaku untuk sebarang variabel acak dengan distribusi apapun. Kemudahan seperti ini tidak dimiliki oleh simpangan baku.</p><p>Sebagai catatan, karena variansi suatu variabel acak dapat dipandang sebagai kovariansi terhadap dirinya sendiri, rumusnya bisa kita tulis sebagai berikut.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/692/1*UFqmlAFpcQc1qZaThvpvkQ.png" /></figure><p>Lebih jauh lagi, apabila setiap dua (dari <em>n</em>) variabel acak tersebut independen, kita dapat menyederhanakan rumusnya menjadi seperti berikut.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/388/1*d-E3K5crmGbgNnzCPnblwA.png" /></figure><p>Mungkin rumus-rumus di atas terdengar asing bagi seseorang yang baru belajar teori peluang. Memang, yang biasanya dikenalkan adalah versi khususnya, yaitu variansi dari penjumlahan dua variabel acak saja:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/623/1*p4sFfb8XSFnDKKk4ARnimQ.png" /></figure><h4>Multivariat</h4><p>Dalam distribusi multivariat, variansi dapat digeneralisasi ke dimensi yang lebih tinggi dalam bentuk matriks kovariansi. Untuk simpangan baku, tidak ada generalisasi seperti itu. Artinya, dalam statistika multivariat, kita cenderung memakai ‘variansi versi multivariat’ daripada ‘simpangan baku versi multivariat’.</p><p>Meskipun begitu, kita bisa saja mencari ‘simpangan baku versi multivariat’ dengan menghitung akar kuadrat dari matriks kovariansi (misalnya dengan menggunakan <a href="https://en.wikipedia.org/wiki/Cholesky_decomposition">dekomposisi Cholesky</a>). Namun, untuk mendapatkan kemudahan <em>interpretability </em>seperti simpangan baku pada univariat, kita umunya cenderung menggunakan PCA daripada akar kuadrat matriks kovariansi.</p><h3>Kesimpulan</h3><p>Variansi dari suatu data mengukur sebaran data tersebut relatif terhadap nilai rerata. Namun, meskipun nilai ini secara teoritis benar, variansi sulit untuk diterapkan dalam konteks dunia nyata karena dalam menghitungnya, terdapat proses menguadratkan sehingga satuannya pun menjadi kuadrat dari satuan aslinya.</p><p>Simpangan baku, sebagai akar kuadrat dari variansi, memberikan nilai yang dalam satuan yang sama dengan nilai asli, sehingga membuatnya jauh lebih mudah untuk digunakan dan diinterpretasikan.</p><p>Meskipun begitu, dengan sifatnya yang mudah dimanipulasi secara aljabar dan generalisasi variansi pada statistika multivariat, variansi lebih banyak digunakan daripada simpangan baku dalam ranah statistika teoritis.</p><p>Dapat kita simpulkan bahwa variansi dan simpangan baku adalah dua konsep yang wajib untuk dikuasai bagi siapapun yang menggunakan ilmu peluang dan statistika dalam pekerjaannya. Keduanya memberikan manfaat baik secara teoritis maupun praktis. Dengan mengetahui perbedaan di antara keduanya, kita dapat mengetahui kapan kita menggunakan variansi dan kapan menggunakan simpangan baku.</p><h4>Catatan</h4><p>¹ Tentunya, apabila ingin lebih meyakinkan pelanggan, saya bisa bilang bahwa laptop akan selesai dalam waktu 4 sampai 10 hari (7 ± 3 hari) karena setidaknya 88% laptop pasti selesai diperbaiki. Lebih jauh lagi, andaikan saya tahu bahwa waktu perbaikan laptop saya itu mendekati distribusi normal, saya bisa yakin bahwa sekitar 95% laptop pasti selesai diperbaiki dalam waktu 4 sampai 10 hari (lihat <a href="https://en.wikipedia.org/wiki/68%E2%80%9395%E2%80%9399.7_rule">Empirical Rule</a>).</p><h3>Referensi</h3><p><strong>Books<br></strong>Robert Hogg, Joseph McKean, dan Allen Craig. (2012). <em>Introduction to Mathematical Statistics 7th Edition.</em></p><p>R. Walpole, M. Raymond, M. Sharon, Y. Keying. (2016). <em>Probability &amp; Statistics for Engineers &amp; Scientists 9th Edition.</em></p><p>James Evans. (2019). <em>Business Analytics 3rd Edition.</em></p><p><strong>Web Articles and Forums<br></strong><a href="https://www.mathsisfun.com/data/standard-deviation.html">https://www.mathsisfun.com/data/standard-deviation.html</a></p><p><a href="https://stats.stackexchange.com/questions/35123/whats-the-difference-between-variance-and-standard-deviation">https://stats.stackexchange.com/questions/35123/whats-the-difference-between-variance-and-standard-deviation</a></p><p><a href="https://www.reddit.com/r/statistics/comments/d839m6/question_what_are_the_benefits_of_using_variance/">https://www.reddit.com/r/statistics/comments/d839m6/question_what_are_the_benefits_of_using_variance/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c4cdc148c561" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pembelajaran Jarak Jauh Berbasis Daring, Sebuah Perspektif]]></title>
            <link>https://medium.com/@rafinflaziz/pembelajaran-jarak-jauh-berbasis-daring-sebuah-perspektif-29939a9ad70b?source=rss-4df5a95895f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/29939a9ad70b</guid>
            <category><![CDATA[terangkembali]]></category>
            <category><![CDATA[oskmitb2020]]></category>
            <category><![CDATA[bukansjw]]></category>
            <dc:creator><![CDATA[Rafi Naufal Aziz]]></dc:creator>
            <pubDate>Mon, 20 Jul 2020 12:08:15 GMT</pubDate>
            <atom:updated>2020-07-20T12:08:15.770Z</atom:updated>
            <content:encoded><![CDATA[<p>Dalam masa pandemi ini, sektor pendidikan memerlukan solusi agar proses belajar mengajar tetap terlaksana dengan baik. Oleh karena itu, pembelajaran jarak jauh berbasis daring merupakan solusi pemerintah untuk menghadapi permasalahan tersebut. Namun, kedepannya, model pembelajaran ini direncanakan untuk menjadi permanen, dilansir dari <a href="https://nasional.kompas.com/read/2020/07/02/14445511/mendikbud-setelah-pandemi-covid-19-pembelajaran-jarak-jauh-akan-permanen#:~:text=Bukan%20pembelajaran%20jarak%20jauh%20pure,2%2F7%2F2020).&amp;text=Dia%20mengatakan%2C%20pemanfaatan%20teknologi%20ini,berbagai%20macam%20modeling%20kegiatan%20belajar.">Kompas</a>.</p><p>Menurut Nadiem Makarim, model pembelajaran jarak jauh berbasis daring dapat secara aktif memaksimalkan potensi tenaga didik dan murid-murid dalam pemanfaatan teknologi. Ia menilai bahwa inilah ini pertama kalinya guru, kepala sekolah, murid, hingga orang tua bereksperimen dan beradaptasi dengan teknologi.</p><p>Saya tidak setuju dengan keputusan Pak Nadiem. Menurut saya, pembelajaran luring jauh lebih efektif daripada pembelajaran daring. Meskipun saya tidak punya data mengenai efektivitas kedua jenis pembelajaran, saya dan teman-teman saya dapat merasakan tidak efektifnya pembelajaran daring.</p><p>Selain itu, saya rasa potensi pemanfaatan teknologi oleh guru, orang tua, dan kepala sekolah tidak sebesar itu. Apa arti melek teknologi bagi para orang tua? Tidak lama lagi, mereka akan keluar dari usia produktif mereka. Daya tangkap mereka terhadap pemanfaatan teknologi pun tidak begitu cepat. Berapa lama mereka akan terbiasa terhadap teknologi baru?</p><p>Kalau Pak Nadiem ingin mengekstrak <strong>potensi </strong>pemanfaatan teknologi, bagaimana dengan <strong>risiko</strong> penurunan efektivitas pembelajaran? Akankah <strong>potensi</strong> sebanding dengan <strong>risiko</strong>nya? Saya pikir, jawabannya tidak. Seperti yang saya bilang, para orang tua, tidak lama lagi akan keluar dari usia produktif mereka. Sedangkan anak muda, masih punya umur yang panjang untuk tetap produktif dan punya peran penting bagi masa depan Indonesia. Lebih baik mengorbankan pemanfaatan teknologi bagi orang tua, daripada mengorbankan semangat anak muda.</p><p>#BerpikirSebelumBerpendapat #BukanSJW #OSKMITB2020 #TerangKemblai</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=29939a9ad70b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sains dan Teori Konspirasi]]></title>
            <link>https://medium.com/@rafinflaziz/sains-dan-teori-konspirasi-9f479226a2aa?source=rss-4df5a95895f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/9f479226a2aa</guid>
            <category><![CDATA[terangkembali]]></category>
            <category><![CDATA[tantangan-masa-depan]]></category>
            <category><![CDATA[oskmitb2020]]></category>
            <category><![CDATA[duniavuca]]></category>
            <dc:creator><![CDATA[Rafi Naufal Aziz]]></dc:creator>
            <pubDate>Wed, 15 Jul 2020 12:30:09 GMT</pubDate>
            <atom:updated>2020-07-15T12:30:09.608Z</atom:updated>
            <content:encoded><![CDATA[<p>Dengan perkembangan teknologi yang sangat cepat, manusia mulai terbiasa hidup di dalam dunia digital. Kita dapat dengan mudah mengakses banyak sekali informasi melalui internet. Namun, meskipun kita terbiasa dengan gaya hidup seperti ini, kita belum terbiasa untuk menyaring informasi yang kita terima.</p><p>Sekarang, ada banyak sekali platform yang saling adu cepat dalam menyebarkan informasi, tanpa memerhatikan kualitasnya. Hal ini sejalan dengan selera masyarakat terhadap informasi dan tulisan yang tidak berkualitas. Bahkan, masih banyak orang yang <em>functional illiterate</em> — dapat membaca namun tidak memahami bacaannya.</p><p>Salah satu informasi yang sering disalahpahami adalah informasi saintifik. Banyak orang yang tidak mau susah-susah berpikir selagi membaca tulisan dengan penjelasan saintifik. Alih-alih membaca penjelasan “rumit” dari sumber kredibel, mereka malah membaca penjelasan yang dirasa lebih “masuk akal” — meskipun sumbernya tak jelas.</p><p>Oleh karena itu, dalam tulisan ini, saya akan mengangkat isu yang sangat penting dalam era ini, yaitu sains dan teori konspirasi. Ini adalah isu yang perlu diperhatikan oleh semua orang, terutama generasi muda — calon orang tua dan pemimpin bangsa. Tanpa pola pikir saintifik, manusia dapat terjebak dalam pemikiran “masuk akal” yang sebetulnya tidak benar.</p><p>Banyak orang mencari penjelasan atas kejadian-kejadian saintifik: Ekspedisi ke bulan, vaksinasi, pandemi, hingga bentuk Bumi. Namun, mereka tidak mencari penjelasan dari sumber ilmiah dan terpercaya. Mereka merasa, penjelasan singkat dari youtube dan blogspot sudah cukup masuk akal untuk diterima kebenarannya. Sedangkan penjelasan yang disertai bukti-bukti ilmiah tidak dilirik sedikitpun. Tentu saja, siapa yang mau melihat penjelasan dengan rumus-rumus fisika bertebaran? Lebih baik menonton video penjelasan disertai banyak bukti masuk akal, bukan?</p><p>Lama kelamaan, mereka tidak percaya dengan penjelasan saintifik. Mereka tidak mempercayai sains. Padahal, <strong>sains ada bukan untuk dipercayai, tapi untuk dipahami, diragukan, dan dibuktikan.</strong> Hal ini membawa mereka pada satu jebakan besar: Teori konspirasi.</p><p>Teori konspirasi sangatlah menggoda, terdapat penjelasan “logis” dan “masuk akal” yang mudah dipahami. <strong>Jika terus dibiarkan, makin banyak orang akan jadi dampaknya.</strong> Anak-anak akan dicekoki oleh orang tuanya; siswa oleh gurunya; dan bangsa oleh para pemimpinnya. Ini membawa masyarakat kita untuk berpikir secara instan dan tanpa pertimbangan panjang.</p><p>Isu ini sangat berkaitan dengan konsep VUCA (Volatility, Uncertainty, Complexity, Ambiguity). <strong><em>Volatility,</em> </strong>bahwa teori konspirasi muncul secara tiba-tiba, padahal pernah lenyap dalam waktu yang lama. <strong><em>Uncertainty,</em> </strong>bahwa kita tidak tahu bagaimana asal mula konspirasi itu terjadi. <strong><em>Complexity,</em></strong> bahwa teori konspirasi dapat terhubung dalam berbagai bidang: Politik, budaya, bahkan agama. <strong><em>Ambiguity,</em></strong> bahwa meskipun teori konspirasi sudah lama ada, bentuk digitalnya baru muncul beberapa dekade ini.</p><p>Untuk menghadapinya, kita dapat mengambil beberapa “senjata” dari <em>Alpine Style Model</em>. <strong><em>Getting critical, </em></strong>bahwa kita harus selalu berpikir kritis dan memahami suatu masalah secara detail. <strong><em>Growth-mindset,</em></strong> bahwa kita harus memiliki pemikiran yang berkembang, karena di revolusi industri 4.0 ini, perkembangan teknologi dan informasi sangatlah pesat, sehingga kita harus selalu siap mengejarnya. <strong><em>Always be learning, </em></strong>bahwa kita harus selalu belajar, karena ilmu pengetahuan selalu berkembang. <strong><em>Anti-alpha,</em></strong> bahwa meskipun kita seorang pakar, kita tidak selalu dapat menangani suatu masalah sendirian, apalagi kalau masalah itu ada di luar bidang kepakaran kita.</p><p>#TantanganMasaDepan #DuniaVUCA #OSKMITB2020 #TerangKembali</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9f479226a2aa" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>