AI GENERATED ANSWERS AND COURSE TEXT — POSTED AS IS. The course builds on source posts from Open Education and work attributed to Sayed Ahmed where indicated. New AI-created prose, code, and synthetic-data plots are offered for reuse without copyright restrictions asserted by this site; linked external works retain their rights. AI can make mistakes; verify claims, data, outputs, and library compatibility.
Advanced Data Visualization – 001 course index · Source articles: Post 19912 · Post 19914 · Post 19916 · Post 16171 · Post 16176 · Post 76547
Learning outcome. Advanced visualization must make uncertainty visible rather than letting a crisp-looking plot imply certainty. The course combines statistical intervals, faceting, data-version notes and dashboard design into a repeatable analytic workflow.

Theory and workflow
Error bars can display standard deviation, standard error, confidence intervals or prediction intervals—each has a different meaning. Label the interval precisely; 95% confidence means a procedure has 95% long-run coverage under its assumptions, not that this particular fixed parameter is random with 95% probability.
Small multiples use repeated axes and visual encodings to compare populations while reducing clutter. Set common ranges when comparison is the objective; if panels have different scales, highlight that choice and its effect on perception.
Mathematical framework
Bootstrap percentile CI: resample n observations with replacement B times, compute statistic θ* for each, and use empirical quantiles at α/2 and 1−α/2. This simple interval is not equally reliable for every statistic or sampling design.
Python plot and implementation
import numpy as np, matplotlib.pyplot as plt
rng=np.random.default_rng(8)
groups={"A":[8,9,10,12,13,15],
"B":[9,11,12,15,16,18],
"C":[7,8,9,11,13,14]}
rows=[]
for name,x in groups.items():
x=np.array(x)
means=rng.choice(x,(3000,len(x)),replace=True).mean(axis=1)
lo,hi=np.quantile(means,[.025,.975])
rows.append((name,x.mean(),lo,hi))
fig,ax=plt.subplots(figsize=(6,4))
for i,(n,m,lo,hi) in enumerate(rows):
ax.errorbar(i,m,yerr=[[m-lo],[hi-m]],fmt="o",capsize=5)
ax.set_xticks(range(3),[r[0] for r in rows])
ax.set(ylabel="Synthetic mean",title="Bootstrap 95% intervals")
plt.tight_layout();plt.show()
print(rows)
R plot and implementation
library(ggplot2)
set.seed(8)
d <- data.frame(group=rep(c("A","B","C"),each=6),
value=c(8,9,10,12,13,15,9,11,12,15,16,18,
7,8,9,11,13,14))
summary <- do.call(rbind,lapply(split(d$value,d$group),
function(x){
b <- replicate(3000,mean(sample(x,replace=TRUE)))
c(mean=mean(x),lo=quantile(b,.025),hi=quantile(b,.975))
}))
a <- data.frame(group=rownames(summary),summary)
ggplot(a,aes(group,mean))+
geom_pointrange(aes(ymin=lo,ymax=hi))+
labs(title="Bootstrap percentile intervals")+
theme_minimal()
Potential output
The three groups have different sample means and fairly wide bootstrap intervals because only six observations were supplied per group. The exact bootstrap limits vary with the random generator and seed, and should not be interpreted as proof of a group effect.
Questions and answers
Q1. What is the difference between SD and a confidence interval?
Answer. SD describes dispersion of observations; a CI quantifies uncertainty around an estimated parameter under assumptions.
Q2. Is non-overlapping CI a universal test for significance?
Answer. No. Correct comparisons depend on the joint variance, design and hypothesis.
Q3. What makes a visualization reproducible?
Answer. Versioned input, documented transformations, a fixed or recorded seed, executable code, package versions and recorded figure settings.
Assessment
Construct a three-panel dashboard, label one uncertainty method, and reproduce it with Python and R from the same input CSV.
Translated to Bengali / বাংলায় অনুবাদ
এই অংশে ওপরের সকল ব্যাখ্যামূলক বিষয়, গাণিতিক ধারণা, ফল, প্রশ্নোত্তর এবং অনুশীলনের বাংলা অনুবাদ দেওয়া হলো। কোডের সিনট্যাক্স আগের অংশে আছে।
পাঠের উদ্দেশ্য: উন্নত ভিজুয়ালাইজেশনে অনিশ্চয়তা দেখানো জরুরি; নিখুঁত দেখতে চার্ট মানেই ফল নিশ্চিত নয়। এই পাঠে পরিসংখ্যানগত ব্যবধান, প্যানেল, তথ্যের সংস্করণ ও ড্যাশবোর্ড একত্রে শেখানো হয়েছে।
এররবার মানে স্ট্যান্ডার্ড ডিভিয়েশন, স্ট্যান্ডার্ড এরর, আস্থাব্যবধান বা পূর্বাভাসের ব্যবধান হতে পারে। কী দেখানো হয়েছে স্পষ্ট লিখুন। ৯৫% আস্থাব্যবধানের অর্থ হলো নির্দিষ্ট শর্তে পদ্ধতির দীর্ঘমেয়াদি আচ্ছাদনের হার ৯৫%।
স্মল মাল্টিপলসে এক ধরনের অক্ষ ও সংকেত বারবার ব্যবহার করে সহজ তুলনা করা হয়। তুলনা গুরুত্বপূর্ণ হলে একই পরিসর রাখুন; আলাদা স্কেল হলে তা প্রকাশ করুন।
গণিত: বুটস্ট্র্যাপ আস্থাব্যবধান: nটি মান থেকে প্রতিস্থাপনসহ B বার নমুনা নিয়ে প্রতিবার θ* হিসাব করুন; তারপর α/2 ও 1−α/2 শতাংশক নিন। সব পরিসংখ্যান বা নমুনা-পদ্ধতিতে এই সরল সীমা সমান নির্ভরযোগ্য নয়।
প্রত্যাশিত ফল: তিন গোষ্ঠীর নমুনা-গড় আলাদা, কিন্তু প্রতিটিতে মাত্র ছয়টি পর্যবেক্ষণ থাকায় বুটস্ট্র্যাপ ব্যবধান বিস্তৃত। R ও Python-এ সীমার সুনির্দিষ্ট মান আলাদা হতে পারে; পার্থক্যকে নিশ্চিত প্রভাব ভাববেন না।
প্রশ্ন 1. SD ও আস্থাব্যবধানের পার্থক্য কী?
উত্তর: SD পর্যবেক্ষণের ছড়ানো বোঝায়; আস্থাব্যবধান একটি অনুমিত পরিমাপের অনিশ্চয়তা দেখায়।
প্রশ্ন 2. আস্থাব্যবধান ওভারল্যাপ না করলেই কি সব ক্ষেত্রে তাৎপর্য নিশ্চিত?
উত্তর: না। সঠিক পরীক্ষা নির্ভর করে যৌথ ভ্যারিয়েন্স, নমুনা-নকশা ও প্রশ্নের ওপর।
প্রশ্ন 3. ভিজুয়ালাইজেশন পুনরুৎপাদনযোগ্য কীভাবে হবে?
উত্তর: সংস্করণযুক্ত তথ্য, নথিবদ্ধ রূপান্তর, র্যান্ডম seed, চলনযোগ্য কোড ও লাইব্রেরির সংস্করণ রাখতে হবে।
বাংলা অনুশীলন
একই CSV থেকে Python ও R দিয়ে তিন-প্যানেলের ড্যাশবোর্ড তৈরি করুন; অনিশ্চয়তার পদ্ধতি স্পষ্ট করুন।
এই পোস্টের শুরুতে মূল উৎসের লিংক আছে। নতুন এআই-তৈরি লেখা, কোড ও মৌলিক নমুনা-চিত্র পুনর্ব্যবহারে এই ব্লগ কোনো স্বত্ব-নিষেধ আরোপ করছে না। বাইরের উৎসের অধিকার আলাদা। এআই ভুল করতে পারে, তাই পরীক্ষা করুন।
Discover more from Open Education
Subscribe to get the latest posts sent to your email.
