• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EST 11:05
CET 17:05
KST 01:05
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
TL.net Map Contest #21: Winners8Intel X Team Liquid Seoul event: Showmatches and Meet the Pros10[ASL20] Finals Preview: Arrival13TL.net Map Contest #21: Voting12[ASL20] Ro4 Preview: Descent11
Community News
Starcraft, SC2, HoTS, WC3, returning to Blizzcon!33$5,000+ WardiTV 2025 Championship6[BSL21] RO32 Group Stage4Weekly Cups (Oct 26-Nov 2): Liquid, Clem, Solar win; LAN in Philly2Weekly Cups (Oct 20-26): MaxPax, Clem, Creator win9
StarCraft 2
General
RotterdaM "Serral is the GOAT, and it's not close" TL.net Map Contest #21: Winners Starcraft, SC2, HoTS, WC3, returning to Blizzcon! 5.0.15 Patch Balance Hotfix (2025-10-8) Weekly Cups (Oct 20-26): MaxPax, Clem, Creator win
Tourneys
$5,000+ WardiTV 2025 Championship Sparkling Tuna Cup - Weekly Open Tournament Constellation Cup - Main Event - Stellar Fest Merivale 8 Open - LAN - Stellar Fest Sea Duckling Open (Global, Bronze-Diamond)
Strategy
Custom Maps
Map Editor closed ?
External Content
Mutation # 498 Wheel of Misfortune|Cradle of Death Mutation # 497 Battle Haredened Mutation # 496 Endless Infection Mutation # 495 Rest In Peace
Brood War
General
BW General Discussion [ASL20] Ask the mapmakers — Drop your questions [BSL21] RO32 Group Stage BGH Auto Balance -> http://bghmmr.eu/ SnOw's ASL S20 Finals Review
Tourneys
[Megathread] Daily Proleagues [ASL20] Grand Finals [BSL21] RO32 Group B - Sunday 21:00 CET [BSL21] RO32 Group A - Saturday 21:00 CET
Strategy
Current Meta PvZ map balance How to stay on top of macro? Soma's 9 hatch build from ASL Game 2
Other Games
General Games
Stormgate/Frost Giant Megathread Dawn of War IV Nintendo Switch Thread ZeroSpace Megathread General RTS Discussion Thread
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Deck construction bug Heroes of StarCraft mini-set
TL Mafia
TL Mafia Community Thread SPIRED by.ASL Mafia {211640}
Community
General
Russo-Ukrainian War Thread US Politics Mega-thread Things Aren’t Peaceful in Palestine YouTube Thread Dating: How's your luck?
Fan Clubs
White-Ra Fan Club The herO Fan Club!
Media & Entertainment
Anime Discussion Thread Movie Discussion! [Manga] One Piece Korean Music Discussion Series you have seen recently...
Sports
2024 - 2026 Football Thread NBA General Discussion MLB/Baseball 2023 TeamLiquid Health and Fitness Initiative For 2023 Formula 1 Discussion
World Cup 2022
Tech Support
SC2 Client Relocalization [Change SC2 Language] Linksys AE2500 USB WIFI keeps disconnecting Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List Recent Gifted Posts
Blogs
Coffee x Performance in Espo…
TrAiDoS
Saturation point
Uldridge
DnB/metal remix FFO Mick Go…
ImbaTosS
Why we need SC3
Hildegard
Reality "theory" prov…
perfectspheres
Our Last Hope in th…
KrillinFromwales
Customize Sidebar...

Website Feedback

Closed Threads



Active: 1706 users

stats... regression stuff

Blogs > Xeris
Post a Reply
Xeris
Profile Blog Joined July 2005
Iran17695 Posts
November 12 2009 16:22 GMT
#1
[This isn't a homework thread]

I took AP Stats (4 years ago) where I learned about regressions, and I took it in college, although we didn't get too much into regressions. Anyways I'm trying to brush up on not necessarily DOING the regression, but sort of the interpretation of results and such.

It came up at work, where basically I'm looking at this data of the major defense companies and the proportion of their total sales that are weapons.

For example, here's a little taste of what I'm looking at (just because some people might be interested)

Boeing was ranked #1 on the "top 100 arms producing companies" - with 46% of its total sales in 2007 going towards arms. In 2006 the proportion was 50%.

Anyways, I was looking at this stuff and I thought to myself "hey, it would be cool to see if there is any relation between the profit earned and the proportion of sales going to arms!" Basically what I am trying to do is see if there is a relation between increasing profits of these companies, and the lowering of spending on arms.

Example:

Boeing 2006:
Arms %: 50
Profit: 2,215 (million)

Boeing 2007:
Arms %: 46%
Profit: 4,074 (million)

Is there any relation? Is it a coincidence? I'm really curious. So I figured doing a regression might be a good idea to test this out.

Am I correct in assuming that a regression test would be good in this situation? Also, I'm planning on using about 5-10 years of data for maybe 10-12 different companies... is this something a regression test can do?

I'm just trying to basically remember if this is the right statistical test to use.

twitter.com/xerislight -- follow me~~
Not_A_Notion
Profile Joined May 2009
Ireland441 Posts
Last Edited: 2009-11-12 16:49:34
November 12 2009 16:40 GMT
#2
I'm going to put my neck on the line and say yes a regression is a legitimate way to investigate.
You can carry out 1 regression for each company individually or you can use a Panel Data approach that tries to use both the cross sectional and time series information in the regressions, I am not too familiar with panel data regressions myself, never had to actually apply it so I reckon the wiki links or google might be a good place to go.

Also perhaps it might be wise to also regress %profit on %sales from arms to look at the relationship from 2 angles.....
I am sure someone will blow me out of the water on this but hey.

Edit; Oh and Happy Birthday
Edit2- I have notes on panel data lying around somewhere which are decent enough if you want the jist of them
A worrying lack of anvils
b3h47pte
Profile Blog Joined May 2007
United States1317 Posts
Last Edited: 2009-11-12 16:58:29
November 12 2009 16:43 GMT
#3
--edit--
=[ failure haha.
Caller
Profile Blog Joined September 2007
Poland8075 Posts
November 12 2009 16:50 GMT
#4
From a rudimentary look at the data, I can say that a t test would show that there is not relationship between increased earnings and % of income spent on arms. The fact that income doubled yet arms sales only decreased by 4% would seem to suggest that the cause is extraneous to the arms variable.
Watch me fail at Paradox: http://www.teamliquid.net/forum/viewmessage.php?topic_id=397564
Empyrean
Profile Blog Joined September 2004
17015 Posts
November 12 2009 16:52 GMT
#5
On November 13 2009 01:43 b3h47pte wrote:
A regression will only tell you if there is a linear relationship between your two variables in thsi case the arms % and the profit. But yes, from what i've learned in AP stat, what you want to do is perfectly fine for this data set as long as it is linear.


Regression techniques can tell you a lot more than existence of linear relationships :/
Moderator
520
Profile Blog Joined April 2009
United States2822 Posts
November 12 2009 16:54 GMT
#6
If I'm not mistaken, the regression with the highest r^2 value (that is, closest to 1) is the most accurate representation of the data, correct?
Writer
b3h47pte
Profile Blog Joined May 2007
United States1317 Posts
November 12 2009 16:58 GMT
#7
On November 13 2009 01:52 Empyrean wrote:
Show nested quote +
On November 13 2009 01:43 b3h47pte wrote:
A regression will only tell you if there is a linear relationship between your two variables in thsi case the arms % and the profit. But yes, from what i've learned in AP stat, what you want to do is perfectly fine for this data set as long as it is linear.


Regression techniques can tell you a lot more than existence of linear relationships :/


Right. was thinking about linear regression. lawl >>
Empyrean
Profile Blog Joined September 2004
17015 Posts
Last Edited: 2009-11-12 17:19:00
November 12 2009 17:02 GMT
#8
On November 13 2009 01:54 scintilliaSD wrote:
If I'm not mistaken, the regression with the highest r^2 value (that is, closest to 1) is the most accurate representation of the data, correct?


No, it's just the one that explains most of the variance.

R^2 pretty much isn't good for anything.

You can make any regression model increase its R^2 value artificially just by adding more explanatory variables...even nonsensical ones such as number of potatoes eaten that week or amount of birds the company owns. As you add enough variables, eventually your X matrix becomes full rank and you'll have R^2 of one, no matter what kinds of trash you added as explanatory variables.

Besides, you could have a model that beautifully explains the data, but not linearly, so you'll have a comparatively low R^2.

You could also have multicollinearity issues which underlie the data, but you won't find that out until you check the covariance matrix.

If you're looking to compare different models, at the very least perform partial F-tests or check various information criteria (BIC is the most popular). There are better methods, but the easiest methods that provide legitimate information for model selection would be to perform partial F-tests on the models and comparing the BICs.
Moderator
Not_A_Notion
Profile Joined May 2009
Ireland441 Posts
Last Edited: 2009-11-12 17:21:07
November 12 2009 17:06 GMT
#9
EDIT-
NVM see Empryean posts re R^2 and AIC
A worrying lack of anvils
Empyrean
Profile Blog Joined September 2004
17015 Posts
Last Edited: 2009-11-12 17:11:25
November 12 2009 17:09 GMT
#10
My issue with AIC is that it doesn't punish large models as much as BIC does.

Although I suppose everyone has their own opinions.

They usually give the same results anyway.

EDIT: One thing that BIC has that AIC doesn't (I think) is that it's been proven asymptotically consistent. I don't think it's been proven for AIC yet (might have even been disproven? I dunno. But I know for sure that BIC has been proven to be asymptotically consistent...not that it's going to matter for Xeris, anyway).

EDIT: Also it turns out the post above me has been edited so it looks like I'm talking to myself now <_<
Moderator
Rho_
Profile Blog Joined January 2009
United States971 Posts
November 12 2009 17:09 GMT
#11
The fact that income doubled yet arms sales only decreased by 4% would seem to suggest that the cause is extraneous to the arms variable.


This. Boeing is down to 2.7 billion net profit in 2008, a 34% decline, and I doubt their defense contracts went up that much. They blame reduced defense spending and less air traffic growth for their reduced profits.

The global economy continues to weaken and is adversely affecting air traffic growth and financing," Jim McNerney, Boeing's chairman, president and chief executive, said in a conference call. "We are also expecting pressure on defense budgets in light of the economic recovery and financial rescue packages put forth by various governments.
Not_A_Notion
Profile Joined May 2009
Ireland441 Posts
Last Edited: 2009-11-12 17:13:06
November 12 2009 17:12 GMT
#12
On November 13 2009 02:09 Empyrean wrote:
My issue with AIC is that it doesn't punish large models as much as BIC does.

Although I suppose everyone has their own opinions.

They usually give the same results anyway.

EDIT: One thing that BIC has that AIC doesn't (I think) is that it's been proven asymptotically consistent. I don't think it's been proven for AIC yet (might have even been disproven? I dunno. But I know for sure that BIC has been proven to be asymptotically consistent...not that it's going to matter for Xeris, anyway).

EDIT: Also it turns out the post above me has been edited so it looks like I'm talking to myself now <_<

Yes Sorry I edited mine out as soon as I saw your post since it was obvious you knew what you were talking about...and I didn't
A worrying lack of anvils
StorrZerg
Profile Blog Joined February 2008
United States13919 Posts
Last Edited: 2009-11-12 18:20:03
November 12 2009 18:19 GMT
#13
HAPPY BDAY XERIS! (even though its tomorrow lol)
Hwaseung Oz fan for life. Swing out, always swing out.
illu
Profile Blog Joined December 2008
Canada2531 Posts
November 12 2009 18:29 GMT
#14
I am taking regression analysis right now. It is honestly the MOST difficult course I have ever taken.
:]
Empyrean
Profile Blog Joined September 2004
17015 Posts
November 12 2009 18:30 GMT
#15
On November 13 2009 03:29 illu wrote:
I am taking regression analysis right now. It is honestly the MOST difficult course I have ever taken.


It was actually an easier course for me.

Probability was difficult as fuck, though :/
Moderator
Xeris
Profile Blog Joined July 2005
Iran17695 Posts
November 12 2009 18:39 GMT
#16
For someone who has only taken a college stats class - AIC and BIC?? What are those? And uh, I believe when I ran a regression with excel it calculated something like Partial-F as well.
twitter.com/xerislight -- follow me~~
Empyrean
Profile Blog Joined September 2004
17015 Posts
November 12 2009 18:46 GMT
#17
Errr, what I mean by a partial F-test is really just for multiple regression cases when you're trying to decide whether or not to include variables. Basically, we're using conditional sums of squares to see if adding variables helps or not. Lots of stats packages will do this for you (the anova(model) command in R, for instance, automatically calculates this).

As for "easy" ways to choose between models, AIC and BIC are various selection criteria for different models. They basically assign a numerical score to each model; the lower the better. Most statisticians use more complex methods these days. I don't even think anyone uses AIC anymore...an additional method that some people use is stepwise regression, although it runs into the problem of encountering local minima and maxima so you might not always get to the best model.

Also if you have tons of data (hundreds of explanatory variables, or whatever), there're ways to deal with model selection, but it's both mathematically difficult and computationally intense.

I wouldn't worry about any of this stuff.
Moderator
illu
Profile Blog Joined December 2008
Canada2531 Posts
November 12 2009 18:59 GMT
#18
On November 13 2009 03:30 Empyrean wrote:
Show nested quote +
On November 13 2009 03:29 illu wrote:
I am taking regression analysis right now. It is honestly the MOST difficult course I have ever taken.


It was actually an easier course for me.

Probability was difficult as fuck, though :/


I fnd probability to be a bird course.
:]
Please log in or register to reply.
Live Events Refresh
Next event in 1h 56m
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
RotterdaM 572
BRAT_OK 90
Codebar 41
Livibee 31
StarCraft: Brood War
Jaedong 1495
GuemChi 1465
EffOrt 1325
Stork 698
Light 607
Larva 417
Snow 411
Mini 356
Rush 223
Barracks 222
[ Show more ]
Leta 119
hero 112
sSak 111
JYJ47
Aegong 37
Backho 34
sorry 29
zelot 26
soO 23
Terrorterran 16
HiyA 15
scan(afreeca) 12
Bale 9
Dota 2
qojqva3422
420jenkins258
syndereN218
Other Games
singsing2199
Sick375
DeMusliM352
crisheroes342
Lowko284
Hui .257
Liquid`VortiX150
oskar109
KnowMe96
XcaliburYe58
QueenE29
Trikslyr17
Organizations
Counter-Strike
PGL201
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 16 non-featured ]
StarCraft 2
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• Michael_bg 4
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
Dota 2
• C_a_k_e 2491
• WagamamaTV466
League of Legends
• Nemesis4280
• Jankos3067
• TFBlade809
Upcoming Events
LAN Event
1h 56m
Lambo vs Harstem
FuturE vs Maplez
Scarlett vs FoxeR
Gerald vs Mixu
Zoun vs TBD
Clem vs TBD
ByuN vs TBD
TriGGeR vs TBD
Korean StarCraft League
10h 56m
CranKy Ducklings
17h 56m
IPSL
1d 1h
dxtr13 vs OldBoy
Napoleon vs Doodle
LAN Event
1d 1h
BSL 21
1d 3h
Gosudark vs Kyrie
Gypsy vs Sterling
UltrA vs Radley
Dandy vs Ptak
Replay Cast
1d 6h
Sparkling Tuna Cup
1d 17h
WardiTV Korean Royale
1d 19h
IPSL
2 days
JDConan vs WIZARD
WolFix vs Cross
[ Show More ]
LAN Event
2 days
BSL 21
2 days
spx vs rasowy
HBO vs KameZerg
Cross vs Razz
dxtr13 vs ZZZero
Replay Cast
2 days
Wardi Open
2 days
WardiTV Korean Royale
3 days
Replay Cast
4 days
Kung Fu Cup
4 days
Classic vs Solar
herO vs Cure
Reynor vs GuMiho
ByuN vs ShoWTimE
Tenacious Turtle Tussle
5 days
The PondCast
5 days
RSL Revival
5 days
Solar vs Zoun
MaxPax vs Bunny
Kung Fu Cup
5 days
WardiTV Korean Royale
5 days
RSL Revival
6 days
Classic vs Creator
Cure vs TriGGeR
Kung Fu Cup
6 days
Liquipedia Results

Completed

BSL 21 Points
SC4ALL: StarCraft II
Eternal Conflict S1

Ongoing

C-Race Season 1
IPSL Winter 2025-26
KCM Race Survival 2025 Season 4
SOOP Univ League 2025
YSL S2
Stellar Fest: Constellation Cup
IEM Chengdu 2025
PGL Masters Bucharest 2025
Thunderpick World Champ.
CS Asia Championships 2025
ESL Pro League S22
StarSeries Fall 2025
FISSURE Playground #2
BLAST Open Fall 2025
BLAST Open Fall Qual

Upcoming

BSL Season 21
SLON Tour Season 2
BSL 21 Non-Korean Championship
Acropolis #4
IPSL Spring 2026
HSC XXVIII
RSL Offline Finals
WardiTV 2025
RSL Revival: Season 3
META Madness #9
BLAST Bounty Winter 2026: Closed Qualifier
eXTREMESLAND 2025
ESL Impact League Season 8
SL Budapest Major 2025
BLAST Rivals Fall 2025
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.