<?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" xmlns:media="http://search.yahoo.com/mrss/" version="2.0">
    <channel>
        
        <title>
            <![CDATA[ ethics - freeCodeCamp.org ]]>
        </title>
        <description>
            <![CDATA[ Browse thousands of programming tutorials written by experts. Learn Web Development, Data Science, DevOps, Security, and get developer career advice. ]]>
        </description>
        <link>https://www.freecodecamp.org/news/</link>
        <image>
            <url>https://cdn.freecodecamp.org/universal/favicons/favicon.png</url>
            <title>
                <![CDATA[ ethics - freeCodeCamp.org ]]>
            </title>
            <link>https://www.freecodecamp.org/news/</link>
        </image>
        <generator>Eleventy</generator>
        <lastBuildDate>Sat, 30 May 2026 22:26:10 +0000</lastBuildDate>
        <atom:link href="https://www.freecodecamp.org/news/tag/ethics/rss.xml" rel="self" type="application/rss+xml" />
        <ttl>60</ttl>
        
            <item>
                <title>
                    <![CDATA[ Data Science Ethics – What Could Go Wrong and How to Avoid It ]]>
                </title>
                <description>
                    <![CDATA[ Data science models are all around you. They could impact your admission to a school, whether you get hired (or fired), your work schedule, whom you date, whether you get a loan, what ads are shown to you, what social media posts you see, and so on. ... ]]>
                </description>
                <link>https://www.freecodecamp.org/news/the-ethics-of-data-science/</link>
                <guid isPermaLink="false">66b0c4567abc6e46174eea0f</guid>
                
                    <category>
                        <![CDATA[ algorithms ]]>
                    </category>
                
                    <category>
                        <![CDATA[ Data Science ]]>
                    </category>
                
                    <category>
                        <![CDATA[ ethics ]]>
                    </category>
                
                <dc:creator>
                    <![CDATA[ Kylie Ying ]]>
                </dc:creator>
                <pubDate>Thu, 16 Sep 2021 15:17:13 +0000</pubDate>
                <media:content url="https://www.freecodecamp.org/news/content/images/2021/09/data-science-ethics-101.jpeg" medium="image" />
                <content:encoded>
                    <![CDATA[ <p>Data science models are all around you.</p>
<p>They could impact your admission to a school, whether you get hired (or fired), your work schedule, whom you date, whether you get a loan, what ads are shown to you, what social media posts you see, and so on.</p>
<p><img src="https://www.freecodecamp.org/news/content/images/2021/09/Slide3.jpeg" alt="Image" width="600" height="400" loading="lazy"></p>
<p>I have created a talk discussing the ethics behind data science, from data acquisition to modeling and algorithms. </p>
<p>In this course, I discuss what could go wrong from a moral standpoint, what has gone wrong in the past, and what guidelines the computer science community has created to combat unethical conduct.</p>
<p>This content is adapted from <a target="_blank" href="https://github.com/odpi/OpenDS4All/tree/master/opends4all-resources">OpenDS4All</a>. OpenDS4All is a project created to accelerate the creation of data science curricula at academic institutions. </p>
<p>OpenDS4All attempts to provide a combination of lectures, recitation or flipped classroom activities, and hands-on assignments to deliver data science and data engineering education.</p>
<p>Now, let's explore into how ethics plays a role in modern day data acquisition and algorithms. </p>
<p>For a deep dive into the ethics of data science, you can watch the talk here. If you want to briefly learn more about ethics in data science and understand what the talk is about, read on.</p>
<div class="embed-wrapper">
        <iframe width="560" height="315" src="https://www.youtube.com/embed/WU7McTUumxU" style="aspect-ratio: 16 / 9; width: 100%; height: auto;" title="YouTube video player" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen="" loading="lazy"></iframe></div>
<h2 id="heading-why-should-we-care-about-ethics-in-tech">Why Should We Care About Ethics in Tech?</h2>
<p><strong>"With great power comes great responsibility"</strong>. Ah, the Peter Parker principle. Data science has so much influence now over peoples' lives. A good data scientist needs to understand the ethical issues surrounding the data they obtain or use, the algorithms they employ, and its impact on people.</p>
<p>People do the right thing for a few different reasons. Ethics comes into play here. Ethics are rules that we all voluntarily follow because it makes the world a better place for all of us.</p>
<p>However, sometimes it's not clear in the moment what the right thing even is. Sometimes, it's only evident in retrospect. However, these experiences and consequences are what shape our understanding and expectations for the future.</p>
<h2 id="heading-ethics-and-data">Ethics and Data</h2>
<p>Data is constantly being collected about us. Cameras are everywhere. Cell phones report locations. Social media follows our clicks.</p>
<h3 id="heading-informed-consent">Informed Consent</h3>
<p>In human subject research, there is a notion of informed consent. We understand what is being done, we voluntarily consent to the experiment, and we have the right to withdraw consent at any time.</p>
<p>However, this is more vague in "ordinary conduct of business", such as A/B testing. For example, Facebook may perform these tests all the time without explicit consent or even knowledge! </p>
<p>In the video, I discuss a mood manipulation experiment done by Facebook in 2012 and a "Love Is Blind" experiment done by OKCupid in 2015.</p>
<p>Informed consent is often buried in the fine print and many of us do not necessarily read those lengthy terms and conditions. In addition, it is hard to control how data is used in the future and how it is controlled.</p>
<p>Furthermore, big data sets are sometimes very vague about how they are protected. For example, Wikipedia, Yelp, Rotten Tomatoes, a clinical data set, a company's data, your gene sequence...</p>
<h3 id="heading-privacy">Privacy</h3>
<p>There is also a concern over privacy. Privacy is a basic human need. Loss of privacy occurs when there's a loss of control over personal data. In the video, I discuss a 2016 OKCupid controversy where user profile data was released.</p>
<p>In some cases, even when identifiable information is removed from data – like name, phone number, address, and so on – it may not be sufficient to protect individuals' identities. </p>
<p>There have been many cases of de-anonymization, where AOL users are identified based on search history, or peoples' health records are identified based on ZIP code, birth date, and sex.</p>
<p>From these concerns over safety of released data, the concept of "differential privacy" has come into play. Essentially, the goal is to provide as much statistical information as possible while guaranteeing the anonymity of the contributing individual.</p>
<h2 id="heading-ethics-and-algorithms">Ethics and Algorithms</h2>
<p>An algorithm cannot be neutral. An algorithm naturally encodes biases that we feed it. For example, our training data might not represent the entire population. The past population may not represent the future population.</p>
<p><strong>It's possible to get "bad" results from "good" data.</strong></p>
<h3 id="heading-common-algorithm-mishaps">Common Algorithm Mishaps</h3>
<p>There may be correlated attributes that get in the way. In the video, I discuss an example of one time when Staples was attempting to beat their competitors, but ended up offering cheaper deals to wealthier neighborhoods.</p>
<p>In addition, results can sometimes be presented in a misleading fashion. In the example below, we can see how the same data with different y-axes can lead to different conclusions:</p>
<p><img src="https://lh6.googleusercontent.com/rDNiax3IOShWDaOt5qDoKQFEi1UON7sQtoqkIZC63mpyJWTK8T9SskSyXTxSDKVQ2caps-AiYgTNq7hp4ZVF0nRWf65kt_nYIgnGlrX9_7yj2SVrEGkRfubO7Ws3kdD6HCByyTuOQU8=s0" alt="Image" width="605" height="357" loading="lazy"></p>
<p>It's also possible to p-hack to find patterns in data that can be presented as statistically significant. But in reality, you may have just done many statistical tests on many experiments and only reported the ones with significant results. </p>
<p>If you do infinitely many experiments, there is bound to be one that comes back with significant results just by chance.</p>
<h3 id="heading-fat-fairness-accountability-transparency">FAT* – Fairness, Accountability, Transparency</h3>
<p>In the computer science community, one important research area that has emerged is FAT* (Fairness, Accountability, Transparency). This involves determining fair decisions according to our notions of social justice, ethical use of data, and interpretable decisions from machine learning. </p>
<p><a target="_blank" href="https://geomblog.github.io/fairness">Here</a> is a good resource for learning more about this in depth.</p>
<p>Fairness is a trendy topic in theoretical computer science right now. There are two types of discrimination that may occur: discrimination of an individual and discrimination in aggregate outcome. </p>
<p>Discrimination of an individual may occur when an individual from the target group gets treated differently from an otherwise identical individual not from the target group. </p>
<p>Discrimination in aggregate outcome may occur when the percentage success of the target group may differ compared to that of the general population. </p>
<p><a target="_blank" href="https://www.quantamagazine.org/making-algorithms-fair-an-interview-with-cynthia-dwork-20161123">Here</a> is a great resource for further discussion.</p>
<p>In the video, I discuss the controversial role of algorithms in sentencing and parole. These algorithms seem to show racial disparities in favor of white defendants and in opposition to black defendants.</p>
<p><img src="https://lh6.googleusercontent.com/tDiLKliZzV-rDY88tsmW3Cafd97o1oNG2FTHhFIzPgHEfLIzODgcjEp0Nwt8O0y7EeoVB4Mwzdn_5WSlOUUesrDTLrIKASQBFpBBqB5MrtbDD3HEUjYhXUcPfmMetLFf15i0SWQVxCw=s0" alt="Image" width="592" height="293" loading="lazy"></p>
<p>In addition to being fair, we also want our algorithms to be reproducible. In general, "transparency" means full transparency. The entire pipeline of data collection, raw data, and research analyses should be made available, thus contributing to potential reproducibility.</p>
<p>However, sometimes the data cannot be shared, and algorithms may be fairly complex and difficult to understand, especially if they are black box algorithms. </p>
<p>To help with this issue, the "FAIR" principles – findable, accessible, interoperable, reusable – have been proposed. Check out this <a target="_blank" href="https://www.nature.com/articles/sdata201618">article</a> to find out more.</p>
<h2 id="heading-want-to-learn-more">Want to Learn More?</h2>
<p>In summary, codes of conduct for research are fairly well understood. In general, experiments want to obtain informed consent, protect the privacy of subjects, and maintain the confidentiality of data collected while minimizing harm. </p>
<p>Conversely, the concept of what is fair is slightly more subtle. Sometimes it is not necessarily clear what exactly is fair treatment of a group from a quantitative standpoint. </p>
<p>There may be a trade-off between optimizing outcomes and avoiding discrimination against a group. However, the computer science community has been actively setting up guidelines to help protect individuals, data, and models.</p>
<p>Want to learn more? Watch the talk to dive into the nuances of ethics in data science!</p>
<div class="embed-wrapper">
        <iframe width="560" height="315" src="https://www.youtube.com/embed/WU7McTUumxU" style="aspect-ratio: 16 / 9; width: 100%; height: auto;" title="YouTube video player" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen="" loading="lazy"></iframe></div>
<p>Thank you <a target="_blank" href="https://github.com/odpi/OpenDS4All/tree/master/opends4all-resources">OpenDS4All</a>!</p>
 ]]>
                </content:encoded>
            </item>
        
            <item>
                <title>
                    <![CDATA[ Developer Ethics: Is There a Code of Ethics for Programmers? And if So, What Is It? ]]>
                </title>
                <description>
                    <![CDATA[ Developer Ethics Developer Ethics describes the field of ethics when applied to the behavior of software developers. According to The Internet Encyclopedia of Philosophy, the field of ethics (or moral philosophy) involves “systematizing, defending, a... ]]>
                </description>
                <link>https://www.freecodecamp.org/news/developer-ethics/</link>
                <guid isPermaLink="false">66c3491e9972b7c5c7624e2f</guid>
                
                    <category>
                        <![CDATA[ ethics ]]>
                    </category>
                
                    <category>
                        <![CDATA[ toothbrush ]]>
                    </category>
                
                <dc:creator>
                    <![CDATA[ freeCodeCamp ]]>
                </dc:creator>
                <pubDate>Tue, 04 Feb 2020 00:53:00 +0000</pubDate>
                <media:content url="https://cdn-media-2.freecodecamp.org/w1280/5f9c9cd0740569d1a4ca3458.jpg" medium="image" />
                <content:encoded>
                    <![CDATA[ <h2 id="heading-developer-ethics"><strong>Developer Ethics</strong></h2>
<p>Developer Ethics describes the field of ethics when applied to the behavior of software developers.</p>
<p>According to <a target="_blank" href="http://www.iep.utm.edu/ethics/">The Internet Encyclopedia of Philosophy</a>, the field of ethics (or moral philosophy) involves “systematizing, defending, and recommending concepts of right and wrong.”</p>
<p>Over the years, a number of organizations and individuals have attempted to codify developer ethics into a variety of oaths, pledges, and codes of conduct.</p>
<p>Examples include:</p>
<ul>
<li>[<strong>The International Standard for Professional Software Development and Ethical Responsibility</strong>] (<a target="_blank" href="http://seeri.etsu.edu/TheSECode.htm">http://seeri.etsu.edu/TheSECode.htm</a>) by the IEEE-CS/ACM Joint Task Force on Software Engineering Ethics and Professional Practices</li>
<li>[<strong>The Ten Commandments of Computer Ethics</strong>] (<a target="_blank" href="http://computerethicsinstitute.org/publications/tencommandments.html">http://computerethicsinstitute.org/publications/tencommandments.html</a>) by the Computer Ethics Institute</li>
<li>[<strong>The Pledge of the Computing Professional</strong>] (<a target="_blank" href="http://pledge-of-the-computing-professional.org/home-page/the-oath">http://pledge-of-the-computing-professional.org/home-page/the-oath</a>)</li>
<li>[<strong>The Trustworthy Coder’s Pledge</strong>] (<a target="_blank" href="https://medium.com/@BillSourour/the-trustworthy-coders-pledge-aa5ba046c5aa">https://medium.com/@BillSourour/the-trustworthy-coders-pledge-aa5ba046c5aa</a>) by Bill Sourour</li>
<li>[<strong>The Programmer’s Oath</strong>] (<a target="_blank" href="https://www.youtube.com/watch?v=36NgPu9OyRM&amp;list=PLWKjhJtqVAbno-B4RmJHCDO0ZUKC2tpUQ">https://www.youtube.com/watch?v=36NgPu9OyRM&amp;list=PLWKjhJtqVAbno-B4RmJHCDO0ZUKC2tpUQ</a>) by “Uncle Bob” Martin</li>
<li>[<strong>The “Never Again” Pledge</strong>] (<a target="_blank" href="http://neveragain.tech/">http://neveragain.tech</a>)</li>
<li>[<strong>ACM Code of Ethics</strong>] (<a target="_blank" href="http://www.acm.org/about-acm/acm-code-of-ethics-and-professional-conduct">http://www.acm.org/about-acm/acm-code-of-ethics-and-professional-conduct</a>)</li>
</ul>
<p>Common themes appearing throughout these examples include a commitment to honesty, integrity, and fairness.</p>
<p>To date, since most software developers do not belong to – and are not governed by – any official order, guild, association, or society, no single, codified ethical standard has been widely adopted.</p>
<h2 id="heading-developer-ethics-case-studies">Developer Ethics Case Studies</h2>
<p>The Software Engineering Ethics Research Institute of the Department of Computer and Information Sciences at East Tennessee State University published a series of Case Studies to help sensitize practicing software developers and students to the various types of ethical dilemmas they may face. </p>
<p><a target="_blank" href="http://seeri.etsu.edu/TheSECode.htm">The International Standard for Professional Software Development and Ethical Responsibility</a> forms the basis for much of the analysis in each case.</p>
<p>Cases:</p>
<ul>
<li><a target="_blank" href="http://seeri.etsu.edu/SECodeCases/ethicsC/BigBrother.htm"><strong>Big Brother Spyware</strong></a> – Raises the issues of the tension between privacy, security, and whistle blowing in a post 11 September environment.</li>
<li><a target="_blank" href="http://seeri.etsu.edu/SECodeCases/ethicsC/Computerized%20Patient%20Records.htm"><strong>Computerized Patient Records</strong></a> – The case uses patient records to examine the developer’s responsibility for information security. It evaluates a series of alternatives.</li>
<li><a target="_blank" href="http://seeri.etsu.edu/SECodeCases/ethicsC/DeathByWire.htm"><strong>Death By Wire</strong></a> – The case address issues that arise from the shift of control from mechanically based systems to purely electronic/computer systems. It explores a situation where this process has been extended to heavy vehicles. It also looks at what happens when control of safety critical equipments is turned over to a computer.</li>
<li><a target="_blank" href="http://seeri.etsu.edu/SECodeCases/ethicsC/DigitalWallets.htm"><strong>Digital Wallets and Whistle Blowing</strong></a> – This is based on a real case involving security and includes an analysis of the decision related to when and how to whistle blow.</li>
<li><a target="_blank" href="http://seeri.etsu.edu/SECodeCases/ethicsC/ForGirlsOnly.htm"><strong>For Girls Only</strong></a> – This case looks at a real case of gender bias in the development of software.</li>
<li><a target="_blank" href="http://seeri.etsu.edu/SECodeCases/ethicsC/NanoTechnology.htm"><strong>Nano-Technology: Swallow That Chip</strong></a> – This case uses the vehicle of nano-technology to explore ways to address privacy and security issues that face software developers…</li>
<li><a target="_blank" href="http://seeri.etsu.edu/SECodeCases/ethicsC/PatriotMissile.htm"><strong>Patriot Missile Case</strong></a> – This piece examines the importance of configuration management and effective design as they relate to the Patriot Missile Disaster.</li>
<li><a target="_blank" href="http://users.csc.calpoly.edu/~jdalbey/SWE/Papers/THERAC25.html"><strong>Therac-25</strong></a> – This case highlights the danger of software-based controls on life-threatening systems.</li>
</ul>
<h2 id="heading-ethical-breaches"><strong>Ethical Breaches</strong></h2>
<p>There have been a number of well publicized cases in which software was used to deceive users or even break the law. At the heart of these cases is a breach of ethics on the part of one or more developers. Such cases include:</p>
<ul>
<li><a target="_blank" href="http://www.businessinsider.com/uber-greyball-app-vtos-authorities-2017-3?op=1"><strong>Uber Greyball</strong></a> – a tool created by ride-sharing company Uber that collected data from Uber’s app to identify and evade officials in multiple cities.</li>
<li><a target="_blank" href="https://en.wikipedia.org/wiki/Volkswagen_emissions_scandal"><strong>Volkswagon Emission Scandal</strong></a> – Volkswagen intentionally programmed turbocharged direct injection (TDI) diesel engines to activate some emissions controls only during laboratory emissions testing. The programming caused the vehicles’ nitrogen oxide output to meet US standards during regulatory testing but emit up to 40 times more nitrogen oxide in real-world driving.</li>
<li><a target="_blank" href="http://www.techwire.net/news/zenefits-fined-7-million-for-california-insurance-violations.html"><strong>Zenefits Insurance Violations</strong></a> – Former Zenefits CEO, Parker Conrad, crafted a browser extension that allowed its brokers to fake that they had completed a required 52-hour online training course that insurance agents must take to become licensed in California.</li>
</ul>
<h4 id="heading-more-information"><strong>More Information</strong></h4>
<p>Additional information is available through the <a target="_blank" href="http://seeri.etsu.edu/">Software Engineering Ethics Research Institute</a></p>
<h2 id="heading-more-information-on-developer-ethics"><strong>More Information on Developer Ethics:</strong></h2>
<ul>
<li>[Computer and Information Ethics] (<a target="_blank" href="https://plato.stanford.edu/archives/win2014/entries/ethics-computer/">https://plato.stanford.edu/archives/win2014/entries/ethics-computer/</a>) entry in the Stanford Encyclopedia of Philosophy.</li>
<li>[Computer Ethics] (<a target="_blank" href="https://en.wikipedia.org/wiki/Computer_ethics">https://en.wikipedia.org/wiki/Computer_ethics</a>) entry in WikiPedia</li>
<li>[CSE 302 - Professional Ethics for Computer Science] (<a target="_blank" href="http://www3.cs.stonybrook.edu/~mueller/teaching/cse302/">http://www3.cs.stonybrook.edu/~mueller/teaching/cse302/</a>) – outline and study materials for a course given in the Computer Science department at Stony Brook University’s College of Engineering and Applied Sciences.</li>
<li>[A Very Short History of Computer Ethics] (<a target="_blank" href="https://web.archive.org/web/20080418122849/http://www.southernct.edu/organizations/rccs/resources/research/introduction/bynum_shrt_hist.html">https://web.archive.org/web/20080418122849/http://www.southernct.edu/organizations/rccs/resources/research/introduction/bynumshrthist.html</a>) – article from the Summer 2000 issue of the American Philosophical Association’s Newsletter on Philosophy and Computing</li>
</ul>
 ]]>
                </content:encoded>
            </item>
        
    </channel>
</rss>
