• 沒有找到結果。

Financial Time Series I and Methods of Statistical Prediction

N/A
N/A
Protected

Academic year: 2022

Share "Financial Time Series I and Methods of Statistical Prediction"

Copied!
4
0
0

加載中.... (立即查看全文)

全文

(1)

1

Financial Time Series I and Methods of Statistical Prediction

Homework 1: Review on Basics

1. (a) The null hypothesis might be ”This person is innocent.” It is better to release a guilty person than to convict an innocent one. So we would rather to make Type II error than Type I error that we need to minimize Type I error.

(b) The null hypothesis might be ”This drug will care an illness,” and one agrees that spending time and money on a useless drug. So we need to use a more strictly judgement when we think that it does a go job but it actually does not. So we need to minimize Type II error.

2. Recall that Type I error is the probability of ”reject H0 where H0 holds” and Type II error is the probability of ”not reject H0 where Ha holds”. And the null hypothesis H0is that ” The individual came from Sample #1 ”. We now find the probabilities of Type I and Type II error for four different strategies.

(a) P [ Type I error ] = P [ not Caucasian | H0]= 1025 = 0.4 P [ Type II error ] = P [ Caucasian | Ha ] = 203 = 0.15

(b) P [ Type I error ] = P [ neither Caucasian nor Oriental| H0 ]= 254 = 0.16 P [ Type II error ] = P [ Caucasian or Oriental | Ha ] = 206 = 0.30 (c) P [ Type I error ] = P [ Native American | H0 ]= 251 = 0.04

P [ Type II error ] = P [ not Native American | Ha ] = 1620 = 0.8 (d) P [ Type I error ] = P [ African American | H0]= 253 = 0.12

P [ Type II error ] = P [ not African American | Ha ] = 1020 = 0.5 3. (a) The histogram can be obtained by ”R”. Its command is as follows.

>data<-c(5,4,4,5,4,3,3,4,3,2,3,3,3,2,2,1,3,2,1,3)

>hist(data)

(b) Histogram gives the frequency on producing various number of defective items.

We can know how many times the event that find n defective items happen during 20 days.

(c) The scatter plot gives daily change of the number of defective items.

4. (a) We put this problem in the framework of hypothesis testing by setting them as

”H0 : p ≤ 0.1 v.s Ha : p > 0.1”. Let ˆp be the estimator of the probability where

(2)

2

p is the unknown percentage of graduate students looking for house on campus.

And we know ˆp = 48162 by C.L.T

p − 0.1) q0.1×0.9 481

= 2.111 > Z0.05= 1.64

I have enough evidence to reject H0 under significance level α = 0.05. That is to say, the percentage of graduate students who are looking for housing on campus is larger then 10%.

(b) We use the worst case to analyze. Assume that the answer of these 19 graduate students who did not respond to the survey will be that they do not look for housing on campus. The test will change to

p − 0.1) q0.1×0.9 500

= 1.789 < Z0.05= 1.64

where ˆp = 50062. Then the final recommendation of my decision will not be changed.

5. The hypothesis of this problem can be set as follows

H0: For those hikers who are novice or experienced, the direction chosen by the hiker will be independent of whether he is novice or experienced.

Ha : For those hikers who are novice or experienced, the direction chosen by the hiker will be dependent of whether he is novice or experienced.

X (oi− ei)2

ei = (20 −120×30200 )2

120×30 200

+(50 −120×80200 )2

120×80 200

+(50 −120×90200 )2

120×90 200

+(10 −80×30200 )2

80×30 200

+(30 −80×80200 )2

80×80 200

+(40 −80×90200 )2

80×90 200

= 1.5046 < X(2−1)(3−1),0.052 = 5.99

I do not have enough evidence to reject H0 under significance level α = 0.05. So these data do not provide convincing evidence of an association between the level of hiking expertise and the direction the hiker would head if lost.

6. According to the problem, the diameter of the pearl found in an oysters can be described by a random variable X which is N (8,4).

(a) Use C.L.T.

P [7 ≤ X ≤ 9] = P [7 − 8

2 X − 8

2 9 − 8

2 ] = p[−0.5 ≤ Z ≤ 0.5] = 0.383

(3)

3

(b) Let the probability of an oyster meets the request of the customer is denoted by p. Note that p = 0.384 .Therefore the number of the oysters he needs to open can be described by a random variable Y which is Negative-Bin(r,p).

E(Y ) = r

p= 2 2

0.383 = 5.2219 So we can choose n=6.

7. (a) Method 1 : We can do this hypothesis testing : H0 : p ≤ 0.5 vs Ha: p > 0.5. The estimation of the data is ˆp = 0.563.

0.563 − 0.5

0.5×0.5 20×100

= 5.635 > Z0,05

Method 2 : In this problem, need to test H0 : µ ≤ 50 vs Ha : µ > 50. The standard error of the data is s2=

P20

i=1(yi−¯y)2 19

56.3 − 50

s = 1.333 > t19,0.05= 1.729

So, we do not have enough evidence to reject H0under significance level α = 0.05.

This means that the training is not useful to people.

(b) No, the test in (a) can not provide evidence that this training is effective in im- proving a person’s ability.

Method1 : In this problem, we can try to use sign test. First, set up the hypothesis : Ho : p1 = p2vs Ha : p1 6= p2. Then, define r = ” + ” if X > Y , r = ” − ” if X < Y , and r = 0 if X = Y . X is the number of before training and Y is the number of after training. There are 11 ” + ” and 8 ” − ”. So, define T is the number of ” − ”.

P (T ≥ 11|n = 19, p = 0.5) > 0.05)

Method 2 : We should use paired t-test in this problem. First, set up the hypoth- esis.

H0: the mean of the difference of the paired data is smaller or equal to 0 Ha : the mean of the difference of the paired data is larger to 0.

Let the difference be d. Then the standard error is s2= P2

i=10(di− ¯d)2

19 .

0.3 − 0

S = 0.1962 < t19,0.05= 1.729

But if you do not think that the effect between individuals will be small, you can use two sample t-test.

So, we do not have evidence to reject H0 under significance level α = 0.05.

(4)

4

(c) Plot scatter plot and discuss whether you should consider individual effects.

參考文獻

相關文件

(Set up hypothesis) (a) In the legal world, a null hypothesis might be ”This person is innocent.” A type I error would be judging the person guilty when he is innocent.. A Type II

∗ Suppose we want to determine if stocks picked by experts generally perform better than stocks picked by darts. We might conduct a hypothesis test to de- termine if the available

Maybe there exists a factor that it is correlative to hours spent watching TV and it will let people get a poor score on reading test.. Actually, the factor affect the score on

Use Pearson Chi-Square test to test the null hypothesis of statistical indepen- dence of gender and party identification and report your conclusion.. The following table gives

The president learns that about 40% of the mathematicians in the United States are women, and asks you to investigate whether or not the number of women mathematicians in the company

3/F, TWO HARBOURFRONT, 18-22 TAK FUNG STREET, HUNG HOM, KOWLOON. 本 署 檔 號

While we have provided a number of ideas and strategies, we hope that this book will be a useful guide and resource to stimulate teachers’ own ideas and variations, and will

Candidates will still have a choice but a reduction in the number of questions will allow candidates to spend less time on deciding which question to attempt and more examination