Semester 5Analytics

Data Mining & Visualization crash course, Online B.Com, Semester 5:

This subject introduces core data mining techniques, including decision trees, logistic regression, k-means clustering and association rules, along with the…

  • 5 Short Videos
  • 13 mins per video
  • 25 Quiz Questions
  • Study Notes
  • Assignment

5 lessons in Data Mining & Visualization

Each lesson pairs one topic with a hand-picked video, trimmed to the part that teaches it.

About this subject

This subject introduces core data mining techniques, including decision trees, logistic regression, k-means clustering and association rules, along with the principles of designing business dashboards. After completing it, you will be able to choose a suitable technique for a business problem, interpret its results such as support, confidence and lift, and present findings through a clear dashboard.

  1. 1

    Decision Trees for Classification

    Module 1, Data Mining & Visualization: Decision trees

    Decision and Classification Trees, Clearly Explained!!!

    StatQuest with Josh Starmer · 18 min

    Study notes 5 quiz questionsWatch lesson
  2. 2

    Logistic Regression Explained

    Module 1, Data Mining & Visualization: logistic regression

    StatQuest: Logistic Regression

    StatQuest with Josh Starmer · 8 min

    Study notes 5 quiz questionsWatch lesson
  3. 3

    K-Means Clustering

    Module 1, Data Mining & Visualization: k-means clustering

    StatQuest: K-means clustering

    StatQuest with Josh Starmer · 8 min

    Study notes 5 quiz questionsWatch lesson
  4. 4

    Association Rules: Support, Confidence and Lift

    Module 1, Data Mining & Visualization: association rules (support, confidence, lift)

    Lec - 18 : Market Basket Analysis (MBA) | Data Mining

    Gate Smashers · 6 min

    Study notes 5 quiz questionsWatch lesson
  5. 5

    Dashboard Design Principles

    Module 1, Data Mining & Visualization: dashboard design

    L3: Creating designs | dashboard & chart design principles for clarity

    IIT Madras - B.S. Degree Programme · 24 min

    Study notes 5 quiz questionsWatch lesson

Assignment

Mining a Retail Store's Data: From Numbers to a Manager's Dashboard

Free login to open
Exam cheatsheetData Mining & Visualization on two pagesKey points, formulas and tables for quick revision

Go beyond the syllabus

Free step-by-step roadmaps that take Data Mining & Visualization towards a job.

Data Mining & Visualization notes

Study notes for every lesson of Data Mining & Visualization (Online B.Com, Semester 5): the main points, key terms and takeaways, lesson by lesson.

Data Mining & Visualization: complete notes PDF

All 5 lessons’ study notes in one PDF, with a contents page. Free after you log in.

Lesson 1

Decision Trees for Classification

A decision tree classifies records by repeatedly splitting the data on attribute tests until the leaves are mostly one class. Splits are chosen to maximise purity, measured by Gini impurity or entropy and information gain. Pruning and depth limits stop overfitting.

Structure

  • Root node: the first split on the whole dataset.
  • Internal nodes: tests on an attribute (e.g. Age < 30?).
  • Branches: the outcomes of a test.
  • Leaf nodes: the predicted class, usually the majority class of the training records in that leaf.
  • A new record is classified by following the tests from the root down to a leaf.

Choosing splits

  • Greedy top-down recursive partitioning: at each node, pick the split that best separates the classes.
  • Entropy = -sum p_i log2(p_i). It is 0 for a pure node and 1 for a 50/50 two-class node.
  • Information gain = entropy(parent) - weighted average entropy(children).
  • Gini impurity = 1 - sum p_i^2. Its maximum is 0.5 for two balanced classes.
  • Splitting stops when nodes are pure, too small, or the maximum depth is reached.

Overfitting and pruning

  • Deep trees memorise noise: high training accuracy but poor test accuracy.
  • Pre-pruning limits depth, minimum samples per leaf, or minimum gain.
  • Post-pruning grows the full tree, then cuts branches that do not improve validation performance.
  • Pros: interpretable, handles mixed data types, needs no feature scaling.
  • Cons: unstable (small data changes alter the tree) and prone to overfitting.

Key terms

Leaf node
A terminal node that assigns a class prediction.
Entropy
A measure of class impurity in a node: -sum p log2 p.
Information gain
The reduction in entropy achieved by a split.
Gini impurity
1 - sum p_i^2; the probability of misclassifying a randomly labelled record.
Pruning
Removing branches to reduce overfitting.

Lesson 2

Logistic Regression Explained

Logistic regression predicts the probability of a binary outcome by passing a linear combination of predictors through the sigmoid function. Coefficients are estimated by maximum likelihood and act on the log-odds. A threshold (often 0.5) converts probabilities into class labels.

Model

  • z = b0 + b1x1 + ... + bkxk
  • p = 1/(1+e^(-z)), which is always between 0 and 1.
  • Logit form: ln(p/(1-p)) = z, so the log-odds are linear in the predictors.
  • At z = 0, p = 0.5.

Interpreting coefficients

  • A one-unit increase in x_j changes the log-odds by b_j.
  • The odds are multiplied by e^(b_j) (the odds ratio).
  • A positive b means the probability increases with x; a negative b means it decreases.

Fitting and evaluation

  • Fitted by maximum likelihood, equivalently minimising log loss (cross-entropy), not least squares.
  • Classify as 1 if p >= threshold; changing the threshold trades sensitivity against specificity.
  • Evaluate with a confusion matrix, accuracy, precision, recall, and ROC curve with AUC.
  • Use it instead of linear regression for binary outcomes, because linear predictions can fall outside 0-1.

Key terms

Sigmoid
The function 1/(1+e^(-z)), which maps any real number to (0,1).
Odds
p/(1-p).
Logit
The log-odds, ln(p/(1-p)).
Odds ratio
e^b; the multiplicative change in odds per unit increase in x.
Maximum likelihood
The estimation method that chooses the parameters making the observed data most probable.

Lesson 3

K-Means Clustering

K-means is an unsupervised algorithm that partitions data into k clusters by alternately assigning points to the nearest centroid and recomputing centroids. It minimises the within-cluster sum of squares. The choice of k, feature scaling, and initialisation all strongly affect the results.

Algorithm

  • 1. Choose k and initialise k centroids (randomly or with k-means++).
  • 2. Assign each point to its nearest centroid, usually by Euclidean distance.
  • 3. Recompute each centroid as the mean of its assigned points.
  • 4. Repeat steps 2-3 until assignments stop changing.
  • Objective: minimise WCSS = sum of squared distances from each point to its centroid.

Choosing k

  • Elbow method: plot WCSS against k and pick the bend where improvement slows.
  • Silhouette score: ranges from -1 to 1, and higher means better separated clusters.
  • WCSS always decreases as k grows, so the smallest WCSS alone is not a valid way to choose k.

Practical issues

  • Scale (standardise) features, because distance is dominated by large-scale variables.
  • The algorithm converges to a local optimum, so run it with multiple initialisations.
  • It assumes roughly spherical, similar-size clusters and is sensitive to outliers.
  • It needs numeric data, because centroids are means.

Key terms

Centroid
The mean point of a cluster.
WCSS / inertia
The within-cluster sum of squared distances.
Elbow method
A heuristic that chooses k at the bend of the WCSS-versus-k curve.
k-means++
A smart initialisation that spreads out the initial centroids.
Silhouette score
A measure of how well each point fits its own cluster compared with the nearest other cluster.

Lesson 4

Association Rules: Support, Confidence and Lift

Association rules find items that frequently occur together in transactions, written as X -> Y (if X then Y). Support, confidence and lift measure how common, how reliable and how interesting a rule is.

Association rules

  • A rule has the form X -> Y: X is the antecedent (left-hand side), Y is the consequent (right-hand side).
  • Typical use is market basket analysis, e.g. {bread} -> {butter}.
  • A rule shows co-occurrence, not causation.

Support and confidence

  • Support(X) = transactions containing X / total transactions.
  • Support(X -> Y) = P(X and Y) = transactions containing both / total transactions.
  • Confidence(X -> Y) = Support(X and Y) / Support(X) = P(Y | X).
  • Confidence is directional: Conf(X -> Y) usually differs from Conf(Y -> X).

Lift

  • Lift(X -> Y) = Confidence(X -> Y) / Support(Y) = P(X and Y) / (P(X) x P(Y)).
  • Lift > 1 means positive association: X makes Y more likely.
  • Lift = 1 means X and Y are independent.
  • Lift < 1 means negative association: X makes Y less likely.
  • Lift is symmetric: Lift(X -> Y) = Lift(Y -> X).

Mining rules

  • Set a minimum support and a minimum confidence threshold.
  • The Apriori algorithm finds frequent itemsets using one fact: every subset of a frequent itemset must itself be frequent.
  • Rules are then generated from the frequent itemsets and ranked, often by lift.

Key terms

Support
The share of all transactions that contain an itemset.
Confidence
The conditional probability of the consequent given the antecedent.
Lift
Confidence divided by the consequent's support; it measures association beyond chance.
Antecedent
The 'if' part of a rule.
Consequent
The 'then' part of a rule.
Apriori
An algorithm that finds frequent itemsets by pruning any itemset with an infrequent subset.

Lesson 5

Dashboard Design Principles

A dashboard is a visual display of the most important information needed to reach objectives, arranged on one screen so it can be monitored at a glance. Good design starts from the audience and purpose, then uses clear layout, suitable charts and minimal clutter.

Purpose and audience

  • Know who will use the dashboard and which decisions it must support.
  • Strategic dashboards show high-level KPIs for executives.
  • Operational dashboards support real-time monitoring.
  • Analytical dashboards allow exploration and drill-down.
  • Show only KPIs that are relevant and actionable.

Layout and hierarchy

  • Put the most important information at the top left, where reading starts.
  • Group related metrics together.
  • Keep the main view on a single screen and avoid scrolling.
  • Use whitespace and consistent alignment.

Choosing visuals

  • Line charts show trends over time.
  • Bar charts compare categories.
  • Use KPI cards or bullet graphs for targets.
  • Avoid 3D effects, gauges that waste space, and overuse of pie charts.
  • Give every chart context: a comparison to target, a prior period or a benchmark.

Clarity and usability

  • Maximise the data-ink ratio by removing chartjunk.
  • Use colour sparingly and consistently, e.g. to highlight alerts.
  • Be accessible to colour-blind users; do not rely on red vs green alone.
  • Use clear labels and units.
  • Add interactivity such as filters and drill-down where useful.
  • Iterate the design based on user feedback.

Key terms

Dashboard
A single-screen visual summary of key metrics for monitoring.
KPI
Key performance indicator: a metric tied to a business objective.
Data-ink ratio
The proportion of a graphic's ink that presents data; it should be maximised.
Chartjunk
Decorative elements that do not convey information.
Drill-down
Interaction that moves from summary data to more detail.
Every crash course

NOT just videos. Everything you NEED to pass.

Watch videos for FREE. Simplified notes, quizzes and assignments. Stuck? Ask a senior or alumni.

  • Free

    Hand-picked video lessons

    Short lessons hand picked by seniors and alumni, trimmed to just what you need.

  • Free login

    Study notes

    Summary, key points and key terms for every lesson. Revise in minutes.

  • Free login

    Quizzes

    Quick checks after each lesson. See the right answer, and why, instantly.

  • Free login

    Assignments

    Practice tests and questions for every subject, based on what your exam asks.

  • Free login

    Notebook

    Write notes for any video at any second. Go back to the note anytime you want.

  • Free login

    Saved progress

    Lessons, scores and where you left. Synced on every device.

  • Live chat pass

    LIVE chat

    Members ONLY chat for all doubts, tips and memes with students from your degree.

  • Per-minute chat

    Ask an Insider

    1:1 instant chat or call with verified seniors from your degree. Ask anything and everything.

Members only

Online B.Com Insiders Club. Study together, LIVE.

LIVE chat with other Online B.Com students right beside the video. Ask doubts mid-lessons, share tips, or celebrate a finished semester.

  • LIVE chats for every lesson
  • Doubt Solving by Seniors and Alumni.
  • Members ONLY Stickers and GIFs
  • Premium access to study groups
Open LIVE chat

*Instant refund. NO questions asked.*

Pass₹19
Learn from seniors

Stuck on Data Mining & Visualization? Ask someone who’s done it.

Talk to B.Com insiders

Verified seniors from B.com(Hons), B.com(Prog). Ask about exams, subjects or placements.

Frequently asked questions

This B.Com 5th semester course covers 5 topics, one video lesson each: Decision Trees for Classification, Logistic Regression Explained, K-Means Clustering, Association Rules: Support, Confidence and Lift and Dashboard Design Principles.

Every lesson has free study notes in English and Hinglish under its video. Log in to download them as a PDF.

These are free video courses handpicked by seniors and alumni. Each lesson has one video for each subject of your degree and semester.

YES, all videos are free with no sign-up required. You can login to unlock study notes, quizzes, and assignments.

It covers all degrees and their specialisations, including short video lessons for each subject, semester by semester.

A LIVE chat beside every lesson where Online B.Com students ask doubts and share tips. You only pay ₹19 once to unlock live chat for every degree.

NO. The videos are in Hinglish and easy to understand.

A FREE log-in is required to save your progress across all devices.

NO. InsideEdge isn’t affiliated with any Online University. These crash courses are handpicked by seniors and alumni to help you understand and revise faster, alongside your official study material.