Welcome to Dream.In.Code
Become a C++ Expert!

Join 136,917 C++ Programmers for FREE! Get instant access to thousands of C++ experts, tutorials, code snippets, and more! There are 1,749 people online right now. Registration is fast and FREE... Join Now!




Confidence Interval

 
Reply to this topicStart new topic

Confidence Interval, C language

kgrahora
31 Mar, 2008 - 06:02 PM
Post #1

New D.I.C Head
*

Joined: 7 Mar, 2008
Posts: 8

Hello!!!
I have to write a program to calculate confidence interval. I wrote a program that calculates mean, and standard deviation and now I have to calculate the confidence interval.

The formula for confidence interval is:
mean +/- z * standard deviation/sqrt(number of samples)

Ok my question is how do I do the +/- that has to be below each other. And my program must output something like this:

mean +/- confidence interval
73.125 +/- 65.684

Thank you smile.gif

This post has been edited by kgrahora: 31 Mar, 2008 - 07:07 PM
User is offlineProfile CardPM
+Quote Post

GWatt
RE: Confidence Interval
31 Mar, 2008 - 08:23 PM
Post #2

human inside
Group Icon

Joined: 1 Dec, 2005
Posts: 2,194



Thanked: 20 times
Dream Kudos: 450
My Contributions
There's a numerical value that is the ± character.
If your program is using the extended ascii set, that value is 241. of course, you can always copy and paste ±
User is online!Profile CardPM
+Quote Post

Reply to this topicStart new topic
Time is now: 12/3/08 10:09PM

Live C++ Help!

C++ Tutorials

Reference Sheets

C++ Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month