02-19-2024, 10:11 PM
Hey!
Given a list of numbers, I've been trying to calculate the empirical cumulative distribution function for it.
I started by entering the numbers into column D1 in the "Statistics 1Var" spreadsheet.
In the 2nd column D2, I now tried calculating the eCDF by selecting the column, clicking on "Make", and entering this expression:
count(w -> w <= X, D1)
This is supposed to give me the, for every row X, the count of elements in D1 which are less than or equal to X.
I tried that both with ASCII characters, as well as → and ≤. However, I always get an "Error: Syntax Error" instead.
Using this expression directly in the CAS view works just fine.
I also managed to do the whole operation within the CAS view using
D2 = MAKELIST(count(w -> w <= X, D1), X, 1, SIZE(D1))
Is there any reason this doesn't work in the "Make Column Data" view?
Given a list of numbers, I've been trying to calculate the empirical cumulative distribution function for it.
I started by entering the numbers into column D1 in the "Statistics 1Var" spreadsheet.
In the 2nd column D2, I now tried calculating the eCDF by selecting the column, clicking on "Make", and entering this expression:
count(w -> w <= X, D1)
This is supposed to give me the, for every row X, the count of elements in D1 which are less than or equal to X.
I tried that both with ASCII characters, as well as → and ≤. However, I always get an "Error: Syntax Error" instead.
Using this expression directly in the CAS view works just fine.
I also managed to do the whole operation within the CAS view using
D2 = MAKELIST(count(w -> w <= X, D1), X, 1, SIZE(D1))
Is there any reason this doesn't work in the "Make Column Data" view?