OiO.lk Blog java Calculating variance in Java with arrays
java

Calculating variance in Java with arrays


I’m very new to programming and I’m having troubles calculating variance.

First of all, I have file that is full of data. The exercise is: there are shops and each shop sells same brands of apples. We are looking at the sourness of apples (measures on 0-5 scale).

So the my problem is, that I need to calculate which brand has the highest variance of sourness.

I have scanned csv into arrays, so now I need to take each array and calculate its variance.
I think that I need to create a loop length of array…but I don’t know how to do that:(((
I have tried to start but I get frustrated because there is a LOT of data.

I really have no idea on what to do next.



You need to sign in to view this answers

Exit mobile version