<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Mark Glemba</title>
    <description>The latest articles on DEV Community by Mark Glemba (@mark_glemba_962f6bc8a12dd).</description>
    <link>https://dev.to/mark_glemba_962f6bc8a12dd</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3851972%2Faa71fd54-fff1-4c78-87fc-fdf71f8dd473.jpg</url>
      <title>DEV Community: Mark Glemba</title>
      <link>https://dev.to/mark_glemba_962f6bc8a12dd</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/mark_glemba_962f6bc8a12dd"/>
    <language>en</language>
    <item>
      <title>Statistics, Parametric and Non-Parametric Tests in Python</title>
      <dc:creator>Mark Glemba</dc:creator>
      <pubDate>Tue, 07 Jul 2026 20:01:44 +0000</pubDate>
      <link>https://dev.to/mark_glemba_962f6bc8a12dd/statistics-parametric-and-non-parametric-tests-in-python-40c6</link>
      <guid>https://dev.to/mark_glemba_962f6bc8a12dd/statistics-parametric-and-non-parametric-tests-in-python-40c6</guid>
      <description>&lt;p&gt;&lt;strong&gt;Introduction&lt;/strong&gt;&lt;br&gt;
Statistics is one of the fundamental pillars of data science, machine learning, artificial intelligence, business intelligence, scientific research, healthcare analytics, finance, engineering, and many other disciplines. Every day, organizations collect enormous amounts of data from customers, sensors, websites, social media platforms, financial transactions, and business operations. However, raw data alone provides little value unless it can be analyzed and interpreted correctly. Statistics provides the mathematical framework that enables analysts and researchers to extract meaningful insights from data, identify patterns, test hypotheses, and make evidence-based decisions.&lt;br&gt;
Python has become one of the world’s most popular programming languages for statistical analysis due to its simplicity, extensive libraries, and powerful data manipulation capabilities. Libraries such as NumPy, Pandas, SciPy, Statsmodels, and Scikit-learn provide researchers and analysts with comprehensive tools for performing descriptive statistics, inferential statistics, hypothesis testing, regression analysis, and machine learning.&lt;br&gt;
Among the most important concepts in statistical analysis are parametric and non-parametric statistical tests. Choosing the correct statistical test is essential because using an inappropriate test may produce misleading conclusions. Parametric tests assume that the underlying data follow specific statistical distributions, usually the normal distribution, while non-parametric tests make fewer assumptions and are particularly useful when those assumptions are violated.&lt;br&gt;
This article explores statistics, parametric tests, non-parametric tests, their assumptions, advantages, disadvantages, practical applications, and demonstrates how these tests can be implemented using Python.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Understanding Statistics&lt;/strong&gt;&lt;br&gt;
Statistics is the science of collecting, organizing, analyzing, interpreting, and presenting data. It helps transform raw numbers into meaningful information that supports decision-making.&lt;br&gt;
Statistics is generally divided into two major branches:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Descriptive Statistics&lt;/strong&gt;&lt;br&gt;
Descriptive statistics summarize and describe the characteristics of a dataset without making conclusions beyond the data collected.&lt;br&gt;
Common descriptive statistics include:&lt;br&gt;
• Mean&lt;br&gt;
• Median&lt;br&gt;
• Mode&lt;br&gt;
• Range&lt;br&gt;
• Variance&lt;br&gt;
• Standard deviation&lt;br&gt;
• Quartiles&lt;br&gt;
• Percentiles&lt;br&gt;
• Skewness&lt;br&gt;
• Kurtosis&lt;br&gt;
For example, a company may calculate the average monthly salary of employees or the average customer spending per transaction.&lt;br&gt;
Python Example:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6ualb6h4wxvdf65b3fqm.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6ualb6h4wxvdf65b3fqm.png" alt=" " width="800" height="287"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Inferential Statistics&lt;/strong&gt;&lt;br&gt;
Inferential statistics goes beyond describing data by drawing conclusions about an entire population using a sample.&lt;br&gt;
Inferential statistics helps answer questions such as:&lt;br&gt;
• Is a new medicine more effective than the old one?&lt;br&gt;
• Does education level influence salary?&lt;br&gt;
• Is customer satisfaction different between two stores?&lt;br&gt;
• Does gender affect purchasing behavior?&lt;br&gt;
Inferential statistics relies heavily on probability theory and hypothesis testing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Hypothesis Testing&lt;/strong&gt;&lt;br&gt;
Hypothesis testing is a statistical method used to determine whether there is sufficient evidence to support a claim.&lt;br&gt;
Every hypothesis test begins with two hypotheses.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Null Hypothesis (H₀)&lt;/strong&gt;&lt;br&gt;
The null hypothesis states that there is no significant difference or relationship.&lt;br&gt;
Example:&lt;br&gt;
“There is no difference in average salaries between male and female employees.”&lt;br&gt;
&lt;strong&gt;Alternative Hypothesis (H₁)&lt;/strong&gt;&lt;br&gt;
The alternative hypothesis states that there is a significant difference or relationship.&lt;br&gt;
Example:&lt;br&gt;
“There is a significant difference in average salaries between male and female employees.”&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Understanding the p-value&lt;/strong&gt;&lt;br&gt;
The p-value measures how likely the observed data would occur if the null hypothesis were true.&lt;br&gt;
General interpretation:&lt;br&gt;
• p ≤ 0.05 → Reject H₀&lt;br&gt;
• p &amp;gt; 0.05 → Fail to reject H₀&lt;br&gt;
For example:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Four4n360ofszw9l33gif.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Four4n360ofszw9l33gif.png" alt=" " width="799" height="179"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Parametric Statistical Tests&lt;/strong&gt;&lt;br&gt;
Parametric tests are statistical methods that make assumptions about the population distribution.&lt;br&gt;
The most common assumption is that the data follow a normal distribution.&lt;br&gt;
Because they use more information from the data, parametric tests are generally more powerful than non-parametric tests when their assumptions are satisfied.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Assumptions of Parametric Tests&lt;/strong&gt;&lt;br&gt;
Before applying a parametric test, several assumptions should be checked.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Normality&lt;/strong&gt;&lt;br&gt;
Data should approximately follow a normal distribution.&lt;br&gt;
Python example:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0wpj0rca6jeofk7tk2qt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F0wpj0rca6jeofk7tk2qt.png" alt=" " width="800" height="215"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;If&lt;br&gt;
p &amp;gt; 0.05&lt;br&gt;
the data are considered approximately normal.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Homogeneity of Variance&lt;/strong&gt;&lt;br&gt;
Groups should have similar variances.&lt;br&gt;
Python example:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F21yc4g8ywhhtcnea53kg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F21yc4g8ywhhtcnea53kg.png" alt=" " width="800" height="167"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Independence&lt;/strong&gt;&lt;br&gt;
Observations should be independent of one another.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Continuous Data&lt;/strong&gt;&lt;br&gt;
Most parametric tests require interval or ratio-level data.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Common Parametric Tests&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;1. Independent Samples t-Test&lt;/strong&gt;&lt;br&gt;
Purpose:&lt;br&gt;
Compare the means of two independent groups.&lt;br&gt;
Example:&lt;br&gt;
Compare salaries of male and female employees&lt;br&gt;
Python:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpyj0m5hauvsg48wu1pqd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fpyj0m5hauvsg48wu1pqd.png" alt=" " width="800" height="181"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Paired t-Test&lt;/strong&gt;&lt;br&gt;
Purpose:&lt;br&gt;
Compare measurements taken from the same individuals before and after an intervention.&lt;br&gt;
Example:&lt;br&gt;
Employee productivity before and after training.&lt;br&gt;
Python:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5yf9si6l98i56vxlis7j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F5yf9si6l98i56vxlis7j.png" alt=" " width="800" height="170"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. One-Sample t-Test&lt;/strong&gt;&lt;br&gt;
Purpose:&lt;br&gt;
Determine whether a sample mean differs from a known population mean.&lt;br&gt;
Python:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxx9w3hahmjm5ktwaakox.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fxx9w3hahmjm5ktwaakox.png" alt=" " width="799" height="175"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. ANOVA (Analysis of Variance)&lt;/strong&gt;&lt;br&gt;
Purpose:&lt;br&gt;
Compare means of three or more groups.&lt;br&gt;
Example:&lt;br&gt;
Compare salaries across departments.&lt;br&gt;
Python:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmg59rlrsf0zgst9wuj1k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmg59rlrsf0zgst9wuj1k.png" alt=" " width="799" height="183"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Pearson Correlation&lt;/strong&gt;&lt;br&gt;
Purpose:&lt;br&gt;
Measure the linear relationship between two continuous variables.&lt;br&gt;
Python:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F37safjfbs43mkud5avy8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F37safjfbs43mkud5avy8.png" alt=" " width="800" height="326"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Correlation values range from -1 to +1.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;6. Linear Regression&lt;/strong&gt;&lt;br&gt;
Purpose:&lt;br&gt;
Model the relationship between independent and dependent variables.&lt;br&gt;
Python:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F05zprd1hx18j7dzdknue.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F05zprd1hx18j7dzdknue.png" alt=" " width="800" height="380"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Regression is widely used for prediction and identifying significant predictors.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Advantages of Parametric Tests&lt;/strong&gt;&lt;br&gt;
Some benefits include:&lt;br&gt;
• Higher statistical power&lt;br&gt;
• More precise estimates&lt;br&gt;
• Efficient with normally distributed data&lt;br&gt;
• Suitable for predictive modeling&lt;br&gt;
• Widely accepted in scientific research&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Disadvantages of Parametric Tests&lt;/strong&gt;&lt;br&gt;
Limitations include:&lt;br&gt;
• Sensitive to outliers&lt;br&gt;
• Require normality assumptions&lt;br&gt;
• Require continuous data&lt;br&gt;
• Can produce misleading results when assumptions are violated  &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Non-Parametric Statistical Tests&lt;/strong&gt;&lt;br&gt;
Non-parametric tests are statistical procedures that do not assume a specific population distribution.&lt;br&gt;
They are often called distribution-free tests.&lt;br&gt;
These tests are especially useful when:&lt;br&gt;
• Data are skewed&lt;br&gt;
• Sample size is small&lt;br&gt;
• Data contain outliers&lt;br&gt;
• Data are ordinal&lt;br&gt;
• Normality assumptions fail&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Advantages of Non-Parametric Tests&lt;/strong&gt;&lt;br&gt;
Advantages include:&lt;br&gt;
• Few assumptions&lt;br&gt;
• Handle skewed data&lt;br&gt;
• Robust against outliers&lt;br&gt;
• Suitable for ordinal data&lt;br&gt;
• Useful with small sample sizes&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Disadvantages of Non-Parametric Tests&lt;/strong&gt;&lt;br&gt;
Disadvantages include:&lt;br&gt;
• Lower statistical power than parametric tests&lt;br&gt;
• May ignore some information contained in the data&lt;br&gt;
• Less effective for normally distributed datasets&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Common Non-Parametric Tests&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;1. Mann-Whitney U Test&lt;/strong&gt;&lt;br&gt;
Equivalent to the independent t-test.&lt;br&gt;
Used for comparing two independent groups.&lt;br&gt;
Python:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzrf1ooyeq4p7k71yg1l3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fzrf1ooyeq4p7k71yg1l3.png" alt=" " width="800" height="344"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Wilcoxon Signed-Rank Test&lt;/strong&gt;&lt;br&gt;
Equivalent to the paired t-test.&lt;br&gt;
Python:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmlfur83r8rrfzce89af6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fmlfur83r8rrfzce89af6.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Kruskal-Wallis Test&lt;/strong&gt;&lt;br&gt;
Equivalent to one-way ANOVA.&lt;br&gt;
Python:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fj44hcvt1eeio3j1q4f43.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fj44hcvt1eeio3j1q4f43.png" alt=" " width="799" height="385"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Friedman Test&lt;/strong&gt;&lt;br&gt;
Equivalent to repeated-measures ANOVA.&lt;br&gt;
Python:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9xult7q2450fxmu37ms0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9xult7q2450fxmu37ms0.png" alt=" " width="799" height="364"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Spearman Rank Correlation&lt;/strong&gt;&lt;br&gt;
Equivalent to Pearson correlation when data are not normally distributed.&lt;br&gt;
Python:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fic6mep6eanx2pnlbz6w5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fic6mep6eanx2pnlbz6w5.png" alt=" " width="799" height="382"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;6. Chi-Square Test of Independence&lt;/strong&gt;&lt;br&gt;
Used for categorical variables.&lt;br&gt;
Example:&lt;br&gt;
Determine whether education level is associated with employment status.&lt;br&gt;
Python:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F040xv2fkuhefvv0tp7rd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F040xv2fkuhefvv0tp7rd.png" alt=" " width="799" height="341"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Choosing Between Parametric and Non-Parametric Tests&lt;/strong&gt;&lt;br&gt;
Selecting the appropriate statistical test depends on several factors, including the type of data, the number of groups, whether observations are independent or paired, and whether the assumptions of parametric tests are satisfied.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdvbt2nln14ynmrfg6qtk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fdvbt2nln14ynmrfg6qtk.png" alt=" " width="730" height="304"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Before choosing a test, analysts should perform exploratory data analysis (EDA), inspect visualizations such as histograms and box plots, and conduct assumption checks including tests for normality and homogeneity of variance. If assumptions hold, parametric tests are generally preferred because they provide greater statistical power. When assumptions are violated or the data are ordinal or heavily skewed, non-parametric tests offer a more reliable alternative.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Python Libraries for Statistical Analysis&lt;/strong&gt;&lt;br&gt;
Python offers a rich ecosystem of libraries that simplify statistical analysis and hypothesis testing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;NumPy&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
Used for numerical computations and array operations.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9j64w6enf91wmv8aivs0.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F9j64w6enf91wmv8aivs0.png" alt=" " width="800" height="233"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Pandas&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
Provides powerful data structures for data manipulation and descriptive statistics.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fy7uo1jgbc635sdodv4dn.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fy7uo1jgbc635sdodv4dn.png" alt=" " width="798" height="194"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;SciPy&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
Contains numerous statistical functions and hypothesis tests.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhi98q8k7xtuxd3e12xhk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fhi98q8k7xtuxd3e12xhk.png" alt=" " width="800" height="205"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Statsmodels&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
Used for regression analysis, ANOVA, generalized linear models, and other advanced statistical techniques.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgluye1dxqlhzz23cbewl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fgluye1dxqlhzz23cbewl.png" alt=" " width="800" height="212"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;&lt;em&gt;Matplotlib&lt;/em&gt;&lt;/strong&gt;&lt;br&gt;
Creates visualizations that aid in understanding data distributions and statistical results.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Feu1hih5n5l2gatjmcohy.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Feu1hih5n5l2gatjmcohy.png" alt=" " width="799" height="203"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;These libraries work seamlessly together, making Python one of the most comprehensive environments for statistical computing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Practical Applications of Statistical Tests&lt;/strong&gt;&lt;br&gt;
Parametric and non-parametric tests are widely used across industries to solve real-world problems.&lt;br&gt;
In healthcare, researchers use t-tests and ANOVA to compare treatment effectiveness between patient groups, while non-parametric tests are applied when medical data are skewed or involve ordinal pain scores.&lt;br&gt;
In finance, analysts use correlation and regression to examine relationships between stock prices, interest rates, and economic indicators. Statistical tests help determine whether observed trends are significant or due to random variation.&lt;br&gt;
Businesses rely on hypothesis testing to evaluate marketing campaigns, compare customer satisfaction across branches, and assess employee performance after training programs. A/B testing, a common practice in digital marketing, is fundamentally based on statistical hypothesis testing.&lt;br&gt;
Educational institutions analyze examination results to compare teaching methods or determine whether interventions improve student performance. Government agencies apply statistical methods to census data, unemployment rates, and public health studies to guide policy decisions.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Best Practices for Statistical Testing in Python&lt;/strong&gt;&lt;br&gt;
To ensure valid and reliable results, analysts should follow several best practices:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Understand the research question before selecting a statistical test.&lt;/li&gt;
&lt;li&gt; Perform exploratory data analysis to identify missing values, outliers, and unusual patterns.&lt;/li&gt;
&lt;li&gt; Check assumptions such as normality, independence, and equal variances before applying parametric tests.&lt;/li&gt;
&lt;li&gt; Choose non-parametric alternatives when assumptions are violated or when working with ordinal data.&lt;/li&gt;
&lt;li&gt; Report both the test statistic and the p-value, and where appropriate include confidence intervals and effect sizes to provide a more complete interpretation of the findings.&lt;/li&gt;
&lt;li&gt; Interpret statistical significance alongside practical significance, recognizing that a statistically significant result may not always have meaningful real-world implications.&lt;/li&gt;
&lt;li&gt; Document the methodology and Python code to ensure that analyses are transparent, reproducible, and easy to verify.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;br&gt;
Statistics plays an indispensable role in transforming raw data into meaningful knowledge. Through descriptive statistics, analysts summarize and understand datasets, while inferential statistics enables them to make predictions and draw conclusions about larger populations from sample data. Hypothesis testing forms the foundation of inferential analysis by providing an objective framework for evaluating claims and determining whether observed differences or relationships are statistically significant.&lt;br&gt;
Parametric tests, including t-tests, ANOVA, Pearson correlation, and linear regression, are powerful methods when their underlying assumptions—such as normality, homogeneity of variance, and independence—are satisfied. Their higher statistical power makes them the preferred choice for many research applications involving continuous, normally distributed data. In contrast, non-parametric tests such as the Mann-Whitney U test, Wilcoxon signed-rank test, Kruskal-Wallis test, Friedman test, Spearman correlation, and Chi-square test provide flexible and robust alternatives when data violate these assumptions or are measured on an ordinal scale.&lt;br&gt;
Python has revolutionized statistical analysis by offering an accessible and efficient ecosystem of libraries, including NumPy, Pandas, SciPy, Statsmodels, and Matplotlib. These tools enable users to clean data, perform sophisticated statistical tests, visualize results, and build predictive models with relatively little code. As organizations increasingly rely on data-driven decision-making, proficiency in statistical methods and Python programming has become an essential skill for data scientists, researchers, analysts, and professionals across numerous fields. Understanding when to apply parametric or non-parametric methods ensures that analyses are both statistically valid and practically meaningful, ultimately leading to more accurate conclusions and better-informed decisions.&lt;/p&gt;

</description>
      <category>datascience</category>
    </item>
    <item>
      <title>Understanding DDL, DML, and Key SQL Concepts</title>
      <dc:creator>Mark Glemba</dc:creator>
      <pubDate>Tue, 14 Apr 2026 07:11:57 +0000</pubDate>
      <link>https://dev.to/mark_glemba_962f6bc8a12dd/understanding-ddl-dml-and-key-sql-concepts-omg</link>
      <guid>https://dev.to/mark_glemba_962f6bc8a12dd/understanding-ddl-dml-and-key-sql-concepts-omg</guid>
      <description>&lt;p&gt;&lt;strong&gt;Introduction&lt;/strong&gt;&lt;br&gt;
Structured Query Language (SQL) is essential for managing and manipulating data in relational databases. In this article, we explore two important categories of SQL commands—Data Definition Language (DDL) and Data Manipulation Language (DML)—along with practical operations such as CREATE, INSERT, UPDATE, DELETE, filtering with WHERE, and the use of CASE WHEN for data transformation.&lt;/p&gt;




&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;What DDL and DML Are (and Their Differences)&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Data Definition Language (DDL) refers to SQL commands used to define and manage the structure of a database. These commands deal with creating, modifying, and deleting database objects such as tables.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Common DDL commands include&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;CREATE&lt;/strong&gt; – used to create new tables or databases&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;ALTER&lt;/strong&gt; – used to modify existing structures&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DROP&lt;/strong&gt;– used to delete tables or databases&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;For example, using "CREATE TABLE" allows you to define columns, data types, and constraints for storing data.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Data Manipulation Language (DML)&lt;/strong&gt;, on the other hand, is used to manage the data within those structures. It focuses on inserting, updating, retrieving, and deleting records.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Common DML commands include:&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;INSERT&lt;/strong&gt; – adds new records&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;UPDATE&lt;/strong&gt;– modifies existing data&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;DELETE&lt;/strong&gt; – removes records&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;SELECT&lt;/strong&gt;– retrieves data&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Key Difference:&lt;br&gt;
DDL deals with the structure of the database, while DML deals with the data inside the database.&lt;/p&gt;




&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Using CREATE, INSERT, UPDATE, and DELETE&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;In a typical database assignment, these commands are used as follows:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;CREATE&lt;/strong&gt;: I used this command to define tables such as students, subjects, or exam results. It involved specifying column names, data types (e.g., INTEGER, VARCHAR), and primary keys.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;INSERT&lt;/strong&gt;: This command was used to add records into the tables. For example, inserting student names, subject details, and exam scores into the respective tables.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;UPDATE&lt;/strong&gt;: I used UPDATE to modify existing records. For instance, correcting a student’s score or updating a subject name.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;DELETE&lt;/strong&gt;: This command helped remove unwanted or incorrect records from the database, such as deleting a student entry or clearing outdated data.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;These commands are fundamental for maintaining accurate and up-to-date data in any database system.&lt;/p&gt;




&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Filtering Data with WHERE&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The WHERE clause is used in SQL to filter records based on specific conditions. It helps retrieve only the data that meets certain criteria.&lt;/p&gt;

&lt;p&gt;Some commonly used operators include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;= (Equal to)&lt;/strong&gt;: Selects records that match a specific value&lt;br&gt;
Example: "WHERE score = 80"&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;&amp;gt; (Greater than)&lt;/strong&gt;: Selects values greater than a given number&lt;br&gt;
Example: "WHERE score &amp;gt; 70"&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;BETWEEN&lt;/strong&gt;: Filters values within a range&lt;br&gt;
Example: "WHERE score BETWEEN 50 AND 90"&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;IN&lt;/strong&gt;: Matches values within a list&lt;br&gt;
Example: "WHERE subject IN ('Math', 'Science')"&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;LIKE&lt;/strong&gt;: Used for pattern matching&lt;br&gt;
Example: "WHERE name LIKE 'J%'" (names starting with J)&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The WHERE clause is powerful because it allows precise data retrieval, making queries more meaningful and efficient.&lt;/p&gt;




&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;How CASE WHEN Helps in Transforming Data&lt;/strong&gt;
The CASE WHEN statement in SQL is used to perform conditional logic within queries. It allows you to transform data by assigning values based on conditions.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;For example, you can categorize student performance:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;If score ≥ 70 → “Pass”&lt;/li&gt;
&lt;li&gt;If score &amp;lt; 70 → “Fail”&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;This helps in:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Creating calculated columns&lt;/li&gt;
&lt;li&gt;Categorizing or grouping data&lt;/li&gt;
&lt;li&gt;Improving readability of query results&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;CASE WHEN is especially useful in reports, where raw data needs to be interpreted into meaningful insights.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;Conclusion&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Understanding DDL and DML is crucial for working with databases effectively. While DDL defines the structure of the database, DML allows you to interact with the data itself. Commands like CREATE, INSERT, UPDATE, and DELETE form the backbone of database operations. Additionally, tools like the WHERE clause and CASE WHEN statement enhance your ability to filter and transform data, making SQL a powerful language for data management and analysis.&lt;/p&gt;

</description>
      <category>datascience</category>
      <category>ai</category>
    </item>
    <item>
      <title>HOW TO PUBLISH A POWER BI REPORT AND EMBED IT INTO A WEBSITE</title>
      <dc:creator>Mark Glemba</dc:creator>
      <pubDate>Mon, 06 Apr 2026 14:10:43 +0000</pubDate>
      <link>https://dev.to/mark_glemba_962f6bc8a12dd/how-to-publish-a-power-bi-report-and-embed-it-into-a-website-3gcc</link>
      <guid>https://dev.to/mark_glemba_962f6bc8a12dd/how-to-publish-a-power-bi-report-and-embed-it-into-a-website-3gcc</guid>
      <description>&lt;p&gt;&lt;strong&gt;INTRODUCTION&lt;/strong&gt;&lt;br&gt;
Power BI is an analytics tool developed by Microsoft that lets a user visualize and share insights on certain data. Power BI is also used transform and clean data using Power Query Editor. Data transformation occurs through; shaping data by filtering, sorting and grouping, adding columns and changing data types through conversion to; numeric, text etc. Data cleaning is done through; handling blanks, standardizing and removing errors.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;PUBLISHING PROCESS IN POWER BI&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Create a workspace&lt;/strong&gt;
A workspace is like a folder where one stores reports, dashboards and datasets.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;. Go to [&lt;a href="https://app.powerbi.com/" rel="noopener noreferrer"&gt;https://app.powerbi.com/&lt;/a&gt;]&lt;br&gt;
. Sign into your account&lt;br&gt;
. Once your logged in, on the left far side click on workspaces&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh0wexji1b99t2wcz77sr.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh0wexji1b99t2wcz77sr.jpeg" alt=" " width="800" height="312"&gt;&lt;/a&gt;&lt;br&gt;
. Click on; + New workspace&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu0uonbpc9y9u7d4mprhb.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu0uonbpc9y9u7d4mprhb.jpeg" alt=" " width="800" height="248"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;2 .&lt;strong&gt;Uploading and publishing&lt;/strong&gt;&lt;br&gt;
. In the power bi desktop in the home page click on publish on the far right.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0g0mm33clmyhmpeuqpor.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0g0mm33clmyhmpeuqpor.png" alt=" " width="800" height="107"&gt;&lt;/a&gt;&lt;br&gt;
. Select your workspace where the report will be uploaded&lt;br&gt;
. Once uploaded the dataset will appear on your workspace.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxeibqz93wystqevtpbkg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxeibqz93wystqevtpbkg.png" alt=" " width="714" height="417"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Generating embedding code&lt;/strong&gt;
. Open the report you want embedded
. Click on File ~~~~ Embed report
. Choose embedding option; either Public (Publish to Web), OR Secure Embed; which requires log in and is more secure.
. After clicking on Publish to web, Power BI will generate an embed link + iframe code.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnqtbvaswep896vx5pz9r.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnqtbvaswep896vx5pz9r.png" alt=" " width="540" height="402"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;4.&lt;strong&gt;Embedding code into website&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgachdvgtcvtotj2w7qum.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgachdvgtcvtotj2w7qum.png" alt=" " width="704" height="175"&gt;&lt;/a&gt;&lt;br&gt;
. Copy entire code&lt;br&gt;
. Open your website HTML file&lt;br&gt;
. Paste the iframe code where you want your report to appear&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9fbbn0xir27ct4lcl17r.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9fbbn0xir27ct4lcl17r.jpeg" alt=" " width="800" height="728"&gt;&lt;/a&gt;&lt;br&gt;
. Save and open your website where your report will display.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;CONCLUSION&lt;/strong&gt;&lt;br&gt;
Using Power BI with embedding capabilities promotes better collaboration, transparency and efficiency. This empowers users to embrace data-driven solutions that support smarter strategies and improved outcomes.&lt;/p&gt;

</description>
      <category>datascience</category>
    </item>
    <item>
      <title>HOW EXCEL IS USED IN REAL-WORLD DATA ANALYSIS</title>
      <dc:creator>Mark Glemba</dc:creator>
      <pubDate>Tue, 31 Mar 2026 19:39:06 +0000</pubDate>
      <link>https://dev.to/mark_glemba_962f6bc8a12dd/how-excel-is-used-in-real-world-data-analysis-364</link>
      <guid>https://dev.to/mark_glemba_962f6bc8a12dd/how-excel-is-used-in-real-world-data-analysis-364</guid>
      <description>&lt;p&gt;&lt;strong&gt;INTRODUCTION&lt;/strong&gt;&lt;br&gt;
Excel is a tool one can use to organize data for work or any other specific software functions. It allows one to develop graphs for comparison of data and create charts to organize and visualize data.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;HOW EXCEL IS USED IN REAL WORLD SCENARIOS&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;DATA CLEANING&lt;/strong&gt;&lt;br&gt;
Excel is in various ways for data cleaning by performing functions such as; removing duplicates, trimming spaces, fixing formatting, finding errors, standardizing data, splitting data and filling blanks.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;DATA SUMMARIZATION&lt;/strong&gt;&lt;br&gt;
Excel summarizes large data sets to offer quick insights by use of; pivot tables, formulas and functions, instead of users manually going through large data sets.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;VISUALIZING TRENDS&lt;/strong&gt;&lt;br&gt;
Done by the use of charts; pie, line and bar charts.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;FORMULAS USED IN EXCEL&lt;/strong&gt;&lt;br&gt;
Basic formulas in excel include:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Add&lt;/strong&gt;: Used to add values of two or more cells. The &lt;strong&gt;(+)&lt;/strong&gt; is used.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Subtract&lt;/strong&gt;: Used to subtract values of two or more cells. The &lt;strong&gt;(-)&lt;/strong&gt; is used.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Multiply&lt;/strong&gt;: Used to multiply values of two or more cells. The &lt;strong&gt;(*)&lt;/strong&gt; is used.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Divide&lt;/strong&gt;: Used to divide values of two or more cells. The &lt;strong&gt;(/)&lt;/strong&gt; is used.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;BASIC FUNCTIONS USED IN EXCEL&lt;/strong&gt;&lt;br&gt;
Functions are used to automate tasks normally performed by formulas in excel. Some popular and basic functions include:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; &lt;strong&gt;AVERAGE&lt;/strong&gt;: It sums up and calculate the mean of values within a range given. For example,&lt;strong&gt;=AVERAGE(A1:A15)&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;SUM&lt;/strong&gt;: It adds up a range of cells. For example,&lt;strong&gt;=SUM(A1:A15)&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;IF&lt;/strong&gt;: Used to arrange values based on a logical test. The syntax for IF ; =IF(logical_test, value_if_true, [value_if_false]). For example, &lt;strong&gt;=IF(N2&amp;gt;30, "young", "old")&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;COUNTIF&lt;/strong&gt;: Used to return the number of cells that meeet a certain criteria. The syntax is; =COUNTIF(range, criteria). For example, &lt;strong&gt;=COUNTIF(A1:A27, "Nairobi")&lt;/strong&gt;.
NOTE: COUNTIFS function counts the number of cells that meet multiple criteria.&lt;/li&gt;
&lt;li&gt; &lt;strong&gt;VLOOKUP&lt;/strong&gt;: Allows one to search for a value on a spreadsheet. Its syntax ; =VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup]). For example, &lt;strong&gt;=VLOOKUP(300,A1:A20, 3, "False")&lt;/strong&gt;.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;CONCLUSION&lt;/strong&gt;&lt;br&gt;
In conclusion Excel's versatility makes it an efficient tool for quick analysis and reporting. Its availability allows users to efficiently handle large data sets through processes such as performing calculations and creating meaningful visuals.&lt;/p&gt;

</description>
      <category>datascience</category>
      <category>beginners</category>
    </item>
    <item>
      <title>Understanding Data Modelling in Power BI: Joins, Relationships and Schemes Explained</title>
      <dc:creator>Mark Glemba</dc:creator>
      <pubDate>Tue, 31 Mar 2026 19:13:12 +0000</pubDate>
      <link>https://dev.to/mark_glemba_962f6bc8a12dd/understanding-data-modelling-in-power-bi-joins-relationships-and-schemes-explained-290o</link>
      <guid>https://dev.to/mark_glemba_962f6bc8a12dd/understanding-data-modelling-in-power-bi-joins-relationships-and-schemes-explained-290o</guid>
      <description>&lt;p&gt;&lt;strong&gt;DATA MODELLING&lt;/strong&gt;&lt;br&gt;
This is a detailed process that involves creating a visual representation of data and its relationships.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;TYPES OF TABLES&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;FACT TABLE&lt;/strong&gt;&lt;br&gt;
It contains quantitative data for analysis.&lt;br&gt;
&lt;strong&gt;DIMENSIONS TABLE&lt;/strong&gt;&lt;br&gt;
Provides context to fact table data.&lt;br&gt;
&lt;strong&gt;STAR SCHEMA&lt;/strong&gt;&lt;br&gt;
It contains a single fact table in the center that connects to multiple other dimensiontables.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhnqptmrm9lwn09l1c6p6.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhnqptmrm9lwn09l1c6p6.png" alt=" " width="800" height="501"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;SNOW FLAKE&lt;/strong&gt;&lt;br&gt;
Is an extension of a star schema where dimension tables are broken down into subdimensions.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frmgjq5uw3m618mmypbu5.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frmgjq5uw3m618mmypbu5.jpeg" alt=" " width="783" height="391"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;FLAT TABLE&lt;/strong&gt;&lt;br&gt;
A table that displays data in a simple, two-dimensional format without any relationships to other tables.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcuh1hfu2hlsjwvys5wqa.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcuh1hfu2hlsjwvys5wqa.png" alt=" " width="800" height="525"&gt;&lt;/a&gt;&lt;br&gt;
&lt;strong&gt;SQL JOINS IN POWER BI&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;INNER JOIN:&lt;/strong&gt; Returns rows present in both tables if there is a match.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;LEFT JOIN:&lt;/strong&gt; Returns all rows present in the left table and matching rows from the right table.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;RIGHT JOIN:&lt;/strong&gt; Returns matching rows from the left table and all rows present in the SQL right table.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;FULL OUTER:&lt;/strong&gt; Returns all rows present in both right and left tables.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;LEFT ANTI:&lt;/strong&gt; Returns rows from the left table that don't have matches in the right table.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;RIGHT ANTI:&lt;/strong&gt;Returns rows from the right table that don't have matches in the left table.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;strong&gt;POWER BI RELATIONSHIPS&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;One-to-Many (1:M)&lt;/strong&gt;&lt;br&gt;
One row in table A matches many in table B. For example, &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnhelnult1lnrvrbes04n.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnhelnult1lnrvrbes04n.png" alt=" " width="800" height="351"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Many-to Many (M:M)&lt;/strong&gt;&lt;br&gt;
Here one is recommended to use a bridge table.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;0ne-to-One (1:1)&lt;/strong&gt;&lt;br&gt;
One row in table A matches one in table B. For example,&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftqgau1iya4upchk3qxp1.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Ftqgau1iya4upchk3qxp1.png" alt=" " width="800" height="411"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Many-to-One (M:M)&lt;/strong&gt;&lt;br&gt;
Many rows in table A match one in table B. For example,&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhvkik8sqappibthjegf8.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fhvkik8sqappibthjegf8.png" alt=" " width="800" height="413"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Active and Inactive relationships&lt;/strong&gt;&lt;br&gt;
The active relationship is used by default in reports and calculations, while the inactive relationship is not used unless specified. It is also useful for alternate paths such as multiple dates.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;DIFFERENCE BETWEEN JOINS AND RELATIONSHIPS&lt;/strong&gt;&lt;br&gt;
Joins; combine tables based on a condition, result in new tables with combined columns and are used in power query steps. Relationships; define connections between tables in a data model and are used for; filtering, calculations and visuals across tables.&lt;/p&gt;

</description>
      <category>datascience</category>
    </item>
  </channel>
</rss>
