未加星标

Introduction to Error Bar in Exploratory

字体大小 | |
[前端(javascript) 所属分类 前端(javascript) | 发布者 店小二04 | 时间 2017 | 作者 红领巾 ] 0人收藏点击收藏

Introduction to Error Bar in Exploratory

Error Bar can be useful when you want to know the variability or uncertainty of the reported values. It can be used to visually understand whether the differences we are observing among the groups (or categories) are statistically significant or not.

I have created a short video to demonstrate Error Bar chart in Exploratory.

If you prefer reading, please read on.

When to use ErrorBar?

Here’s a data about the people who died while they were in custodial in Texas over the last 10 years or so.


Introduction to Error Bar in Exploratory

And I have quickly created a bar chart to show the average age for each ethnic group, African American, Anglo Saxson, and Hispanic.


Introduction to Error Bar in Exploratory

By just looking at this, we can see that the average age for Anglo Saxon group is older than the others and that Hispanic group is the youngest.

If we change the category (X-Axis) to Sex, we can see Male is older than Female by comparing the two average ages.


Introduction to Error Bar in Exploratory

So the question here is, can we be confident about these differences? In another word, how are these difference ‘ statistically significant ?’

This is where you want to switch to Error Bar chart type.


Introduction to Error Bar in Exploratory

The main bars (or boxes) themselves are still showing the average age for each ethnicity group. But we can see the vertical lines at the top of the boxes. These are called Error Bars showing the ‘uncertainty’ or the ‘errors’. In Exploratory, the ranges for the error bars are calculated as either Standard Error of Mean or 95% Confidence Interval (Margin of Error). Here’s an example of how they are calculated for each type, using Age as an example.

Standard Error of Mean (SEM) for Age SEM = sd(age) / sqrt(number_of_the_people) 95% Confidence Interval (ME - Margin of Error) for Age ME = qt(95 / 2, n) * SEM

If we want to simply compare the error bars themselves, we can switch the Graph type to Marker .


Introduction to Error Bar in Exploratory

This helps us to see a clear difference in the average ages among them.

We can also switch the range to Confidence Interval under Range Type.


Introduction to Error Bar in Exploratory

Now we can see that the bars for African American and Hispanic are slightly overlapping, but the bar for Anglo Saxon is still in a completely different range.

Next, we can assign Sex to Color.


Introduction to Error Bar in Exploratory

We can see a clear difference between Male and Female within each ethnic group.

If we zero in on Female by disabling Male, we can see that African American’s average age is older than the others.


Introduction to Error Bar in Exploratory

By looking at the error bars though, it’s hard to say the difference is statistically significant between African American and Anglo Saxon females because they are widely overlapped.

One last thing.

I have filtered the data to keep only these three ethnic groups. What if we compare all the ethnic groups? We can go back to a previous step before the filtering by clicking on the step at right hand side.


Introduction to Error Bar in Exploratory

Now we can see that wide range of the bars for the groups like American Indian, Asian, Middle East, etc.

If we look at Ethnicity column in Summary view, we can see that they are not many compared to African American, Anglo Saxon, and Hispanic.


Introduction to Error Bar in Exploratory

When you have small population of the data, the error range becomes wider. Hence, it’s harder to conclude statistical significance for these groups.

本文前端(javascript)相关术语:javascript是什么意思 javascript下载 javascript权威指南 javascript基础教程 javascript 正则表达式 javascript设计模式 javascript高级程序设计 精通javascript javascript教程

分页:12
转载请注明
本文标题:Introduction to Error Bar in Exploratory
本站链接:http://www.codesec.net/view/534838.html
分享请点击:


1.凡CodeSecTeam转载的文章,均出自其它媒体或其他官网介绍,目的在于传递更多的信息,并不代表本站赞同其观点和其真实性负责;
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。
登录后可拥有收藏文章、关注作者等权限...
技术大类 技术大类 | 前端(javascript) | 评论(0) | 阅读(11)