NATION

PASSWORD

Interesting mathematics

Bug reports, general help, ideas for improvements, and questions about how things are meant to work.
User avatar
Veeblefetzer
Lobbyist
 
Posts: 22
Founded: Feb 02, 2016
Inoffensive Centrist Democracy

Interesting mathematics

Postby Veeblefetzer » Sun Jun 19, 2016 5:37 pm

Youth Rebelliousness
Stark-Dean Displacement Index -3.00 > 0.00 - 100%

100% ??

User avatar
A Humanist Science
Diplomat
 
Posts: 688
Founded: Mar 24, 2016
Ex-Nation

Postby A Humanist Science » Sun Jun 19, 2016 5:41 pm

Veeblefetzer wrote:Youth Rebelliousness
Stark-Dean Displacement Index -3.00 > 0.00 - 100%

100% ??


((-3.00 - 0.00) / -3.00) * 100 = 100%

...?
Last edited by A Humanist Science on Sun Jun 19, 2016 5:42 pm, edited 1 time in total.

User avatar
Veeblefetzer
Lobbyist
 
Posts: 22
Founded: Feb 02, 2016
Inoffensive Centrist Democracy

Postby Veeblefetzer » Sun Jun 19, 2016 6:33 pm

A Humanist Science wrote:
Veeblefetzer wrote:Youth Rebelliousness
Stark-Dean Displacement Index -3.00 > 0.00 - 100%

100% ??


((-3.00 - 0.00) / -3.00) * 100 = 100%

...?


So I see that as ((old - new) / old) * 100 = %. So if old is 50 and new is 75 : ((50 - 75) / 50) * 100 = -50%

How about ((new - old) / old) * 100 = %.

((0.00 - -3.00) / -3.00) * 100 = -100%

It's meant to be the |absolute value| of the difference between new and old in which case |-3.00 - 0.00| = 3 still yields -100% using your example.

Every time I see something go from negative to positive it's a positive increase, which is logically correct, but mathematically incorrect. So is it a decrease (-100%) as the formula would suggest? Imagine a graph with negative numbers above the line and positive below the line. The graph line would go down which makes sense if it's a -100% decrease.

Negatives and zero makes for interesting comparisons.

edit: removed a line I forgot to delete.
Last edited by Veeblefetzer on Sun Jun 19, 2016 6:35 pm, edited 1 time in total.

User avatar
A Humanist Science
Diplomat
 
Posts: 688
Founded: Mar 24, 2016
Ex-Nation

Postby A Humanist Science » Sun Jun 19, 2016 6:59 pm

Veeblefetzer wrote:-snip-


Everything you say is irrelevant, since reality breaks down at the operationalization of "rebelliousness" utilizing an interval variable, rather than a ratio. What does -3 "rebelliousness" even mean?
Last edited by A Humanist Science on Sun Jun 19, 2016 7:00 pm, edited 1 time in total.

User avatar
Veeblefetzer
Lobbyist
 
Posts: 22
Founded: Feb 02, 2016
Inoffensive Centrist Democracy

Postby Veeblefetzer » Sun Jun 19, 2016 7:41 pm

A Humanist Science wrote:
Veeblefetzer wrote:-snip-


Everything you say is irrelevant, since reality breaks down at the operationalization of "rebelliousness" utilizing an interval variable, rather than a ratio. What does -3 "rebelliousness" even mean?


Image

I followed your advice and did not click. Thankfully I could view the source.

I agree. I guess in the context of exports a negative value would mean something is imported instead. So for a negative rebelliousness would we assume they are loving ?

Silliness aside, I do wonder why the indicators have negative values.

User avatar
Nicer potlimitomaha
Minister
 
Posts: 3226
Founded: Jan 06, 2013
Ex-Nation

Postby Nicer potlimitomaha » Sun Jun 19, 2016 9:38 pm

Veeblefetzer wrote:
A Humanist Science wrote:
Everything you say is irrelevant, since reality breaks down at the operationalization of "rebelliousness" utilizing an interval variable, rather than a ratio. What does -3 "rebelliousness" even mean?


Image

I followed your advice and did not click. Thankfully I could view the source.

I agree. I guess in the context of exports a negative value would mean something is imported instead. So for a negative rebelliousness would we assume they are loving ?

Silliness aside, I do wonder why the indicators have negative values.


If you reach zero but you keep clicking answers that make it go lower, what else could it do but go into the negative zone?
Last edited by Nicer potlimitomaha on Sun Jun 19, 2016 9:38 pm, edited 1 time in total.
Joined in 2012. Recently rejoined after a 6 year pause.

User avatar
Trotterdam
Postmaster-General
 
Posts: 10541
Founded: Jan 12, 2012
Left-Leaning College State

Postby Trotterdam » Sun Jun 19, 2016 9:51 pm

We've already talked about this:
Trotterdam wrote:I am pretty sure that the displayed percentages are percentages of the absolute value of the previous stat. So -185 "plus" 1.3% would be -182.595. This is to ensure that positive percentages always signify increases and negative percentages always signify decreases, since quite often you'll be more interested in the direction of the change than the exact value.

This is pretty clearly deliberate. Coding the calculation to use absolute values would take more effort than using the "obvious" math, and so is unlikely to have been done by accident.

I'm not sure how the game handles it when a value that was previously exactly zero stops being zero. (Mathematically speaking, that's an increase/decrease of infinity percent.) I think the game describes it as rising/falling by exactly 100%, I recall seeing that once.

User avatar
A Humanist Science
Diplomat
 
Posts: 688
Founded: Mar 24, 2016
Ex-Nation

Postby A Humanist Science » Sun Jun 19, 2016 10:05 pm

Nicer potlimitomaha wrote:If you reach zero but you keep clicking answers that make it go lower, what else could it do but go into the negative zone?


Code: Select all
$Rebelliousness = $Rebelliousness - $Reduce_By_This_Much;
IF $Rebelliousness < 0 THEN $Rebelliousness = 0;

User avatar
Veeblefetzer
Lobbyist
 
Posts: 22
Founded: Feb 02, 2016
Inoffensive Centrist Democracy

Postby Veeblefetzer » Sun Jun 19, 2016 10:32 pm



ok ok .. sorry!

-3 increased by 100% is - 6

I guess if they didn't remove the sign on the result of the percentage change calculation you'd have stacks of people pointing that out instead.

Sometimes I forget this is a game.

User avatar
Veeblefetzer
Lobbyist
 
Posts: 22
Founded: Feb 02, 2016
Inoffensive Centrist Democracy

Postby Veeblefetzer » Sun Jun 19, 2016 10:32 pm

A Humanist Science wrote:
Nicer potlimitomaha wrote:If you reach zero but you keep clicking answers that make it go lower, what else could it do but go into the negative zone?


Code: Select all
$Rebelliousness = $Rebelliousness - $Reduce_By_This_Much;
IF $Rebelliousness < 0 THEN $Rebelliousness = 0;


lol. Priceless.

User avatar
Veeblefetzer
Lobbyist
 
Posts: 22
Founded: Feb 02, 2016
Inoffensive Centrist Democracy

Postby Veeblefetzer » Wed Jul 06, 2016 3:25 pm

So today I notice this.

Defense Forces
Total War Preparedness Rating -6.32 → -0.00 ⇡100%

-0.00 instead of 0.00

I like it !

User avatar
Louisistan
Diplomat
 
Posts: 811
Founded: Sep 10, 2012
Inoffensive Centrist Democracy

Postby Louisistan » Wed Jul 06, 2016 11:55 pm

Veeblefetzer wrote:So today I notice this.

Defense Forces
Total War Preparedness Rating -6.32 → -0.00 ⇡100%

-0.00 instead of 0.00

I like it !

-0.00 is generally used, when a negative number is rounded to 0.00 (e.g. -0.0001 rounded to two digits after the decimal point is -0.00). Not only in this game ;)
Last edited by Louisistan on Wed Jul 06, 2016 11:55 pm, edited 1 time in total.
Knight of TITO

User avatar
Imperium Anglorum
GA Secretariat
 
Posts: 12659
Founded: Aug 26, 2013
Left-Leaning College State

Postby Imperium Anglorum » Thu Jul 07, 2016 12:31 am

Louisistan wrote:
Veeblefetzer wrote:So today I notice this.

Defense Forces
Total War Preparedness Rating -6.32 → -0.00 ⇡100%

-0.00 instead of 0.00

I like it !

-0.00 is generally used, when a negative number is rounded to 0.00 (e.g. -0.0001 rounded to two digits after the decimal point is -0.00). Not only in this game ;)

Quite. If I recall correctly, the Java language specification uses -0.0 to represent float values in exactly such a case.

Author: 1 SC and 56+ GA resolutions
Maintainer: GA Passed Resolutions
Developer: Communiqué and InfoEurope
GenSec (24 Dec 2021 –); posts not official unless so indicated
Delegate for Europe
Elsie Mortimer Wellesley
Ideological Bulwark 285, WALL delegate
Twice-commended toxic villainous globalist kittehs


Advertisement

Remove ads

Return to Technical

Who is online

Users browsing this forum: Angwama, Bootyswana04, CaliforniaCorp, Dayganistan, East Malaysia, Floppa Lovers, Honchu, Kvtropolis, Papercuts and Skittles, Second Scratch Empire, Telnuhq, The Southern Dependencies, Untecna, Verderiesdre

Advertisement

Remove ads