Welcome to PAKITWORLD!
I hope you will find PAKITWORLD forum useful...



 
HomeCalendarFAQSearchMemberlistUsergroupsLog inRegister
Search
 
 

Display results as :
 
Rechercher Advanced Search
Freelancer.com
Visitors
Live Trafic

Share | 
 

 Standard deviation of N values

View previous topic View next topic Go down 
AuthorMessage
Admin
Admin


Posts : 216
Join date : 2011-06-17
Location : Rawalpindi

PostSubject: Standard deviation of N values   Wed Oct 26, 2011 7:31 am

Standard deviation of N values


Write a program that computes the average and standard deviation of the text floating point numbers. Use the following formulas for the average and the standard deviation of N values. The formulas compute the sum, the sum of squares, the average, the average square, the variance, and finally, the standard deviation.

sum = x1 + x2 + x3 + ... + xN-1 + xN

sumSQ = x12 + x22 + x32 + ... + xN-12 + xN2

avg = sum/N

avgSQ = sumSQ/N

var = avgSQ - avg2

sd = var(1/2)

The input will contain any number text floating point numbers, similar to the following:
10.5
12.9
9.67
12.05
8.23
10.08
10.23
7.7
10.4
11.34

-----------------------------------------------------------------------------------------------------

[You must be registered and logged in to see this link.]
Back to top Go down
View user profile http://pakitworld.board-directory.net
 
Standard deviation of N values
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» How to type German Umlaut codes on a standard keyboard
» Stubby Exhaust from standard RRW can
» 1972 Autostick Standard Beetle - ASBug
» Auto to Standard conversion.
» JCW backbox on standard MCS system

Permissions in this forum:You cannot reply to topics in this forum
 :: Programming :: Java-
Jump to: