standard deviation calculation can't figure out what a variable is
up vote
-3
down vote
favorite
Hey guys i was given the code to calculate a standard deviation in java netbeans. However I don't really understand how standard deviation works. What does the s represent in the code.
public static <T extends Number> double calculateStandardDeviation(ArrayList<T> numberList) {
if (numberList.size() <= 1) {
throw new IllegalArgumentException("Size of array must be greater than 1");
}
int numberListSize = numberList.size();
double s = 0;
double listAverage = calculateAverage(numberList,true);
for (int i = 0; i < numberListSize; i++) {
double numberDouble = numberList.get(i).doubleValue();
s += Math.pow(numberDouble - listAverage,2);
}
double standardDeviation = Math.sqrt(s / (numberListSize-1));
return standardDeviation;
}
Sorry if this problem is to simple for stack overflow.
java netbeans standard-deviation
add a comment |
up vote
-3
down vote
favorite
Hey guys i was given the code to calculate a standard deviation in java netbeans. However I don't really understand how standard deviation works. What does the s represent in the code.
public static <T extends Number> double calculateStandardDeviation(ArrayList<T> numberList) {
if (numberList.size() <= 1) {
throw new IllegalArgumentException("Size of array must be greater than 1");
}
int numberListSize = numberList.size();
double s = 0;
double listAverage = calculateAverage(numberList,true);
for (int i = 0; i < numberListSize; i++) {
double numberDouble = numberList.get(i).doubleValue();
s += Math.pow(numberDouble - listAverage,2);
}
double standardDeviation = Math.sqrt(s / (numberListSize-1));
return standardDeviation;
}
Sorry if this problem is to simple for stack overflow.
java netbeans standard-deviation
s
is variance,sd = sqrt( s/ size - 1)
– The Scientific Method
Nov 10 at 19:16
thanks. I appreciate it
– Caleb
Nov 10 at 19:18
add a comment |
up vote
-3
down vote
favorite
up vote
-3
down vote
favorite
Hey guys i was given the code to calculate a standard deviation in java netbeans. However I don't really understand how standard deviation works. What does the s represent in the code.
public static <T extends Number> double calculateStandardDeviation(ArrayList<T> numberList) {
if (numberList.size() <= 1) {
throw new IllegalArgumentException("Size of array must be greater than 1");
}
int numberListSize = numberList.size();
double s = 0;
double listAverage = calculateAverage(numberList,true);
for (int i = 0; i < numberListSize; i++) {
double numberDouble = numberList.get(i).doubleValue();
s += Math.pow(numberDouble - listAverage,2);
}
double standardDeviation = Math.sqrt(s / (numberListSize-1));
return standardDeviation;
}
Sorry if this problem is to simple for stack overflow.
java netbeans standard-deviation
Hey guys i was given the code to calculate a standard deviation in java netbeans. However I don't really understand how standard deviation works. What does the s represent in the code.
public static <T extends Number> double calculateStandardDeviation(ArrayList<T> numberList) {
if (numberList.size() <= 1) {
throw new IllegalArgumentException("Size of array must be greater than 1");
}
int numberListSize = numberList.size();
double s = 0;
double listAverage = calculateAverage(numberList,true);
for (int i = 0; i < numberListSize; i++) {
double numberDouble = numberList.get(i).doubleValue();
s += Math.pow(numberDouble - listAverage,2);
}
double standardDeviation = Math.sqrt(s / (numberListSize-1));
return standardDeviation;
}
Sorry if this problem is to simple for stack overflow.
java netbeans standard-deviation
java netbeans standard-deviation
asked Nov 10 at 19:12
Caleb
215
215
s
is variance,sd = sqrt( s/ size - 1)
– The Scientific Method
Nov 10 at 19:16
thanks. I appreciate it
– Caleb
Nov 10 at 19:18
add a comment |
s
is variance,sd = sqrt( s/ size - 1)
– The Scientific Method
Nov 10 at 19:16
thanks. I appreciate it
– Caleb
Nov 10 at 19:18
s
is variance, sd = sqrt( s/ size - 1)
– The Scientific Method
Nov 10 at 19:16
s
is variance, sd = sqrt( s/ size - 1)
– The Scientific Method
Nov 10 at 19:16
thanks. I appreciate it
– Caleb
Nov 10 at 19:18
thanks. I appreciate it
– Caleb
Nov 10 at 19:18
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53242502%2fstandard-deviation-calculation-cant-figure-out-what-a-variable-is%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
s
is variance,sd = sqrt( s/ size - 1)
– The Scientific Method
Nov 10 at 19:16
thanks. I appreciate it
– Caleb
Nov 10 at 19:18