<?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 Jenny Core-Holt on Medium]]></title>
        <description><![CDATA[Stories by Jenny Core-Holt on Medium]]></description>
        <link>https://medium.com/@jennycoreholt?source=rss-24e002f16df7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*B-v5gH65XE6Aph4dkMzlOw@2x.jpeg</url>
            <title>Stories by Jenny Core-Holt on Medium</title>
            <link>https://medium.com/@jennycoreholt?source=rss-24e002f16df7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 08:20:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jennycoreholt/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[Understanding Normal Distribution for Data Analysis: Empirical Rule vs Z-Scores]]></title>
            <link>https://medium.com/@jennycoreholt/understanding-normal-distribution-for-data-analysis-empirical-rule-vs-z-scores-59410c5dd4ea?source=rss-24e002f16df7------2</link>
            <guid isPermaLink="false">https://medium.com/p/59410c5dd4ea</guid>
            <category><![CDATA[empirical-rule]]></category>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[normal-distribution]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[z-score]]></category>
            <dc:creator><![CDATA[Jenny Core-Holt]]></dc:creator>
            <pubDate>Sat, 25 Oct 2025 14:48:40 GMT</pubDate>
            <atom:updated>2025-10-25T14:48:40.524Z</atom:updated>
            <content:encoded><![CDATA[<h4>Today’s Data Analyst studies lead to deepening my understanding of how to measure and interpret variation. I’ve explored how the <strong>normal distribution</strong>, the <strong>empirical rule</strong>, and the <strong>z-score</strong> help make sense of this variation in data.</h4><h3>Normal Distribution Visualisation</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/591/1*CF4jrZy1stpbXZI2WffZ-A.png" /></figure><p>Here’s your <strong>normal distribution visualisation</strong>, showing:</p><ul><li>The <strong>Empirical Rule</strong> regions (±1, ±2, ±3 standard deviations).</li><li>An example <strong>Z-score</strong> (1.3 SD above the mean, at 184 cm).</li></ul><p>This plot effectively demonstrates how both concepts work together:</p><ul><li>The shaded bands represent the <strong>Empirical Rule</strong> (approx. 68%, 95%, 99.7% of data).</li><li>The red dashed line shows a <strong>specific Z-score</strong>, linking an individual value to its position in the distribution.</li></ul><p>Now we know what the a normal distribution looks like, let’s jump into the concepts of variation, the empirical rule and z-score.</p><h3>Step 1: The Importance of Mean and Variability.</h3><p>Every dataset has a <strong>mean</strong> (the average), the central point, and a <strong>spread</strong> (how far values tend to deviate from that mean).</p><p>For example, if you’re analysing a weight-loss program:</p><ul><li>Some people may lose 2 kg, others 10 kg, and some may gain weight.</li><li>The <strong>mean</strong> tells you the average change.</li><li>The <strong>standard deviation</strong> tells you how much variation exists among participants.</li></ul><p>If the variation is large, your results are less reliable , meaning something in your process might need attention.</p><h3>Step 2: Measuring Variation . The Standard Deviation.</h3><p><strong>Standard deviation (SD)</strong> measures how far data points are from the mean, on average.</p><p>Here’s how it works conceptually:</p><ol><li>Calculate how far each value is from the mean (that’s the <em>deviation</em>).<br> Example: someone’s height = 178 cm, mean height = 174 cm → deviation = +4 cm</li><li>Square those deviations (to make them all positive).</li><li>Find the average of those squared deviations → that’s your <strong>variance</strong>.</li><li>Take the square root of the variance → that’s your <strong>standard deviation</strong>.</li></ol><p><strong>Example:</strong></p><ul><li>Mean = 174 cm</li><li>SD = 7.7 cm<br> This means most people’s heights are roughly within ±7.7 cm of the average.</li></ul><h3>Step 3: The Empirical Rule (the 68–95–99.7 Rule)</h3><p>For any dataset that follows a <strong>normal distribution (bell curve)</strong>:</p><ul><li><strong>68 %</strong> of values fall within <strong>1 SD</strong> of the mean</li><li><strong>95 %</strong> within <strong>2 SD</strong></li><li><strong>99.7 %</strong> within <strong>3 SD</strong></li></ul><p><strong>Example:</strong></p><p>If mean = 174 cm and SD = 7.7 cm:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/809/1*UJBr0UGUb9CnVh3Rw3jEUg.png" /></figure><p>This rule gives you a <strong>quick, intuitive</strong> sense of where most data points lie.<br> It’s great for rough estimates or for visually interpreting a bell curve.</p><h3>Step 4: Z-Scores. Standardising for Precision.</h3><p>Sometimes, “rough estimates” aren’t enough. You might want to know <em>exactly</em> how rare or likely a particular value is , for example:</p><blockquote>What’s the probability that a randomly chosen person is <strong>184 cm tall</strong>?</blockquote><p>We use a <strong>z-score</strong> to standardise the data and compare it to the <strong>standard normal distribution</strong> (a normal curve with mean = 0 and SD = 1).</p><p><strong>Formula:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/169/1*WFtvEOPQ_0ihUYSR__oz5g.png" /></figure><p>where</p><ul><li>x = the value,</li><li>μ = the mean,</li><li>σ = the standard deviation.</li></ul><p><strong>Example:</strong></p><p>Mean = 174 cm, SD = 7.7 cm, Value = 184 cm</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/223/1*vj72RYc4HucH5xYQ28noCQ.png" /></figure><p>A z-score of 1.3 means the person’s height is <strong>1.3 standard deviations above the mean</strong>.</p><h3>Step 5: Using the Z-Table for Probability</h3><p>Once you have a z-score, you can look it up in a <strong>z-table</strong>, which shows the probability (area) under the curve up to that value.</p><p>For example:</p><ul><li>z=1.3z = 1.3z=1.3 → probability = 0.9032<br> So, about <strong>90.3 % of people are shorter</strong> than 184 cm.</li></ul><p>If you want to find the probability between two values (e.g. 180 cm — 189 cm), calculate two z-scores and subtract:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/458/1*_vpvktdTv2xozFllbrg2TA.png" /></figure><p>That’s an <strong>18.9 % chance</strong>.</p><h3>When to Use the Empirical Rule vs Z-Scores</h3><p>Use the Empirical Rule, when you want a quick estimate of how much data lies within 1–3 SD of the mean. The Empirical Rule is fast, intuitive shortcut, with no calculations or tables needed. Ideal for simple descriptive insights.</p><p>Use the Z-Score when you need precise probabilities or are comparing multiple datasets. The Z-Score standardises data, letting you find exact probabilities and compare values across different scales or units.</p><p><strong>Example:</strong></p><ul><li>If you just want to say, “<em>Most people’s height is within 8 cm of the mean”</em> → <strong>Empirical Rule</strong>.</li><li>If you want to know, “<em>What’s the probability that someone is taller than 185 cm?</em>” → <strong>Z-Score + Z-Table</strong>.</li></ul><h3>To Sum up:</h3><ul><li><strong>Normal distribution</strong> helps describe how data is spread around the mean.</li><li><strong>Standard deviation</strong> measures that spread.</li><li><strong>Empirical Rule</strong> gives an easy way to approximate where most data lies.</li><li><strong>Z-scores</strong> and <strong>z-tables</strong> let you calculate precise probabilities.</li></ul><p>For data analysts, these tools are important for <strong>understanding variability, outliers, and probabilities</strong> in datasets.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=59410c5dd4ea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SQL Joins Made Simple]]></title>
            <link>https://medium.com/@jennycoreholt/sql-joins-made-simple-fcdebf11e7b2?source=rss-24e002f16df7------2</link>
            <guid isPermaLink="false">https://medium.com/p/fcdebf11e7b2</guid>
            <category><![CDATA[sql-joins]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[mysql]]></category>
            <dc:creator><![CDATA[Jenny Core-Holt]]></dc:creator>
            <pubDate>Sun, 21 Sep 2025 13:04:40 GMT</pubDate>
            <atom:updated>2025-09-21T13:04:40.529Z</atom:updated>
            <content:encoded><![CDATA[<h4>This week, I have been learning the SQL basics, including <strong>combining tables together with JOIN</strong>. Since large volumes of repetitive data is rarely stored in one single table, as it is divided into areas such as customer information, transactions and product details etc. SQL JOIN comes in to<strong> </strong>pull together related information into one view so you can answer real-world business questions.</h4><p>In my course notes, I’ll break down the most important join types with examples, plus a few tips for when things get messy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*26ZRJHzj1smI3V5Oi2CriA.png" /></figure><h3>1. INNER JOIN</h3><p><strong>Definition:</strong> Returns only the records that exist in both tables. If there’s no match, the record is excluded.</p><p>Think of it as: <em>“Give me the overlap only.”</em></p><p><strong>Example business question:</strong><br><em> “Which customers have actually rented a film?”</em></p><pre>SELECT <br>    r.rental_id,<br>    c.first_name,<br>    c.last_name<br>FROM rental r<br>INNER JOIN customer c <br>    ON r.customer_id = c.customer_id;</pre><p>Here, only customers who appear in both the rental and customer tables are included. If a customer has never rented, they won’t show up.</p><h3>2. LEFT JOIN</h3><p><strong>Definition:</strong> Returns all records from the left table, plus matches from the right table (if they exist). If there’s no match, you’ll still keep the left-side record, with NULL for the missing details.</p><p>Think of it as: <em>“Keep everything on the left, bring what you can from the right.”</em></p><p><strong>This is a commonly used method for Analysts</strong> because you don’t lose rows from your main table.</p><p><strong>Example business question:</strong><br><em>“List all rentals, even if we don’t have the customer details.”</em></p><pre>SELECT <br>    r.rental_id,<br>    c.first_name,<br>    c.last_name<br>FROM rental r<br>LEFT JOIN customer c <br>    ON r.customer_id = c.customer_id;</pre><p>If a rental somehow doesn’t link to a customer, it will still appear, but customer details will be NULL.</p><h3>3. RIGHT JOIN</h3><p><strong>Definition:</strong> The opposite of a LEFT JOIN. Returns all records from the right table and only the matches from the left table.</p><p><strong>Why it’s rarely used:</strong> Most analysts prefer to control the “main table” themselves, so they usually rewrite RIGHT JOINs as LEFT JOINs by flipping table order.</p><p><strong>Example:</strong><br><em>“Show all customers, even if they’ve never made a rental.”</em></p><pre>SELECT <br>    r.rental_id,<br>    c.first_name,<br>    c.last_name<br>FROM rental r<br>RIGHT JOIN customer c <br>    ON r.customer_id = c.customer_id;</pre><h3>4. FULL OUTER JOIN</h3><p><strong>Definition:</strong> Returns all records from both tables, regardless of whether there’s a match. Non-matching values will be filled with NULL.</p><p>Think of it as: <em>“Show me everything, even if it doesn’t line up.”</em></p><p><strong>Example business question:</strong><br><em>“Compare our list of rentals to our list of customers and show everything, including customers without rentals and rentals without customers.”</em></p><pre>SELECT <br>    r.rental_id,<br>    c.first_name,<br>    c.last_name<br>FROM rental r<br>FULL OUTER JOIN customer c <br>    ON r.customer_id = c.customer_id;</pre><p>⚠️ Note: Some databases (like MySQL) don’t support FULL OUTER JOIN directly — you’d need to simulate it with a UNION of LEFT JOIN and RIGHT JOIN.</p><h3>5. UNION and UNION ALL</h3><p><strong>Definition:</strong> Combines the results of two queries into one list.</p><ul><li>UNION → removes duplicates</li><li>UNION ALL → keeps everything, even duplicates</li></ul><p><strong>Key requirements:</strong></p><ul><li>Both queries must select the same number of columns</li><li>Columns must be in the same order</li><li>Columns must have compatible data types</li></ul><p><strong>Example business question:</strong><br><em>“Get a single list of all current and past customers.”</em></p><pre>SELECT first_name, last_name FROM current_customers<br>UNION<br>SELECT first_name, last_name FROM past_customers;</pre><h3>6. Bridging Unrelated Tables</h3><p>Sometimes, two tables don’t have a direct key in common.</p><p><strong>Pro tip:</strong> If you can’t figure out how to join two tables, map out the tables they <em>do</em> connect to. Often, there’s a “bridge” table in between.</p><p><strong>Example:</strong></p><ul><li>customer connects to rental via customer_id</li><li>rental connects to inventory via inventory_id</li><li>inventory connects to film via film_id</li></ul><p>So if you want customer details and film titles, you’ll need to <strong>bridge through rental and inventory</strong>.</p><h3>To Sum up:</h3><ul><li>Use <strong>INNER JOIN</strong> for overlaps</li><li>Use <strong>LEFT JOIN</strong> when you want to keep everything from your main table</li><li>Avoid <strong>RIGHT JOIN</strong> unless you really need it</li><li>Use <strong>FULL OUTER JOIN</strong> to see <em>everything</em></li><li>Use <strong>UNION</strong> to stack tables</li><li>And don’t forget: sometimes you’ll need a <strong>bridge table</strong> to make the connection</li></ul><p>Mastering joins means unlocking the ability to answer complex questions across multiple datasets. That’s where the real insights live.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fcdebf11e7b2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SQL Basics: Table Normalisation and Relationships Explained]]></title>
            <link>https://medium.com/@jennycoreholt/sql-basics-table-normalisation-and-relationships-explained-88eeea6e2046?source=rss-24e002f16df7------2</link>
            <guid isPermaLink="false">https://medium.com/p/88eeea6e2046</guid>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[sql-table]]></category>
            <dc:creator><![CDATA[Jenny Core-Holt]]></dc:creator>
            <pubDate>Wed, 17 Sep 2025 16:22:43 GMT</pubDate>
            <atom:updated>2025-09-17T16:33:53.988Z</atom:updated>
            <content:encoded><![CDATA[<h4>When I first started learning SQL, I came across terms like <strong>normalisation</strong>, <strong>primary keys</strong>, <strong>foreign keys</strong>, and <strong>relationships</strong>. At first, they felt a little abstract but these are the foundations of how databases are designed and why SQL works the way it does.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*40qMDE2FGF0uQiZ26VUSMA.jpeg" /><figcaption><a href="https://www.freepik.com/free-vector/web-design-content-creating-landing-page-website-homepage-creating-design-element-female-graphics-designer-developer-flat-character-concept-illustration_11667187.htm#fromView=search&amp;page=1&amp;position=16&amp;uuid=39df3ffc-aaa2-47a5-be31-a2dfa4fc81f0&amp;query=excel+tables">Image by vectorjuice on Freepik</a></figcaption></figure><h3>What is Table Normalisation?</h3><p>Imagine you’re building a database for job applications. You might be tempted to put everything in one giant table: candidate names, job titles, companies, skills, contact info, and so on.</p><p>But that creates a problem: <strong>repetition</strong>. Every time “Microsoft” appears as a company, you store all the details again. Also, if a candidate applies for multiple jobs, their name and contact info repeat, too.</p><p>This is messy and inefficient. <strong>Normalisation solves this.</strong></p><p>Normalisation is the process of <strong>breaking one large, redundant table into multiple smaller, related tables</strong>.</p><p>For example:</p><ul><li>A <strong>Candidates</strong> table stores each person only once.</li><li>A <strong>Companies</strong> table stores each company only once.</li><li>A <strong>Jobs</strong> table stores job postings.</li></ul><p>These tables are then linked using unique IDs instead of repeating information.</p><p>The result: cleaner, smaller tables that are easier to manage and update.</p><h3>Keys in Tables</h3><p>To make these relationships work, we need <strong>keys</strong>.</p><ul><li><strong>Primary Key (PK):</strong> A unique identifier for each row.<br>Example: customer_id = 123 → only one record has this ID.<br>Rule: It <strong>cannot repeat</strong> and it cannot be empty.</li><li><strong>Foreign Key (FK):</strong> A reference to a primary key in another table.<br>Example: In the Orders table, customer_id links to the Customers table.<br>Rule: It <strong>can repeat</strong> (because many orders can belong to one customer).</li></ul><h3>Table Relationships &amp; Cardinality</h3><p><strong>Cardinality</strong> describes how tables relate to each other. There are three main types:</p><p><strong>1.One-to-One (1:1)</strong></p><p>Each row in Table A relates to only one row in Table B.<br>Example: A passport belongs to exactly one person.</p><p><strong>2. One-to-Many (1:N)</strong></p><p>One row in Table A can link to many rows in Table B.<br>Example: A customer can have many orders.<br>Achieved by connecting a <strong>foreign key in one table</strong> to a <strong>primary key in another</strong>.</p><p><strong>3.Many-to-Many (M:N)</strong></p><p>Many rows in Table A can relate to many rows in Table B.<br>Example: Students and courses (a student can take many courses, a course can have many students).<br>Usually handled with a <strong>junction table</strong> (e.g. enrolments).</p><h3>Relationship Diagrams</h3><p>To see how these tables connect, we use <strong>Entity Relationship Diagrams (ERDs)</strong>.</p><p>For example:</p><ul><li>The customer_id is a <strong>primary key</strong> in the Customers table.</li><li>That same customer_id becomes a <strong>foreign key</strong> in the Orders table.</li></ul><p>Diagramming these relationships (for example, in MySQL Workbench) makes it easier to understand your database structure and ensures your queries will run smoothly.</p><h3>Why Relationships Matter</h3><p>Once you’ve normalised tables and set up relationships, you can do <strong>multi-table queries</strong> with SQL <strong>JOINs</strong>.</p><p>For example:</p><pre>SELECT <br>  customers.customer_id<br>FROM customers<br>  JOIN orders<br>    ON customers.customer_id = orders.customer_id;</pre><p>This pulls together customer info and their orders, even though the data lives in two different tables.</p><p>That’s the purpose of relational databases: you don’t need to cram everything into one table. Instead, you store data once, link it properly, and let SQL stitch it together whenever you need it.</p><h3>Key Takeaways</h3><ul><li><strong>Normalisation</strong>: Break one big table into smaller, related tables to avoid repetition.</li><li><strong>Primary keys</strong>: Unique identifiers in each table.</li><li><strong>Foreign keys</strong>: References to primary keys in other tables.</li><li><strong>Relationships</strong>: Define how tables connect (one-to-one, one-to-many, many-to-many).</li><li><strong>ERDs</strong>: Visual maps of your table structure.</li><li><strong>JOINs</strong>: Allow you to query across multiple related tables.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=88eeea6e2046" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An Introduction to SQL for Data Analysis]]></title>
            <link>https://medium.com/@jennycoreholt/an-introduction-to-sql-for-data-analysis-33a64e3646be?source=rss-24e002f16df7------2</link>
            <guid isPermaLink="false">https://medium.com/p/33a64e3646be</guid>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[sql]]></category>
            <dc:creator><![CDATA[Jenny Core-Holt]]></dc:creator>
            <pubDate>Sat, 06 Sep 2025 14:53:07 GMT</pubDate>
            <atom:updated>2025-09-06T14:53:07.409Z</atom:updated>
            <content:encoded><![CDATA[<h4>My next venture for learning data analysis, is introducing myself to <strong>SQL (Structured Query Language)</strong>. This is the language designed to talk to databases. Helping you <strong>retrieve, filter, and organise data</strong>.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gDBZhaG7-Rt4TnbMXswduQ.jpeg" /><figcaption><a href="https://www.freepik.com/free-vector/hand-drawn-flat-design-sql-illustration_22112356.htm#fromView=search&amp;page=1&amp;position=17&amp;uuid=3fa44d48-0d28-492b-9f9e-31915aa7ae80&amp;query=SQL">Image by freepik</a></figcaption></figure><h3>A Little Background on SQL</h3><ul><li>SQL was created in the 1970s at IBM to work with relational databases (RDBMS).</li><li>It became a <strong>universal standard</strong> maintained by the International Organisation for Standardisation (ISO) and the American National Standards Institute (ANSI). Updates are published every 3–5 years.</li><li>Vendors like <strong>MySQL, PostgreSQL, SQLite, and Microsoft SQL Server</strong> all follow this standard, but often add their own extra features. That’s why SQL can look slightly different depending on which variation you use.</li></ul><h3>The Big 6 Elements of SQL</h3><p>Every SQL query follows a similar structure. At its simplest, you <strong>select</strong> columns from a <strong>table</strong>.</p><p>Here are the <strong>6 key building blocks</strong>, which need to follow this specific order:</p><ol><li><strong>SELECT</strong> → Which columns do you want to see?</li></ol><pre>SELECT column_name</pre><p><strong>2. FROM</strong> → Which table is the data stored in?</p><pre>FROM table_name</pre><p><strong>3. WHERE</strong> → (Optional) Filter rows based on conditions.</p><pre>WHERE column_name = &#39;value&#39;</pre><p><strong>4. GROUP BY</strong> → (Optional) Group rows by a column. Often used with aggregate functions.</p><pre>GROUP BY column_name</pre><p><strong>5. HAVING</strong> → (Optional) Filter groups (after grouping).</p><pre>HAVING COUNT(*) &gt; 5</pre><p><strong>6. ORDER BY</strong> → (Optional) Sort the results.</p><pre>ORDER BY column_name DESC</pre><p><strong>Note:</strong> Every query requires at least SELECT and FROM.</p><h3>Filtering Data with WHERE and LIKE</h3><p>The WHERE clause is your filter — it always comes <strong>after </strong>FROM but before GROUP BY, HAVING, or ORDER BY.</p><p>Sometimes you want exact matches, other times you want patterns. That’s where LIKE and <strong>wildcards</strong> come in:</p><ul><li>column = &#39;value&#39; → Exact match.</li><li>column LIKE &#39;pattern%&#39; → Starts with <em>pattern</em>.</li><li>column LIKE &#39;%pattern&#39; → Ends with <em>pattern</em>.</li><li>column LIKE &#39;%pattern%&#39; → Contains <em>pattern</em> anywhere.</li><li>column LIKE &#39;pattern_&#39; → Matches pattern followed by exactly 1 character.</li><li>column LIKE &#39;_pattern&#39; → Exactly 1 character before the pattern.</li><li>column LIKE &#39;_pattern_&#39; → Exactly 1 character before and after the pattern.</li></ul><h3>Aggregating with GROUP BY</h3><p>When you want summaries (like counts or averages), you’ll need <strong>aggregate functions</strong>.</p><p>Here are the most common ones:</p><ul><li>COUNT() → Count rows</li><li>COUNT(DISTINCT col) → Count unique values</li><li>MIN() → Smallest value</li><li>MAX() → Largest value</li><li>AVG() → Average value</li><li>SUM() → Adds up values (treats NULL as zero)</li></ul><p><strong>Important:</strong> Aggregate functions <strong>skip NULL values</strong>.</p><p><strong>Example:</strong> Count jobs per sector</p><pre>SELECT<br>    sector,<br>    COUNT(job_id) AS total_jobs<br>FROM job_postings<br>GROUP BY sector;</pre><p>This will return one row per sector with the total number of jobs.</p><h3>HAVING vs WHERE</h3><p>Use the HAVING clause (optional clause) when filtering withGROUP BY. Otherwise, use the WHERE clause.</p><p>Example of a HAVING clause:</p><pre>SELECT<br>    sector,<br>    COUNT(job_id) AS total_jobs<br>FROM job_postings<br>GROUP BY sector<br>HAVING COUNT(job_id) &gt; 50;</pre><p>This query only shows sectors that have more than 50 job postings.</p><h3>Wrapping Up</h3><p>SQL might look intimidating at first, but remember: every query boils down to selecting the right columns, from the right tables, with the right filters.</p><p>If you can master the <strong>big 6 elements</strong> : SELECT, FROM, WHERE, GROUP BY, HAVING, and ORDER BY; then you already have the foundation for most data analysis tasks.</p><p>Next , I will be delving into <strong>joins</strong> , so I can combine data across multiple tables.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=33a64e3646be" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Regression Analysis for Beginners: Finding Relationships in Data]]></title>
            <link>https://medium.com/@jennycoreholt/regression-analysis-for-beginners-finding-relationships-in-data-a2d20a07777a?source=rss-24e002f16df7------2</link>
            <guid isPermaLink="false">https://medium.com/p/a2d20a07777a</guid>
            <category><![CDATA[data-visualization]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[linear-regression]]></category>
            <dc:creator><![CDATA[Jenny Core-Holt]]></dc:creator>
            <pubDate>Sun, 10 Aug 2025 06:01:45 GMT</pubDate>
            <atom:updated>2025-08-10T06:01:45.304Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GwqEtG_uRz9TDSt1G4eyzA.png" /></figure><h3>What Is Regression Analysis?</h3><p><strong>Regression analysis</strong> is a statistical method used to <strong>understand the relationship</strong> between:</p><ul><li><strong>One dependent variable</strong> (also called the <strong>outcome</strong>, the thing you’re trying to predict)</li><li>And <strong>one or more independent variables</strong> (also called <strong>predictors</strong>, the things that might influence the outcome)</li></ul><p>In even simpler terms:</p><p>Regression helps you answer: <em>“If X changes, what happens to Y?”</em></p><h3>Types of Regression (Beginner Edition)</h3><p>There are many types of regression models, but here are three commonly used ones in real-world data analysis:</p><h4>1. Linear Regression (Most Popular)</h4><p><strong>Goal:</strong> Draw a straight line that best fits the data points on a scatter plot.</p><p>It finds the mathematical equation of a line (e.g. y = mx + b) that <strong>minimises the distance</strong> between the line and all the actual data points. This line is also called the <strong>regression line</strong>.</p><p><strong>Benefits:</strong></p><ul><li>Easy to interpret</li><li>Great starting point</li><li>Works well for simple trends</li></ul><p>You can use this line to make <strong>predictions</strong>, like:<br> “If I spend $100 more on ads, I’ll likely make $400 more in sales.”</p><h4>2. Polynomial Regression</h4><p><strong>Goal:</strong> Fit a curved line to the data.</p><p>Sometimes relationships aren’t straight, they curve. For example:</p><ul><li>Sales might rise with more marketing <strong>up to a point</strong>, and then drop (too much spam turns people off).</li></ul><p>Polynomial regression lets the model <strong>bend and fit</strong> more complex trends using <strong>powers of X</strong> (like x², x³, etc.)</p><p>Best for:</p><ul><li>Patterns that increase and then decrease</li><li>Data that doesn’t follow a straight path</li></ul><h4>3. Decision Tree Regression</h4><p><strong>Goal:</strong> Split the data into segments (like a flowchart) to make predictions.</p><p>Instead of fitting a line, it splits data into <strong>decision rules</strong>, like:</p><ul><li>“If ad spend &lt; $1000 → average sales = $5000”</li><li>“If ad spend &gt; $1000 → average sales = $8000”</li></ul><p>These models are very flexible and often used in <strong>machine learning</strong>.</p><p>Best for:</p><ul><li>Non-linear relationships</li><li>Complex, rule-based patterns</li></ul><h3>The Power of the Regression Equation</h3><p>A key strength of regression analysis is that it gives you <strong>a clear equation</strong>.</p><p>This lets you:</p><ul><li>Make predictions</li><li>Understand the effect of each variable</li><li>Quantify change (e.g. “every $1 in ads increases sales by $3.75”)</li></ul><p>This <strong>specificity</strong> is a major benefit — it’s not just about drawing lines, it’s about <strong>measuring real impact</strong>.</p><h3>Final Thought</h3><p>Regression analysis is more than just math. It’s a way to <strong>turn raw data into smart decisions</strong>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a2d20a07777a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What Is R² in Regression Analysis?]]></title>
            <link>https://medium.com/@jennycoreholt/what-is-r%C2%B2-in-regression-analysis-78da712d6335?source=rss-24e002f16df7------2</link>
            <guid isPermaLink="false">https://medium.com/p/78da712d6335</guid>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[business-analysis]]></category>
            <category><![CDATA[regression-analysis]]></category>
            <dc:creator><![CDATA[Jenny Core-Holt]]></dc:creator>
            <pubDate>Sat, 09 Aug 2025 07:01:48 GMT</pubDate>
            <atom:updated>2025-08-09T07:01:48.802Z</atom:updated>
            <content:encoded><![CDATA[<h4>Continuing on my Data Analyst journey, has led me to the different ways we visualise data. Today, the focus has been with Scatter Plots and Regression Plots. This inevitably brought up questions of: “what is R squared?”, “what does this value even mean?” and “how do we use it?”</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PF00QffmMQUJJdLPqrT4NA.jpeg" /></figure><h3>What is R² in simple terms?</h3><p>R² (R-squared) tells you: <br>How well your regression line fits the data.</p><p>Or more simply:<br>How much of the change in your outcome (Y) can be explained by your input (X).</p><h3>What Do R² Values Mean?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/794/1*SdAhxyXWODSAF7RLX8SIxg.png" /></figure><p><strong>Higher R² is not always better</strong>. It can be <strong>misleading</strong> if:</p><ul><li>You overfit your model (fit noise, not pattern)</li><li>You’re missing key variables</li><li>You interpret correlation as causation</li></ul><h3>Why Do We Use R² in Business Analysis?</h3><h4>To Measure Predictive Power</h4><ul><li>Is our model good at <strong>predicting outcomes</strong>?</li><li>If yes, we can use it for <strong>forecasting</strong>, <strong>budgeting</strong>, or <strong>strategy</strong>.</li></ul><h4>To Justify Decisions</h4><ul><li>“We found that <strong>75% of sales variation</strong> is linked to website traffic, so investing in SEO makes sense.”</li></ul><h4>To Compare Models</h4><ul><li>You can compare R² values of different models to see which <strong>explains the outcome better</strong>.</li></ul><h3>How Do We Use R² Practically?</h3><pre>## with Python and scikit-learn! <br><br>from sklearn.linear_model import LinearRegression<br>from sklearn.metrics import r2_score<br><br># Example data<br>X = df[[&#39;ad_spend&#39;]]  # Predictor<br>y = df[&#39;sales&#39;]       # Outcome<br><br># Fit model<br>model = LinearRegression().fit(X, y)<br><br># Predict and calculate R²<br>y_pred = model.predict(X)<br>r_squared = r2_score(y, y_pred)</pre><h3>The Takeaway</h3><p>Simply put, R² scores how useful your model is. It isn’t perfect but is a great way to support data-driven decisions in business.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=78da712d6335" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Histograms and their Bin Sizes: A Beginner’s Guide for Data Analysts]]></title>
            <link>https://medium.com/@jennycoreholt/histograms-and-bin-their-sizes-a-beginners-guide-for-data-analysts-91d9b0c7ec01?source=rss-24e002f16df7------2</link>
            <guid isPermaLink="false">https://medium.com/p/91d9b0c7ec01</guid>
            <category><![CDATA[python]]></category>
            <category><![CDATA[histograms]]></category>
            <category><![CDATA[data-analysis]]></category>
            <dc:creator><![CDATA[Jenny Core-Holt]]></dc:creator>
            <pubDate>Fri, 08 Aug 2025 08:37:52 GMT</pubDate>
            <atom:updated>2025-08-08T14:37:56.077Z</atom:updated>
            <content:encoded><![CDATA[<h4>As an aspiring data analyst, I’m delving deeper into <strong>histograms</strong> as a way for exploring and visualising data distributions. I’ve learnt the way you choose your histogram’s bin size can completely change the story your data tells.</h4><p>In this article, we’ll walk through:</p><ul><li>What a histogram is (and how it’s different from a bar chart).</li><li>Why bin size matters.</li><li>Three simple rules for choosing bin sizes: <strong>Scott’s Rule</strong>, <strong>Sturges’ Rule</strong>, and <strong>Doane’s Rule </strong>(which, however, are not often used in practice).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*7E6RmmEfCSxe9XcCUu6kLQ.jpeg" /></figure><h3>What Is a Histogram?</h3><p>A <strong>histogram</strong> is a type of chart that shows the <strong>distribution</strong> of numerical data. It splits data into <strong>intervals</strong> (called <strong>bins</strong>) and counts how many values fall into each.</p><p>Think of it as sorting your data into “buckets” and then seeing how full each bucket is.</p><h4>Histogram Vs Bar Chart</h4><p>Histograms look very similar to bar charts, but what is the key difference?</p><p><strong>Histograms:</strong></p><ul><li>Histograms show intervals of data, such as age ranges or year ranges.</li><li>Histogram bars touch because the intervals are continuous.</li><li>Used for <strong>numerical</strong> data or a Likert scale (qualitative data, that can be transformed into numerical data)</li></ul><p><strong>Bar Chart:</strong></p><ul><li>Bar Charts show categories.</li><li>…Therefore used for <strong>categorical</strong> data.</li></ul><h3>Bin Brackets: What Do They Mean?</h3><p>When defining bin intervals, you’ll see brackets like this:</p><ul><li>(x, y) → <strong>Exclusive</strong>: both x and y are <strong>not included</strong></li><li>[x, y] → <strong>Inclusive</strong>: both x and y <strong>are included</strong></li></ul><p>For example:<br> If a bin is written as [10, 20), it includes values <strong>from 10 up to (but not including) 20</strong>.</p><h3>Why Does Bin Size Matter?</h3><p>Choosing the <strong>right number of bins</strong> is crucial.</p><ul><li>Too <strong>many bins</strong>: Your histogram becomes noisy. Every tiny variation is highlighted, and you can’t spot the overall pattern.</li><li>Too <strong>few bins</strong>: You oversimplify the data. Important trends and details disappear.</li></ul><h3>3 Common Rules for Choosing Bin Sizes</h3><h4><strong>1. Sturges’ Rule. </strong>Keep It Simple.</h4><pre>## based on 100 data points <br><br>Bins = 1 + log₂(100) ≈ 1 + 6.64 = 7.64 ≈ 8 bins</pre><p><strong>Best for:</strong> simple, smaller datasets<br><strong>Limitations: </strong>Not great for large or skewed datasets</p><h4>2. Scott’s Rule. Balance Detail &amp; Smoothness</h4><pre>## based on 100 data points<br>## standard deviation = 15<br><br>Bin width = 3.5 × 15 / 100^(1/3)<br>          ≈ 52.5 / 4.64<br>          ≈ 11.3<br><br>Bins = 100 / 11.3 ≈ 8.85 ≈ 9 bins</pre><p><strong>Best for:</strong> Normal (bell-shaped) distributions<br><strong>Limitations:</strong> Assumes data is roughly symmetric, may over-bin for skewed data.</p><h4>3. Doane’s Rule. Good for Skewed Data</h4><pre>## based on 100 data points<br>## skewness is 1.2<br><br>Bins = 1 + log₂(100) + log₂(1 + (1.2 / √(6/100)))<br>     ≈ 1 + 6.64 + log₂(1 + (1.2 / 0.245))<br>     ≈ 1 + 6.64 + log₂(5.9)<br>     ≈ 1 + 6.64 + 2.56<br>     ≈ 10.2 ≈ 10 bins</pre><p><strong>Best for:</strong> Skewed data or non-normal distributions.<br><strong>Slightly more complex</strong> due to skewness calculation.</p><p>As a beginner, <strong>Sturges’ Rule</strong> is a safe place to start.<br> =As you grow, try <strong>Scott’s</strong> or <strong>Doane’s</strong> depending on your data’s shape.</p><h3>Pro Tip from the Course</h3><blockquote><em>Start with a large number of bins and look for patterns. Reduce the number, then choose several bins to show the pattern in the data.</em></blockquote><p>This is a great hands-on strategy. Even if you use a rule, it’s okay to adjust the number of bins <strong>visually</strong> to tell the clearest story.</p><h3>Final Thoughts</h3><p>Histograms are one of the best tools in your data exploration toolkit. But just like any tool, they work best when used correctly.</p><ul><li>Use histograms to understand distributions</li><li>Choose bin sizes using smart statistical rules</li><li>Don’t be afraid to tweak and test what looks best</li></ul><p>By mastering just a few techniques, you’ll start to see patterns in your data that others miss.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=91d9b0c7ec01" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Right Graph for the Right Data: A Beginner’s Guide to Visualising Data]]></title>
            <link>https://medium.com/@jennycoreholt/the-right-graph-for-the-right-data-a-beginners-guide-to-visualising-data-4b8b18af8af4?source=rss-24e002f16df7------2</link>
            <guid isPermaLink="false">https://medium.com/p/4b8b18af8af4</guid>
            <category><![CDATA[graphic-design]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[data-visualization]]></category>
            <dc:creator><![CDATA[Jenny Core-Holt]]></dc:creator>
            <pubDate>Sat, 02 Aug 2025 11:02:43 GMT</pubDate>
            <atom:updated>2025-08-02T11:02:43.504Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0pU4X8dBIulTRbHw1Yo8Rg.jpeg" /></figure><blockquote>“Often, designers create complicated, beautiful-looking graphs that ultimately say nothing.” — Vitaly Friedman (Editor-in-chief of Smashing Magazine)</blockquote><p>In data analysis, <strong>choosing the right graph</strong> isn’t just about making something look nice. It’s about making data <strong>clear</strong>, <strong>understandable</strong>, and <strong>useful</strong>. A fancy chart that confuses your audience is worse than a plain one that tells a clear story.</p><p>So, how can we pick the right graph for our data, and what key elements should we consider, in order to make it <strong>effective and informative?</strong></p><h3>First, What Makes a Good Graph?</h3><p>Before we dive into graph types, let’s talk about the <strong>essential parts of a graph</strong>. Every graph should include two main components:</p><h4>1. Around the Graph</h4><ul><li><strong>Title:</strong> A clear and concise name for your graph.</li><li><strong>Subtitle (optional):</strong> Adds helpful context or explains the data.</li><li><strong>Source:</strong> Where the data came from. This builds credibility.</li></ul><h4>2. On the Graph Itself</h4><ul><li><strong>Axes and labels:</strong> Always label your axes (x-axis and y-axis) and provide units if needed.</li><li><strong>Axis titles:</strong> Tell your audience what each axis represents.</li><li><strong>Axis lines:</strong> Make the scale clear and easy to read.</li><li><strong>Bars or points:</strong> These are your actual data visuals.</li><li><strong>Legend:</strong> Explains colours, patterns, or series in your graph.</li></ul><p>Without these elements, even the most accurate graph can leave people confused.</p><h3>Choosing the Right Type of Graph</h3><p>Different types of data tell different kinds of stories. Here’s how to choose the right graph based on what you want to show:</p><h4>1. Comparison Graphs</h4><p>Use when you want to <strong>compare different values</strong> or groups.</p><p><strong>Common Types:</strong></p><ul><li><strong>Bar Chart (Vertical):</strong> Best for comparing values across categories.</li><li><strong>Horizontal Bar Chart:</strong> Good when your category labels are long or your x-axis isn’t time.</li><li><strong>Grouped Bar Chart:</strong> Shows <strong>multiple series side-by-side</strong> for direct comparison.</li></ul><p><strong>Avoid:</strong></p><ul><li>Overly complex <strong>infographic-style visuals</strong> — they often look nice but make it harder to see what matters.</li><li>Too many bars. Keep it clear and uncluttered.</li></ul><p><strong>Also Useful:</strong></p><ul><li><strong>Tree Maps / Grid Maps / Area Maps:</strong> These use <strong>rectangles</strong> to show part-to-whole relationships — but only use them if:</li><li>No segment is too small to see</li><li>There aren’t too many segments</li></ul><h4>2. Time Series Graphs</h4><p>Use when you want to show <strong>how data changes over time</strong>.</p><p><strong>Common Types:</strong></p><ul><li><strong>Line Chart:</strong> Great for showing trends across time.</li><li><strong>Area Chart:</strong> Like a line chart, but filled in with color.</li><li><strong>Column Chart:</strong> Vertical bars to show change.</li><li><strong>Slope Graph:</strong> Good for showing change between two points in time — like before and after.</li></ul><h4>3. Ranking Graphs</h4><p>Use when you want to <strong>show order</strong> or <strong>ranked data</strong>.</p><p><strong>Best Choices:</strong></p><ul><li><strong>Horizontal Bar Chart:</strong> Easy to scan from highest to lowest.</li><li><strong>Slope Graph:</strong> Compare ranking positions between two time periods.</li></ul><h4>4. Correlation Graphs</h4><p>Use to show <strong>relationships between variables</strong>.</p><p><strong>Ideal Options:</strong></p><ul><li><strong>Scatter Plot:</strong> Best for showing the relationship between <strong>two continuous variables</strong> (e.g., height and weight).</li><li><strong>Bubble Chart:</strong> Like a scatter plot, but adds a <strong>third variable</strong> by varying the size of the dots.</li></ul><h4>5. Geographical Graphs</h4><p>Use maps if you want to <strong>show data across locations</strong>.</p><p>However, be careful — <strong>maps are not always the most effective</strong> way to communicate data, especially if you’re more focused on comparing values than showing location.</p><h4>6. Other Useful Tools</h4><p>Not every dataset needs a chart. Sometimes, <strong>simple tools</strong> are the best.</p><ul><li><strong>Gauge:</strong> Good for showing progress towards a goal (e.g., 75% of a target). Not ideal for comparisons or trends.</li><li><strong>Table:</strong> Use when you have <strong>lots of data points</strong> or want to display <strong>outliers</strong> clearly.</li><li><strong>Just a Number:</strong> If your audience understands the context, a single number can be powerful — like “82% of users said yes.”</li></ul><h3>Final Thoughts</h3><p>Graphs are powerful, but only when used <strong>purposefully</strong>. Don’t fall into the trap of making something visually impressive that says very little.</p><p>Instead, ask yourself:</p><ul><li>What story does this data tell?</li><li>What do I want my audience to understand?</li><li>Which graph makes that <strong>as easy as possible</strong>?</li></ul><p>The right graph, paired with the right labels, titles, and context, can turn a wall of numbers into a clear and compelling message.</p><blockquote><em>Whilst learning the most effective ways to visualise data, and understanding the choices made, we can also get help using online tools such as </em><a href="https://www.data-to-viz.com/"><em>data to viz</em></a></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4b8b18af8af4" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Data Attributes in Data Analysis]]></title>
            <link>https://medium.com/@jennycoreholt/understanding-data-attributes-in-data-analysis-8c344fb116e2?source=rss-24e002f16df7------2</link>
            <guid isPermaLink="false">https://medium.com/p/8c344fb116e2</guid>
            <category><![CDATA[data-processing]]></category>
            <category><![CDATA[data-preprocessing]]></category>
            <category><![CDATA[data-attribute]]></category>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Jenny Core-Holt]]></dc:creator>
            <pubDate>Fri, 01 Aug 2025 11:23:42 GMT</pubDate>
            <atom:updated>2025-08-01T11:23:42.704Z</atom:updated>
            <content:encoded><![CDATA[<h4>A beginners guide to the <em>characteristics or properties</em> of the data you’re working with.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*doHc__ukjr2g9OHcc7si2g.jpeg" /></figure><h3>What Are Data Attributes?</h3><p>Think of a spreadsheet. Each <strong>column</strong> in that sheet (like <em>Name</em>, <em>Age</em>, or <em>Country</em>) is a data attribute. It tells us something about the <strong>people</strong>, <strong>objects</strong>, or <strong>things</strong> we’re studying.</p><p>For example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/796/1*oj1JyWjwn17rFEofw8IhuQ.png" /></figure><ul><li><strong>Name</strong> is an attribute</li><li><strong>Age</strong> is another attribute</li><li><strong>Country</strong> is a third attribute</li></ul><p>But not all attributes are the same. They come in different <strong>types</strong>, and knowing the type helps us decide how to analyse them.</p><h3>The Two Main Types of Data</h3><ol><li>Qualitative (or Categorical) Data</li><li>Quantitative (or Numerical) Data</li></ol><p>These two data types have sub-types. Here is a breakdown of these different sub-types…</p><h3>1. Qualitative Data</h3><p>This type of data describes <strong>categories or qualities. </strong>Simply put,<strong> </strong>things that can’t be measured with numbers.</p><h4><strong>a. Nominal Data</strong></h4><ul><li>These are categories that <strong>don’t have an order</strong>.</li><li>You can’t say one is “higher” or “better” than the other.</li></ul><p><strong>Example:</strong></p><ul><li>Colours: Red, Blue, Green</li><li>Country names: USA, India, Brazil</li><li>Types of fruits: Apple, Banana, Orange</li></ul><p>You can group them, but <strong>you can’t sort them meaningfully</strong>.</p><h4><strong>b. Binary Data</strong></h4><ul><li>This is a special kind of nominal data with <strong>only two options</strong>.</li></ul><p><strong>Example:</strong></p><ul><li>Yes or No</li><li>Male or Female</li><li>True or False</li></ul><h4>c. Ordinal Data</h4><ul><li>These are categories with a <strong>clear order</strong>, but the difference between them is not exact.</li></ul><p><strong>Example:</strong></p><ul><li>Education level: High School, Bachelor’s, Master’s, PhD</li><li>Customer satisfaction: Poor, Fair, Good, Excellent</li></ul><p>You <strong>can rank</strong> them, but you <strong>can’t say exactly how much better</strong> one is than the other.</p><h3>2. Quantitative Data</h3><p>This type of data involves <strong>numbers.</strong></p><h4>a. Discrete Data</h4><ul><li>Whole numbers only.</li><li>You <strong>count</strong> these values.</li></ul><p><strong>Example:</strong></p><ul><li>Number of children: 0, 1, 2, 3…</li><li>Number of cars sold: 10, 20, 50</li></ul><p>You can’t have <strong>2.5 children. I</strong>t’s either 2 or 3.</p><h4>b. Continuous Data</h4><ul><li>These are <strong>measurable</strong> values and can be <strong>decimal numbers</strong>.</li><li>You can zoom in as much as you want.</li></ul><p><strong>Example:</strong></p><ul><li>Height: 5.6 feet</li><li>Weight: 60.5 kg</li><li>Temperature: 22.4°C</li></ul><p>Continuous data can have <strong>any value</strong> within a range.</p><h3>Why Do Data Types Matter?</h3><p>Knowing the data type helps you:</p><ul><li>Choose the right <strong>charts</strong> (bar chart vs. histogram)</li><li>Pick the right <strong>statistical methods</strong></li><li>Avoid mistakes in <strong>data cleaning and analysis</strong></li></ul><p>For example, you wouldn’t take the <strong>average</strong> of colours or <strong>sort</strong> countries by size. It just wouldn’t make sense!</p><h3>Final Thoughts</h3><p>Understanding <strong>data attributes</strong> is like learning the alphabet before writing sentences. Once you know what type of data you’re dealing with, everything else in data analysis becomes easier. Whether it’s creating charts, cleaning data, or running machine learning models.</p><p>Happy analysing!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c344fb116e2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bayes’ Rule: A Simple Guide to Reversing Probability]]></title>
            <link>https://medium.com/@jennycoreholt/bayes-rule-a-simple-guide-to-reversing-probability-c06d8c325d65?source=rss-24e002f16df7------2</link>
            <guid isPermaLink="false">https://medium.com/p/c06d8c325d65</guid>
            <category><![CDATA[data-analysis]]></category>
            <category><![CDATA[probability]]></category>
            <category><![CDATA[statistics]]></category>
            <dc:creator><![CDATA[Jenny Core-Holt]]></dc:creator>
            <pubDate>Thu, 31 Jul 2025 12:37:02 GMT</pubDate>
            <atom:updated>2025-07-31T12:37:02.216Z</atom:updated>
            <content:encoded><![CDATA[<h4>When we first learn about probability, we often think forward: “What’s the chance of getting heads if I flip a coin?” But what if we want to go backward; from effect to cause? That’s where <strong>Bayes’ Rule</strong> comes in. It’s the statistical magic that lets us reverse the conditioning and figure out the probability of a cause <em>given</em> an outcome.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1000/1*hL8C53zwrjqlC-1NPwBWLw.jpeg" /></figure><h3>So, What Is Bayes’ Rule?</h3><p>Bayes’ Rule (named after 18th Century English Theologian and Mathematician, Thomas Bayes), lets us compute the <strong>posterior</strong> probability — the probability of a hypothesis A given some evidence B. It flips the usual direction of probability:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/276/1*g-Dt6BPsl-ky5SQXIli_0w.png" /></figure><p>So that:</p><ul><li>P(A∣B): Probability of <strong>A given B</strong> (what we want to know)</li><li>P(B∣A): Probability of <strong>B given A</strong> (what we often <em>do</em> know)</li><li>P(A): Prior probability of A</li><li>P(B): Total probability of B (across all possible causes)</li></ul><p>In layman’s terms:<br>Probability = (Likelihood × Prior) / Evidence</p><h3>Why Reverse the Conditioning?</h3><p>Imagine you’re a doctor and a patient tests positive for a rare disease. The test isn’t perfect. What you want to know is: <em>Given this positive test, how likely is it that the patient actually has the disease?</em></p><p>That’s<strong> P(Disease∣Positive), </strong>a reversed conditional probability that Bayes’ Rule can help us find.</p><h3>A Classic Example: Disease Testing</h3><h4>Scenario:</h4><ul><li>1% of people have a rare disease. <br>→ P(D)=0.01</li><li>The test correctly identifies the disease 99% of the time if you have it. <br>→ P(false positive | Disease )=0.99</li><li>But it gives a false positive 5% of the time. <br>→ P(false positive | Disease)=0.05</li></ul><p>You get a <strong>positive test result</strong>. What’s the probability you <em>actually</em> have the disease?</p><p>We want:<strong> <br>P(D | +) = ?</strong></p><p>Using Bayes’ Rule:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/281/1*Gbhx1nay5itTzuUkGzxHbg.png" /></figure><p>We already know:</p><ul><li>P(+ | D)=0.99</li><li>P(D)=0.01</li></ul><p>But what’s P(+)? This is the total probability of testing positive, whether you have the disease or not:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/428/1*aqe2Ujjly-tt-JAeu79q7w.png" /></figure><p>Which then equates to:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/407/1*LUaf9ohw6JgdYF1JtL5sIg.png" /></figure><h4>The result:</h4><p>Even with a highly accurate test, <strong>the chance you actually have the disease is only ~17%</strong>!</p><p>Why? Because the disease is rare and false positives outnumber true positives. This is the power of Bayes’ Rule: it tempers our intuition by balancing how likely a cause was in the first place.</p><h3>The Takeaway</h3><p>Bayes’ Rule is more than a formula. It’s a mindset shift. It teaches us to think <em>backwards</em>: from evidence to cause. Whether you’re interpreting medical results or evaluating spam filters, Bayes’ Rule is your go-to tool for rational, data-driven thinking.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c06d8c325d65" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>