Standard deviation of aggregate data

조회 수: 7 (최근 30일)
Abraham
Abraham 2013년 7월 8일
Hi
I have two matrix with 1) day 2) travel time (sec). Where there are several observations of travel times per day. And date for more than two years.
day .......Traveltime
1 .............220
1 .............230
1 .............240
2 .............210
2 .............210
...etc
How can I aggregate the data_, so that I will have only one observation (average travel time) per day, and the standard deviation for each day.
So that the output, will be something like this:
day.......average_time.......Std_dev
1............230.............10
2............210.............0
I would appreciate if you can help me.

답변 (1개)

Shashank Prasanna
Shashank Prasanna 2013년 7월 8일
Group stats can be used to compute statistics based on some grouping. In this case day is the grouping variable and mean and standard deviation are your statistics.
Take a look at few examples that demonstrate how to do this:
  댓글 수: 1
Abraham
Abraham 2013년 7월 17일
Thank you very much Shashank

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Descriptive Statistics and Visualization에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by