THE UNIVERSITY OF CALIFORNIA, LOS ANGELES
Department of Economics
Economics 143 - Applied Regression Analysis
October 8, 1998
Cameron
Problem Set #2: Statistics Review, Continued

Due: Beginning of lecture, October 15, 1998

INSTRUCTIONS: Some review of your prerequisite coursework in univariate statistics may be required to complete these problems.

FILES NEEDED: n:alaska.dat, n:alaska0.sha

1. Is either of the following a valid probability density function? Why or why not?

 , (this should be very familiar)

 

2. For a standard normal random variable Z, what is Pr(Z = 0.5)? Don't be fooled. Explain.

3. If Z is the standard normal random variable, use the table inside the front cover of HGJ to determine:

a.) Pr (Z > 0.5)
b.) Pr (0.3 < Z < 0.8)
c.) Pr (-0.5 < Z < 1.2)
d.) Pr (|Z| > 1.96) (an important one!)

4. If X is approximately normally distributed with mean 5 and variance 9, determine

a.) Pr (X > 6)
b.) Pr (3 < X < 6)
c.) x* such that Pr (X < x*) = .025
 
5. Distinguish between a population "parameter," an "estimator," and an "estimate."

6. Distinguish between "point estimation" and "interval estimation."

7. Is the median a "linear estimator"? Is the mean?

8. If we draw a random sample of size 36 and we find that the sample mean is 7 and the sample variance is s2=4, construct a 95% "confidence interval" for the value of the population mean m x. Show your work carefully.
9. If we draw a random sample of size 25 and discover that the mean of X in the sample is 10 and s2=16, test the null hypothesis that m x=8.5 (using either a "two-tailed" Z-test or a "two-tailed" t-test, whichever is most appropriate, justifying your choice):

a.) at the 5% "level of significance";
b.) at the 10% "level of significance".
 
 
10. EXPLORING A DATA SET (Calisthenics with SHAZAM): Download from the network (or from the website) to your own diskette the files n:alaska.dat and n:alaska0.sha using the procedure outlined in the SHAZAM for Windows computer software orientation handout. Be sure to print out a copy of the program itself so you can refer to it later.

A description of the data set is contained in comment lines at the top of the program file.

a.) Start the SHAZAM program and when it says "TYPE COMMAND," invoke an already-created set of commands from the alaska0.sha file by issuing the command file input alaska0.sha. If you are working from a disk in the a: drive, use file input a:alaska0.sha.)  This run is simply to verify that you can read and use the data (i.e. that all files are in the right places). Enter the command stat to verify that you have all the data.

b.) Now, use the SHAZAM editor to make some changes to the alaska0.sha file. Instead of issuing commands interactively after executing the initial set of commands from the alaska0.sha file, incorporate some additional commands into the program. Until you think you have the program running smoothly and correctly, just have the output sent to the screen. When it all looks like it works fine, save the output in the SHAZAM window to a file, for later printing via Notepad (from the Econ143 menu, if you are working in the lab) .

For example, look at the actual numbers and then produce a set of descriptive statistics for some of the variables in the augmented data set by using the commands:

print year ptot qtot rtot
stat ptot qtot rtot / pcor

c.) Descriptive statistics: What are the highest and lowest prices (in 1989 dollars) that have been observed over the 1964-1991 period? What has been the average size of the catch, in millions of pounds, over this time period? What has been the standard deviation in catch over this period?

d.) SOME ECONOMIC THEORY: When demand is "elastic" (such that a given percent change in price leads to a larger percent opposite change in quantity demanded), an increase in price results in a decrease in total revenues in a market. When demand is "inelastic" (such that a given percent change in price leads to a smaller percent opposite change in quantity demanded), and increase in price results in an increase in total revenues. If we (erroneously) considered all five major types of Alaskan salmon to be sold in one market, what does the correlation table produced by the / pcor option on the stat command imply about overall demand elasticity in this market? Would you consider this implication reliable? Why or why not? (Think about the implicit ceteris paribus requirement underlying "demand curves," i.e. that everything else be held constant.)

e.) Now take into account that there are five different "goods" involved--chum, king, pink, red, and silver salmon species, possibly each with a distinct market. Use stat / pcor and the crude plot option in SHAZAM to see whether catch levels for each of these five species "move together" over this time period. Comment.

stat cquant kquant rquant pquant squant / pcor
plot cquant year 
plot kquant year 
plot rquant year 
plot pquant year 
plot squant year 

or try some fancy plots by using

plot cquant kquant rquant pquant squant year / gnu line

If you have your own stand-alone computer equipment and an attached laser printer, you are welcome to experiment with the gnuplot options mentioned in the manual in an attempt to print out hard copies of graphics files. The cruder dot matrix plots will be typically be adequate for homeworks.

f.) Have the prices of these five species moved together? An appropriate stat output with interpretation will be sufficient to answer this question.

g.) Generate revenues from each species and assess whether these have moved similarly over the time period of these data. Use genr commands like:

genr crev=cquant*cprice
genr krev=kquant*kprice
genr rrev=rquant*rprice
genr prev=pquant*pprice
genr srev=squant*sprice
stat crev krev rrev prev srev / pcor

h.) If an Alaska commercial fisher targeted only one species, say the low-end chum salmon, would this fisher have felt much of a decrease in their income in 1989, assuming a fairly constant number of fishers and an even distribution of the catch? Comment. What about fishers who targetted king salmon? Note that you can limit all analysis to a subset of the observations, say observations 24 through 30 (1987-1993) by using the command sample 24 30. (To undo this limitation, issue the command sample 1 30.)

i.) OPTIONAL (If all the other tasks were easy for you): Try the GNUPLOT capability of SSCnet SHAZAM by including in your program the following type of plot command:

plot cquant kquant rquant pquant squant year / gnu line &
   commfile=plot.gnu datafile=plot.dat

After you exit the program, choose the GNUPLOT for Windows icon from the Econ 143 folder. Open the file you identified as your commfile= file (here, plot.gnu). Assuming this still works the way it always has, this file will merely point to another file, which contains the gnuplot program commands.  During Lab #2 we will be reviewing some of the ways you might want to modify the default gnuplot program file.  The file you actually edit will be called something like C000.gnu, which is what is loaded by your plot.gnu program. [A VERY good idea is to put your name in the title of the plot, so that you can find your own output as it emerges from the laser printer in the lab!] 


Course Syllabus, Course Schedule, Lecture Outlines, Res. Proposal, Problem Sets,
Problem Keys, Computer Labs, SHAZAM Code, Data Sets, Flash Cards,
Online Quizzes, In the News, Java Applets, Virtual Handouts, Old Exams,
Instructor SHAZAM home

Prepared by: Trudy Ann Cameron; Updated: 7:59 AM 10/8/98; site index