Values=[100, 101, 102.01, 103.03]
Method 1: Sum of the squared differences from the mean
Mean = 101.51
std = sqrt(((100 - 101.51)^2 + (101 - 101.51)^2 + (102 - 101.51)^2 + (103 - 101.51)^2) / 4) = 1.13
Method 2: Average of the natural log returns
returns = [1.01, 1.01, 1.01]
log_returns = [0.00995, 0.00995, 0.00995]
log_returns_squared = [0.000099009, 0.000099009, 0.000099009]
average = 0.000099009
sqrt average = 0.00995 which is 1 percent
One method gives 1.13 std and the other giver 1.
I am probably confusing two different things so could you please help me clarify this?