<?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 袁晗 | Luo, Yuan Han on Medium]]></title>
        <description><![CDATA[Stories by 袁晗 | Luo, Yuan Han on Medium]]></description>
        <link>https://medium.com/@leoyuanluo?source=rss-6739725f1fd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*Z5LmOoYno_lMvj7zS0PIOA.jpeg</url>
            <title>Stories by 袁晗 | Luo, Yuan Han on Medium</title>
            <link>https://medium.com/@leoyuanluo?source=rss-6739725f1fd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 13:35:32 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@leoyuanluo/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[Confucianism-Great Learning part 3.2]]></title>
            <link>https://leoyuanluo.medium.com/confucianism-great-learning-part-3-2-41bab692caf6?source=rss-6739725f1fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/41bab692caf6</guid>
            <category><![CDATA[social-engineering]]></category>
            <category><![CDATA[confucius]]></category>
            <category><![CDATA[eastern-philosophy]]></category>
            <category><![CDATA[society]]></category>
            <category><![CDATA[philosophy]]></category>
            <dc:creator><![CDATA[袁晗 | Luo, Yuan Han]]></dc:creator>
            <pubDate>Mon, 12 Dec 2022 19:57:52 GMT</pubDate>
            <atom:updated>2022-12-12T20:03:53.839Z</atom:updated>
            <content:encoded><![CDATA[<p>Time</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*D8g5SDCkwN3IoVBcwHkMqg.png" /></figure><p>Recall the Confucianism structure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/431/1*HU5p9ih-0eHh0PDbmJ2REw.png" /></figure><p>This structure is connected via a long if-then logic chain. Begins with end-goal and stops at virtuous-world. Knowing the end leads to stability, which further leads to serenity and so forth, until virtuous world.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/257/1*kL0_BYpdHFJasBdWIiIPUA.png" /></figure><p>If the above logic is sound, then doesn’t it suggest that virtuous world will be automatic as long as we accept the Confucianism end goal? And if that’s the case, why hasn’t east Asia, which is dominated by Confucianism, reach the virtuous utopia yet? While the full answer is more than I like to cover in this series, I can still give a satisfying answer that’s within the focus.</p><p>The simple if-then logic is an analogy that lacks depth to cover the full nature of Confucianism structure. While it was useful in introduction, it is no longer adequate as we dive deeper into the ideology. The current complexity requires an additional dimension that’s lacking in if-then, and that is time.</p><p>Consider the following illustration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/677/0*CIPYWNODXH14H2fU.png" /></figure><p>I chose light to prove my point because it seems to be instant. Yet we know it still takes time.</p><p>This is a better analogy because not only it covers the essence of time, it also displays why people behave badly.</p><p>The whole close circuit is analogous of a working society. People will naturally find the shortest path to resistance, thus creating short circuit. If left undealt with, misdirect or miswiring will further led more people down the wrong path, and eventually burns the whole system. More on this in the later sections since it isn’t the main focus here.</p><h4>Conclusion</h4><p>Like learning a new music instrument, our brain needs time to build new neuro networks, and that is if we practice adequately. These neuro connections are not that much different from muscle memories in that perspective.</p><p>Additionally, when we are building something new, we aren’t just creating, we are also trying to lose what we don’t want. In gym it is the wrong muscle groups that supported the bad postures. In mind, it is the impulses that supported bad logics.</p><p>In fact, the rest of the Confucianism dialogues can be sum up to best practices, because even if we accept the end goal in Confucianism structure, we might still wake up tomorrow feeling grumpy about work, angry about traffic, and anxious about future. The opposite of stability. These same issues has been plaguing the saints and sages of the past as much as me and you. Next time, let’s look at what one of them say about the first Confucianism progression, optimum knowledge.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=41bab692caf6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Confucianism-Great Learning part 6]]></title>
            <link>https://leoyuanluo.medium.com/confucianism-great-learning-part-6-bc0ef8634a73?source=rss-6739725f1fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/bc0ef8634a73</guid>
            <category><![CDATA[confucius]]></category>
            <category><![CDATA[social-engineering]]></category>
            <category><![CDATA[philosophy]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[eastern-philosophy]]></category>
            <dc:creator><![CDATA[袁晗 | Luo, Yuan Han]]></dc:creator>
            <pubDate>Tue, 08 Nov 2022 13:26:50 GMT</pubDate>
            <atom:updated>2022-11-16T13:18:38.038Z</atom:updated>
            <content:encoded><![CDATA[<p>Stage 4: Balanced Heart</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/531/1*HnvGX8SMNV50OyM-Ws__XQ.png" /></figure><p>True-desire, like an anchor, pins our heart close to the center. Without it, every foggy twists and turns will misguide us for a detour. 1 of these turns is rage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/619/1*u9uhLoY68xuAfKN8gJAhwQ.png" /></figure><p>While the benefits of balanced heart is enormous, they do not engage us as well as anger. It’s no surprise then that both sales and social media uses agitation to draw engagement.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/517/1*ULmDtM8Vs3zWS8syF8EbBw.png" /><figcaption>img src: <a href="https://www.independent.co.uk/tech/anger-is-viral-new-research-shows-angry-messages-influence-people-online-more-than-any-other-emotion-8824443.html">https://www.independent.co.uk/tech/anger-is-viral-new-research-shows-angry-messages-influence-people-online-more-than-any-other-emotion-8824443.html</a></figcaption></figure><p>True-desire helps us in 2 ways. First, as mentioned previously, a prerequisite to true-desire is adrenaline management. Second, having a strong and clear goal protect us from distractions cause by anger.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/629/1*ebMtRkVqCERzAvDaTdGGdQ.png" /><figcaption>img src: <a href="https://www.thehansindia.com/hans/opinion/news-analysis/anger-management-the-need-of-the-hour-736707">https://www.thehansindia.com/hans/opinion/news-analysis/anger-management-the-need-of-the-hour-736707</a>, <a href="https://www.sharpn.co.uk/blog/clear-roadmaps">https://www.sharpn.co.uk/blog/clear-roadmaps</a></figcaption></figure><p>That is the transition between true-desire and balanced-heart, but what challenges lies ahead or how can we achieve a balanced-heart? The new challenge is to forget your true-desire, or all forms of desire. How can that be? A balanced heart require one to be in the now. When your mind constantly think about your desire, you are in the future.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/577/1*V2E_I1TBAb5CmELOetRhRA.png" /></figure><p>Imagine the above illustration but from a top down view. The true-desire rope acts as a radius that forms a circle with a boat inside, balanced-heart is the center, you are the boat, and true-desire is the radius that keeps your boat within the circle. But when you are in, your goal is to forget that, and reach the middle, a balanced heart. To get there, you need more tools.</p><blockquote>Mastered-body happens with those with balanced heart. Body with rage, will not result in balance, with fear, will not result in balance, with desire for amusement, will not result in balance, with worry, will not result in balance. Heart not at presence, look but don’t see, hear but not listen, eat but don’t know the flavor. This is what it means mastered body happens at balanced-heart.</blockquote><h4>Meditation</h4><p>Meditation is a very powerful tool, but it takes training. Try stop thinking what you are thinking now. Hard, isn’t it? The good news is that like our muscle, practice makes it better, but you have to be consistent. Start from 5 minutes and gradually increase to 30. You will catch momentum once benefits start to kick in.</p><p>Confucianism presuppose that human nature is good, if we can empty our mind we can naturally flow or gravitate towards a balanced heart.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*vZ1bcFwhtqvjYCETLCLyGg.png" /><figcaption>img src: <a href="https://www.atlearner.com/2020/02/general-theory-of-relativity.html">https://www.atlearner.com/2020/02/general-theory-of-relativity.html</a></figcaption></figure><p>Many other great Confucius scholars also debated on this subject for centuries, but I think the conclusion is similar. To name one, Wang Yang Ming, a latter Confucius superstar, propose that selfishness is the biggest obstacles from balance heart. I think they are just different angles of looking at the same thing. For example, anger only exists if you have a strong sense of self, but more on this subject later.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/200/1*1qiEGapU__tK6FWx2EOX1g.jpeg" /><figcaption>img src: <a href="https://en.wikipedia.org/wiki/Yangmingism">https://en.wikipedia.org/wiki/Yangmingism</a></figcaption></figure><h4>Conclusion</h4><p>True-desire prevents us from wrong paths, but it doesn’t help us to the right direction either. To find balanced-heart, we need meditation.</p><p>This concludes the internal practice of Confucianism, and we are moving forward to the external in the next blog to talk about family. For those who do not wish to engage in politics and organizational work, this is enough for you to live a very successful life. Hence the saying, half Lun Yu can rule the world. Lun Yu is a practical dialog version of Confucianism that I will start after concluding Great Learning. Honestly, I think this saying is a little cheating because 1st half of Confucius teaching is the heaviest lift. If you can guide people to positive without naiveness, bitterness, and selfishness you are the very rare manager that Warren Buffett is breaking neck to find.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bc0ef8634a73" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Confucianism-Great Learning part 5]]></title>
            <link>https://leoyuanluo.medium.com/confucianism-great-learning-part-5-d6d200733653?source=rss-6739725f1fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/d6d200733653</guid>
            <category><![CDATA[chinese-philosophy]]></category>
            <category><![CDATA[social-science]]></category>
            <category><![CDATA[confucius]]></category>
            <category><![CDATA[philosophy]]></category>
            <category><![CDATA[eastern-philosophy]]></category>
            <dc:creator><![CDATA[袁晗 | Luo, Yuan Han]]></dc:creator>
            <pubDate>Thu, 03 Nov 2022 11:42:48 GMT</pubDate>
            <atom:updated>2022-11-15T18:23:35.040Z</atom:updated>
            <content:encoded><![CDATA[<p>Stage 3: Ture-Desire</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/494/1*kilbEKifV_LQCVpCiw_4Gw.png" /></figure><p>Lets talk about true-desire through 2 sections: Content and Transition.</p><h3>Transition</h3><p>As a recap, the Confucius progression order isn’t arbitrary. Model is a necessary foundation to build true-desire. Let me explain.</p><p>First we are going to assume that true-desire leads us to prosperity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/367/1*5cBEdHVUaCgmHCSgc_uQiA.png" /></figure><p>Since food, shelter, and stability makes us prosperous, and money can buy all 3, most of us attribute money with prosperity as depicted in the following.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/362/1*4F5Cw8UPepSZG63oEeE16w.png" /><figcaption>food + shelter + stability = prosperity</figcaption></figure><p>By association, people assign money to true-desire.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/354/1*gLgOrDRoFtx56SDYMmP4gw.png" /></figure><p>Despite the problems in logic, this model is still too simple in the modern context. It worked well for its intended time period when all 3 factors mentioned can hardly be satisfied. This is weird, the model only works when its inputs does not exceeds a certain quantity. Actually, this is quite frequent in the real world, take a steel factory for example. If the raw material that goes into steel production exceeds what the machines can handle, then many problems will surface and hence a new factory would be appropriate. Our prosperity function is similar but a bit more complicated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/435/1*JZknhLaBBTUoQ8ExyQpE4w.png" /><figcaption>img src: <a href="https://www.verywellmind.com/what-is-maslows-hierarchy-of-needs-4136760">https://www.verywellmind.com/what-is-maslows-hierarchy-of-needs-4136760</a></figcaption></figure><p>A better model will incorporate more variables like shown in Maslow hierarchy of need.</p><p>We can build even better model by adding positive and negative correlations between the variables. We can also add time and quantity dimensions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*FcUufo3YrT7tVq1M4e3OWg.png" /><figcaption>left: correlations, middle: time, right: quantity</figcaption></figure><p>You might wonder why stop there. At 1 point, marginal utility of adding more variables starts to peak and decrease at the maximum like the normal distribution on the right. In computer science is call “the curse of dimensionality”. In plain English, it means the pain you gain from calculating each additional variable outweighs the positive feeling you get from the result.</p><p>I hope you are starting to see that the model we are building is begging to look a lot like the patterns that governs every and all things in the universe. We can easily swap out the subject of prosperity, and replace it with anything, and the correlation, time, and normally distributed qualities will produce some meaningful findings. Therefore, we cannot understand true-desire, until we understand this pattern that governs it and all things. This is what Zhu Xi means in previous sections when he said you have to study all things.</p><h3>Contents</h3><blockquote>Those who achieved true-desire do not lie to themselves. Like being repelled by foul smell, and pleased by beauty, this is second nature. Therefore, Junzhi must be cautious in solitude. The immature is malicious in solitude with no limits, seeing Junzhi then becomes annoyed, hides its malicious, shows its virtuous.</blockquote><blockquote>Under people’s look, like seeing liver and lung, what benefits yields from the act. This is honest with the balance, and practice externally, hence Junzhi must becareful in solitude.</blockquote><blockquote>Zheng Zhi said: ’10 eyes looking, 10 fingers pointing, it’s very strict!’ Wealth nourishes the house, virtue nourishes the self(body), wide heart full body, hence Junzhi must honest with its desire.</blockquote><blockquote>-Great Learning</blockquote><p>This feels completely true yet lacks substance, no one would disagree. Well, we all know the right life style. But the majority results are quite humbling.</p><p>There are 2 main techniques to overcome: adrenaline and true-cost.</p><h4>Adrenaline</h4><p>When we are in strong adrenaline, say rage, our fight or flight takes over, then we regret. This cycle repeats in our life like our diet plan. Of course suppress your feeling it’s neither good nor effective. The solution is to engage in events with high adrenaline, competitions such as chess club, toastmaster, or any forms of sports.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*N4i8bQdahYzvkxY-Vnf04w.png" /></figure><p>The goal isn’t to win the competition, it’s to be comfortable with adrenaline and eventually control it. Not only healthy dose of adrenaline is good for you, learning to manage losing is also a sign of maturity. The ironic thing you notice is that when you give up winning and focus on the game, you will get really good at it. But winning or losing will require sparkle of luck, that’s why we are so attracted in them.</p><h4>True-cost</h4><p>What you do in solitude directly measure your self worth, because it isolates the value of your ethics, character, and principle from other factors such as public shaming and etc. These are the 3 trinity of your self respect. When you sweep the dust under the rug, the cost is your self respect, that’s not a good trade. If you can train your solitude behavior identical to public, you will have confidence without the toxic pride. People around you will adore you and want to help you. This will shape your reality, because our surroundings are a mirror reflections of ourselves. When the world likes you, your like the world back, and hence things will be easier. This is a positive cycle that Confucius is trying to set up.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/420/1*gOFjLXW6QhPi0Vd-Nj6SlA.png" /></figure><p>But there is also a very delicate balance here as well. Waiting for a green light with zero cars within miles, and no visual obstacles tips that balance. Sweeping dust under the rug leaves the problem for the next person while crossing a empty street with red light creates no harm. You have to be clear whether your self worth is upholding benevolence or the rules it self.</p><h3>Conclusion</h3><p>I reinforce the necessity of knowledge before true-desire because weak knowledge will lead to weak true-desire, which is the foundation of balanced-heart. With a strong knowledge foundation, the next challenge lies in true-desire are adrenaline and true-cost.</p><p>These 2 are the driving forces that will advance us to balanced-heart or held us in the same place.</p><p>You might notice what Confucianism point out is very obvious, but to carried out is difficult. The philosophy offer us a fresh look to help us overcome. Hence, the hardest problems are the most obvious problem. They are obvious because we encounter them everyday. Last time it was treating everyday as a new day, this time it’s control adrenaline and solitude. It’s so obvious and so hard that even 1 of the most respectable king has to carve it on his bathing tools as a reminder. But once we overcome, we will find a new self and world that love us more. A professor in University of Taiwan said, “if you want to be a confidence person, practice Confucianism.”</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d6d200733653" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Science Project Structure Template: Cookiecutter]]></title>
            <link>https://leoyuanluo.medium.com/data-science-project-structure-template-cookiecutter-c095a207cae8?source=rss-6739725f1fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/c095a207cae8</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[computer-science]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[袁晗 | Luo, Yuan Han]]></dc:creator>
            <pubDate>Wed, 19 Oct 2022 10:43:17 GMT</pubDate>
            <atom:updated>2022-10-19T10:43:17.311Z</atom:updated>
            <content:encoded><![CDATA[<p>part 1 overview</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*4fgqtlRcWysLRqPpECWVTg.png" /><figcaption>img src: <a href="https://github.com/drivendata/cookiecutter-data-science">https://github.com/drivendata/cookiecutter-data-science</a></figcaption></figure><h3>How to read this</h3><p>Everyone knows what LICENSE, requirements, and README are so I won’t go into those.</p><p>If you are well verse in<strong> statistics and data science</strong> but new to computer, read section 1 and all of part 2.</p><p>If you are well verse in <strong>computer </strong>but are unfamiliar with data and statistics, read section 2 only.</p><h3>Section 1</h3><p>You are here probably because you are looking for a better working process or file structure. Everything looks nice until you saw Makefile, docs, setup&amp;src, and tox. Lets go through them.</p><h4>Makefile</h4><p>Compiling is like writing research paper. Importing codes from other files is like citation. To properly compile a program, we need to send a command to compile the main source code of that program along with everyone of the libraries that was used.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/469/1*vwLs9ytjsUBE5_62sof_mg.png" /></figure><p>What happens if your program needs 1000 files to compile?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/833/1*X2PFzq-rzcJ7G9RHGKOCsw.png" /></figure><p>Yes, you need to type the name of all 1000 files all in 1 command. Basically main source file plus n libraries (The example given is in c++ conventions). And worst yet, if you update 1 file, you have to go through this all over again. This is where makefile comes in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/261/1*qy6TCgo06l8VnQgvesGKvg.png" /></figure><p>Makefile basically automate all these process where instead of typing out everyone of the files that you used, you just give 1 word command. Part 2 will talk about the details in Makefile.</p><h4>Docs</h4><p>Doc file came from previous successful practices of documenting your work. Sphinx automates that process, and generate something like the below depiction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/569/1*MZ17cbb635ML71VASudtAg.png" /><figcaption>img src: <a href="https://andreas-suekto.medium.com/automate-documentation-in-python-925c38eae69f">https://andreas-suekto.medium.com/automate-documentation-in-python-925c38eae69f</a></figcaption></figure><p>There are many reasons to why this is more preferable than single or multiline comments, which I think deserves a blog on its own. For now, think of it as a more mature, generally accepted, and readable documentation.</p><h4>Setup&amp;src</h4><p>After you upload your program on to pypi.org, you need a way for users to download it. In python, that is setup.py.</p><p>This is a lot quicker and easier than creating a user interface for your end user. So now they are reduce to the extreme hard work of typing 1 line of code to download, unless they want to pay you for the alternatives. Part 2 will go into detail on how to set it up.</p><p>src is a programming standard practice where you turn your files into functions so it’s reusable, easy to read, and easy to debug. __init__ is the key for that. It acts like a thread that connects all you src together. Read part 2 for detail implementation.</p><h4>References</h4><p>References include data dictionary, a metadata which explains your features such as their size, type, and format. This is also where you store the rest of your supplementary information.</p><h4>tox.ini</h4><p>tox is a testing tool. If you are new to coding, try testing. It will save you more time in the long run. I will go through details in the 2nd part.</p><h3>Section 2</h3><h4>Data</h4><p>While raw is self explanatory, intrim, processed, and external might not seem so obvious. Particularly what’s the difference between intrim vs processed, and what’s the difference between raw and external.</p><h4><em>Intrim</em></h4><p>Intrim data are data that has no missing values, irrelevant features, duplicate values, and so on. Although you can do analysis on them, they are not necessary model ready, though some new models can do wonders. During train phase, feature engineering such as one-hot-encoding(change features to binary values) or binning(generalize a column features into categories) are required or will enhance model performance. That means model accuracy is the main focus and readability/analysis will take a back sit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/401/1*IclkyCBTqoP9hqRK31LSoQ.png" /><figcaption>left: intrim data, right: processed data</figcaption></figure><p>That’s the difference between Intrim and Processed data.</p><h4><strong>External</strong></h4><p>3rd party data can be raw, but it’s not the original. In the real world, completing a project from 1 source is like writing a research paper with only 1 citation, very unlikely.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/521/1*gsxCvGM3pJ3kHa1sqgWr3A.png" /></figure><p>A more realistic approach is pulling data from many difference sources from inside or outside of the entity that you are working with to form a Frankenstein database.</p><h4>Model</h4><p>The model file stores the trained model via pickle library or something similar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/364/1*l8HVhrmRZ0xeXOr2Gted4A.png" /></figure><p>Model is nothing more than a function with fitted parameters(or slopes). Machine learning is just statistic calculator.</p><p>You can train and deploy your model all on the cloud or make the whole program installable.</p><h4>Notebook</h4><p>Jupyter notebook is a combination of comments, executable codes, and terminals. This puts everything together to give us a more granular view of everything for the sake of our sanity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/615/1*n5q5o5FWwQtXOFklhcXI9Q.png" /><figcaption>img src: <a href="https://www.kaggle.com/code/yassineghouzam/titanic-top-4-with-ensemble-modeling">https://www.kaggle.com/code/yassineghouzam/titanic-top-4-with-ensemble-modeling</a></figcaption></figure><p>It is not a pdf or display of codes, you can edit and execute the codes inside the gray container.</p><h4>Reports/figures</h4><p>Reports is like a PowerPoint presentation of your findings in the form of html or pdf or whatever that’s trendy. The subfile figures contains graphs and etc that you use in your report. The purpose of reports is for none technical colleagues to understand statistical findings as appose to jupyternote book. It differs from docs in that it has a more business analytical focus, and cares very little about technology.</p><h3>Conclusion</h3><p>I try to waste as little time as possible when I am writing this to give you an overview. This structure isn’t written on the stone, but it is generally accepted practice through mistakes of the past. If you are well-versed in computer, I think this is enough, but if computer isn’t your strong suit, read part 2.</p><p>How sphinx works: <a href="https://www.youtube.com/watch?v=PJ9nM7HoQ-Y&amp;t=2s">https://www.youtube.com/watch?v=PJ9nM7HoQ-Y&amp;t=2s</a></p><p>Cookiecutter docs: <a href="https://drivendata.github.io/cookiecutter-data-science/#example">https://drivendata.github.io/cookiecutter-data-science/#example</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c095a207cae8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Confucianism-Great Learning part 4]]></title>
            <link>https://leoyuanluo.medium.com/confucianism-great-learning-part-4-b99f1d4f6d73?source=rss-6739725f1fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/b99f1d4f6d73</guid>
            <category><![CDATA[eastern-philosophy]]></category>
            <category><![CDATA[confucianism]]></category>
            <category><![CDATA[philosophy]]></category>
            <category><![CDATA[society]]></category>
            <category><![CDATA[confucius]]></category>
            <dc:creator><![CDATA[袁晗 | Luo, Yuan Han]]></dc:creator>
            <pubDate>Mon, 15 Aug 2022 11:26:36 GMT</pubDate>
            <atom:updated>2022-12-12T21:32:20.497Z</atom:updated>
            <content:encoded><![CDATA[<h4>Progression 1: Refined Knowledge</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/438/1*g-WapwrhPyynDnodS4lWtw.png" /></figure><p>What Zhu Zhi did with Confucianism is similar to what Hip-pop music did with sampling. The only difference is that Zhu Zhi, like many Confucianism scholars, did not want to be seen as original. And the ironic thing is that he is very much original. He synthesized the entire section on knowledge base on 2 phrases. He not only described learning, he also described machine learning.</p><p>Essentially, computers learns by classification. It starts with a function, and makes classifications base of some random coefficients. The coefficients then gets adjusted base off the correct or wrong classifications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/301/1*Tp8bLx2vjNoV3D30A07vIQ.png" /></figure><p>This function is commonly known as a model. When the model makes adequate predictions, it’s called Artificial Intelligence. This is optimum knowledge. It is expressed through the desire to speak.</p><blockquote>Refined knowledge happens to those whom classify matter, desire to express delivers what I know, to those whom arrive matter and exhaust its reasoning.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/587/1*7jX4dx60fkvr7BNrIkNngg.png" /></figure><p>There are 2 ways to understand the last phrase depends on what the word “its” is referring to: to learner or to matter, both are exceptional.</p><h4>Learner</h4><p>When it’s referring to learner, it means that the new matter does not fit into any of the existing models, hence the models don’t know what to do with it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/193/1*AGw7zo0OTZN1zmLY5eZVaw.png" /></figure><p>In such case, you have exhausted your model(knowledge) to the limit, and require an update to further refine the model. Hence the quote.</p><h4>Matter</h4><p>On the other hand, if it’s directing to the matter, it means that none of the matters we encounter can expand our current working model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/185/1*MzwFugs6KvNQgzzIknXxhQ.png" /></figure><p>In such case, your model(knowledge) is refined until a new unseen matter exhaust the model once again. The beauty in nature is that such matters are infinite. They constantly combine, recombine, and morph into existence from jungles to rainforests to societies.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/688/1*Ag99MAbyYuD27SCj6-LWvw.png" /></figure><blockquote>Approximately, within the human spirit none of them does not contain knowledge, and within all matter in the world none of them does not contain reason, only reason does not exhaust, therefore, knowledge is unlimited.</blockquote><p>Here, he makes another leap. He claim some degree of knowledge in everyone. As long as we are talking about sane people, It’s easier to prove this than the claim that people are good.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/448/1*CpMdERQLR0FKtmznTWeFHQ.png" /></figure><blockquote>Let Great Learning be the introductory to education, must beginner learner approaching all matters in the world, none of them does not use pattern already known extend to exhaustion, to request maximize its absolute limit.</blockquote><p>It paints a path for learners on a quest to become a scholar. It shows what the light at the end of tunnel looks like.</p><blockquote>When spend effort long period of time, Once reached a break-through, and connected all the pieces, all the ins/outs and micro/macro of majority of things will all arrive, the usage for all of your heart becomes very clear. This is classifying matter, this is knowledge at optimum</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/341/1*P8WqPj1jL_rEcFxZ_mXyrg.png" /></figure><p>Ins, outs, micro, and macro each represents a different perspective of 1 single entity. It’s impressive that Zhu Zhi understands this in a time where data are scarce. And it’s even more impressive that he paints a picture what the end result looks like.</p><h4>Challenge on Zhu Zhi</h4><p>Many scholars think using limited life to chase unlimited knowledge is unwise, hence, Zhu Zhi’s way is questionable. This sentiment is rational, the only problem is that Zhu Zhi never propose such, he has been misunderstood. He never said the goal is to use the limited to chase the unlimited.</p><p>His goal is characterized as a break through when when all the different perspectives connect. Although updates are required to stay at optimum knowledge, there is a pinnacle point where matters are exhausted. Thus optimum knowledge.</p><p>Although the attack is more or less a strawman, but the alternative approach to optimum knowledge is very interesting: understand the over arching philosophy first, then examine the details. Wang Yang Ming, who is one of my favorite, is a pupil of that branch. But I think he misunderstood Zhu Zhi here.</p><p>As a result, some scholars see Zhu Zhi as a ridge fundamentalist, but the ironic thing is that Zhu Zhi uses what he knows about Confucianism to synthesized a whole entire section about knowledge with what little he has, something only the opposite of fundamentalist would do.</p><p>Only the last 2 phrases were the original: “This is model, this is knowledge at optimum.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/431/1*HpoqM3rAim-Zz8vlnMpEMA.png" /><figcaption>img src: <a href="https://en.wikipedia.org/wiki/Zhu_Xi">https://en.wikipedia.org/wiki/Zhu_Xi</a></figcaption></figure><p>For those who struggles in terms of finding meaning in life, Zhu Zhi here can provide an answer. Zhu Zhi’s work is a philosophy of its own and deserves a separate series.</p><h4>Conclusion</h4><p>Despite many criticism Zhu Zhi faces, I was very impressed by how modern Zhu Zhi’s ideas were. His description of learning is not only applicable to humans, but it’s also a very good summarization of how computers learn. His description of optimum knowledge sounds very similar to a contemporary thinker: Noam Chomsky who believes your language is the extend of your thoughts.</p><p>While Zhu Zhi’s interpretation is officially recognized by scholars as well as every monarchs, therefore royal exams, It is not the only interpretation. There is another main branch that I will talk about later.</p><p>Hopefully this section gives you a better picture of what it means to have optimum knowledge. Next time, we will talk about the second progression.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b99f1d4f6d73" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Confucianism-Great Learning part 3]]></title>
            <link>https://leoyuanluo.medium.com/confucianism-great-learning-part-3-920ee7270f59?source=rss-6739725f1fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/920ee7270f59</guid>
            <category><![CDATA[society]]></category>
            <category><![CDATA[eastern-philosophy]]></category>
            <category><![CDATA[confucius]]></category>
            <category><![CDATA[chinese-philosophy]]></category>
            <category><![CDATA[philosophy]]></category>
            <dc:creator><![CDATA[袁晗 | Luo, Yuan Han]]></dc:creator>
            <pubDate>Tue, 19 Jul 2022 19:34:54 GMT</pubDate>
            <atom:updated>2022-12-10T16:01:21.936Z</atom:updated>
            <content:encoded><![CDATA[<p>The End</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/574/1*dbrkWf39UXaF9p3QelNwgQ.png" /></figure><p>In part 1, we talked extensively about the origin. Yet, we never really discuss the “end”. Although <em>Great Learning</em> is categorized as a Confucianism text, only the “end” is distinctively Confucianism with the least outside influence.</p><h4>End</h4><p>While is quite clear what optimum kindness means, it comes in different flavors depends on our role in society. We are now cutting deep into the core of Confucianism, social structure via social roles.</p><blockquote>“Shi-Jing states: ‘solemn king Wen, ends up at gathering bright dignity’, ‘As a Jun, ends at benevolence; as an advisor, ends at respect; as a son, ends at filial piety; as a father, ends at merciful; when interacting with countryman, ends at honestly…’”</blockquote><p>Shi-Jing is a collection of poems and songs from folks culture, it sums to the bottom illustration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/554/1*j_v6vvrM-fiAK6XsQWMadA.png" /></figure><p>Chinese laws are flexible, but its social roles are absolute. This idea of clear social structural does not sit well with modern audience. But it brought 600 years of peace to Zhou dynasty. Essentially it is a way to maintain order to achieve a utilitarian society. The west believes written rules are the best way to achieve that, while the east believes human interpretation. Both system has pros and cons, one can game a system just as much as another. While the west believes in self determination, in the east you are born with a purpose .</p><blockquote>“Shi-Jing states: ‘1000 Li around the capital, but civilians know where they want to end up at’, ‘chirping yellow birds ends up at the corner of the hill’. Confucius states: ‘in terms of ending-up, are people not as good as birds?…’”</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/482/1*wEw-KhRRf8madEwzFjDuKQ.png" /></figure><p>Nearly all Chinese philosophy appeals to nature to justify its claim. You can disagree with the conclusion, but you can’t ignore its methods. It believes people are born with certain presets of virtuous, such as benevolence, and puts that at the very top, intelligence second, and everything else on 3rd. It advocates all of us to thrive for benevolence. What does a person thriving for such goal look like?</p><blockquote>“Shi-Jing states: ‘gaze another water bay, full of green bamboos. An elegant JunZhi, like cutting like polishing. Se(music instrument) and righteousness. Powerful and clear-voiced. An elegant Junzhi, cannot forget(also means fabricate). Whom relentless cutting and polishing, a student of Dao. Whom relentless cutting and polishing, a self cultivator. Whom occupies Se and righteousness, confidence and trembles you. Whom powerful and clear-voiced, virtuous and intimidates the wrong. A JunZhi cannot be forgotten, full of Dao virtuously optimizes kindness. It’s hard to forget the virtuous king. JunZhi respect the wise and close to close-ones, immature ones happy for the sake of happy and profit for the sake of profit. These will never be forgotten’”</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/412/1*gE0r2n7BEiE9z7uhyfBuxg.png" /><figcaption>Four arts of Jun: music, go, book, painting</figcaption></figure><p>Here, Jun-Zhi is described in painstaking details for the sake of providing a clear role model. This is the most concrete definition of a Jun-Zhi in <em>Great Learning</em>. These hard criteria have largely influenced later Chinese scholars, and branched off to variations such as Korean Yangban and the Japanese Samurai class. The unifying theme is relentless focus for their craft. It is only with this relentless focus, we would not be misguided by falsehood.</p><blockquote>Confucius said, ‘When listening to court trial, like everyone, the goal is to prevent the dispute from happening again. Apathetic people cannot exhaust their words. Dignify the will of the people. This is the meaning of understanding the origin</blockquote><p>Here, I daringly advocate to change the word origin to end because it makes more sense, and it fits in the overall Confucianism idea better. I’m not the only rebel wanting to adjust such respected work. We will see how Zhu Xi’s made his master touch on <em>Great Learning </em>in the<em> </em>next section.</p><h4>Conclusion</h4><p>It’s impossible to be unbias towards such ancient idea, that would suggest no improvements has been made. The major take-away is whether if we extract its essence, and adjusted to our time, because our goal is Confucianism, not historical texts.</p><p>All the Confucius interpretations are a new philosophy of their own, what unites them is the way of thinking. Master scholars have debated fiercely amongst each other over every word. One of them whom left a mark came a few hundred years after Zheng Zhi is Zhu Xi. He will be the next to carry out the Confucianism baton.</p><p>In truth, progress did not stop after Zheng Zhi. Zhu Xi is akin to the single piece of rice that tips the scale. His elevated perspective came from masters whom came before him. He lives in a time where all those built up is ready for an avalanche. So Zhu Xi didn’t disappoint, he brought those ideas down into writings, and compiled <em>Four Books</em> that became the standard testing material for empires to select ministers until 1905. Before we take a short detour to Zhu Xi, there is a missing logic we need to explain.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=920ee7270f59" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Confucianism-Great Learning part 2]]></title>
            <link>https://leoyuanluo.medium.com/confucianism-great-learning-part-2-f129a1f36e17?source=rss-6739725f1fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/f129a1f36e17</guid>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[confucius]]></category>
            <category><![CDATA[philosophy]]></category>
            <category><![CDATA[eastern-philosophy]]></category>
            <category><![CDATA[society]]></category>
            <dc:creator><![CDATA[袁晗 | Luo, Yuan Han]]></dc:creator>
            <pubDate>Wed, 08 Jun 2022 17:33:48 GMT</pubDate>
            <atom:updated>2022-11-30T12:05:45.866Z</atom:updated>
            <content:encoded><![CDATA[<h4>The Wisdoms From The Past</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/423/1*kc-C0S_Srv6_pq5LTC0Nog.png" /></figure><p>As a student of Confucius, Zheng Zhi, carried on his master’s torch and composed Great Learning. The text follows the tradition by vigorously citing the past. But what exactly can they do?</p><h4>Strengthen Assumptions</h4><p>The 3 objectives of Great Learning, illuminating moral, spreading moral, and optimum kindness, has major flaws. While optimum kindness is a take-it-or-leave-it statement, the rest relies on assumptions that isn’t clearly stated: people are good, people can be good or bad. No, they are not pedantic, the teaching has to be rigorously airtight from logical flaws.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/438/1*I2KeTbdA5L3_1-TEeHzGaQ.png" /></figure><p>Negating any 1 of these assumptions will result in total collapse of the whole structure, because the objectives becomes unobtainable. But we merely just identify the assumptions, how can we strengthen them?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/419/1*shlQOJOZ4ZcgfhTtt2CIkA.png" /></figure><p>Zheng Zhi is well aware of the issue so he sets out to fortify the structure right from the beginning.</p><blockquote>Kang commended, ‘It is possible to achieve the bright virtue.’</blockquote><blockquote>Tai Jia, ‘Do not forget the heavily gift of virtue’</blockquote><blockquote>Di Dian, ‘It is possible to spread bright virtue’</blockquote><p>Kang is a historical figure, Tai Jia and Di Dian are reputable writings of the past. Threading together all 3 we have our wall. The extremely brief nature of these text can cause skepticism. But these ideas are time tested, and profound ideas need not to be complicated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/446/1*bAPRm6K9EoXT-78ApIR1Gg.png" /></figure><p>Zheng Zhi essentially uses appeal to authority to strengthen the assumptions. But this is not enough. There are external forces that lay siege to the wall on daily bases. It’s such a formidable enemy that Christianity and Buddhism have been fighting against it ever since.</p><h4>Cast Light On Opposing Force</h4><p>The wall endures shelling from the mistakes of the past. They constantly fights for control of our castle, and tries to dominate our identity.</p><blockquote>Kang commended, ‘Help others to let go the old and embrace the new’</blockquote><blockquote>Classic Poems, ‘Zhou dynasty is old, but it is able to embrace the new’</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/529/1*ACQDfAZkeJY1L7CwkyrrgA.png" /></figure><p>Without daily habit to reinforce the structure, the assault will slowly chip away the defensive structure of the most determined mind, which eventually will breach the defense, and leave our city in ruin with self doubt and stagnation. So let’s turn our attention to building a relentless habits.</p><h4>Habit Formation</h4><p>The key to unpack the following phrase and other Confucianism texts is looking at who or what said it in what context.</p><blockquote>Tang Bathtub Carving states, ‘If one day can be new, everyday should be new, new on top of new.’</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/1*pJHqCdZ7-7Kcl5FtZFoPzA.png" /></figure><p>Building a habit is more of a psychological game than sheer willpower. Many fail attempts on cultivating new habits, such as gym, because most things that are associated are negative or avoidable. It almost seems like we are trying to get rid of those habits. The right way is to associate desire habits with positive unavoidable things, such as shower.</p><h4>Conclusion</h4><p>By today’s standard, Confucius would be considered a history phd with a minor in social science. He asked nothing less from his students such as Zheng Zhi, who elevates that tradition by standing on the shoulders of eastern giants. Their diligence and admiration to the past is seen through all over their works. That’s why it is also a good introductory to east-Asian philosophies.</p><p>I follow the Confucianism way, by far the most common question I get when people are on the edge of change is that whether if is too late. I follow with a short story about Zhou dynasty. These answers might not seem much in our daily grind but for people on the brink of self destruction, they are god sent. Hence, “…is there another way…” by escape convict Jean Valjean in <em>The Miserbles</em>.</p><p>In this section, Zheng Zhi use the past to reinforce the assumption, identify the opposing force, and show case habit building. But he is not done, next time, Zheng Zhi is going to introduce the core of Confucianism.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f129a1f36e17" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Confucianism-Great Learning part 1]]></title>
            <link>https://leoyuanluo.medium.com/confucianism-great-learning-part-1-the-goal-dfcbd5f70427?source=rss-6739725f1fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/dfcbd5f70427</guid>
            <category><![CDATA[society]]></category>
            <category><![CDATA[confucius]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[eastern-philosophy]]></category>
            <category><![CDATA[philosophy]]></category>
            <dc:creator><![CDATA[袁晗 | Luo, Yuan Han]]></dc:creator>
            <pubDate>Wed, 20 Apr 2022 20:54:02 GMT</pubDate>
            <atom:updated>2022-11-30T13:50:10.623Z</atom:updated>
            <content:encoded><![CDATA[<h4>Introduction to Great learning: The Structure</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/505/1*ek7Zb1yvRWQi0GXiZpmLbQ.png" /></figure><p>The intro of Great Learning maps its course in reverse. It establishes the goal and work it self backwards.</p><h4>The Structure</h4><p>Great Learning begins with a point, the end goal: Optimum kindness.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/349/1*DvuaW1DBglM6P5GnpnhLOA.png" /></figure><p>Along the way to get there, everything we do must not deviate from the path of being good and spread good. The latter not only enlarges virtue, it also puts Confucianism to practice. Hence the saying, “the best way to learn is to teach.”</p><blockquote>“The way of Great Learning lies in illuminating bright virtue, assisting others to obtain virtue, and ends at optimize your kindness…”</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/291/1*56CIZ2xVhOM5dOXDYcxlAw.png" /></figure><p>Comprehending the end initiates a whole list of internal states in a sequence.</p><blockquote>“…Once you solidified the end game, stability will come. Once stability is cemented, it’s possible to arrive at serenity. Once you are serene, it’s possible to feel security. Once you feel security, it’s possible to contemplate. If you can contemplate, you can gain…”</blockquote><p>But what exactly are you gaining?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/476/1*iXa_AH2TBDkpdKWtJYpggQ.png" /></figure><p>You gain the capacity to organize your thoughts, the starting point of the 8 progressions, which further unleashes a chain reaction for rest of the 7 progressions.</p><blockquote>“…classifying matters leads to optimum knowledge, optimum knowledge leads to honest desire, honest desire leads to straight heart, straight heart leads to conditioned physique, conditioned Physique leads to orderly family, orderly family leads to governed country, governed country leads to virtuous world…”</blockquote><p>Just like all great ideas, it won’t be complete without closing the loop.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/412/1*9OGTLQ5qjb9D9K9_bJH7cw.png" /></figure><p>This basic Confucianism structure is almost complete. Although not written in Great Learning, other Confucianism scholars have categorized the 8 progressions into 2 subcategories that I found useful. So I am going to add that in since our main goal is Confucianism via Great Learning, not the other way around.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/395/1*WzEMiWpHocEWvTYgtGv-aA.png" /></figure><p>This still isn’t the full picture, but it’s enough for our intended purposes. Let’s finish the rest of the paragraph.</p><blockquote>“…This principle applies to kings as well as commoners, all should treat managing your Physique as the origin. It is not possible to have a chaotic origin and yet the end properly managed. There is no precedent in focusing on trivial matters while neglect the important areas.”</blockquote><p>Hence, our final graph with the Origin.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/417/1*klzH9wPqCJKNjLQysb9H_g.png" /></figure><p>Confucianism believe in natural order of things with causal relationship. The teaching absolutely cannot tolerate any reverse of that order. It sees mastery over one self as the cause, and rest of the external practice as effects.</p><blockquote>“Matter has beginning and ending, incidents have destination and origin. Knowing its orders will bring one closer to the way.”</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/1*83t9HgCDN-5IXv4cKlmauw.png" /></figure><h4>Conclusion</h4><p>Almost everyone in China thinks Confucianism is for the elite ruling class to maintain order or power. There is no doubt you can view this idea half empty, because many malicious characters have used the teaching for self gain at the expenses of those who aren’t familiar with it.</p><p>I am not the first one who tries to push back at this narrative, and certainly won’t be the last either. In fact, Confucius him self is an interpreter of Confucianism too, only it wasn’t called Confucianism back then or ever in China. All of his ideas can be traced back to even older texts. One of his student Zheng Zhi, continues that tradition, and uses ancient wisdoms to strengthen the teaching. Next time we will explain how he does that, and the rest of the series will dive deeper into each stages, starting with the origin.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dfcbd5f70427" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Transient Climate Response (TCR)]]></title>
            <link>https://leoyuanluo.medium.com/transient-climate-response-tcr-91f3e6306d5c?source=rss-6739725f1fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/91f3e6306d5c</guid>
            <category><![CDATA[carbon-emissions]]></category>
            <category><![CDATA[climate]]></category>
            <category><![CDATA[climate-change]]></category>
            <category><![CDATA[global-warming]]></category>
            <category><![CDATA[enviornment]]></category>
            <dc:creator><![CDATA[袁晗 | Luo, Yuan Han]]></dc:creator>
            <pubDate>Wed, 06 Apr 2022 20:27:30 GMT</pubDate>
            <atom:updated>2022-04-06T20:27:30.112Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/645/1*N0bPMeYzHTtfOyCiaKt0_A.png" /></figure><p>Transient climate response (TCR) measures climate sensitivity by dividing average global temperature change (°C) with change in atmospheric carbon.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/386/1*kzUFDTVmsMiapnhtQrMfyg.png" /></figure><p>And since change in atmospheric carbon is correlated with cumulative carbon dioxide emissions, we can simplified the equation by dividing average global temperature with cumulative carbon dioxide emissions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/708/1*L4wgK_ypQ01JpKMtjpRX7w.png" /></figure><p>The reason we made that logical connection is because we are the largest carbon dioxide emitter and we want to see the effect of our emission in relation to global temperature.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/332/1*szPy4OMXwPuGCV5RZyQpHw.png" /></figure><p>TCR can also be expressed in terms of temperature response to the change in radiative forcing instead of emitted carbon where you divide the average global temperature by radiative forcing taken at the top of the atmosphere. But what’s the point in that?</p><p>The goal is to isolate the temperature changes in relation to carbon emission from greenhouse gas (GHG) emissions, anthropogenic aerosols, and natural causes such as volcanic eruptions as best as we can so we know what is within our control and what is not. So how exactly TCR discount the temperature changes due to GHG?</p><p>By using multimodel mean to estimate TCR, the result caused by GHG has been greatly constrained, and hence the results outperforms any individual model. Since the details of the approach is deeper than I intended to cover in this blog, I will attach a link on the bottom so you to take a look. What you need to remember is that multimodel approach deals with GHG but not account for natural causes like volcanic eruptions.</p><p>Before we throw in the towel, it’s key to remember that although the fluctuation of TCR is large, 1 to 2.5 K range of variation, it is still more closely related to the rate of warming than other measurements, such as Equilibrium climate sensitivity which ranges from 1.5 to 4.5 K. This is not to say ECS is somehow interior though, it has advantages that is out of the current scope.</p><h4>Conclusion</h4><p>I deeply admire experts on the climate issues, specially on measuring temperature change since it seems like an endeavor to chance after the infinite chaos. For me, the questions at hand seems to consist too many variables that is at constant volatility which produces even more volatility. I am not sure if the efforts are worth awhile to curb climate change consider the effort to produce more renewables might yield more promising results with easier questions to solve. This is not to say the temperature and weather questions is not worth to look at for its own sake. I have also, in the past, thought that counting all possible hands seems like a chase to the infinite but only to realized that a factorial provides a great elegant solution.</p><p><a href="https://journals.ametsoc.org/view/journals/clim/31/20/jcli-d-17-0717.1.xml">https://journals.ametsoc.org/view/journals/clim/31/20/jcli-d-17-0717.1.xml</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=91f3e6306d5c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Gain a Visual For Climate Issues-An Article from Kraket]]></title>
            <link>https://leoyuanluo.medium.com/gain-a-visual-for-climate-issues-3b325fb17136?source=rss-6739725f1fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/3b325fb17136</guid>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[environment]]></category>
            <category><![CDATA[climate-change]]></category>
            <category><![CDATA[environmental-issues]]></category>
            <dc:creator><![CDATA[袁晗 | Luo, Yuan Han]]></dc:creator>
            <pubDate>Tue, 29 Mar 2022 18:55:49 GMT</pubDate>
            <atom:updated>2022-03-29T19:19:28.275Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/649/1*at3cwZYswgUQhjUYuJaDxw.png" /></figure><p>If you are a data scientist who is looking to contribute to climate issues, this piece is for you. The most valuable asset a data scientist can bring to the table is interactive visualization. You cannot fight what you cannot see so naturally to see the relationship between CO_2 and temperature is the 1st step in dealing with climate issues. And “interactive” is not just a cool adjective, it’s basically predictive analysis via model (unless you live under a rock, it’s really trendy to fit a model with computer). So what kind of visual can we gain? Let’s look at what <a href="https://kraket.genkgoweb.com/en/sector/authors/assoc-prof-hande-karabiyik">Prof. Hande Karabiyik</a> has to say in an <a href="https://kraket.genkgoweb.com/en/sector/article/2020-02-17-econometrics-of-climate-change">article </a>published with Kraket, a study association for Econometrics and Operational Research at the VU, on February 17th 2020.</p><h4>ECS</h4><p>In vacuum, earth will be 1c warmer if CO_2 doubles. Ok, useless-talk, we all know most things don’t operate in vacuum, what’s throwing in the wrench? It’s Climate feedbacks such as water vapour, cloud covers, ice and snow cover which changes the surface radiation that can either amplify or decrease the CO_2 effects causing a variation in temperature between 1.5c-4.5c. For example, a reduce in temperature due to radiation is call “aerosol cooling’’. But don’t worry, the author got a model for us already that deals with this issue. This model can accurately estimates the amount of increase in the global temperatures when CO_2 concentration doubles without the interference from climate feedbacks. This measurement is also known as earth’s climate sensitivity (ECS). Let’s look at how this ECS is estimated.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z97dOxgmehWYSIx4XcL55Q.png" /><figcaption>img src: <a href="https://kraket.genkgoweb.com/en/sector/article/2020-02-17-econometrics-of-climate-change">https://kraket.genkgoweb.com/en/sector/article/2020-02-17-econometrics-of-climate-change</a></figcaption></figure><p>So what is <em>γ3</em>, <em>β1</em> and <em>γ1 </em>and where are they even from<em>? </em>They are coefficients from other functions.<em> </em>Let’s look at the function that yields γ1 and γ3 first.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hKZOCahudBPvgv9IQchqqA.png" /></figure><p>Ok, we know what the natural log of CO_2 concentration at times t means, but what is T_bar, R_bar, subscript “t”, and <em>λt?</em> Let’s look at T_bar and R_bar.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FU62Jk1iPQG1b4b-qDTkmg.png" /></figure><p>T_bar and R_bar is the average global temperature and radiation (effects of climate feedbacks) respectively. If I use the word global, does that mean we also have local temperature and radiation? Yes, and the answer to that will also answer 2 more question: what is <em>λ</em>, and how we come up with β1<em>.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5lx9INB-m-Vjv09QpVD7WA.png" /></figure><p>λ is the time specific effects, such as 5am will be cooler than 12pm. φ is just a coefficient like β and it’s different at each i. This is also the function where we got β1. But 1 answer always leads to many more questions: what is subscript “i”/”t”, <em>α, and u.</em></p><p>Since most of the climate variables are observed and recorded in different locations/stations, subscript “i” and “t” for both T and R represents location and time respectively. <em>α</em> represents location specific effects, such as humidity, wind, and temperature. <em>u is an </em>error term. In case you forgot what an error term is, it’s the difference between population regression line and sample regression line for reasons that’s unknown to us. This error term has left many rooms to tweak to improve the accuracy of the model. Does this entail our regression line is bad? Not necessary because the error term, in this context, is considering factors that are highly volatile and random like neighboring cities temperature and movement of gas particles, which is very chaotic. Let’s put everything together.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*iPcff3DffjUdBpIS4rYDgw.png" /></figure><p>The flow is this: with the averages of global temperature and radiation you replace the λ variable with the λ function. Since temperature, radiation, and CO_2 data are recorded, we can easily train this model to fit β1, γ1, and γ3 that we will need to calculate ECS.</p><p>Congratulation, you just learned how to find ECS with zero understanding of how that works. Before we conclude, let’s look at 2 things: “t+1” and the ECS function.</p><p>Since the ECS is a models for time series data, the error term has to be 1 period ahead, because we have to measure the difference between the predicted and the actual (1 period ahead) data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z97dOxgmehWYSIx4XcL55Q.png" /></figure><p>So intuitively what exactly is happening here? The following will be my own logical conclusion and research, so take it with a grain of salt.</p><p>ECS utilizes fraction, and the whole point of a fraction is to see that there is x amount of numerator in y mount of denominator. It’s also important to remember that we are not using the data on CO_2 density or temperatures directly. We are using the coefficients of those data, in other words we are using the sensitivity of those data. For example, a very small γ3 will mean we can tolerate a lot of CO_2, and a large amount of γ3 entails a tiny changes of CO_2 will cause huge increase in the function, and the same goes with temperature. What does it mean when we throw them in side fraction? Let’s go through a few scenarios.</p><p>When γ3 is bigger than the denominator, ECS will increase, that means CO_2 is more sensitive than temp (β1&amp;γ1). As β1 and γ1 decrease, ECS will converge to CO_2 sensitivity, since the denominator is 1-β1-γ1. But as β1 and γ1 increase there are 2 possibilities: If the increase does not exceed 1, then ECS will get larger, otherwise, ECS will turn negative. Since I never dealt with climate data, I cannot rule out the possibility of β1 or γ1 not exceeding 1.</p><h4>Conclusion</h4><p>After reading all this you might be scratching your head thinking what’s the point of all this? I hope you will leave with 3 things. 1, besides just getting fitted, coefficients have other utilities. 2, this utility is as useful and important as making predictions. 3, the result of taking full advantage of coefficients lets us to extract more information out of the existing data.</p><p>Now that you gain some familiarity with climate related model building logic, hopefully similar model building literature wouldn’t be so off putting. And maybe one day we can start building better models and extract more useful information to help with climate issues.</p><p><a href="https://kraket.genkgoweb.com/en/sector/article/2020-02-17-econometrics-of-climate-change">https://kraket.genkgoweb.com/en/sector/article/2020-02-17-econometrics-of-climate-change</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3b325fb17136" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>