<?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 Rachel on Medium]]></title>
        <description><![CDATA[Stories by Rachel on Medium]]></description>
        <link>https://medium.com/@neatdata?source=rss-b3ae0922ba71------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*5zinhIkbNc022AsZEdBwPA.jpeg</url>
            <title>Stories by Rachel on Medium</title>
            <link>https://medium.com/@neatdata?source=rss-b3ae0922ba71------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 20:05:27 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@neatdata/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[Is 1% too small]]></title>
            <link>https://neatdata.medium.com/is-1-too-small-f1989d0bf674?source=rss-b3ae0922ba71------2</link>
            <guid isPermaLink="false">https://medium.com/p/f1989d0bf674</guid>
            <category><![CDATA[improvement]]></category>
            <category><![CDATA[habits]]></category>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[change]]></category>
            <category><![CDATA[resolutions]]></category>
            <dc:creator><![CDATA[Rachel]]></dc:creator>
            <pubDate>Sun, 27 Dec 2020 20:11:02 GMT</pubDate>
            <atom:updated>2020-12-27T20:11:02.835Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vi4HWjqVTs1Sy4UDsCDW1g.jpeg" /></figure><p>Sometimes I really don’t care about small things. Waking up late and don’t have enough time for a complete workout, I’ll then do a lighter workout. Feels bored and doesn’t want to write or read, I’ll skip and play video games instead. There are always easier things to do than the things I should do. Meanwhile, I feel stressful when I see my growing to-do lists. I also seek for all the different books and techniques that tell you how to do things more productive and more efficient. Deep down, I know that the being more productive is just an excuse for wasting more time. Didn’t read today? I’ll learn how to be a faster reader and catch up later. The “later” never comes. The slightly increase of speed can easily be suppressed by the decrease of time. Does it matter though? Is it that necessary to be slightly better every day?</p><p>Before I read <em>Atomic Habit by James Clear</em>, I thought The <em>Power of Habit by Charles Duhigg</em> is THE best and only book I ever need to read about habits. It shows scientifically that habits are composed by cue, action and rewards. To replace an old habit or build up a new habit, we can make cue and rewards the same, and change our actions. For example, if I want to change my habit of eating cookie everyday at 3pm, I can start to figure out the cue, such as being bored, and the reward, such as feeling more energetic. While keeping cue and reward the same, I can try different activities. For example, taking a walk while feeling bored and see if I can get the same reward after it. Once I find a good activity to replace the old one; in this example, taking a walk instead of eating a cookie, I will have a healthier habit.</p><p>Because of the good understanding of habit, I never feel the need to read Atomic Habit even when I saw it under the “Lucky Wall” in my local library. “Lucky Wall” in my library is for popular books with waiting time &gt; 2 months. You can borrow anything immediately from “Lucky Wall”, but you cannot renew. Until recently, I chatted with my friend, and she recommended me this book. I asked her what’s so special about this one. She said the core idea in this book is small changes. The author James Clear was hit in the face by a baseball in his sophomore year in high school. He got seizures, could not remember who his mother is and could not smell. He didn’t lose his faith, he tried small things one at a time, rebuilt his confidence and got full recovered. 6 years after getting hit, he was selected as the top male athlete at Denison University. I got curious and searched for this book immediately on Amazon. In my mind, on Amazon, a good book normally has a few hundreds reviews with 4 to 4.5 stars. A great book normally thousands of views with 4 to 4.5 stars. This one, to my surprise has more than 20,000 reviews with 5 starts. This is rare, and it could mean it worth reading, so I grabbed a copy and started to read.</p><p>I have to say, I was completely wrong. After finishing reading, The Power of Habit is still a great book in my mind, but not the only one anymore. Atomic Habit is worth the reviews and every penny. It leverages the theory from The Power of Habit and provides more practical ways to us to use on a daily basis.</p><p>Before jumping to any specific tactics and examples, the book first talks about the fundamentals. It shows why tiny changes can make huge impacts, and every small thing matters. It gives an example of British Cycling team. The team hasn’t won any event for 110 years by 2003. In 2003, a man named Dave Brailford was hired as the performance director of the team. He starts to make 1% improvement on every possible areas, common area like the angle of seat and better racing suit. He didn’t stop there, and focused on a lot of unexpected areas as well. They hired a surgeon to teach the team how to wash their hands better so they are less likely to get a cold. They determine the best pillow and mattress so players can have a better sleep and recovery. When the hundreds of small improvements accumulates, magic happens. Just after 5 years, British Cycling team won more than 60% of gold medals in Beijing Olympics. 4 years later in London Olympics, the team set 9 Olympics records and 7 world records.</p><p>How can this happen? You might have heard of compound interest. Albert Einstein referred to it as the “most powerful force in the universe”. We all adopt this term as a financing term. If we save a little money right now, with certain growth rate, 30 years from now, we will have thousands of money. The same concept applies to growth as well.</p><p>If we only improve 1% each day, in a year, we will be more than 37 times better than we started. On the other hand, if we are 1% worse each day, we will only be 3% of what we were a year ago. Does the 1% matter? Absolutely. We often neglect small things. If I save a little each day, I won’t be a millionaire a month later. If I workout everyday, I still won’t get my 6-packs 1 month later. Oh the flip side, if I eat junk food everyday, I won’t see huge weight increase the next day. Small things don’t seem to matter. However, as the examples show, one day or one small decision don’t seem to matter, when all the tiny things accumulate, they will change the destination of life.</p><p>Doing some seemingly small things over and over can be boring. Boredom is also the biggest threat to success. This is probably why we need to find our passion to be success since we won’t be bored. This is not true. We all have moments to feel like quitting. Professionals stick to schedule and work hard toward it with purposes; amateurs let life get in the way and get pulled off course by the urgency of life. This reminds me of story I read before. Cannot remember the details, but basically a mathematician solved a problem that has puzzled people for many years, when people asked the mathematicians how long did it take for him to solve it, he said “every Sunday afternoon for the past 5 years”.</p><p>The process sounds hard, but it is not. How we see ourselves decides which habits we want to adopt. Reversely, the habits we are performing can shape our identities. For example, I used to not read much. One day, I decided to read more since book are good way to learn from the best. Initially it was hard, I got distracted all the time. Overtime, however, since I read more, I started to think myself as a reader. Due to the identity changes, reading becomes easier, and it is no longer a task for me; it became a hobby.</p><p>Creating a habit is not hard either. It only takes 4 steps:</p><ul><li>Cue — make it obvious</li><li>Craving — make it attractive</li><li>Action — make it easy</li><li>Rewards — make it satisfying</li></ul><p><strong>Cue — make it obvious</strong></p><p>Cue is the initial step for a habit. I often wake up and check my phone. Waking up is the cue for me. To form a new habit or change an old one, we need to make the cue obvious. It is hard sometimes because a habit means we do thing automatically without noticing it. A good way is to create a timesheet, and assign + or — or =next to it. + means habits that are aligned with your desired identities and — means the opposite. = mean neutral. For example, I normally</p><ul><li>wake up =</li><li>turn of alarm clocks =</li><li>check emails/messages -</li><li>weight myself +</li><li>brush my teeth =</li><li>drink water +</li><li>check my phone again -</li></ul><p>After writing them down clearly, it is very easy to see which habits I want to keep and which I want to change/improve.</p><p>Another good way is to write the habits down in a specific way. The formula goes like this I will do BEHAVIOR in LOCATION at TIME. For example, I will workout at home right after drinking water in the morning. Research shows that by writing the specifics down, people are much more likely to behave this way.</p><p>Similar to writing it done, another strategy is call “habit stacking”. It simply means to put a new habit right after an existing habit. Formula is After OLD HABIT, I will NEW HABIT. For example, after drinking my morning coffee, I will do 5 min meditation.</p><p>Environment design, in my mind, might be the most powerful way when forming a habit. It is also mentioned later in “Action — make it easy” section. We may all know some people who seem to have unlimited self-control and willpower. They workout regularly, get things done without procrastination and read a lot. If you have read the <em>Willpower Instinct by Kelly McGonigal</em>, you may have known the willpower is a limited resources. Although this is still a controversial theory, it still shows only relying on willpower is not sufficiency and sustainable.</p><p>A good environment design is a better solution. The research shows that by simply swapping the drink option from soda to bottled water in cafeteria, the sales of soda dropped by more than 10%, and the sales of water increased by 20% in 3 months. Environment is the invisible hands that shapes our behavior. If there’s cookie next to you, you may start to eat without realizing. To form a new behavior like taking a walk after waking up, you can have the workout clothes next to bed to remind you.</p><p>Reverse this rule can help eliminate the old habits. For example, to eat less deserts, rather than forcing yourself not eating it, it is easier to not buy. Without any sweets in home, you are less likely to eat.</p><p><strong>Craving — make it attractive</strong></p><p>After getting the cue, and before acting on it, you will have a craving in your mind that makes you to act. The craving motivates us since it can release the famous dopamine to our brain. Therefore, to leverage it, we can make the craving more attractive so it is irresistible to not act.</p><p>A simple way is to bundle the things you like to do with the things you need to do. It is very similar to habit stacking mentioned above. Formula is After HABIT I NEED, I will do HABIT I WANT. For example, After writing for 1 hour, I will take a break and walk outside. It can be reversed as well, and then the things I enjoy doing can be a cue for a habit I need to do. For example, after watch 10min youtube, I will go for a run.</p><p>Another way is to join a culture or environment where your desired behavior or habit is normal. We are social animals, and we all need the social bonds with others. We want to make connections with other. If everyone else is behaving in a certain way, you will do, too. It is easier to start to read after joining a book club.</p><p>Reverse this rule can help us eliminate bad habits. A good book to help people quit smoke is called <em>Easy Way to Stop Smoking by Allen Carr</em>. He systematically reframes each thought associated with smoking and gives it a new meaning. For example, “you think smoking is about relieving stree, but it’s not. Smoking does not relieve your nerves, it destroys them”. Hundreds of people quick smoking because of the book. We can apply a similar idea as well. We can talk to ourselves by highlighting the drawbacks of bad habits and emphasis the benefits of good habits. When the crave becomes less attractive, we can eliminate an old habit more easily.</p><p><strong>Action — make it easy</strong></p><p>Time to take an action after seeing a cue and having a crave. However, most of the time, we still fail to do so. Planning to go to the gym, but the gym is 30min away? You probably won’t go even after seeing your workout clothes and deciding to give yourself a gift after exercising. It is because we tend to follow the law of least efforts. The easier we can do something, we tend to do it.</p><p>To apply this rule, we can eliminate steps for us to act to make it easy. Instead of going to the gym, you can use some basic equipment or just body weight to do some simple exercise at home. Without packing and driving to the gym, it is easier to start. Environment designs can kick in here. For example, I found it is very hard to not look at my phone when I work or relax. The phone is a cue itself. By hiding my phone in a drawer, I both make the cue invisible and harder to check it. I stop look at my phone by significant amount due to this one change.</p><p>Another way to make it easy is to apply a 2-min rule. The idea behind this rule is that It is harder for people to start a new activity than keep doing the current one. Also, the more you act, the easier it becomes. To make it easy to act, you can just start for 2 min and then stop. Once you get more comfortable starting a specific action, it is easier going forward to do it longer. Here is an example. A man decides to workout regularly. In the first week, he just tied his workout shoes. After a week, he went to the gym after tying his shoes, and stayed there for 1 min. After a few times, he started to workout for 5min and then left. By the time he noticed, he has been working out everyday and lost a lot of weights. I applied the same rule to write this article. I have been trying to writing about the books I have read. Writing, in my mind, is the best way to learn from a book. I have been procrastinating since I thought it was hard. After reading this book, I decided to follow a similar approach. At the first few days, I simply open my text editor for a min. After a few days, I thought I could write a sentence. Slowly a sentence became a paragraph, and then became an article.</p><p>For certain habits, the ultimate way to lock in future behaviors is to automate the habits. You can set it for one time, and don’t need to worry about it. For example, the best way to save is to setup an automatic saving plans. The plan will save for you without doing anything.</p><p>Through out the day, there are certain decisions can determine whether you have a wonderful day or a terrible day. For me, waking up early can help me setup a tone for a productive day. Waking up early can trigger a series of good habits. On the other hand, waking up later makes me feel sloppy and lazy, it is likely that I will not have the most enjoyable day. We need to be more careful for these moments. Having these decisions right can lead to a good day.</p><p><strong>Rewards — make it satisfying</strong></p><p>Above three sections are ways to make you act, this final section is to let you come back to the same behavior in the future. We are more likely to repeat a behavior when the experience is satisfying. Our brain prefers immediate satisfaction, which is why many people eat desserts when they want to lose weight. Eating desserts can have an immediate satisfaction while the longer-term benefits of maintaining a healthy weight is no very rewarding for the brain.</p><p>A good way to make the desired habits more satisfying is to use habit tracker. It can be as simple as a calendar. Everyday, when you finish a task, you can put a big check mark in the calendar. The visual cue is very strong and obvious, and having a calendar full of check marks is also satisfying. Don’t get too upset and worried when you miss one. Things can happen, but don’t miss twice in a row. Getting back on track as quickly as possible is good way to keep a habit.</p><p>Another way is to create a habit contract with an accountability partner. For example, you can let your partner holds $100, and only return it back to you when you can get up early for 30 days.</p><p><strong>Advanced Tactics</strong></p><p>In the final chapter of the book, James talks about the talent, Goldilocks Rule and the downside of creating good habits.</p><p>Our talent is defined by our genes. Michael Phelps has the talent to be a great swimmer. He won’t be as successful as he is now if he chose to be a runner. It is not saying genes can determine everything. Genes can predispose but not predetermine. You will find the predisposed areas more satisfying; hence you are more likely to be successful in these areas. You should build habits that work for your personalities. Here are some questions you can ask yourself when exploring all possibilities.</p><ul><li>What feels fun to me, but work for others</li><li>What makes me lose track of times</li><li>Where do I get greater returns than the average person</li><li>What comes naturally to me</li></ul><p>Once we found our areas, we need to continually work on it to improve and grow. The Goldilocks Rule mentioned in this book is like the term “flow”. It means the tasks are at the right level. It is not too hard and not too easy. It is only slightly over your comfortable zone, and you will lose time working on it. Research shows that, a task is roughly 4% beyond your current ability. Even following these rules and working in our favorite areas, we can still feel bored. It is very common. Even the most successful people can feel bored and lack of motivations. The only difference is that they keep working on it regardless of how they feels. The ability to keep going when work isn’t exciting can make a true difference.</p><p>The downside of forming a habits is that the behavior becomes automatic, and we stop paying attention to small errors. Deliberate practice is the basics for mastery. Therefore, even after forming a habit, we need to have regular reflections and reviews to be conscious of our performance overtime.</p><ul><li>What went well this week/month/year</li><li>What didn’t go well this week/month/year</li><li>What did I learn</li><li>How can I do better</li></ul><p><strong>Questions &amp; Actions</strong></p><p>Which kind of person do you want to be</p><p>What habits can you build to be that person</p><p>How can you make the cue of the habits more obvious</p><ul><li>Write down your daily routines that you stop paying attention to</li><li>I will [NEW HABIT] in [LOCATION] at [TIME]</li><li>I will [NEW HABIT] after [OLD HABIT]</li><li>Environment design</li></ul><p>How can you make the cue of the bad habits invisible</p><ul><li>Environment design</li></ul><p>How can I make the craving more attractive for desired habits</p><ul><li>I will [THINGS I NEED] after [THINGS I WANT] or vise versa</li><li>Join a culture where my desired habits is normal</li><li>Do something you enjoy immediately before a difficult habit</li></ul><p>How can I make the craving less attractive for undesired habits</p><ul><li>Highlight the benefits of avoiding bad habits to reshape the mind</li></ul><p>How to make the action easier</p><ul><li>Decrease the number of steps needed</li><li>Use 2-min rules</li><li>Focus on getting the critical decision moments</li><li>Prime the environment to make the next action easier</li><li>Automate habits</li></ul><p>How to make the action harder</p><ul><li>Increase the number of steps</li><li>Book/prepare things now to restrict future choices</li></ul><p>How to make the rewards satisfying</p><ul><li>Give yourself an immediate rewards after finishing a task</li><li>Design a way to see the benefits of avoiding a bad habits</li><li>Track your habits</li><li>Never miss twice</li></ul><p>How to make the rewards unsatisfying</p><ul><li>Let someone to watch your behavior</li><li>Create a habit contract</li></ul><p>What comes natural to me? Which areas should I focus on?</p><p>Do routinely review of my performance</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f1989d0bf674" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[3 Reasons That Business People Should Consider Being a Business Intelligence Analyst]]></title>
            <link>https://neatdata.medium.com/3-reasons-that-business-people-should-consider-being-a-business-intelligence-analyst-9b8c072ba210?source=rss-b3ae0922ba71------2</link>
            <guid isPermaLink="false">https://medium.com/p/9b8c072ba210</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[business-intelligence]]></category>
            <category><![CDATA[finance]]></category>
            <category><![CDATA[business]]></category>
            <dc:creator><![CDATA[Rachel]]></dc:creator>
            <pubDate>Wed, 24 Jul 2019 04:01:02 GMT</pubDate>
            <atom:updated>2019-07-24T04:01:02.346Z</atom:updated>
            <content:encoded><![CDATA[<p>A good career option for business-savvy data analysts</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/340/1*c6Bm1R2uxP2QMif0qg4jgA.png" /></figure><p>There are enough spotlights on data analysis, machine learns and artificial intelligence now. You may get interested and started to learn all the codings and statistics needed to becoming a good data analyst. However, the lists get longer and longer, and you feel you will never be able to catch up. Many PhDs are going into data science area, and it is impossible to compete with them. If this sounds familiar, this article is for you.</p><p>As a former tax analyst, I know the frustrations of picking up statistics textbook and feeling sleepy. Coding with Python is fun, but I probably will not master it enough to be able to break into this area. Data analyst sounds a good career but it is hard to get started with a pure business background. Luckily, I started my journey as a business intelligence analyst and love it immediately and for the every single day since then. Here are the reasons you should consider it as well.</p><h4>1. Maximize your strength</h4><p>As a business people, business analysis and financial analysis are our strengths. We use Excel &amp; PowerPoint without mouses or even without thinking. We are good at communications. Why dropping all of them and compete other tech genius with coding and statistics?</p><p>Business Intelligence is a combination of business world and data world. It requires a lot of communication with both business side and technology side. Normally, people in these two world does not communicate well. As a BI analyst, you need to understand the business needs, transfer them to technology languages and communicate with tech people to build what the business needs. If your technology is strong and you are interested, you can build the model business needs and drive the decision making process yourself! You can also communicate back to the business world to let them know the reason if the process cannot be done given the constraint. Pure business or technology people do not have the chances or knowledge to understand each other. You are the key people to drive the whole process now.</p><h4>2. Build your own competitive advantage</h4><p>On the one hand, since you are in the business world, you understand the strengths and weakness of each business tools. You can find the pain point and significantly improve the process. Do you recall the last time you need to copy and pasting hundreds of excels all night to create a report for the next day? Tech people will not know even they can potentially build the tools to automate the whole process. You can become a key person and build your competitive advantage to solve all the pain points. Next time, you see your business partners copying and pasting around, you can understand the needs and build tools that they can easily use.</p><p>Other the other hand, once your technical skills get stronger, you can reinforce the technology side as well. You will be able to transferring business language to technology language like picking a sponge. When you build models and build tools, you will notice the flaws on the technology side as well. You will have a chance to do QA for engineers work and help them better understand the business needs.</p><h4>3. Better career choice</h4><p>As you advance through your career, you will have a chance to choose which way you want to focus. BI job will provide a solid foundation for both being a great analysts or data scientist.</p><p>If you choose to become the top analysts or even CFO, the technology background can help you be more effective and efficient. You can also help all your colleagues or the whole business to continue improving the process for all the analysts work.</p><p>If you choose to become the top data analysts or data scientists, the solid business understanding can help form the initial question better and more accurate. The ultimate goal of data science project is to use data to drive better decisions. Understanding the business is the key point, and many scientists are lack of the business acumen to come up with the correct question. You will have an advantage since you understand the business pretty well.</p><p>Thanks for reading! I hope you all have a great career!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9b8c072ba210" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Science Basics — 5]]></title>
            <link>https://neatdata.medium.com/data-science-basics-5-87bf831f59cb?source=rss-b3ae0922ba71------2</link>
            <guid isPermaLink="false">https://medium.com/p/87bf831f59cb</guid>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[statistical-analysis]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[management]]></category>
            <dc:creator><![CDATA[Rachel]]></dc:creator>
            <pubDate>Fri, 19 Jan 2018 14:37:50 GMT</pubDate>
            <atom:updated>2018-01-19T14:37:50.070Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://medium.com/@mukerong/data-science-basics-4-972cb210e679">Be prepared for the Age of Big Data</a></p><h3>Selection Bias</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*CNLxaHjyol63iE061MDBHA.jpeg" /></figure><h4>What is it</h4><p>Selection bias is the bias happened when random selection did not achieve. It could happened during sampling process. The conclusion of some statistical analysis may not be accurate because of selection bias.</p><p>Sampling bias is one type of selection bias. The bad sampling methods discussed before are examples. Not every individual within a population has the equal probability to be picked. It can happened in daily life as well. For example, you want to know whether one mall is better than the other. You just ask some friends around, which can lead to selection bias. You friends may hang out together to one mall. They may not be familiar with the other one. Because of the selection bias, you might think one is significantly better, but it may be wrong.</p><h4>Why it matters</h4><p>Because of the selection bias, the selection cannot represent the population. Therefore, the conclusion we draw based on the samples are not accurate. Selection bias is hard to avoid, so we need to find a way to mitigate it to help us make better decisions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=87bf831f59cb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Science Basics — 4]]></title>
            <link>https://neatdata.medium.com/data-science-basics-4-972cb210e679?source=rss-b3ae0922ba71------2</link>
            <guid isPermaLink="false">https://medium.com/p/972cb210e679</guid>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[product-management]]></category>
            <category><![CDATA[statistical-analysis]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-analysis]]></category>
            <dc:creator><![CDATA[Rachel]]></dc:creator>
            <pubDate>Thu, 18 Jan 2018 14:43:59 GMT</pubDate>
            <atom:updated>2018-01-18T14:43:59.525Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://medium.com/@mukerong/data-science-basics-3-84d5fa65d631">Be prepared for the Age of Big Data</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/340/1*yitUGPJbe42TMFFOzEwPGw.png" /></figure><h3>Type I &amp; Type II Error</h3><h4>Explanation</h4><p>In statistical hypothesis testing, type I error is the incorrect rejection of a true null hypothesis (false positive). It means the original hypothesis is correct, but we rejected. On the opposite, type II error is the incorrect acceptance of a wrong null hypothesis (false negative). It means the original hypothesis is wrong, but we think it is right. The rate of type I error equals to alpha, the significance level.</p><h4>Example</h4><p>Null Hypothesis: Drinking coffee have no effect on human body.<br>Alternative Hypothesis: Drinking coffee can make people energetic.</p><p>If drinking coffee doesn’t have any effect, but we think it does, this is type I error because we think the original thinking is wrong while it is not.</p><p>If drinking coffee can make people more energetic, but we don’t think it has any effect, this is type II error. We think the original thinking is correct but it is not.</p><h4>Why it matters</h4><p>We need to be aware that no matter how accurate our experiments are, or how careful we are, there are still chances we will draw the wrong conclusion. It is important to understand potential errors, and find a way to minimize it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=972cb210e679" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Science Basics — 3]]></title>
            <link>https://neatdata.medium.com/data-science-basics-3-84d5fa65d631?source=rss-b3ae0922ba71------2</link>
            <guid isPermaLink="false">https://medium.com/p/84d5fa65d631</guid>
            <category><![CDATA[statistical-analysis]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Rachel]]></dc:creator>
            <pubDate>Wed, 17 Jan 2018 14:51:32 GMT</pubDate>
            <atom:updated>2018-01-17T14:51:44.360Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://medium.com/@mukerong/data-science-basics-2-df25caf33aa9">Be prepared for the Age of Big Data</a></p><h3>Sampling</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/1*gh-qXndg89mD1JLPx548rg.jpeg" /></figure><h4>Explanation</h4><p>Sampling means to select a subset (a statistical sample) of individuals from a statistical population to estimate characteristics of the whole population. It can lower the cost and increase the collection speed.</p><p>For example, when researchers learn about how smoking might influence people’s health, they will choose a certain amount of people to study instead of the whole population.</p><h4>Why it matters</h4><p>Sampling is important because bad samples can ruin the study and make people draw the wrong conclusion. Therefore, how to do sampling really matters. If a sample is not randomly picked, it will most likely be biased, which cannot represent the whole population.</p><p>There are different sampling methods, some of them are bad that can lead to biased samples, some of them are good that are used by researchers everyday.</p><h4>Bad Sampling</h4><p>Convenience sample — Choose samples that is easily access in non-random way. <br>Example — before one of the president elections in the past, researchers used phone call to gather information, which led to a wrong prediction. This is because only a certain type of people have phone during that time. They cannot represent the overall opinion.</p><p>Voluntary response sample — Researchers put out a request for people to join the sample, and people can decide whether to join or not.<br>Example — A TV show hosts ask the views to respond to an online poll. The results are likely to be biased because only people who have strong opinions will respond, which cannot represent the whole population.</p><h4>Good Sampling</h4><p>Simple random sample — every individual has the equal opportunity to be picked, so the samples are usually fairly representative.</p><p>Stratified random sample — The population is first split into groups. Individuals within each group are similar. The individual will be selected randomly within each group. The overall sample will include samples from each group.<br>If we want some members from every group this is a good method. For example, researchers may first split people into male and female, and then randomly select the people they need from each group.</p><p>Cluster random sample — The population is first split into groups. Individuals within each group are different, which can somehow reflect the population. The groups are selected randomly.<br>An airline company randomly select 10 flights on one day to do some surveys for every passenger on these flights.</p><p>Systematic random sample — Individuals of the population are put in some order. A starting point is selected randomly, and every $n^th$ member is selected.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=84d5fa65d631" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Science Basics — 2]]></title>
            <link>https://neatdata.medium.com/data-science-basics-2-df25caf33aa9?source=rss-b3ae0922ba71------2</link>
            <guid isPermaLink="false">https://medium.com/p/df25caf33aa9</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[statistical-analysis]]></category>
            <category><![CDATA[a-b-testing]]></category>
            <category><![CDATA[statistics]]></category>
            <dc:creator><![CDATA[Rachel]]></dc:creator>
            <pubDate>Tue, 16 Jan 2018 14:43:15 GMT</pubDate>
            <atom:updated>2018-01-16T14:43:15.520Z</atom:updated>
            <content:encoded><![CDATA[<p>Be prepared for the Age of Big Data</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/1*3ZCjjrFP1Q2Up2EX2e2joQ.png" /></figure><h3>P-Value</h3><h4>Explanation</h4><p>In statistical testing, people normally set two hypothesis, the null hypothesis (H0) and the alternative hypothesis (H1). The null hypothesis usually set no difference between different variables. For example, there is no difference between male and female’s life expectancy. The alternative hypothesis is the opposite of null hypothesis.</p><p>P-value, or calculated probability, is the probability of finding the observed, or more extreme, results when the null hypothesis is true.</p><p>Significance level, alpha, is a pre-chosen probability that determine whether to reject the null hypothesis or not. If P-value is smaller than alpha, we will reject the null hypothesis and accept the alternative hypothesis. Alpha is normally chosen as 5%, 1% or 0.1%.</p><h4>Example</h4><p>The concept might be dry. Let’s try some examples. Assuming two grocery stores are in your neighborhood, and the groceries there are both fresh. You wonder if there are price differences between the two stores. If so, you can go to the cheaper one.</p><p>In this case, the null hypothesis is P1 = P2. The grocery price of the two stores is the same. The alternative hypothesis will be P1 != P2. The price is not the same. You then set the alpha equals to 0.05 (5%).</p><p>After collecting the data, and do some calculation, you will get the P-value, the probability of the price differences you found if there is no price difference between two stores. If the probability, the P-value, is higher than 5%, which means there are more than 5% chances of the calculated price differences could happen given two stores have the same price, you will accept the original hypothesis. If the P-value is less than 5%, you will reject the hypothesis.</p><p>Intuitively, you can think about lottery ticket. The null hypothesis is winning a big lottery ticket is easy. The alternative hypothesis is winning a big lottery ticket is very hard. Your still choose alpha as 5%. If winning a big lottery ticket is easy, more than 5% of the lottery ticket can win big. You then gather some data and calculate the p-value. If p-value is bigger than 5%, meaning more than 5% of ticket can win, you will keep your original hypothesis since it is easy to win. However, if p-value is less than 5%, meaning less than 5% of ticket can win, you will then reject the null hypothesis, since winning is not as easy as you thought.</p><h4>Why it matters</h4><p>When you read some news or magazines, you may see terms like “statistically significant” or “new finding showing differences between XXX and XXX”. The “statistical significance” means the p-value is smaller than alpha. Scientists do experiments and gather information for analysis. When testing a hypothesis, they will use p-value to determine whether their original thinking is correct or not.</p><p>When companies do A/B testing to see if the new feature attracts more customers or not, they will also use p-value.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=df25caf33aa9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Science Basics — 1]]></title>
            <link>https://neatdata.medium.com/data-science-basics-1-e93fa60509b?source=rss-b3ae0922ba71------2</link>
            <guid isPermaLink="false">https://medium.com/p/e93fa60509b</guid>
            <category><![CDATA[statistics]]></category>
            <category><![CDATA[statistical-analysis]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Rachel]]></dc:creator>
            <pubDate>Mon, 15 Jan 2018 14:57:43 GMT</pubDate>
            <atom:updated>2018-01-15T14:57:43.160Z</atom:updated>
            <content:encoded><![CDATA[<p>Be prepared in the Age of Big Data</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*3WHmvZPtOaZbb7wmE45ZFA.jpeg" /></figure><h3>Intro</h3><p>Everyone is talking about data right now. From AlphaGo to self-driving car, data science is everywhere. It is indeed a very fascinating area. To better grab the opportunity in the Age of Big Data, each of us need to understand some basic concepts.</p><p>According to the Nobel Price Winner, Richard Feynman, the best way to learn and understand a concept to explain it in a simple language to other people. When my friends ask me about some data science concepts, I still find it is a very challenging task even if I think I have fully understand them.</p><p>I will apply the Feynman Technical here to explain some concepts in simple language. Hope you will find it useful as well.</p><h3>Central Limit Theorem</h3><h4>Explanation</h4><p>Central limit theorem is one of the fundamental concept of statistics. It means no matter what the original dataset (population) look like, if you repeated draw samples from it, the distribution of means of the samples will be normal distributions (bell curve). The mean of this normal distribution will equal to the population mean and standard error will equal to the population standard deviation divided by the square root of sample size (n).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*zKNRttdA4pnDNzFwIr5OHQ.png" /></figure><h4>Example</h4><p>Assuming you are one dices for 1000 times, the probability for each number 1–6 you will get is the same, so the distribution you will get is a uniform distribution.</p><p>Now, assuming you are rolling two dices, this can also be viewed as drawing two samples from the population. What will the mean of these samples look like if we draw for a large number of times? The mean will have a range between 1–6, but according to central limit theorem, the distribution now is no longer uniform. It will be a normal distribution. The normal distribution will have the same mean with the original dataset.</p><h4>Why it matters</h4><p>A lot of experiments and tests rely on normal distribution to decide whether the result is significant or not (we will talk about this concept later). The original dataset can be in any shape, and cannot be used for statistical analysis. Thanks to central limit theorem, we know that if we keep drawing samples from the population, the mean of these samples will form a normal distribution with the mean equals to the population mean and standard error equals to the population standard deviation divided by the square root of sample size (n).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e93fa60509b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Wrangling — CSV Module]]></title>
            <link>https://neatdata.medium.com/data-wrangling-csv-module-466cd0d453ef?source=rss-b3ae0922ba71------2</link>
            <guid isPermaLink="false">https://medium.com/p/466cd0d453ef</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Rachel]]></dc:creator>
            <pubDate>Fri, 07 Jul 2017 13:27:32 GMT</pubDate>
            <atom:updated>2017-07-07T13:31:19.989Z</atom:updated>
            <content:encoded><![CDATA[<h3>Data Wrangling — CSV Module</h3><h4>Basis of Python CSV module for cleaning data</h4><h4>Documentation</h4><ul><li><a href="https://docs.python.org/2/library/csv.html">Python2</a></li><li><a href="https://docs.python.org/3/library/csv.html">Python3</a></li></ul><h4>Common Functions</h4><p>csv.reader() — Return a reader object</p><pre>import csv<br>with open(&#39;XXX.csv&#39;, &#39;r&#39;, newline = &#39; &#39;) as csvfile:<br>    reader = csv.reader(csvfile, delimiter = &#39;,&#39;)<br>    for row in reader:<br>        print(row)</pre><p>Please note that once you leave the with block, the file is closed.</p><p>or</p><pre>import csv<br>f = oepn(&#39;XXX.csv&#39;, &#39;r&#39;)<br>reader = csv.reader(f)<br>for row in reader:<br>    print(row)<br><br>f.close()</pre><p>Please note that file needs to be closed explicitly, or it will remain open.</p><p>csv.writer() — Return a writer object</p><pre>f = open(&#39;XXX.csv&#39;, &#39;r&#39;)<br>reader = csv.reader(f)<br><br>with open(&#39;XXX.csv&#39;, &#39;w&#39;, newline = &#39;&#39;) as csvfile: <br>    writer = csv.writer(csvfile, delimiter = &#39;,&#39;)<br>    for row in reader:<br>        writer.writerow(row)<br>        <br>f.close()</pre><p>newline = &#39;&#39; is required to make the function work.</p><p>csv.DictReader() — class, map the information to an OrderedDict</p><pre>with open(&#39;XXX.csv&#39;, &#39;r&#39;, fieldnames = sequence) as csvfile:<br>    reader = csv.DictReader(csvfile)<br>    header = reader.fieldnames<br>    for row in reader:<br>        print(row[&#39;column1&#39;])</pre><p>If <em>fieldnames</em> is omitted, the value in the first row is used as the fieldnames.</p><p>csv.DictWriter() — class, map the dictionaries onto output rows</p><pre>f = open(&#39;XXX.csv&#39;, &#39;r&#39;)<br>reader = csv.DictReader(f)<br>header = reader.fieldnames<br>with open(&#39;XXX.csv&#39;, &#39;w&#39;) as csvfile:<br>    writer = csv.DictWriter(csvfile, delimiter = &#39;,&#39;, fieldnames = header)<br>    writer.writehead()<br>    for row in reader:<br>        writer.writerow(row)<br>        <br>f.close()</pre><p><em>fieldnames</em> is required.</p><h4>Application</h4><p>Use criteria to select data and move to new file</p><pre>import csv<br><br>input_file = &#39;XXX.csv&#39;<br>criteria1_file = &#39;XXX.csv&#39;<br>criteria2_file = &#39;XXX.csv&#39;<br><br>with open(input_file, &#39;r&#39;) as f:<br>    reader = csv.DictReader(f)<br>    header = reader.fieldnames<br>    <br>    g = open(criteria1_file, &#39;w&#39;)<br>    writerg = csv.DictWriter(g, delimiter = &#39;,&#39;, fieldnames = header)<br>    writerg.writeheader()<br>    <br>    b = open(criteria2_file, &#39;w&#39;)<br>    writerb = csv.DictWriter(b, delimiter = &#39;,&#39;, fieldnames = header)<br>    writerb.writeheader()<br>    <br>    for row in reader:<br>        if criteria1:<br>            writerg.writerow(row)<br>        elif criteria2:<br>            writerb.writerow(row)<br>    <br>    g.close()<br>    b.close()</pre><p>Append information to a new file</p><pre>import csv<br><br>input_file = &#39;XXX.csv&#39;<br>criteria1_file = &#39;XXX.csv&#39;<br>criteria2_file = &#39;XXX.csv&#39;<br><br>with open(input_file, &#39;r&#39;) as f:<br>    reader = csv.DictReader(f)<br>    header = reader.fieldnames<br>    counterg = 0<br>    counterb = 0<br>    <br>    for row in reader:<br>        if criteria1:<br>            with open(criteria1_file, &#39;a+&#39;) as g:<br>                writerg = csv.DictWriter(g, delimiter = &#39;,&#39;, fieldnames = header)<br>                if counterg == 0:<br>                    writerg.writeheader()<br>                    counterg += 1<br>                writerg.writerow(row)<br>        elif criteria2:<br>            with open(criteria2_file, &#39;a+&#39;) as b:<br>                writerb = csv.DictWriter(b, delimiter = &#39;,&#39;, fieldnames = header)<br>                if counterb == 0:<br>                    writerb.writeheader()<br>                    counterb += 1<br>                writerb.writerow(row)</pre><p>Please note you will have to delete the file if you run the code multiple times since it will keep adding information to the same file.</p><p>Use List to append information</p><pre>import csv<br><br>input_file = &#39;XXX.csv&#39;<br>criteria1_file = &#39;XXX.csv&#39;<br>criteria2_file = &#39;XXX.csv&#39;<br><br>with open(input_file, &#39;r&#39;) as f:<br>    reader = csv.DictReader(f)<br>    header = reader.fieldnames<br>    list1 = []<br>    list2 = []<br>    for row in reader:<br>        if criteria1:<br>            list1.append(row)<br>        elif criteria2:<br>            list2.append(row)<br>            <br>with open(criteria1_file, &#39;w&#39;) as g:<br>    writer = csv.DictWriter(g, delimiter = &#39;,&#39;, fieldnames = header)<br>    writer.writeheader()<br>    writer.writerows(list1)<br><br>with open(criteria2_file, &#39;w&#39;) as b:<br>    writer = csv.DictWriter(b, delimiter = &#39;,&#39;, fieldnames = header)<br>    writer.writeheader()<br>    for row in list2:<br>        writer.writerow(row)</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=466cd0d453ef" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Jupyter Notebook — Shortcuts]]></title>
            <link>https://neatdata.medium.com/what-is-jupyter-notebook-shortcuts-c6b8c755e199?source=rss-b3ae0922ba71------2</link>
            <guid isPermaLink="false">https://medium.com/p/c6b8c755e199</guid>
            <category><![CDATA[jupyter-notebook]]></category>
            <category><![CDATA[mac]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[terminal]]></category>
            <category><![CDATA[ipython]]></category>
            <dc:creator><![CDATA[Rachel]]></dc:creator>
            <pubDate>Fri, 07 Apr 2017 13:30:46 GMT</pubDate>
            <atom:updated>2017-04-07T13:30:46.455Z</atom:updated>
            <content:encoded><![CDATA[<h4>Terminal Shortcuts</h4><ul><li>ctrl-p or up-arrow — search backward in history</li><li>ctrl-n or down-arrow — search forward in history</li><li>ctrl-r — readline-style to search in history</li><li>ctrl-shift-v — paste text from clipboard</li><li>ctrl-c — interrupt currently-executing code</li><li>ctrl-a — move to beginning of line</li><li>ctrl-e — move to the end of line</li><li>ctrl-k — delete text till end of line</li><li>ctrl-u — delete the whole line</li><li>ctrl-f — move forward one character</li><li>ctrl-b — move backward one character</li><li>ctrl-l — clear screen</li></ul><h4>Search History</h4><ul><li>_ — previous output</li></ul><pre>In [1]: 1+1<br>Out[1]: 2</pre><pre>In [2]: _<br>Out[2]: 2</pre><ul><li>__ — previous two output</li></ul><pre>In [1]: 1+1<br>Out[1]: 2</pre><pre>In [2]: _<br>Out[2]: 2</pre><pre>In [3]: 2+2<br>Out[3]: 4</pre><pre>In [4]: __<br>Out[4]: 2</pre><ul><li>_# — output of line #</li><li>_i# — input of line #</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c6b8c755e199" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What is Jupyter Notebook (2)]]></title>
            <link>https://neatdata.medium.com/what-is-jupyter-notebook-2-b01ea5b14bfb?source=rss-b3ae0922ba71------2</link>
            <guid isPermaLink="false">https://medium.com/p/b01ea5b14bfb</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Rachel]]></dc:creator>
            <pubDate>Wed, 05 Apr 2017 13:37:25 GMT</pubDate>
            <atom:updated>2017-04-05T13:37:25.930Z</atom:updated>
            <content:encoded><![CDATA[<h3>Magic</h3><p>Jupyter Notebook has many special commands, that called “magic” command. They are prefixed to <em>%</em> or <em>%%</em>. <em>%</em> means the whole line is under “magic” command. <em>%%</em> means the whole area is under “magic” command. By default, <em>%</em> can be omitted if there is no variable conflict.</p><ul><li>%magic_name? — get documentation of the magic</li><li>%automagic</li></ul><p>As mentioned before, % can be omitted by default. If you want to disable this function, use %automagic.</p><ul><li>%quickref — Jupyter Notebook quick reference card</li><li>%magic — documentation for all magic command</li><li>%run — run .py file immediately</li><li>-i: give script access toe variable in notebook</li><li>-d: invoke the debugger before executing any code, enter <em>s</em> (step) to enter the script</li><li>%paste — execute pre-formatted Python code from clipboard</li><li>%cpaste — manually paste Python code to be executed</li><li>%time — report the execution time of a single statement</li></ul><pre>In [11]: %time 2^25<br>CPU times: user 4 µs, sys: 1 µs, total: 5 µs<br>Wall time: 10 µs<br>Out[11]: 27</pre><p>*%timeit — run a statement for several time, and get the average time</p><pre>In [12]: %timeit 2^30<br>100000000 loops, best of 3: 13.3 ns per loop</pre><ul><li>%hist — print all or part of input history</li><li>%reset — clear the interactive namespace</li></ul><pre>In [14]: %reset<br>Once deleted, variables cannot be recovered. Proceed (y/[n])? y</pre><ul><li>%xdel — remove all references to a particular object</li></ul><pre>In [16]: a = 5</pre><pre>In [17]: b = a</pre><pre>In [18]: b<br>Out[18]: 5</pre><pre>In [19]: %xdel a</pre><pre>In [20]: b<br>---------------------------------------------------------------------------<br>NameError                                 Traceback (most recent call last)<br>&lt;ipython-input-20-3b5d5c371295&gt; in &lt;module&gt;()<br>----&gt; 1 b</pre><pre>NameError: name &#39;b&#39; is not defined</pre><ul><li>%logstart, %logoff, %logon, %logstate, %logstop — log the input and out</li><li>%debug — enter immediately after an exception</li><li>%pdb — automatically invoke debugger after any exception</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b01ea5b14bfb" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>