Skip to main content
Unlisted

Share visualization

Loading preview…

Student Performance

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Choose how to deliver this visualization

Anyone with the link can view this unlisted visualization. Posting it publicly will make the link discoverable.

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Viewing a saved revision (read-only)

e985a34835cc4460840e29c7c123a270

Student Performance

0 stars0Unlisted
ZZhikai Xue
Last edited Sep 16, 2025
Created on Sep 16, 2025
Forked from Car Sales Report

The visualization shows the distribution of UCI student performance data, where a merged table combines math and Portuguese grades with demographics and study habits. It displays raw JSON structured output from the students-merged.csv file using D3.js, rendering the parsed records as formatted text. The implementation loads the file via `fetch`, parses CSV with `csvParse`, and converts incoming data types—converting ordered fields like G1, G2, and G3 to numeric values, transforming yes/no binaries to booleans, and trimming categorical strings. The state manages the asynchronous data loading sequence.

AI-generated description

Student Performance (Merged Subjects)

Description:
This dataset combines the two UCI Student Performance tables (student-mat.csv and student-por.csv) into a single file and adds a new subject field to indicate the course for each record ("Math" or "Portuguese"). Each row represents one student in one subject with demographic, family, school-life, and study-behavior attributes plus three stage grades G1, G2, and the final grade G3 (0–20).
It can be used to analyze factors associated with academic outcome, compare subjects, and visualize relationships via scatter, bar, and line (G1→G2→G3 as phases).

Source:
UCI Machine Learning Repository – Student Performance Data Set
https://archive.ics.uci.edu/dataset/320/student+performance

Notes / Preprocessing:

  • Rows from the Math and Portuguese files were concatenated.
  • A new column subject was added to label the course of each row.
  • Field names match the original UCI schema; categorical codes follow the original encoding.

Attributes:

  • school → Categorical (Nominal): student’s school (GP, MS).
  • sex → Categorical (Nominal): F, M.
  • age → Quantitative (Discrete): age in years (15–22).
  • address → Categorical (Nominal): home address type (U urban, R rural).
  • famsize → Categorical (Nominal): family size (LE3, GT3).
  • Pstatus → Categorical (Nominal): parents’ cohabitation status (T together, A apart).
  • Medu → Ordinal: mother’s education (0=none,1=primary,2=5–9th,3=secondary,4=higher).
  • Fedu → Ordinal: father’s education (same scale as Medu).
  • Mjob → Categorical (Nominal): mother’s job (teacher, health, services, at_home, other).
  • Fjob → Categorical (Nominal): father’s job (same categories).
  • reason → Categorical (Nominal): reason to choose this school (home, reputation, course, other).
  • guardian → Categorical (Nominal): student’s guardian (mother, father, other).
  • traveltime → Ordinal: home-to-school travel time (1=<15m, 2=15–30m, 3=30–60m, 4=>60m).
  • studytime → Ordinal: weekly study time (1=<2h, 2=2–5h, 3=5–10h, 4=>10h).
  • failures → Quantitative (Discrete): number of past class failures (n, if n>3 then 4).
  • schoolsup → Categorical (Binary): extra educational support (yes/no).
  • famsup → Categorical (Binary): family educational support (yes/no).
  • paid → Categorical (Binary): extra paid classes (yes/no).
  • activities → Categorical (Binary): extra-curricular activities (yes/no).
  • nursery → Categorical (Binary): attended nursery school (yes/no).
  • higher → Categorical (Binary): wants to take higher education (yes/no).
  • internet → Categorical (Binary): Internet access at home (yes/no).
  • romantic → Categorical (Binary): in a romantic relationship (yes/no).
  • famrel → Ordinal: family relationship quality (1–5, higher is better).
  • freetime → Ordinal: free time after school (1–5).
  • goout → Ordinal: going out with friends (1–5).
  • Dalc → Ordinal: workday alcohol consumption (1–5).
  • Walc → Ordinal: weekend alcohol consumption (1–5).
  • health → Ordinal: current health status (1–5).
  • absences → Quantitative (Discrete): number of school absences.
  • G1 → Quantitative (Discrete): first period grade (0–20).
  • G2 → Quantitative (Discrete): second period grade (0–20).
  • G3 → Quantitative (Discrete): final grade (0–20).
  • subject → Categorical (Nominal): course label you added (Math/Portuguese).

Licensing / Usage:

  • Original data provided by the authors for research/education; see the UCI page for terms and citation.
  • When publishing results, cite the UCI dataset and note that this file is a merged version with an added subject field.

Suggested Visualizations:

  • Scatter: G1 vs G3 (color=subject), studytime vs G3 (size=absences).
  • Bar: average G3 by studytime/failures/higher (with CIs).
  • Line (phase): cohort mean at G1 → G2 → G3 (facet by subject or sex).