Skip to content

Latest commit

 

History

History
291 lines (283 loc) · 9.88 KB

CodeBook.md

File metadata and controls

291 lines (283 loc) · 9.88 KB

Study Design

The raw data has been subset by taking the mean and standard-deviation pairs, where present, of the measured and estimates/derived variables e.g. tBodyAcc-mean() and tBodyAcc-std(), but not angle(tBodyAccMean,gravity).

Each observation is then enriched with the corresponding subject and activity; the activity variable is transformed into a factor-variable, giving more descriptive categorical values.

This subset is then summarized by taking the average of the measured/estimate/derived variable across all windows, grouped by the enriched subject and activity variables, in that order.

Thus there are 180 observations; 1 for each of the 6 activities for each of the 30 subjects.

Code Book

File format

The output file, tidy_data.txt, is a space delimited, wide format file.

It contains 181 lines; 180 observations, as described above, preceeded by one header row

Each variable is described below

Variables

  1. subject
  • Integer
  • Categorical: 1 to 30
  • Identifies the subject (person carrying out the actvity) of this observation
  1. activity
  • Factor
  • Categorical: WALKING, WALKING_UPSTAIRS, WALKING_DOWNSTAIRS, SITTING, STANDING, LAYING
  • Identifies the activity reflected by this observarion
  1. tBodyAcc-mean()-X
  • Decimal, meters per second-squared (m/s^2)
  • Continuous
  • Time domain mean X-axis body acceleration
  1. tBodyAcc-mean()-Y
  • Decimal, meters per second-squared (m/s^2)
  • Continuous
  • Time domain mean Y-axis body acceleration
  1. tBodyAcc-mean()-Z
  • Decimal, meters per second-squared (m/s^2)
  • Continuous
  • Time domain mean Z-axis body acceleration
  1. tBodyAcc-std()-X
  • Decimal, meters per second-squared (m/s^2)
  • Continuous
  • Time domain standard deviation X-axis body acceleration
  1. tBodyAcc-std()-Y
  • Decimal, meters per second-squared (m/s^2)
  • Continuous
  • Time domain standard deviation Y-axis body acceleration
  1. tBodyAcc-std()-Z
  • Decimal, meters per second-squared (m/s^2)
  • Continuous
  • Time domain standard deviation Z-axis body acceleration
  1. tGravityAcc-mean()-X
  • Decimal, meters per second-squared (m/s^2)
  • Continuous
  • Time domain mean X-axis gravity acceleration
  1. tGravityAcc-mean()-Y
  • Decimal, meters per second-squared (m/s^2)
  • Continuous
  • Time domain mean Y-axis gravity acceleration
  1. tGravityAcc-mean()-Z
  • Decimal, meters per second-squared (m/s^2)
  • Continuous
  • Time domain mean Z-axis gravity acceleration
  1. tGravityAcc-std()-X
  • Decimal, meters per second-squared (m/s^2)
  • Continuous
  • Time domain standard deviation X-axis gravity acceleration
  1. tGravityAcc-std()-Y
  • Decimal, meters per second-squared (m/s^2)
  • Continuous
  • Time domain standard deviation Y-axis gravity acceleration
  1. tGravityAcc-std()-Z
  • Decimal, meters per second-squared (m/s^2)
  • Continuous
  • Time domain standard deviation Z-axis gravity acceleration
  1. tBodyAccJerk-mean()-X
  • Decimal, meters per second-squared (m/s^2)
  • Continuous
  • Time domain mean X-axis body jerk acceleration
  1. tBodyAccJerk-mean()-Y
  • Decimal, meters per second-squared (m/s^2)
  • Continuous
  • Time domain mean Y-axis body jerk acceleration
  1. tBodyAccJerk-mean()-Z
  • Decimal, meters per second-squared (m/s^2)
  • Continuous
  • Time domain mean Z-axis body jerk acceleration
  1. tBodyAccJerk-std()-X
  • Decimal, meters per second-squared (m/s^2)
  • Continuous
  • Time domain standard deviation X-axis body jerk acceleration
  1. tBodyAccJerk-std()-Y
  • Decimal, meters per second-squared (m/s^2)
  • Continuous
  • Time domain standard deviation Y-axis body jerk acceleration
  1. tBodyAccJerk-std()-Z
  • Decimal, meters per second-squared (m/s^2)
  • Continuous
  • Time domain standard deviation Z-axis body jerk acceleration
  1. tBodyGyro-mean()-X
  • Decimal, radians per second (r/s)
  • Continuous
  • Time domain mean X-axis body rotation
  1. tBodyGyro-mean()-Y
  • Decimal, radians per second (r/s)
  • Continuous
  • Time domain mean Y-axis body rotation
  1. tBodyGyro-mean()-Z
  • Decimal, radians per second (r/s)
  • Continuous
  • Time domain mean Z-axis body rotation
  1. tBodyGyro-std()-X
  • Decimal, radians per second (r/s)
  • Continuous
  • Time domain standard deviation X-axis body rotation
  1. tBodyGyro-std()-Y
  • Decimal, radians per second (r/s)
  • Continuous
  • Time domain standard deviation Y-axis body rotation
  1. tBodyGyro-std()-Z
  • Decimal, radians per second (r/s)
  • Continuous
  • Time domain standard deviation Z-axis body rotation
  1. tBodyGyroJerk-mean()-X
  • Decimal, radians per second (r/s)
  • Continuous
  • Time domain mean X-axis body jerk rotation
  1. tBodyGyroJerk-mean()-Y
  • Decimal, radians per second (r/s)
  • Continuous
  • Time domain mean Y-axis body jerk rotation
  1. tBodyGyroJerk-mean()-Z
  • Decimal, radians per second (r/s)
  • Continuous
  • Time domain mean Z-axis body jerk rotation
  1. tBodyGyroJerk-std()-X
  • Decimal, radians per second (r/s)
  • Continuous
  • Time domain standard deviation X-axis body jerk rotation
  1. tBodyGyroJerk-std()-Y
  • Decimal, radians per second (r/s)
  • Continuous
  • Time domain standard deviation Y-axis body jerk rotation
  1. tBodyGyroJerk-std()-Z
  • Decimal, radians per second (r/s)
  • Continuous
  • Time domain standard deviation Z-axis body jerk rotation
  1. tBodyAccMag-mean()
  • Decimal, meters per second-squared (m/s^2)
  • Continuous
  • Time domain mean magnitude body acceleration
  1. tBodyAccMag-std()
  • Decimal, meters per second-squared (m/s^2)
  • Continuous
  • Time domain std magnitude body acceleration
  1. tGravityAccMag-mean()
  • Decimal, meters per second-squared (m/s^2)
  • Continuous
  • Time domain mean magnitude GravityAcc
  1. tGravityAccMag-std()
  • Decimal, meters per second-squared (m/s^2)
  • Continuous
  • Time domain std magnitude GravityAcc
  1. tBodyAccJerkMag-mean()
  • Decimal, meters per second-squared (m/s^2)
  • Continuous
  • Time domain mean magnitude body jerk acceleration
  1. tBodyAccJerkMag-std()
  • Decimal, meters per second-squared (m/s^2)
  • Continuous
  • Time domain std magnitude body jerk acceleration
  1. tBodyGyroMag-mean()
  • Decimal, radians per second (r/s)
  • Continuous
  • Time domain mean magnitude body rotation
  1. tBodyGyroMag-std()
  • Decimal, radians per second (r/s)
  • Continuous
  • Time domain std magnitude body rotation
  1. tBodyGyroJerkMag-mean()
  • Decimal, radians per second (r/s)
  • Continuous
  • Time domain mean magnitude body jerk rotation
  1. tBodyGyroJerkMag-std()
  • Decimal, radians per second (r/s)
  • Continuous
  • Time domain std magnitude body jerk rotation
  1. fBodyAcc-mean()-X
  • Decimal, meters per second-squared (m/s^2)
  • Continuous
  • Frequency domain mean X-axis body acceleration
  1. fBodyAcc-mean()-Y
  • Decimal, meters per second-squared (m/s^2)
  • Continuous
  • Frequency domain mean Y-axis body acceleration
  1. fBodyAcc-mean()-Z
  • Decimal, meters per second-squared (m/s^2)
  • Continuous
  • Frequency domain mean Z-axis body acceleration
  1. fBodyAcc-std()-X
  • Decimal, meters per second-squared (m/s^2)
  • Continuous
  • Frequency domain standard deviation X-axis body acceleration
  1. fBodyAcc-std()-Y
  • Decimal, meters per second-squared (m/s^2)
  • Continuous
  • Frequency domain standard deviation Y-axis body acceleration
  1. fBodyAcc-std()-Z
  • Decimal, meters per second-squared (m/s^2)
  • Continuous
  • Frequency domain standard deviation Z-axis body acceleration
  1. fBodyAccJerk-mean()-X
  • Decimal, meters per second-squared (m/s^2)
  • Continuous
  • Frequency domain mean X-axis body jerk acceleration
  1. fBodyAccJerk-mean()-Y
  • Decimal, meters per second-squared (m/s^2)
  • Continuous
  • Frequency domain mean Y-axis body jerk acceleration
  1. fBodyAccJerk-mean()-Z
  • Decimal, meters per second-squared (m/s^2)
  • Continuous
  • Frequency domain mean Z-axis body jerk acceleration
  1. fBodyAccJerk-std()-X
  • Decimal, meters per second-squared (m/s^2)
  • Continuous
  • Frequency domain standard deviation X-axis body jerk acceleration
  1. fBodyAccJerk-std()-Y
  • Decimal, meters per second-squared (m/s^2)
  • Continuous
  • Frequency domain standard deviation Y-axis body jerk acceleration
  1. fBodyAccJerk-std()-Z
  • Decimal, meters per second-squared (m/s^2)
  • Continuous
  • Frequency domain standard deviation Z-axis body jerk acceleration
  1. fBodyGyro-mean()-X
  • Decimal, radians per second (r/s)
  • Continuous
  • Frequency domain mean X-axis body rotation
  1. fBodyGyro-mean()-Y
  • Decimal, radians per second (r/s)
  • Continuous
  • Frequency domain mean Y-axis body rotation
  1. fBodyGyro-mean()-Z
  • Decimal, radians per second (r/s)
  • Continuous
  • Frequency domain mean Z-axis body rotation
  1. fBodyGyro-std()-X
  • Decimal, radians per second (r/s)
  • Continuous
  • Frequency domain standard deviation X-axis body rotation
  1. fBodyGyro-std()-Y
  • Decimal, radians per second (r/s)
  • Continuous
  • Frequency domain standard deviation Y-axis body rotation
  1. fBodyGyro-std()-Z
  • Decimal, radians per second (r/s)
  • Continuous
  • Frequency domain standard deviation Z-axis body rotation
  1. fBodyAccMag-mean()
  • Decimal, meters per second-squared (m/s^2)
  • Continuous
  • Frequency domain mean magnitude body acceleration
  1. fBodyAccMag-std()
  • Decimal, meters per second-squared (m/s^2)
  • Continuous
  • Frequency domain std magnitude body acceleration
  1. fBodyBodyAccJerkMag-mean()
  • Decimal, meters per second-squared (m/s^2)
  • Continuous
  • Frequency domain mean magnitude Bodybody jerk acceleration
  1. fBodyBodyAccJerkMag-std()
  • Decimal, meters per second-squared (m/s^2)
  • Continuous
  • Frequency domain std magnitude Bodybody jerk acceleration
  1. fBodyBodyGyroMag-mean()
  • Decimal, radians per second (r/s)
  • Continuous
  • Frequency domain mean magnitude Bodybody rotation
  1. fBodyBodyGyroMag-std()
  • Decimal, radians per second (r/s)
  • Continuous
  • Frequency domain std magnitude Bodybody rotation
  1. fBodyBodyGyroJerkMag-mean()
  • Decimal, radians per second (r/s)
  • Continuous
  • Frequency domain mean magnitude Bodybody jerk rotation
  1. fBodyBodyGyroJerkMag-std()
  • Decimal, radians per second (r/s)
  • Continuous
  • Frequency domain std magnitude Bodybody jerk rotation