Kenzie Ferguson          

Math 201

March 18, 2003

Math 201 Project

Introduction

This paper will discuss the differences between the real estate property sales in Palo Alto, CA versus Mountain View, CA and show that, on average, prices in Palo Alto are higher than in Mountain View. It would be appropriate for a potential homebuyer, seller, or real estate agent to use this report to gauge the price of a home in Palo Alto or Mountain View. To compare the real estate sales between Palo Alto and Mountain View a cluster sample of 6,298 real estate property sales were gathered from the years 1996 to 2002. The data on real estate sales were taken from the Palo Alto Weekly online real estate section.

Results

The following information was complied from the Palo Alto Weekly online Real Estate section (see appendix). A total of 6,298 real estate property sale prices were used to compile the 7 paired yearly averages. In Table 1, the years 1996 to 2002 are listed along with the average sale price of real estate property in US dollars for Palo Alto and Mountain View.

Table 1 Average House Sales in Mountain View and Palo Alto from 1996 to 2002.

City

2002

2001

2000

1999

1998

1997

1996

Palo Alto

$859,731

$885,191

$821,774

$620,508

$614,079

$491,401

$452,159

Mountain View

$525,761

$554,660

$486,301

$393,851

$351,085

$295,879

$275,934

Trimmed Mean

In order to exclude any outliers in the sample a trimmed mean is used to show a more reliable number for the sample. The data for each year was trimmed at 5%.

Table 2 Trimmed Mean of house sales in Mountain View and Palo Alto from 1996 to 2002

Trimmed data at 5%

 

 

 

 

 

 

City

2002

2001

2000

1999

1998

1997

1996

Palo Alto

$841,414

$957,500

$791,336

$604,147

$595,039

$478,112

$438,519

Mountain View

$517,746

$544,210

$477,339

$386,685

$345,222

$288,255

$268,156

As you can see in comparison of data in table 1 and 2, the home sales decreased overall, with exception of homes in Palo Alto in 2001, leading us to believe there were very large outliers in the data collected.  

Summary statistics

 

A

B

Year

Palo Alto

Mountain View

2002

$841,414

$517,746

2001

$957,500

$544,210

2000

$791,336

$477,339

1999

$604,147

$386,685

1998

$595,039

$345,222

1997

$478,112

$288,255

1996

$438,519

$268,156

Standard Dev =

 $          194,544

 $          110,741

Mean =

 $          672,295

 $          403,944

The Student’s t variable is used to find the confidence intervals for each individual data set. The degrees of freedom for both sets is 7-1 = 6 and the level of confidence is 95%, which gives us the tc value 2.447.

Palo Alto            E = 2.447(194,544√7)

                          E = 179,930

 

Mountain View E = 2.447(110,741√7)

                          E = 102,422

 

The population of Palo Alto property sales at a 95% confidence interval range from $492,365 to $852,225. The population of property sales in Mountain View at a 95% confidence interval range from $301,523 to $506,366.

 

The population of property sales in Palo Alto and Mountain View is approximately normal because, according to the Central Limit Theorem, the probability sampling distribution for the sample mean x of average property sales based on random samples of size n is approximately normal.

 

Central Limit Theorem: if x possesses any distribution with mean m and standard deviation s, then the sample mean x based on a random sample of size n will have a distribution that approaches the distribution of a normal random variable with mean m and standard deviation s/√n as n increases without limit.

Box-and-Whisker Plots

It may be important to our homebuyer to see the spread of property sales when making a decision about buying a home. If the buyer is looking for a home in the lower end of the range he may choose one city over the other. According to our data the median property sold in Palo Alto is $604,147 and the median house sold in Mountain View is $386,685. It will please our homebuyer that the median property sale is lower than the mean. This would cause us to believe that there are more homes in the lower range. 

 

Median

$604,147

$386,685

Highest value

$957,500

$544,210

Lowest value

$438,519

$268,156

Q1

$478,112

$288,255

Q3

$841,414

$517,746

 

The difference in sales prices is more pronounced in the Box-and-Whisker plot diagram. The interquartile range of the property sales in Mountain View is almost entirely below the interquartile range of the property sales in Palo Alto. If the buyer is interested in homes below $525,000 he would have a wider selection in Mountain View than in Palo Alto.

 

 

Frequency Distributions and Histograms

 

In order to get a better idea of the number of properties in a given price range we created a frequency table and graph for Mountain View and Palo Alto property sales.

Table 3

Mountain View

 

 

 

Palo Alto

 

 

class

Frequency

f/n

 

class

Frequency

f/n

20-249

1562

0.3940

 

50-649

1,864

0.6351

250-499

1591

0.4014

 

650-1299

949

0.3233

500-749

637

0.1607

 

1300-2599

95

0.0324

750-999

144

0.0363

 

1950-2599

15

0.0051

1000-1249

17

0.0043

 

2600-3249

8

0.0027

1250-1499

9

0.0023

 

3250-3899

3

0.0010

1500 - 1750

4

0.0010

 

3,900 - 4550

1

0.0003

n =

3964

 

 

n =

2,935

 

 

In the third column of Table 4 is the relative frequency. The relative frequency shows the percentage of properties in the class. In the Mountain View table 70.54% of the properties were sold in the combined $250,000 to 499,999 and $20,000 to $249,000 ranges.

 

Both of the following frequency histograms are unimodal and skewed right.

 

 

 

 

Paired Data Hypothesis Test

We have a sample of 7 years and the pair of measurements taken from the respective cities. The sample size is n=7 pairs, and the d values are found in the fourth column of Table 5. We find the sample mean  = 268,351 by summing the fourth column and dividing it by n = 7 and the standard deviation sd= 86,455.

Table 6

 

A

B

d = A - B

Year

Palo Alto

Mountain View

Difference

2002

$841,414

$517,746

$323,668

2001

$957,500

$544,210

$413,290

2000

$791,336

$477,339

$313,998

1999

$604,147

$386,685

$217,462

1998

$595,039

$345,222

$249,817

1997

$478,112

$288,255

$189,858

1996

$438,519

$268,156

$170,364

First we will test the mean of the differences of paired data values. We will challenge the null hypothesis for the paired data: H0: μd = 0. Because we are trying to prove that property sales in Palo Alto are higher than in Mountain View we will try to prove an alternate hypothesis, H1: μd > 0. A right-tailed test is used and the level of significance is 5%: α = 0.05.

The right-tailed critical value, t0 = 3.707, is found using the Student’s t distribution and the degrees of freedom: 7-1 = 6. The sample statistic d is converted to a t value using n=7;  = 268,351; sd= 86,455; μd = 0 from H0. The formula for paired differences d is used.

t = 268351 – 0 / 86455/ √7

  = 8.21

 

See Figure 1. Since the sample statistic falls in the critical rejoin, we reject H0 at the 5% level of significance.

Figure 2

Hypothesis Test on the Slope

In order to better predict the relationship between the cost of a house in Palo Alto and that of one in Mountain View a hypothesis test on the slope is used.

H0: r = 0; H1: r ≠ 0.  

First we make a scatter diagram for these pairs. The x value is the average property sale in Palo Alto and the y value is the average sale in Mountain View paired by year. In general as the prices in Palo Alto go up the prices in Mountain View go up. There seems to be a relatively linear progression and a line fits reasonably well.

Figure 3

To find out the slope and the strength of the relationship between the two cities’ property sales we start by using the formulas to find the values of a and b.

Table 7

 

X

y

x2

y2

xy

Year

Palo Alto

Mountain View

 

 

 

2002

$841,414

$517,746

$707,978,316,525

$268,061,017,593

$435,639,056,975

2001

$957,500

$544,210

$916,806,250,000

$296,164,345,671

$521,080,918,033

2000

$791,336

$477,339

$626,213,194,150

$227,852,111,773

$377,735,355,384

1999

$604,147

$386,685

$364,993,767,555

$149,525,236,254

$233,614,595,702

1998

$595,039

$345,222

$354,070,854,696

$119,177,903,241

$205,420,111,142

1997

$478,112

$288,255

$228,591,244,521

$83,090,739,766

$137,818,052,559

1996

$438,519

$268,156

$192,299,159,112

$71,907,414,763

$117,591,391,661

 

$4,706,068

$2,827,611

$3,390,952,786,558

$1,215,778,769,062

$2,028,899,481,456

 

(Σx)2 =

 2.21471E+13

 

(Σy)2  =

 7.99539E+12

The sums in the table are used to compute the formula for the least-square line.

SSxy =

1.27909E+11

SSx =

2.27085E+11

SSy =

73580910882

 

x =

$672,295.42

y =

$403,944.45

b =

0.563267082

a =

$25,262.58

 

The least squares line for the data is

y = a + bx

y = 25,263 + 0.56x

The least-squares line is plotted on the scatter diagram with points (672,295.42, 403,944.45) and (500,000, 305,263).

Figure 4

Linear Correlation Coefficient

Finally, we need to test for linear association between the average property in Palo Alto and Mountain View. To find the correlation coefficient r we must look at the linear correlation. Figure 5 shows a positive linear correlation between Palo Alto and Mountain View property sales.  We arrive at r = 0.989 by using the formula to calculate the correlation coefficient, r. Because r is very close to 1 the Palo Alto and Mountain View property sales have a positive correlation and are nearly all points lie on the least-squares line. High-priced property sales in Palo Alto are associated with high-priced sales in Mountain View, and low-priced sales in Palo Alto are associated with lo-priced sales in Mountain View.

 

r  =

0.989523017

r2 =

0.979155801

 

r2 =0.979155801 means that 98% of the variation of y, the amount of the average property sale in Mountain View, can be explained by the least-squares line. The remaining 100 – 0.98 = 2% of the variation of y is due to random chance or other variables besides x, the amount of the average property sale in Palo Alto, that influence y.

Confidence Interval

With this equation a potential homebuyer can predict how much less a home in Mountain View will be in comparison to Palo Alto. For instance, a homeowner wants to sell their Palo Alto home for 500,000 and buy a home in Mountain View. The approximate amount the homeowner would be able to buy an average home in Mountain View would be $305,263 ± $705,783 with a 95% confidence interval.

The standard error of estimate for this least-squares line is

Se = √SSy – bSSxy/ n-2

Se = 243251.9

 

Conclusion

We have proven that, on average, prices in Palo Alto are higher than in Mountain View. A potential buyer would be able to use this information in making an informed decision when buying a home. In a situation where a Palo Alto homeowner sells their property and buys a home in Mountain View there is a good chance that the individual will be able to buy a house at a lower price. When a new buyer wants to enter the real estate market he can be confident that a home in Mountain View will, on average, cost less then in Palo Alto. This sort of information can be helpful in making a decision but is not the only variable to look at when buying a home.

Appendix

REM Reports Inc., a Walnut Creek real estate information company, originally compiled home sales prior to June 1997. Since then homes Titletech, and Oakland real estate information company originally compiled sales. Sale prices are estimated from the county transfer tax. Information is recorded from deeds after the close of escrow. The month reported from the search is up to four months after the close of escrow.

See attached Excel document for list of raw data.