HAHS.
Back to Catalog

Error Bars

chart

Also known as: confidence interval bars, uncertainty bars, whiskers

Show deviationCompare CategoricalNumerical Line/Area

설명 / Description

오차 막대는 데이터 포인트의 불확실성, 변동성, 정밀도를 전달하기 위해 차트에 추가하는 구간 표시입니다. 보통 점 추정치의 위아래(또는 좌우)로 뻗어나가는 얇은 선으로 나타나며, 끝에 짧은 수직 세리프가 달리는 경우가 많습니다. 오차 막대는 맥락에 따라 표준편차, 표준오차, 신뢰 구간, 또는 최소-최대 범위를 나타낼 수 있습니다.

Error bars are interval marks added to a chart to communicate the uncertainty, variability, or precision of data points. They typically appear as thin lines extending above and below (or left and right of) a point estimate, often capped with short perpendicular serifs. Error bars can represent standard deviation, standard error, confidence intervals, or min-max ranges depending on context.

과학적, 통계적 커뮤니케이션에서 오차 막대는 필수적입니다. 점 추정치의 차트를 구간의 차트로 바꾸어, 독자가 그룹 간 차이가 의미 있는 것인지 아니면 우연에 의한 것인지 판단할 수 있게 합니다. 서로 달라 보이는 두 평균을 보여주는 막대 차트도, 오차 막대가 신뢰 구간이 상당히 겹친다는 것을 드러내면 전혀 다른 이야기를 전달할 수 있습니다.

In scientific and statistical communication, error bars are indispensable. They transform a chart of point estimates into a chart of intervals, enabling readers to assess whether differences between groups are likely meaningful or could be due to chance. A bar chart showing two means that appear different may tell a very different story once error bars reveal that the confidence intervals overlap substantially.

중요성에도 불구하고 오차 막대는 자주 오해됩니다. 연구에 따르면 과학자를 포함한 많은 독자가 표준오차 막대를 신뢰 구간과 혼동하거나, 막대의 겹침 여부로 통계적 유의성을 잘못 판단합니다. 따라서 오차 막대가 무엇을 나타내는지(95% CI, ±1 SD 등) 명확히 라벨링하는 것이 중요합니다. 일부 시각화 연구자들은 오차 막대 대신 불확실성의 전체 분포를 보여주는 그라디언트 플롯이나 바이올린 플롯을 사용할 것을 주장하지만, 오차 막대는 여전히 대부분의 과학 분야에서 지배적인 관행으로 남아 있습니다.

Despite their importance, error bars are frequently misinterpreted. Studies have shown that many readers -- including scientists -- confuse standard error bars with confidence intervals, or incorrectly judge statistical significance by whether bars overlap. Clear labeling of what the error bars represent (95% CI, +/- 1 SD, etc.) is therefore critical. Some visualization researchers advocate replacing error bars with gradient plots or violin plots that show the full distribution of uncertainty, but error bars remain the dominant convention in most scientific fields.

Error Bars — point estimates with uncertainty intervals

언제 사용하나 / When to Use

  • 과학적, 통계적 차트에서 점 추정치 주변의 불확실성이나 변동성을 보여줄 때
  • Showing uncertainty or variability around point estimates in scientific or statistical charts
  • 구간의 겹침이 비유의성을 나타내는 그룹 평균을 비교할 때
  • Comparing group means where overlap of intervals indicates non-significance
  • 막대 차트, 선 그래프, 점 도표에 정밀도 맥락을 추가할 때
  • Adding precision context to bar charts, line graphs, or dot plots
  • 회귀 모델이나 설문 추정치의 신뢰 구간을 전달할 때
  • Communicating confidence intervals from regression models or survey estimates

이럴 땐 피하세요 / When NOT to Use

  • 기저 분포가 심하게 치우친 경우 -- 오차 막대는 대략적인 대칭성을 가정합니다; 박스 플롯이나 바이올린 플롯을 사용하세요
  • When the underlying distribution is highly skewed -- error bars assume rough symmetry; use a box plot or violin plot
  • 원본 데이터를 보여주는 것이 가능하고 더 유익한 경우 -- 대신 지터를 적용한 개별 점을 그리세요
  • When showing raw data is feasible and more informative -- plot individual points with jitter instead
  • 청중이 막대가 무엇을 나타내는지 이해하기 어려운 경우 -- 단순화하거나 주석을 충분히 다세요
  • When the audience is unlikely to understand what the bars represent -- simplify or annotate heavily
  • 시간에 따른 변화를 주된 이야기로 보여줄 때 -- 대신 음영 신뢰 구간이 있는 선 그래프를 사용하세요
  • For showing change over time as the primary story -- use a line graph with a shaded confidence band instead

구조 / Anatomy

  • 점 추정치: 중심값(평균, 중앙값, 또는 예측값)을 나타내는 점, 막대 상단, 또는 선상의 점입니다.
  • Point estimate: A dot, bar top, or line point representing the central value (mean, median, or predicted value).
  • 오차 막대 선: 점 추정치의 위아래로 대칭적으로(또는 비대칭적으로) 뻗어나가는 얇은 선입니다.
  • Error bar lines: Thin lines extending symmetrically (or asymmetrically) above and below the point estimate.
  • 캡(세리프): 오차 막대 끝점의 짧은 수평 눈금으로, 구간 경계를 더 쉽게 읽을 수 있게 합니다.
  • Caps (serifs): Short horizontal ticks at the endpoints of the error bar, making the interval boundaries easier to read.
  • 구간 레이블: 오차 막대가 무엇을 나타내는지 설명하는 메모나 범례입니다(예: "95% CI", "±1 SD").
  • Interval label: A note or legend explaining what the error bars represent (e.g., "95% CI", "+/- 1 SD").
  • 기준선: 구간에 맥락을 부여하는 선택적 참조선입니다(예: 0 또는 귀무가설 값).
  • Baseline: Optional reference line (e.g., zero or a null hypothesis value) to contextualize the intervals.

변형 / Variations

  • 비대칭 오차 막대: 상한과 하한이 다릅니다(예: 로그 변환 데이터나 치우친 신뢰 구간의 경우).
  • Asymmetric error bars: Upper and lower bounds differ (e.g., for log-transformed data or skewed confidence intervals).
  • 음영 신뢰 구간: 선 차트의 경우, 구간이 개별 막대가 아니라 선 주변의 반투명 영역으로 표현됩니다.
  • Shaded confidence band: For line charts, the interval is rendered as a semi-transparent area around the line rather than discrete bars.
  • 그라디언트 오차 막대: 막대가 중심에서 바깥쪽으로 갈수록 불투명도가 옅어져, 추정치에 가까운 값일수록 가능성이 높다는 것을 전달합니다.
  • Gradient error bars: The bar fades in opacity from the center outward, conveying that values near the estimate are more likely.
  • 박스-휘스커 확장: 박스 플롯처럼 사분위 범위를 보여주는 박스와 오차 막대를 결합한 형태입니다.
  • Box-and-whisker extension: Error bars combined with a box showing the interquartile range, as in a box plot.
  • 포레스트 플롯: 메타분석을 위해 수직으로 쌓은 일련의 오차 막대로, 각 연구의 효과 크기와 신뢰 구간을 보여줍니다.
  • Forest plot: A series of error bars stacked vertically for meta-analysis, showing each study's effect size and confidence interval.

코드 레퍼런스 / Code Reference

// Observable Plot - dot plot with error bars
Plot.plot({
  marks: [
    Plot.ruleY(data, {
      x: "category",
      y1: "lower",
      y2: "upper",
      stroke: "#555",
      strokeWidth: 1.5
    }),
    Plot.dot(data, {
      x: "category",
      y: "mean",
      fill: "steelblue",
      r: 5,
      tip: true
    }),
    Plot.ruleY([0])
  ],
  x: { label: "Group" },
  y: { label: "Effect Size" }
})