AI-GENERATED COURSE CONTENT — PUBLISHED AS IS. This new lesson is AI-generated, based on questions and topic collections from Open Education, including source articles attributed to Sayed Ahmed where indicated. The new AI-generated prose, original synthetic-data plots and original code are offered for reuse without copyright restrictions asserted by this site. Third-party references have separate rights. AI can make mistakes; independently check code, statistics, and interpretations.
Course: Advanced Data Visualization – 001 — course syllabus. Original source posts: Post 16176 · Post 76580 · Post 76549 · Post 76547.
Learning focus. Multivariate visualizations encode three or more variables through position, colour, size, shape, panels or animation. They are valuable for exploration but can overload readers when too many channels are combined.

Theory and algorithmic reasoning
A scatterplot maps two quantitative variables to x and y. A bubble chart adds quantitative size and sometimes colour. With Matplotlib scatter, s is marker area in points squared, so size should be proportional to the quantity if area is intended. Add legends and avoid opaque overlap.
Parallel coordinates show each record as a polyline across normalized variable axes; line clutter grows rapidly. Radar charts can be attractive for a few comparable dimensions but area is easily misread, axis order affects shape, and mixed units require normalization.
Mathematical ideas
Pearson correlation r=cov(X,Y)/(sX·sY); it measures linear association, not causation. Marker area A∝quantity, so displayed radius r_marker∝√quantity.
Python: Reproducible plot
import numpy as np
import matplotlib.pyplot as plt
x=np.array([2,4,5,7,9,11])
y=np.array([3,5,6,8,10,9])
population=np.array([100,200,180,300,420,350])
fig,ax=plt.subplots(figsize=(7,4))
ax.scatter(x,y,s=population/2,
c=np.arange(len(x)),alpha=.55)
ax.set(xlabel="Predictor",ylabel="Outcome",
title="Bubble area follows population")
plt.tight_layout();plt.show()
print(round(np.corrcoef(x,y)[0,1],3))
R: Reproducible plot with ggplot2
library(ggplot2) df <- data.frame(x=c(2,4,5,7,9,11), y=c(3,5,6,8,10,9), population=c(100,200,180,300,420,350)) ggplot(df,aes(x,y,size=population))+ geom_point(alpha=.6,colour="#3777a5")+ scale_size_area(max_size=14)+ labs(title="Bubble chart",x="Predictor",y="Outcome")+ theme_minimal() print(cor(df$x,df$y))
Expected output and interpretation
The scatter shows a strong positive relationship for these illustrative observations. Bubble size encodes population; it does not establish the cause of the outcome. Try plotting size on a square-root scale and compare perception.
Questions and answers
Q1. Can we compare bubble diameters directly as the underlying quantity?
Answer. Not safely unless diameter was explicitly used as the quantitative encoding; normally area should encode magnitude.
Q2. When should a 3D scatterplot be avoided?
Answer. When a 2D faceted or colour-encoded plot exposes the relationship without occlusion and perspective distortion.
Q3. What is the central problem of parallel coordinates?
Answer. Overplotting and scale incompatibility; normalization, brushing and clustering may help.
Assessment and practical exercise
Make a bubble chart and a pair of small-multiple scatterplots; compare which more clearly explains a third variable.
Translated to Bengali / বাংলায় অনুবাদ
বাংলা অনুবাদ: এই পাঠের ব্যাখ্যামূলক লেখা ও প্রশ্নোত্তরের সহজ, যথাযথ বাংলা অনুবাদ নিচে দেওয়া হলো। Python ও R কোড অপরিবর্তিত রয়েছে; উপরের কোড চালিয়ে চার্ট তৈরি করুন।
শেখার বিষয়: বহুচলকীয় চার্টে তিন বা ততোধিক চলক অবস্থান, রং, আকার, প্রতীক, প্যানেল বা অ্যানিমেশনের মাধ্যমে দেখানো হয়। কিন্তু অতিরিক্ত সংকেত যোগ করলে চার্ট বোঝা কঠিন হয়।
স্ক্যাটারপ্লটে দুটি সংখ্যাগত চলক x ও y অবস্থানে প্রকাশিত হয়। বাবল চার্টে আয়তন ও রং যোগ করা যায়। Matplotlib-এর s হলো বিন্দুর ক্ষেত্রফল; আকার দিয়ে পরিমাণ বোঝালে ক্ষেত্রফলের সঙ্গে সঠিক অনুপাত রাখতে হবে।
প্যারালাল কো-অর্ডিনেটে প্রতিটি রেকর্ড বহু অক্ষ অতিক্রম করা রেখা। রেকর্ড বেশি হলে রেখার জট তৈরি হয়। রাডার চার্টে অক্ষের ক্রম ও ভিন্ন এককের জন্য আকৃতি বিভ্রান্তিকর হতে পারে; প্রয়োজনে মান স্বাভাবিকীকরণ করুন।
গাণিতিক ধারণা: Pearson সহসম্পর্ক r=cov(X,Y)/(sX·sY); এটি রৈখিক সম্পর্ক বোঝায়, কারণ-ফল নয়। বাবলের ক্ষেত্রফল A যদি পরিমাণের সমানুপাতিক হয়, তবে ব্যাসার্ধ √পরিমাণ-এর সমানুপাতিক হবে।
প্রত্যাশিত ফল: নমুনার বিন্দুগুলোর মধ্যে ইতিবাচক সম্পর্ক দেখা যায়। বাবলের আকার জনসংখ্যা নির্দেশ করে, কিন্তু ফলাফলের কারণ প্রমাণ করে না। ক্ষেত্রফল ও ব্যাসার্ধের পার্থক্য পর্যবেক্ষণ করুন।
প্রশ্ন 1. বাবলের ব্যাস সরাসরি পরিমাণ বোঝায় কি?
উত্তর: সাধারণত নয়। বেশিরভাগ বাবল চার্টে ক্ষেত্রফলের মাধ্যমে পরিমাণ দেখানো উচিত।
প্রশ্ন 2. কখন ৩-মাত্রিক স্ক্যাটারপ্লট এড়ানো ভালো?
উত্তর: যখন ২-মাত্রিক প্যানেল বা রঙের সাহায্যে একই তথ্য আরও স্পষ্টভাবে দেখানো যায়।
প্রশ্ন 3. প্যারালাল কো-অর্ডিনেটের প্রধান সমস্যা কী?
উত্তর: রেখার জট ও স্কেলের পার্থক্য; স্বাভাবিকীকরণ ও ফিল্টার সাহায্য করতে পারে।
বাংলা অনুশীলন
একটি বাবল চার্ট এবং ছোট প্যানেলে পৃথক দুটি স্ক্যাটারপ্লট বানিয়ে তুলনা করুন—তৃতীয় চলক কোথায় বেশি স্পষ্ট।
উৎস ও ব্যবহার: মূল লেখাগুলোর লিংক উপরে দেওয়া আছে। নতুন এআই-তৈরি ব্যাখ্যা ও নিজস্ব নমুনা-চিত্র পুনর্ব্যবহারযোগ্য; বাহ্যিক উৎসের স্বত্ব আলাদা। এআই ভুল করতে পারে, তাই ফল যাচাই করুন।
Discover more from Open Education
Subscribe to get the latest posts sent to your email.
