Advanced Data Visualization – 001 | Lesson 18 — Non-Medical Determinants: Obesity, Smoking, Diet and Small Multiples

AI GENERATED CONTENT — POSTED AS IS. Learning questions and topic collections come from Open Education, with authorship of the source material credited to this site and Sayed Ahmed where named. New AI-written explanations, original code and synthetic examples are offered for reuse without copyright restrictions asserted by this blog. Third-party links and datasets retain their own rights. AI can make mistakes; this is not medical advice or a current health-system ranking.

Course index: Advanced Data Visualization – 001 · Existing source posts: Post 19924 · Post 15605 · Post 15643 · Post 15684 · Post 15722 · Post 15746 · Post 15775 · Post 14944 · Post 14947 · Post 15098

Learning focus. The original project explores non-medical determinants such as adult smoking, alcohol consumption, fruit and vegetable consumption and reported obesity. Responsible visualization makes survey definitions, age ranges, units and sampling uncertainty visible.

Original synthetic-data illustration of Non-Medical Determinants: Obesity, Smoking, Diet and Small Multiples.
Original illustrative course plot — generated, fictional data; not official Canadian healthcare results.

Theory and interpretation

A row of small multiples lets viewers compare categories using shared axes and consistent colour; it is often better than crowded grouped or stacked bars. Do not draw a causal conclusion from parallel trends in observational surveys.

If indicators have different scales—percent, liters/year, servings/day—do not put them on one axis. Use separate labeled panels or normalized scores and document the transformation. Report disaggregated data ethically to avoid stereotypes.

Mathematics and definitions

Within-indicator z-score z=(x−μ)/σ can support relative pattern exploration, but z-scores discard original units. Percentage-point change=p₂−p₁ differs from percent change=100(p₂−p₁)/p₁.

Python: plot and analysis

import pandas as pd, matplotlib.pyplot as plt
d=pd.DataFrame({"region":["A","B","C"],
 "smoking_pct":[15,20,13],
 "obesity_pct":[24,28,22],
 "fruit_pct":[55,48,64]})
cols=["smoking_pct","obesity_pct","fruit_pct"]
fig,ax=plt.subplots(1,3,figsize=(11,3.5),sharey=True)
for a,c in zip(ax,cols):
 a.bar(d.region,d[c])
 a.set_title(c.replace("_pct","").title())
 a.set_ylim(0,100)
 ax[0].set_ylabel("Synthetic %")
plt.tight_layout();plt.show()

R: plot and analysis

library(ggplot2)
d <- data.frame(region=rep(c("A","B","C"),3),
 indicator=rep(c("Smoking","Obesity","Fruit"),each=3),
 value=c(15,20,13,24,28,22,55,48,64))
ggplot(d,aes(region,value))+
 geom_col(fill="#3b7fac")+
 facet_wrap(~indicator)+
 scale_y_continuous(limits=c(0,100))+
 labs(y="Synthetic percent",x="Region")+
 theme_minimal()

Expected plot and output

Synthetic Region B has the largest smoking and obesity percentages, while C has the largest fruit-consumption percentage. These patterns are designed for classroom comparison, not health conclusions or risk labeling.

Original-topic questions with AI answers

Q1. What is average alcohol consumption across countries?

Answer. Specify whether the measure is liters of pure alcohol per adult per year or survey-reported use, align years and definitions, then calculate/plot verified values. A universal numerical average cannot be inferred from the old post title.

Q2. Why use small multiples?

Answer. They preserve common scales and reduce clutter, allowing comparisons across related indicators.

Q3. Is correlation evidence of causation?

Answer. No; observational differences may reflect confounding, selection and reverse causality.

Assessment

Reproduce three panels with real, documented indicators that use comparable units; explicitly identify which relationships must not be called causal.

Translated to Bengali / বাংলায় অনুবাদ

এই অংশে পাঠের আলোচনা ও সব প্রশ্নোত্তরের বাংলা অনুবাদ দেওয়া হয়েছে। উপরের Python ও R কোড একই থাকবে।

মূল আলোচনা: মূল প্রকল্পে ধূমপান, মদ্যপান, ফল ও সবজি গ্রহণ এবং স্থূলতার মতো স্বাস্থ্যসংক্রান্ত সামাজিক আচরণ তুলনা করা হয়েছে। দায়িত্বশীল চার্টে জরিপের সংজ্ঞা, বয়স, একক ও নমুনাগত অনিশ্চয়তা পরিষ্কার থাকতে হবে।

একই অক্ষ ও রঙে তৈরি ছোট প্যানেল বা স্মল মাল্টিপলস দিয়ে আলাদা সূচক সহজে তুলনা করা যায়। পর্যবেক্ষণমূলক জরিপের সমান্তরাল প্রবণতা দেখেই কারণ-ফল নির্ধারণ করা ঠিক নয়।

শতাংশ, বছরে লিটার, দিনে পরিবেশনসংখ্যা—এসব ভিন্ন একক একই অক্ষে রাখা যাবে না। আলাদা প্যানেল বা স্পষ্ট স্বাভাবিকীকরণ ব্যবহার করুন; গোষ্ঠীভিত্তিক তথ্য দিয়ে কুসংস্কার তৈরি করবেন না।

গাণিতিক সূত্র: একই সূচকের z-score হলো z=(x−μ)/σ, তবে এতে মূল একক হারিয়ে যায়। শতাংশ-পয়েন্ট পরিবর্তন p₂−p₁ এবং শতকরা পরিবর্তন ১০০(p₂−p₁)/p₁ আলাদা।

প্রত্যাশিত ফল: কৃত্রিম B অঞ্চলে ধূমপান ও স্থূলতার শতকরা মান বেশি, C অঞ্চলে ফল গ্রহণ বেশি। এগুলো কেবল শ্রেণিকক্ষের উদাহরণ; বাস্তব স্বাস্থ্যগত সিদ্ধান্ত নয়।

প্রশ্ন 1. বিভিন্ন দেশে গড় মদ্যপানের হার কী?

উত্তর: একক, বয়সসীমা, বছর ও পদ্ধতি নির্ধারণ করে যাচাই করা তথ্য থেকে গড় নির্ণয় করতে হবে; শুধু পুরোনো শিরোনাম থেকে সংখ্যা বলা যাবে না।

প্রশ্ন 2. স্মল মাল্টিপলস কেন ব্যবহার করবেন?

উত্তর: একই স্কেলে একাধিক সূচক তুলনায় সুবিধা হয়, রেখা ও রঙের জট কমে।

প্রশ্ন 3. সহসম্পর্ক কি কারণ-ফলের প্রমাণ?

উত্তর: না। অন্য চলক, নমুনা নির্বাচন বা বিপরীত প্রভাব থাকতে পারে।

বাংলা অনুশীলন

একই ধরনের এককের তিনটি যাচাইকৃত সূচক নিয়ে প্যানেল বানান; কোন সম্পর্ককে কারণ বলা যাবে না তা লিখুন।

উৎস-লেখার লিংক এই পোস্টের শুরুতে আছে। নতুন এআই-লেখা ও মৌলিক নমুনা-কোড পুনর্ব্যবহারযোগ্য; তৃতীয় পক্ষের আলাদা স্বত্ব প্রযোজ্য। এআই ভুল করতে পারে—উপাত্ত ও বিশ্লেষণ অবশ্যই যাচাই করুন।


Discover more from Open Education

Subscribe to get the latest posts sent to your email.

Leave a Reply

Discover more from Open Education

Subscribe now to keep reading and get access to the full archive.

Continue reading