시작하기무료로 시작하기

Standardize heart rate

"Standardization" is a data transformation that modifies values of (variable) \(x\) as:

$$\text{standardize}(x) = \frac{x-x_{mean}}{\sigma}$$

where \(x_{mean}\) is the mean value of the data, and \(\sigma\) is its standard deviation.

Standardization can be helpful when you don't know how to interpret an absolute value. For example, what does a heart rate of 78 beats per minute mean? Is it high, low, or average?

In this exercise, you'll calculate the mean and standard deviation of the heart rate data and create a new column of standardized heart rates to help answer this question.

The patient data is available in your environment as df_patients. The Statistics package has been imported for you with the using keyword.

이 연습은 강의의 일부입니다

Introduction to Julia

강의 보기

실습형 인터랙티브 연습

이 예제를 이 샘플 코드를 완성하여 풀어보세요.

# Find the mean heart rate
mean_hr = ____
코드 편집 및 실행