How to test for an independent distribution?

For econometric discussions not necessarily related to EViews.

Moderators: EViews Gareth, EViews Moderator

bengal007
Posts: 4
Joined: Mon Feb 06, 2012 6:37 am
Location: Edinburgh

How to test for an independent distribution?

Postby bengal007 » Mon Feb 13, 2012 3:32 pm

Hello All,

I would appreciate some advice on the following simple problem. I have a survey of internet users and want to test for the Null that the distributions of occupations of respondents across countries are identical.

To solve this, I have set proportions across countries and concluded that, in order for the distributions to be independent, ratios of occupations should all be identical. However, I'm quite sure my logic here is flawed. I have attached the table with the data and my workings in the .doc
Problem set.doc
Data table and my solution.
(43 KiB) Downloaded 540 times
and .xls file
Problem.xls
Further workings in Excel
(26.5 KiB) Downloaded 505 times
.

Thank you for your time.

trubador
Did you use forum search?
Posts: 1520
Joined: Thu Nov 20, 2008 12:04 pm

Re: How to test for an independent distribution?

Postby trubador » Tue Feb 14, 2012 6:05 am

I am not sure what you are trying to achieve, but I think a 2-way frequency tabulation analysis would be more appropriate for your data. Attached, you can find a workfile includes the series that I generated based on your problem set. The simplest way to carry out this analysis in EViews is to group the series first and then to select View/N-way tabulation...You can also use the following piece of code, if you like:

Code: Select all

valmap map1 valmap map2 map1.append 1 Canada map1.append 2 Europe map1.append 3 USA map2.append 1 Computer-related map2.append 2 Education/student map2.append 3 Management/prof country.map map1 occupation.map map2 group gr gr.add occupation country gr.freq(exp)

bengal007
Posts: 4
Joined: Mon Feb 06, 2012 6:37 am
Location: Edinburgh

Re: How to test for an independent distribution?

Postby bengal007 » Tue Feb 14, 2012 10:03 am

Hello,

Thanks for your prompt answer. Grouping the variables and running a two-way frequency tabulation give me the result.
However, I was pretty certain I was a simple pen-and-paper approach to this. Please give me a shout if you can think of one.

Much obliged,
Dominik

trubador
Did you use forum search?
Posts: 1520
Joined: Thu Nov 20, 2008 12:04 pm

Re: How to test for an independent distribution?

Postby trubador » Tue Feb 14, 2012 10:54 am

It is indeed a very simple approach. See, for example: Wikipedia


Return to “Econometric Discussions”

Who is online

Users browsing this forum: No registered users and 2 guests