LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices


Reply
  Search this Thread
Old 03-17-2011, 11:31 AM   #1
clifford227
Member
 
Registered: Dec 2009
Distribution: Slackware 14
Posts: 282

Rep: Reputation: 64
Help with maths percentages


Hi,

Im working on something, but I dont know math, frankly.

Basically I'd like to ask you guys for an answer.

I have two percentages (14% and 12%). What I need to find out is what are those percentage's as a relationship between both figures, in the context of 100%.

So for example 14% is slightly more than 12%, so that would be 14%=60%, and 12%=40% (to make up the 100%)? But I really need to know the exact percentages.

Sorry if this is a bit of a cheek to ask, but I cant do it and its quite important for me to get this right.

Last edited by clifford227; 03-17-2011 at 11:40 AM.
 
Old 03-17-2011, 11:44 AM   #2
Telengard
Member
 
Registered: Apr 2007
Location: USA
Distribution: Kubuntu 8.04
Posts: 579
Blog Entries: 8

Rep: Reputation: 148Reputation: 148
Quote:
Originally Posted by clifford227 View Post
So for example 14% is slightly more than 12%, so that would be 14%=60%, and 12%=40% (to make up the 100%)?
Ka ... what?

When working with percentages I find it useful to think in terms of the expression's spoken meaning instead of concentrating on the numbers themselves. Every time you see a % symbol, say and think out of one hundred.

30% prefer chocolate ice cream.
becomes ->
Thirty out of one hundred prefer chocolate ice cream.

Another useful trick is to try thinking of the numbers in terms of dollars and cents. This works mathematically because one hundred cents equals one dollar in value.

HTH
 
Old 03-17-2011, 12:09 PM   #3
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
I have just a guess at the meaning of the question:

If you are looking at two different totals X and Y and two parts Q and R such that:
Q is 14% of X
R is 12% of X
Q and R together form 100% of Y

So you want to know what percent is Q of Y. That is 14*100/(14+12) which is approx 53.85%
 
Old 03-17-2011, 12:24 PM   #4
clifford227
Member
 
Registered: Dec 2009
Distribution: Slackware 14
Posts: 282

Original Poster
Rep: Reputation: 64
Quote:
Originally Posted by johnsfine View Post
I have just a guess at the meaning of the question:

If you are looking at two different totals X and Y and two parts Q and R such that:
Q is 14% of X
R is 12% of X
Q and R together form 100% of Y

So you want to know what percent is Q of Y. That is 14*100/(14+12) which is approx 53.85%
So R is 12*100/(14+12) which is approx 46.15%

I think that might be right. Because I've now got what figures they should come to, and they are 14=57%, and 12=42%, but theres some margin for error.

God Im useless at maths

Thanks guys

Last edited by clifford227; 03-17-2011 at 12:51 PM.
 
Old 03-17-2011, 01:10 PM   #5
johnsfine
LQ Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,286

Rep: Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197Reputation: 1197
Quote:
Originally Posted by clifford227 View Post
I think that might be right. Because I've now got what figures they should come to, and they are 14=57%, and 12=42%, but theres some margin for error.
No. 57% and 42% are too far off. If those were supposed to be the answers, either I incorrectly guessed at the question, or you posted some incorrect numbers.

14.95 and 11.05 might considered be 57% and 42% of their combined total. But if the original data were 14.95 and 11.05, you would have said 15 and 11, not 14 and 12.

42 is the answer to the question of life the universe and everything, so it has already been demonstrated to be quite difficult to find the question when 42 is the answer

Last edited by johnsfine; 03-17-2011 at 01:25 PM.
 
Old 03-17-2011, 01:29 PM   #6
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
I like the think of percentages as a part of 1, so that 50% basically because 0.5. It's much easier that way. Assuming percent are converted into fractions of 1, this should work:

Code:
multiplier = 1 ÷ (a + b)
a_portion = a × multiplier
b_portion = b × multiplier
 
Old 03-17-2011, 02:32 PM   #7
clifford227
Member
 
Registered: Dec 2009
Distribution: Slackware 14
Posts: 282

Original Poster
Rep: Reputation: 64
john,

I do think you were right, because 1% equals 1 person in this data, and I've got a couple of people missing from somewhere, and its a small sample. So that I think that might account for it.

Last edited by clifford227; 03-17-2011 at 02:34 PM.
 
Old 03-17-2011, 07:50 PM   #8
lumak
Member
 
Registered: Aug 2008
Location: Phoenix
Distribution: Arch
Posts: 799
Blog Entries: 32

Rep: Reputation: 111Reputation: 111
if x is 100 then y is 14 + 12 = 26.
14 % of x is 14 * 100 / 26 = 53.8 % of y.
12 % of x is 12 * 100 / 26 = 46.2 % of y.

... to put it another way.

This will be true regardless of what x really is.

EDIT:
I think you can graph all possible values of x, y, and the unknown remainder of x as z using simple parametric equations.

x = t
y = 0.26t
z = 0.75t

But how to turn that into a real equation without including t is a different story. That's a bit more complicated and I think it involves sampling data from the graph and some other stuff.

The full equation would be in the form of
ax = by + cz + d

At least, I don't think there are any exponents to consider. And if you are capable of graphing parametrically, the full equation really doesn't mean anything at all. Additionally if you know any values of x y or z to be a real statistical value, you can find any of the other values.

Last edited by lumak; 03-18-2011 at 03:28 PM.
 
Old 03-17-2011, 09:22 PM   #9
moxieman99
Member
 
Registered: Feb 2004
Distribution: Dabble, but latest used are Fedora 13 and Ubuntu 10.4.1
Posts: 425

Rep: Reputation: 147Reputation: 147
Quote:
Originally Posted by clifford227 View Post
Hi,

Im working on something, but I dont know math, frankly.

Basically I'd like to ask you guys for an answer.

I have two percentages (14% and 12%). What I need to find out is what are those percentage's as a relationship between both figures, in the context of 100%.

So for example 14% is slightly more than 12%, so that would be 14%=60%, and 12%=40% (to make up the 100%)? But I really need to know the exact percentages.

Sorry if this is a bit of a cheek to ask, but I cant do it and its quite important for me to get this right.
Well, 14-12=2, and 2 is 1/6th of 12, and 1/6th of something is 16.66666666... percent of it, so 2.16666666...X = 100. 100/2.166666666... is 46.154 (rounded), so 46.154 and 53.846 percent
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to allocate percentages of internet bandwidth for different local connections? tobelinuxer Linux - Networking 3 05-19-2010 08:02 PM
vmstat sampling for averages in percentages. Devyn Linux - Software 1 12-03-2009 08:45 AM
Trying to get current cpu percentages in a script for nagios. (bash) helptonewbie Linux - Newbie 3 05-01-2008 06:09 PM
Add pixel values and percentages in CSS trainpic Programming 3 06-30-2006 10:41 AM
And some maths :-P Mathiasdm General 7 11-11-2004 03:48 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > General

All times are GMT -5. The time now is 03:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration