Regression using SPSS – A suburban hotel derives its gross income from its hotel and restaurant operations.

2010年7月29日 由 admin 没有评论 »

A suburban hotel derives its gross income from its hotel and restaurant operations. The owners are interested in the relationship between the number of rooms occupied on a nightly basis and the revenue per day in the restaurant. Below is a sample of 25 days (Monday through Thursday) from last year showing the restaurant income and number of rooms occupied.

Day

Income

Occupied

1

$1,452

23

2

1,361

47

3

1,426

21

4

1,470

39

5

1,456

37

6

1,430

29

7

1,354

23

8

1,442

44

9

1,394

45

10

1,459

16

11

1,399

30

12

1,458

42

13

1,537

54

14

$1,425

27

15

1,445

34

16

1,439

15

17

1,348

19

18

1,450

38

19

1,431

44

20

1,446

47

21

1,485

43

22

1,405

38

23

1,461

51

24

1,490

61

25

1,426

39

Use a statistical software package to answer the following questions.

a. Does the breakfast revenue seem to increase as the number of occupied rooms increases? Draw a scatter diagram to support your conclusion.

b. Determine the coefficient of correlation between the two variables. Interpret the value.

c. Is it reasonable to conclude that there is a positive relationship between revenue and occupied rooms? Use the .10 significance level.

d. What percent of the variation in revenue in the restaurant is accounted for by the number of rooms occupied?

Answer

(A)

OUTPUT0

(B)
r = 0.44, there is a WEAK positive correlation.
(C)
df = n-2 = 25-2 = 23
α = 0.05
one-tailed critical value T = 1.319
Test statistic T = r*Sqrt[(n-2)/(1-r²)] = 0.44*Sqrt[(25-2)/(1-0.44²)] = 2.35
Conclusion: Since 2.35 > 1.319 we conclude that there is a positive relationship between the variables.
(D)
r² = 0.44² = 0.1936, so approximately 19% of the variation in revenue is explained by the variation in the number of rooms occupied.

Prove that square root of three is an irrational number.

2010年5月10日 由 admin 没有评论 »

via

The Irrationality of square root of three

Problem:
Prove that square root of three is an irrational number.

Solution:
The number, square root of three, is irrational, ie., it cannot be expressed as a ratio of integers a and b. To prove that this statement is true, let us assume that square root of three is rational so that we may write

square root of three = a/b                          1.

for a and b = any two integers. We must then show that no two such integers can be found. We begin by squaring both sides of eq. 1:

3 = a2/b2                                                   2.

or

3b2 = a2                                                     2a.

If b is odd, then b2 is odd; in this case, a2 and a are also odd. Similarly, if b is even, then b2, a2, and a are even. Since any choice of even values of a and b leads to a ratio a/b that can be reduced by canceling a common factor of 2, we must assume that a and b are odd, and that the ratio a/b is already reduced to smallest possible terms. With a and b both odd, we may write

a = 2m + 1                                   3.

and

b = 2n +1                                      4.

where we require m and n to be integers (to ensure integer values of a and b). When these expressions are substituted into eq. 2a, we obtain

3(4n2 + 4n + 1) = 4m2 + 4m + 1     5.

Upon performing some algebra, we acquire the further expression

6n2 + 6n + 1 = 2(m2 + m)               6.

The Left Hand Side of eq. 3a is an odd integer. The Right Hand Side, on the other hand, is an even integer. There are no solutions for eq. 3a. Therefore, integer values of a and b which satisfy the relationship square root of three = a/b cannot be found. We are forced to conclude that square root of three is irrational.

The other way: from Yahoo anser

We prove that by contradiction.
This means, we suppose √3 is rational and then get to something that contradicts this assumption.
If √3 is rational, we can express it as a/b, a fraction in its lowest terms (i.e., gcd(a,b) = 1). Also, b is not 1, because that would mean √3 is an integer, which it obviously is not.
Now square both sides.
√3 = a/b
3 = a²/b²
since gcd(a,b) = 1, then gcd(a²,b²) = 1 (has to be).
But from 3 = a²/b² we can express a² = 3b².
So a²/b² = 3b²/b² -> now this fraction is obviously NOT in its lowest terms (remember, b is not 1) -> hence the contradiction.
=> √3 is not rational. It is irrational.

The third way:like sqrt two

sqrt (3) = m/n   (a fraction, reduced to its lowest terms)
     3 = m²/n²   m² = 3n²   (So, m is a multiple of 3, call it 3q)
     9q² = 3n²   3q² = n²    (So, n is a multiple of 3)