Assignment 1

合集下载

研究生英语翻译 Assignment 1

研究生英语翻译 Assignment 1

Moreover, much of the new wealth turned out to be pure illusion, paper wealth that could vanish as magically as it had appeared.
而且,很多新财富现在看来纯粹是一场镜 花水月.纸面财富来得快,去得也快.
The fantasy that everyone can become rich in the information economy has soured in today’s reality, and many now wonder whether they will keep their job or be able to meet their rent and pay off their credit cards. 网络经济时代人人都可暴富的神话,被今 天的现实击得粉碎.现在许多人都不知道 能否保得住工作,能否付得起房租,能否付 得清信用卡的透支款.
Assignment 1
But the collapse of the dot-com economy and thd the prospects of a serious economic slowdown at this writing in 2001, have put the fabled new economy in a different light. 但是,2000年网络经济崩溃,高新技术板块 的纳斯达克指数大跌, 2001年本文写作时 经济面临严重衰退.这一切都使得虚幻的 新经济成为明日黄花.
We are learning that the boom never really did reach millions of Americans, since the bulk of the new wealth created in the 1990s was pocketed mainly by the very rich. 我们开始明白,千百万美国人根本没有从 这次经济繁荣中受益,因为20世纪90年代 所创造的大量新财富主要都被富人纳入 囊中.

Reference Translation (RT) of Assignment 1

Reference Translation (RT) of Assignment 1

Reference Translation (RT) of Assignment 1:Grading policy:One sentence accounts for 1 point, therefore 10 points totally for Assignment 1.For each sentence,-basic meaning of the whole sentence: 0.5-translation of the key word: 0.51.You are welcome to send for our free catalogue.RT: 欢迎您来函索取我们的免费目录。

Key word: send: cause sth to be taken without going oneselfPurpose: correct understanding of “send”2.The set of equipment is quite late arrivals for doctors to use.RT: 这是供医生使用的一套新型设备。

Key word: late: (esp. attribute) recent 最新的; 最近的Purpose: meaning selection of “late”3.I questioned the wisdom of her going there with Tim.RT: 我怀疑她和Tim去那儿是否明智/是否是明智的举动。

Key word: wisdom: (智慧/明智具体翻译为)明智的举动Purpose: concretion of “wisdom”4.She is being polite.RT: 她只是一时客套一下。

(在特殊语境中或可译为:她只是装得很有礼貌。

)Key word: being:这里强调只是现下,隐含”她平时不这样”。

Purpose: translation of inflected form “being”5.He had a sound feeling that idioms were the backbone of language and he was allfor the racy phrases.RT: 他感到习语是语言的主要支柱,因此特别主张用生动的短语,他的想法是很有道理的。

Assignment 1

Assignment 1

数据结构与算法分析(2017年秋季学期),Assignment #1截止日期:2017年9月21日星期四姓名:________________ 学号:___________________ 班级:_______________在答题之前,请仔细阅读以下注意事项:(1)请独立完成作业。

(2)本作业包含五个大题,请用英语简单明确作答。

(3)请于截止日期前将作业纸质版本交给本班学习委员,学习委员在9月21日星期四上课开始前将作业集中交给我。

(4)请务必按时提交作业,从9月21日10点40分开始计时,迟交24小时内作业总分扣30%,迟交24小时之后,该次作业计0分。

1.Define an ADT for a set of integers (remember that a set may not contain duplicates). Your ADTshould contain the following seven operations:a)Insert: insert an integer into a set;b)Delete: remove an integer from a set;c)Size: return the size of a set currently;d)Empty: return if a set is empty;e)Union: return the union of two sets;f)Intersection: return the intersection of two sets;g)SetDifference: return the difference of two sets.Each operation should be clearly defined in terms of its input and output.2.State whether each of the following relations is a partial ordering, and explain why or why not.a)“isFatherOf” on the set of people.b)“isOlderThan” on the set of people.c)“noLessThan” on the set of integers.d){(a,b),(a,a),(b,a)} on the set of {a,b}.e){(2,1),(1,3),(2,3)} on the set of {1,2,3}.3.Answer the following two questions.a)Prove that x log a y = y log a x for any a > 0, x > 0, and y > 0.b)Derive the closed form of the recurrence relation: f(n) = 2 f(n/2) + 2n, with f(1) = 1.To simplify the problem, you may assume that n is a power of 2. That is, the relation holds for n = 2t for some non-negative integer t.4.For each pair of the following functions, determine whether f(n) is in O(g(n)), f(n)is in Ω(g(n)),or f(n) = Θ(g(n)).a)f(n) = log(n2); g(n) = log n + 7b)f(n) = log(n2); g(n) = √nc)f(n) = log n; g(n) = n log n + nd)f(n) = n; g(n) = (log n)25.Let P be an array storing integers.a)Write in pseudocode an algorithm to find a sub-array of P with the largest sum. That is, youralgorithm takes as input an array P, its size n, and returns two array indexes i and j with i≤j, such that the sum: P[i]+P[i+1]+...+P[j−1]+P[j] is as large as possible.For example, if P={−1,5,−3,7,−2}, your algorithm should return 1 and 3.b)Analyze the time complexity of your algorithm in the worst case.。

Assignment 1_Solution

Assignment 1_Solution
0.05×2/12 = V1/6 USD1e0.02×2/12 × 0.81 − USD0.8e = USD0.0060.
5. (5-24) A stock is expected to pay a dividend of $1 per share in two months and in five months. The stock price is $50, and the risk-free rate of interest is 8% per annum with continuous compounding for all maturities. An investor has just taken a short position in a six-month forward contract on the stock. a) What are the forward price and the initial value of the forward contract? b) Three months later, the price of the stock is $48 and the risk-free rate of interest is still 8% per annum. What are the forward price and the value of the short position in the forward contract? Solution: a) The present value, I, of the income from the security is given by: I = 1× e −0.08×2/12 + 1× e −0.08×5/12 = 1.9540. From equation (2.3) the forward price, F0, is given by: F0 = (50 − 1.9540)e0.08×6/12 = 50.01. The initial value of the forward contract is (by design) zero. The fact that the forward price is very close to the spot price should come as no surprise. When the compounding frequency is ignored the dividend yield on the stock equals the riskfree rate of interest. b) In three months: I= 1× e −0.08×2/12 = 0.9868. The delivery price, K, is 50.01. From equation (2.9) the value of the short forward contract, f, is given by: f = −(48 − 0.9868 − 50.01e −0.08×3/12 ) = 2.01. And the forward price is (48 − 0.9868)e0.08×3/12 = 47.96. 6. (5-27) A trader owns gold as part of a long-term investment portfolio. The trader can buy gold for $550 per ounce and sell gold for $549 per ounce. The trader can borrow funds at 6% per year and invest funds at 5.5% per year. (Both interest rates are expressed with simple annual compounding.) For what range of one-year forward prices of gold does the trader have on arbitrage opportunities? Assume there is no bid-offer spread for forward prices.

Assignment 1.doc``

Assignment 1.doc``

Assignment 1:Please translate the following ten sentences. You can put your translation right below the sentence.1.You are welcome to send for our free catalogue.欢迎您索函我们的免费目录2.The set of equipment is quite late arrivals for doctors to use.这一系列供医生使用的装备来得是相当的晚。

3.I questioned the wisdom of her going there with Tim.我怀疑她和蒂姆一起来这是否是明智的。

4.She is being polite.她故意装出一副有礼貌的样子。

5.He had a sound feeling that idioms were the backbone of language andhe was all for the racy phrases.他认为谚语是语言中的支柱,并主张使用这些生动的语言,他的看法是有道理的。

6.The black people were fighting against the segregation of thegovernment.黑人曾经和政府的种族隔离相对抗。

7.I had the muscle, and they made money out of it.我有力量,并且他们应该利用我的力量赚钱。

8.I drank some ice tea, but it made me more thirsty.我刚才喝了冰茶,但是它让我觉得更口渴了。

9.He is a wicked tennis player.他是一个没有道德素养的网球运动员。

10.M y work, my family, my friends were more than enough to fill mytime.干工作,做家务,与朋友相处这些已经足够占据了我的大部分时间。

assignment-1

assignment-1

assignment-1 Find a database system in you lifeDiscover a database system in your life, submit a report which discusses the application background , the functions it provides and what data/information need to be stored in such a system with the functions you proposed above生活中的数据库近年来,随着计算机网络技术的飞速发展,数据库在我们生活中的应用越来越广泛,例如学校的学生管理系统、图书馆的图书管理系统、各大网站的后台数据库、各个企业的财务管理系统等等。

这些系统和网站都依靠着数据库的支持,才能正常运行。

最近阿里巴巴的上市引起了许多人的关注,而阿里巴巴集团旗下的淘宝网也已经成为了人们日常生活中必不可少的东西。

而淘宝网能够正常运行,少不了数据库的支持。

我们要想在淘宝网上买东西,首先必须要有一个淘宝账户,所以,我们需要进行注册,输入自己的用户名、密码等相应资料,而我们的账户信息就存储在淘宝网的后台数据库中,因为有了数据库的支持,我们可以看到自己的交易记录、收藏的商品、物流的信息等等。

商家需要将自己的商品信息进行存储,商品的价格、库存、颜色、尺寸等等信息都会存储到数据库里,因为数据库,我们才能浏览到商品,获知商品的各种信息。

还有商家的信息,如网店的创建时间、网店的评分、客服人员等等也会存储到数据库里。

如果我们选择网上付款,那各大银行的网银系统也需要有自己的数据库来存储客户的信息。

我简单的将数据库中存储的数据罗列下来:12345。

assignment 1_译析

assignment 1_译析

第一讲练习试将下列句子译成汉语:1.The many colors of a rainbow range from red on the outside to violet on the inside.彩虹有多种颜色,外圈红,内圈紫。

2. He had a disconcerting habit of expressing contradictory ideas in rapid succession.他有一种令人难堪的习惯:一会儿一个看法,自相矛盾,变化无常。

3.This was an intelligently organized and fervent meeting in a packed Town Hall, with Mr. Strong in the chair.这是一次精心组织起来的会议。

市政厅里济济一堂,热情洋溢,主持会议的是斯特朗先生。

4.Power can be transmitted over a great distance withpractically negligible loss if it is carried by an electric current.电流可以把动力传送到很远的地方,其消耗几乎可以忽略不计。

5.The present onslaught of vehicles poses a serious threat to urban life and pedestrian peace of mind.当前,车辆横冲直闯,严重地威胁着城市生活,路上行人无不提心吊胆。

6.Change of information, if any, concerning the contents of this section will be found in the appendix at the end of this book.本节内容如有更改,均见本书末附录。

7.She said, with perfect truth, that “it must be delightful to have a brother,”and easily got the pity of tender-hearted Amelia, for being alone in the world, an orphan without friends or kindred.她说道,“有个哥哥该多好啊,”这话说得入情入理。

北航计算机研究生课程_算法设计与分析__Assignment_1

北航计算机研究生课程_算法设计与分析__Assignment_1

一、解:设第k月的需求量为Nk(k=1,2,3,4)状态变量Xk:第k月初的库存量,X1=X5=0,0≤Xk≤Nk+…+N4决策变量Uk:第k月的生产量,max{0,Nk-Xk}≤Uk≤min{6,Nk+…+N4 - Xk}状态转移方程:X k+1 = Uk + Xk – Nk第k月的成本Vk = 0.5*(Xk - Nk) Uk=03 + Uk + 0.5*(Uk + Xk - Nk) Uk≠0设F k(Xk)是由第k月初的库存量Xk开始到第4月份结束这段时间的最优成本则F k(Xk) = min{Vk + F k+1(X k+1)} 1≤k≤4= min{ 3 + Uk + 0.5*(Uk + Xk - Nk) + F k+1(Uk + Xk - Nk) } Uk≠0min{ 0.5*(Xk - Nk) + F k+1(Xk - Nk) } Uk=0 F5(X5)=0四个月内的最优成本为F1(X1)=F1(0)详细计算步骤如下:(1)k=4时4(2)k=3时(3)k=2时(4)k=1时由以上计算可得,4个月的总最优成本为F1(0) = 20.5(千元)二、解:1、变量设定阶段k:已遍历过k个结点,k=1,2…6,7。

K=1表示刚从V1出发,k=7表示已回到起点V1状态变量Xk=(i,Sk):已遍历k个结点,当前位于i结点,还未遍历的结点集合为Sk。

则X1=(1,{2,3,4,5,6}),X6=(i,Φ),X7=(1,Φ)决策变量Uk=(i,j):已遍历k个结点,当前位于i结点,下一个结点选择j。

状态转移方程:X k+1 = T(Xk,Uk) = (j,Sk-{j})第k阶段的指标函数Vk = D[i,j]。

最优指标函数Fk(Xk) = Fk(i,Sk):已遍历k个结点,当前从i结点出发,访问Sk中的结点一次且仅一次,最后返回起点V1的最短距离。

则Fk(i,Sk) = min{ D[i,j] + F k+1(j,Sk-{j}) } 1≤k≤6F7(X7) = F7(1,Φ) = 02、分析:(1)k=6时,F6(i,Φ) = min{D[i,1] + F7(X7)} = D[i,1] i=2,3,4,5,63、伪代码和时间复杂度为方便计算,结点编号改为0到5.(1)用一张二维表格F[][]表示F(i,Sk),行数是n,列数是2n-1。

Assignment1

Assignment1

(1)
i=1
Consider the following small data set:
xy 13 -1 -2 24
• Solve for the value of θ1 that minimizes the cost function by substituting the values from the training set into the cost function, setting the derivative equal to zero, and solving for θ1. Show your work.
3
some θ0, θ1 such that J(θ0, θ1) = 0. Which of the statements below must then be true? (Check all that apply.)
A: This is not possible: By the definition of J(θ0, θ1), it is not possible for there to exist θ0 and θ1 so that J(θu,
v
)
2.
∂ ∂v
f
(u,
v)
3.
∂ ∂u
h(u,
v)
4.
∂ ∂v
h(u,
v
)
Partial Derivative Intuition Consider the contour plot of a function f (u, v) in Figure 1. For each of the following partial derivatives, state whether it is positive, negative, or equal to zero. Briefly explain. These questions can be answered from the contour plot without knowing the formula for the function.

Assignmen1(广告文本的翻译)

Assignmen1(广告文本的翻译)

Assignment: (做成PPT周三下午5点前发到老师邮箱,4人一组)1.上海无线电二厂上海无线电二厂是全国著名企业之一,专门生产收音机、收录机、通讯机、无线扩音机和音响设备。

冠以“红灯”、“飞乐”著名商标,享誉国内海外。

该产品款式新颖、音质优美、质量可靠、功能齐备。

它将赢得您的喜爱,并给您的家庭带来欢乐。

地址:中国上海市宜昌路九十六号电话:583500Shanghai No.2 Radio FactoryAs with you know, our Shanghai No.2 Radio Factory is one of the most famous enterprises in China. We specialized in the productions of radio sets, radio recorders, communication equipments, radio amplifiers and some other audio systems. Equipped with a complete range of functions and attractions of novel design, these famous brands of audio systems named “Red Lantern “and “Feile”, will certainly bring you the stunning sound. Moreover, the brands now are popular both home and abroad. And I’m sure that it will be the best choice for you and your family to have happiness.Address: No.96, Yi Chang Rode, Shanghai, ChinaTel: 5835002.西苑饭店西苑饭店是一座具有国际四星级水准的大型涉外饭店,位于北京三里河路,与进出口谈判大楼、北京图书馆、首都体育馆等相毗邻,环境优美,交通便利。

assignment1

assignment1

CSC415/CI6226 2011 P rogramming A ssignment 1 (100 p oints) Objectives: I n t his a ssignment, y ou w ill•Build a s pelling c orrection e ngine•Build a t ext s earch e ngine w ith L ucene, a nd•Integrate y our s pelling c orrector i nto t he t ext s earch e ngineDue: M arch 10, 2011 (Thursday) 11:59pm. L ate s ubmissions a re a llowed b ut w ill b e p enalized a t a r ate of 10% p er d ay.Teams: Y ou a re a llowed (but n ot r equired) t o w ork i n p airs f or t his a ssignment. T eams o f t wo s hould only s ubmit o ne c opy o f t heir w ork. Y ou m ay (and a re e ncouraged t o) d iscuss w ith o ther t eams, b ut should N OT t ake a ny d etailed n otes f rom t he d iscussions t hat w ill a ppear v erbatim i n y our s ource c odes and r eports.Implementation: W e s trongly r ecommend t hat y ou w rite y our p rogram i n J ava, t hough y ou m ay u se other p rogramming l anguages (e.g. C, C++, P ython) w ithout o fficial s upport (e.g. L ucene). Delivery: Y ou s hould s ubmit t he f ollowings v ia e mail t o j ungjae.kim@.sg:•A z ip f ile t hat c ontains t he c odes y ou w rote (Do N OT i nclude d ata f iles a nd c ompiled l ibraries) •A t ext f ile w ith p rogram o utput•A d ocument i n r eadable E nglish s entences w ith f igures o r t ables a s n eeded. T he d ocument should N OT h ave m ore t han 4 p ages (excluding f igures a nd t ables). I t s hould c ontain o The n ames o f t eam m emberso Descriptions o f w hat y ou h ave d one f or e ach p art, r epresentative o utput f rom y our program, a ny n otable d esign d ecisions m ade o r t rade-­‐offs c onsidered (withjustifications), a nd a n e rror a nalysis o f w hen y our s ystem f ailso Detailed i nstructions o n h ow t o c ompile a nd r un t he c odes f or e ach p art, i ncluding where t o p lace d ata f iles a nd l ibraries u sed. I f y ou u se a ny o ther r esource f iles e xceptthose p rovided b y u s, p lease p lace t hem i n a W eb s ite (e.g. N TU M ySite) a nd d escribehow t o d ownload t hem s o t hat w e c an d ownload a nd t est t hem. P lease m ake s ure t heinstructions w ork o n o ther m achines e xcept y ours b efore s ubmission. Y ou w ill l osepoints i f y our c odes f ail t o c ompile o r r un o n t he e valuator’s m achine.If y our e mail s ubmission i s r eturned b ack t o y ou a s a s pam d ue t o t he c odes b y t he N TU e mail s ystem, you s hould s ubmit t he p rogram o utput a nd t he d ocument b y e mail b y t he d eadline a forementioned a nd bring a U SB m emory d evice w ith t he c odes t o t he o ffice (N4-­‐02c-­‐111) d uring o ffice h ours o n M arch 11. Honor c ode: Y ou s hould n ot l ook f or p roblem a nswers e lsewhere. B ut, i f m aterial i s t aken f rom elsewhere, t hen y ou s hould a cknowledge i t. Y ou a re n ot p ermitted t o g et p rogramming h elp f rom people o ther t han y our p artner. I n g eneral, w e w ill e xpect y ou t o a ct o n y our h onor.Part 1: S pelling C orrection (40 p oints)In t his p art y ou w ill b uild a n n-­‐gram b ased s pelling c orrector. I n l ecture 3 (tolerant r etrieval), w e s aw that o ne w ay t o o ffer s pelling s uggestions w as t o c ount t he p roportion o f c haracter n-­‐grams t hat o verlap between t he q uery w ord a nd k nown w ords f rom a c orpus. D oing s o w ill r equire a n i nverted i ndex t hat maps n-­‐grams t o d ictionary w ords a nd a s coring f unction t hat c ounts n-­‐gram o verlaps b etween candidate w ords. Y ou a re o n y our o wn f or b uilding t he i nverted i ndex -­‐ y ou s hould n ot u se a ny e xisting libraries o r c ode s nippets t o d o t his f or y ou. Y ou s hould i mplement t he J accard s core o f n-­‐gram o verlap as d escribed i n c lass a s t he s coring f unction f or c andidate r eplacements.Take a l ook a t t he s .ntu.ir.spell.SpellingCorrector i nterface:package .ntu.ir.spell;import java.util.List;/*** Basic interface for the spelling corrector.** @author dramage (revised by kim)*/public interface SpellingCorrector {/*** Returns a list of top-scoring spelling corrections for a given* (possibly misspelled) word. The list is expected to include* the best corrected spelling. The maximum length of the* returned list will be specified, while the actual length of* the list may be smaller than it.** @param word A single word whose spelling is to be checked.* @param max The maximum number of corrections in the* returned list. Should be greater than 0.* @return A list of top-scoring corrections, with better corrections* ordered first.*/public List<String> corrections(String word, int max);}Your n-­‐gram b ased s pelling c orrector w ill i mplement t his i nterface t o r eturn a l ist o f m ost l ikely candidate s pelling c orrections f or a g iven (possibly m isspelled) w ord.Your s pelling c orrector s hould r ead a ll t he w ords f rom a l arge f ile o f E nglish t ext. Y ou m ay u se t he t ext file (‘big.txt’) t hat c omes f rom P eter N orvig's p age o n H ow t o W rite a S pelling C orrector, w hich t akes a n alternative a pproach t o b uilding a s pell c hecker. [From N orvig's s ite: "The f ile i s a c oncatenation o f several p ublic d omain b ooks f rom P roject G utenberg a nd l ists o f m ost f requent w ords f rom W iktionary and t he B ritish N ational C orpus."]You m ust c omplete t he f ollowing s ub-­‐problems:1.1. I mplement a n n-­‐gram s pelling c orrector (named s .ntu.ir.spell.NGramSpellingCorrector) b asedon t he w ords i n t he f ile b ig.txt. B riefly d escribe y our i mplementation a nd p rovide s ome e xample mis-­‐spelled w ords a long w ith t he p ossible c orrections y our a lgorithm p rovides. W hat i s t he o utput of s .ntu.ir.spell.SpellingScorer c lass (see b elow) w hen r un w ith a rguments s hown b elow (a-­‐d)?What a re t he s ources o f e rrors?.ntu.ir.spell.NGramSpellingCorrector 1 ‘path t o s pelltest1.txt’.ntu.ir.spell.NGramSpellingCorrector 1 ‘path t o s pelltest2.txt’.ntu.ir.spell.NGramSpellingCorrector 10 ‘path t o s pelltest1.txt’.ntu.ir.spell.NGramSpellingCorrector 10 ‘path t o s pelltest2.txt’1.2. I n c lass, i t i s m entioned t hat a n n-­‐gram b ased c orrector c ould b e u sed i n c oncert w ith a n e ditdistance f unction. W rite a n i mplementation o f L evenshtein e dit d istance a nd a n ew i mplementation of S pellingCorrector, c alled N GramWithEditDistanceSpellingCorrector, t hat w raps t he u nderlying spelling c orrector a nd r e-­‐scores i ts o utput u sing t he w eighted e dit d istance f unction. I n p articular, use y our n-­‐gram s pelling c orrector t o g et s ome n umber o f c losest c andidates i n t he d ictionary, score e ach w ith t he E dit d istance f unction a nd t hen s uggest t he c orrections w ith l owest e ditdistance. P rovide o utput, e xamples, a nd e rror a nalysis a s y ou d id f or s ub-­‐problem 1.1, w hilereplacing ‘NGramSpellingCorrector' w ith ‘NGramWithEditDistanceSpellingCorrector' i n t hearguments.1.3. W rite a w eighted e dit d istance f unction a nd u se i t f or a n ew i mplementation o f S pellingCorrector,called N GramWithWeightedEditDistanceSpellingCorrector. Y ou s hould d efine y our o wn w eighting scheme, f or e xample, a llowing d ifferent w eights f or d ifferent k inds o f e dit o perations a nd d ifferent weights f or d ifferent c haracter r eplacements. H ow d id y ou f ind t he w eighting s cheme a nd w hy?What i s t he i mpact o f a ny c hanges o n t he s cheme? P rovide o utput, e xamples, a nd e rror a nalysis a s you d id f or s ub-­‐problem 1.1, w hile r eplacing ‘NGramSpellingCorrector' w ith‘NGramWithWeightedEditDistanceSpellingCorrector' i n t he a rguments.Using S pellingScorer a nd A utomatic Q uantitative G radingThe i ncluded c lass s .ntu.ir.spell.SpellingScorer p rovides a w ay t o t est t he r esults o f y our SpellingCorrector i mplementations a cross a c ollection o f s pelling e rrors (see t he N orvig's s ite). T o r un the S pellingScorer, y ou s hould p rovide t he f ollowing t hree a rguments:1.Java c lass o f t he s pelling c orrector t o b e t ested2.The m aximum n umber o f c orrections f or e ach m is-­‐spelling t o b e t ested.3.Path t o t he d ata f ile t o b e t ested (e.g. s pelltest1.txt, s pelltest2.txt).(You m ay r evise t he r eleased v ersion o f S pellingScorer f or y our p rogram i f n ecessary. F or e xample, i t does n ot a llow w hite s paces i n t he f ile p ath, a nd y ou c an r evise t o f ix t he p roblem.)For e xample, y ou m ay r un i t a s f ollows:$ j ava -­‐cp b in/ s .ntu.ir.spell.SpellingScorer s .ntu.ir.spell.NGramSpellingCorrector 1data/spelltest1.txtThe S pellingScorer c hecks, f or e ach m is-­‐spelling i n t he d ata f ile, i f t he l ist o f c orrections r eturned b y t he given S pellingCorrector i ncludes t he e xpected c orrected s pelling. S pellingScorer w ill r eport t he performance o f t he S pellingCorrector b ased o n t he d ata f ile.You m ust i nclude t he o utput o f t his p rogram i n y our s ubmission. W e a lso m ay u se t he S pellingScorer o n a d ifferent s et o f w ords t o e valuate t he q uality o f y our i mplementation.Part 2: L ucene (50 p oints)In t his p art y ou b uild u p a s earch e ngine f or t he c ollection o f 30,000+ T DT3 n ews a rticles (i.e. ‘tdt3.zip’) by u sing L ucene, a t ext s earch e ngine l ibrary w ritten i n J ava. T he c ollection c onsists o f t ext f iles, w here each f ile c ontains a n ews a rticle. A n e xample f ile i s s hown b elow.File: tdt3/19981001/CNN19981001_1600_1059.txt<DOC><DOCNO> CNN19981001.1600.1059 </DOCNO><DOCTYPE> NEWS </DOCTYPE><TXTTYPE> CAPTION </TXTTYPE><TEXT>General Motors is taking another step in its effort to lure customersback after strikes shut down most of its plants this summer. G.M.says it will install a safety and security system on many of its trucksand cars for free. The system is worth about $1,300. G.M. saw itsmarket share shrink from 31% in June to less than 21% in July as thestrike was taking place.</TEXT></DOC>Your t ask i s t o c reate a L ucene i ndex f or t he c ollection, w rite a p rogram t hat t akes i n a q uery f rom t he user (i.e. S ystem.in) a nd r eturns a l ist o f t op 20 d ocuments, a nd i ntegrate s pelling c orrectors w ith t he program. T he i ndex s hould h ave t he f ollowing t hree f ields: d ocno (called I Ds), d ate (inferrable f rom t he sub-­‐directory n ames, e.g., 19981001), a nd t ext.2.1 I mplement s ome q ueries i n t he p rogram t o f ind t he I Ds (e.g. C NN19981001.1600.1059) o f t he documents t hat m eet t he f ollowing c onditions:a)Documents t hat c ontain b oth “New Y ork” a nd “San F rancisco”b)Documents w here t he w ords ‘helicopter’ a nd ‘hurricane’ a ppear w ithin 5 w ords o f e ach o therc)Documents w hich c ontain t he n ame “Dan R onan” a nd w as p ublished i n N ovember 19982.2 A ssume t hat w e a re i nterested i n n ews a rticles a bout s tock m arket m ore t han o thers. W rite a program t o a utomatically c ollect t erms r elated t o s tock m arket (e.g. s tock, s hare, f und), f or e xample, from t he W ikipedia p age o n s tock m arket (/wiki/Stock_market). C ount t heir frequencies i n t he T DT3 a rticles a nd a ssign q uery-­‐independent w eights b etween 0 a nd 1 t o t he a rticles (cf. S ection 7.1.4 o f t he t extbook). R evise t he p rogram f rom 2.1 t o r erank t he r esults f rom t he L ucene index b y u sing t he q uery-­‐independent w eights: F or e xample, c onsidering a q uery q, o ne o f i ts r esultant articles d, a nd t he o riginal s core o f d g iven b y L ucene, s core(q,d), y ou m ay a dd t he q uery-­‐independent weight o f d, g(d), t o s core(d) t o o btain t he n ew s core o f d, s core’(q,d), a s f ollows:score’(q,d) = s core(q,d) + g(d)Find e xample q ueries w hose t op 20 d ocuments a re a ffected b y t he r eranking a nd t hose n ot a ffected. Discuss i f t he r eranking h elps u s a chieve t he g oal o f f ocusing o n s tock m arket a nd h ow t o i mprove i t.2.3 W rite a p rogram t hat t akes i n a m isspelled q uery, r uns t he b est s pell c orrector y ou w rote i n p art 1 o n this q uery t o s uggest a lternative s pellings, a nd q ueries t he L ucene i ndex u sing t he s uggested s pellings, printing o ut t he I Ds o f t op 20 d ocuments. S how o utput o f y our s ystem w here t he s pell c orrection d oes well a nd w here i t d oes p oorly. L ucene a lso h as a s pell c hecker. W rite a nother p rogram t hat u ses t he Lucene S pellChecker. C ompare t he r esults w ith t hose o f t he b est s pell c orrector f rom p art 1. W hich i s better a nd w hy? H ow c an y our e ngine b e i mproved?Credit f or a dvanced (10 p oints):Implement s ome o f y our s uggestions f or i mprovement f rom 2.2 a nd 2.3. T he q uality o f y our i dea, implementation, a nd w riteup w ill a ll b e c onsidered.References:•Lucene: h ttp:///java/docs/index.html•Information R etrieval a nd W eb S earch c ourse a t S tanford U niversity (source o f t his a ssignment): /class/cs276/•Topic D etection a nd T racking (TDT) P hase 3 (source o f t he T DT3 c orpus):/TDT3/Resource f iles p rovided a t t he c ourse s ite:•SpellingCorrector.java, S pellingScorer.java: A s m entioned a bove•big.txt: A c ollection o f d ocuments f rom w hich y ou m ay c ollect d ictionary w ords•spelltest1.txt, s pelltest2.txto Test d ata f iles f or s pelling c orrection, w here e ach l ine f ollows t he f ormat “a d ictionary word : a l ist o f i ncorrectly s pelled w ords”•tdt3.zip: A n ews a rticle c ollection。

英国文学史assignment 1

英国文学史assignment 1

Assignment 11.Who were the earliest settlers of Britton/England? What do you know about them (home,language, belief, life style)?The earliest settlers of Britain/England were Britons.They were ancient Celtic people from the island of Great Britain . They lived a tribal life ,spoke Celtic language, and had no belief. The Britons (sometimes Brythons or British) were the Celtic people culturally dominating Great Britain from the Iron Age through the Early Middle Ages. They spoke the Insular Celtic language known as British or Brythonic. They lived throughout Britain south of about the Firth of Forth; after the 5th century Britons also migrated to continental Europe, where they established the settlements of Brittany in France and the obscure Britonia in what is now Galicia, Spain. Their relationship to the Picts north of the Forth has been the subject of much discussion, though most scholars accept that the Pictish language during this time was a Brythonic language related to, but perhaps distinct from, British.2.What are the 3 conquests? What effects they had upon the nation?The first is the Roman Conquest. Romans brought Christianity to England. And one of the worst results of the Roman conquest was the growth of the slave system, private land ownership.The Romans made the part of island under their control a province of their huge empire, called Britannia, ruled by Roman governors. The Romans also built walls and forts across northern England to protect the province from the war like tribes of Scotland .The most famous of the walls was Hadrian's Wall, named after the Emperor Hadrian. During the Roman period, Christianity came to England. A number of things with Christian symbols on them that date from the 4th century AD have been found in various places in England.The second is the Anglo-Saxon Conquest. In 449 A.D., Britain was invaded by three Germanic tribes from the Northeast of Europe: Angles, Saxons and Jutes, who had reached the later stages of tribal society. At first they established some small kingdoms in Britain which by the 7th century were combined into a united kingdom called England (the land of Angles). Its people was called the English. The three dialects spoken by them naturally grew into a single language called Anglo-Saxon or Old English. Angles, Saxons and Jutes usually known as Anglo-Saxons are the first Englishmen. Language spoken by them is called the Old English, which is the foundation of English language and literature. With the Anglo-Saxon settlement in Britain, the history of English literature began.The third is Norman Conquest. Norman Conquest marks the establishment of feudalism in England. The conquest also greatly influenced the English language.3.Ideologically what is the most significant change in people’s spiritual life?The acceptation of Christianity is the most significant change in people’s spiritual life.4. How was the nation developed politically or what changes were there in the form of the social structure?After the Roman Conquest, the form of social was changed from slave society to feudal society. based on the ownership of land.5. In terms of literature, what influence had the French upon England?Due to the Norman influence, English passed from Old to Middle English. The French influence affected the English vocabulary, grammar, spelling and pronunciation and brought the romance style to England6. How many languages were spoken during the French reign? How do you understand modern English as a language?Two, they are French and Old English.Modern English as we know it has existed since about 1500, and Shakespeare's plays were written between 1592 and 1610 -- exact dates are not known. Shakespeare was using the same "English" that we use today, but as languages tend to do, the meanings of words and some words in their entirety have changed.。

assignment 1 分析

assignment 1 分析

3. 我存在,我曾经存在。 I am,I was. 电影“Artificial Intelligence”,I am, I was. I think, so I am. (Decarte) 改译: I am here, I was here. ??? I exist, I ever existed. ???
4. 有想做的事,有值得爱的人,有美丽的梦。 I want something to do, someone to love and something to hope for.
语义问题: Someone to love指有一个人去爱,但原文中是“有值得 爱的人”,与原文不符。Something to hope for指“有事情去期待” 的意思,与原文中“有美丽的梦”仍不吻合。 改译:
17.生命是一场又一场的相遇和别离,后会有期。 Life is full of encounters and separations. See you some day.
语义问题:separation: n. a period of time that people spend apart from each other. 一般指长时间离别。所以在该句中用parting: n. the act or occasion of leaving a person or place”一词比较好,与原文 中所表达的意思相近。
2. 我希望活得有意义,活得深刻,汲取生命所有的精髓。 I wanted to live deliberately,live deep and suck out all the marrow of the life. (Walden) 语法问题:原文中的动词wanted用了过去式,过去式指的是在过去的时间内所发生的 事情,从原文中了解到这种渴望和希望应该经常存在,故用一般现在时want比较合适。 语义问题:deliberately有两个意思,分别是“done in a way that was planned, not by chance”和 “slowly and carefully”, deliberately 并不符合有意义的意思。deep可以指物理意 义上的深,情感上的深厚,知识的渊博,人性格深沉,这里指生活态度不恰当。尽管 deep也有做副词的时候,但多用于deep inside,deep into这种情况,在这里用deeply才 是正确的。而且此处用profoundly更好,语气更强,更能体现出活得深刻的意味。 文体问题:“汲取”在文中具有象征意义,指的是“学习”生命的意义。suck out指的 是吮吸,只是单纯的动作。marrow象征的是生命中的智慧,而marrow是生物上骨髓的 意思。 改译: I wanted to lead a meaningful and profound life, from which I receive all the wisdom of life.

Assignment_1

Assignment_1

Assignment 1, PSAProblem 1: Multiple Choice Questions (2 points for each problem)1. Counterfactual is synonymous with ________.a. potential outcomeb. counterfactual frameworkc. unobserved heterogeneityd. both a and b2. The treatment effect model shares same features as the propensity score matching inthe following way(s) ________.a. both estimate propensity scoresb. both create a matched samplec. both cause reduction of sample sized. both a and c3. The strongly ignorable treatment assignment assumption is synonymous with________.a. no omission of important predictors of sample selectionb. independence between an independent variable and the error term of a regressionmodelc. no correlation between treatment assignment and a covariate of outcomed. both a and be. all a, b, and c4. The challenge(s) of running instrumental variable approach is (are) the difficulty (ordifficulties) to________.a. know potential outcome for all study participantsb. know the causes of sample selectionc. to find a useful instrumental variabled. all a, b and ce. both b and c5. The Heckman sample selection model differs from the treatment effect model in thefollowing way(s) ________.a. estimation methods (i.e., two-step estimator versus maximum likelihood)b. whether the regression equation includes the binary treatment variablec. whether the outcome variable is known for all participantsd. both b and ce. all a, b, and c6. The SUTVA implies that ________.a. to test the effectiveness of aspirin the evaluator should give aspirin to all studyparticipantsb. to test effectiveness of aspirin the evaluator should use exactly the same type ofaspirin in the studyc. recent graduates from a job training program should not affect the average incomein the job marketd. all a, b and ce. both b and c7. When Rubin (2008) says “design trumps analysis”, he means that ________.a. a randomized experiment should always be designed carefullyb. an observational study should model randomization and make efforts to correct fornonrandomized selectionsc. analysis is less important than design when conducting an observational studyd. all a, b and ce. both a and b8. The consequence(s) of having an endogeneity problem in running regression is (are)________.a. the estimated R2 is misleadingb. the significance tests are misleadingc. treatment effect is exaggeratedd. all a, b and ce. both b and c9. The randomized experiment (RE) is superior to an observational study (OS) in thefollowing way(s): ______________a. RE is less expensiveb. OS fails to control for unmeasured heterogeneityc. RE dose not require restrictive assumptionsd. all a, b and ce. both b and c10. Which of the following statement(s) is (are) false? ______________a. average treatment effect equals to intent-to-treat effectb. efficacy effect is the same as the treatment effect for the treatedc. in a randomized experiment the average treatment effect for the treated is thesame as the average treatment effect for the controld. all a, b and ce. both b and cProblem 2 (30 points)In the data file “chpt4_1.dta” of the PSA Website, the variable “bc3_tpt” is a total score of CBCL. Like the externalizing and internalizing scores, a high value on the total score indicates a greater extent of behavioral problems.Use this variable as an outcome, and exactly the same set of covariates affecting the selection and regression equations as those for the externalizing model (i.e. the model presented in Section 4.5.1 of Guo & Fraser, 2009, pp108-113), run a treatment effectmodel using maximum likelihood estimator. Attach (or copy/paste) the output to your completed assignment. Answer the following questions.2.1 What is your model estimated treatment effect? Interpret your finding.2.2 What is your estimated correlation between the error of the selection equation and theerror of the regression equation? Perform a significance test of the null hypothesis stating that the correlation is zero. What dose your test inform you?2.3 Interpret the meaning of model chi-square. What does the test of the significance ofmodel chi-square inform you?2.4 From your estimated model, what do you know about important covariates that affectthe sample selection? What does sample selection mean under the current context? 2.5 What variables are important in predicting participants’ total score?2.6 Run the same model using a two-step estimator.2.7 Compare results between maximum likelihood method and the two-step method.Examine each covariate, and then report whether or not the two estimators give you the same findings. Note that by same findings, I mean the same sign of regression and selection coefficient and same conclusion of significance test (two-tailed) at a .05 level.Problem 3 (20 points)You are provided with 50 imputed files in which missing values of independent variables are all imputed. You can download the data (i.e., the zip file “Data_4.5.3.zip”) from the PSA Website and unzip it. Run a treatment effect model based on all 50 files with the following specifications:Regression equation:icsaggch = β0 + β1 ageyc + β2 fmale + β3 blck + β4 whit + β5 hisp + β6 pcedu + β7 ipovl + β8 pcemft + β9 fthr + εintbl = β0 + β1 ageyc +β2 fmale + β3 blck + β4whit + β5 hisp +β6 pcedu +β7 ipovl + β8 pcemft + β9 fthr + β10 dicsagg2 + β11 dicsint2 + uThe same model should also control for clustering effect. That is, use schbl as a clustering variable (i.e., a variable denoting school ID—study participants are nested within schools) to obtain a robust estimate of standard errors to correct for clustering effect.Report:3.1 The estimated treatment effect based on all 50 imputed files in terms of the magnitudeof the effect and whether or not it’s statistically significant.3.2 Which variables might be important in affecting sample selection? Be clear whichsignificance level you use in the evaluation.3.3 Which variables might be important in affecting outcome? Be clear whichsignificance level you use in the evaluation.3.4 What is the estimated correlation between εand u?Problem 4 (30 points)Write an abstract (< 400 words) to describe a design of observational study. You may choose a research problem from the substantive area of your interest. Use Rubin’s (2008) general advice to show important components of your design.。

ASSIGNMENT1_00428113_许椽笔

ASSIGNMENT1_00428113_许椽笔

A Hedging StrategyThe question proposed to solve:It was late November 2006. The local sugar price in Chengdu saw a consistent decrease in the past one year, shown as figure 1. A large sugar producer in Chengdu would sell 1000 tons of sugar in early March 2007. In order to prevent the loss due to the continuing decrease in sugar price, the producer decided to use futures to lock in the current sugar price. It proposed to sell sugar futures at Zhengzhou Commodity Futures Exchange. So we need to decide how many futures contract the producer should sell in order to achieve the best hedge.3000350040004500500055001/06/065/26/0610/13/063/02/077/20/07Figure 11How to solve the problem:1. Decide which futures contract to use2. Find out the optimal hedge ratio3. Decide the number of contracts the company should sell4. Evaluate the effectiveness of the hedging strategyWhich futures contract to use?The company would sell the sugar in early March, 2007. At Zhengzhou Commodity Exchange, there was March 2007 futures contract which would mature on the 7thtrading day of March. Since this was the closest futures contract to the proposed selling date, the company should choose the SR703 contract.What was the optimal hedge ratio? INTRODUCTIONThree groups of hedge ratios have been documented in the literature. The first group is based on1The statistical software used (EVIEWS) could not recognize the legal holidays in China, so there is a discrepancy in the dates throughout this assignment.the regression approach, proposed by Ederington (1979), and is generally referred to as the traditional regression method (TRM). The second group is based on the modified regression method (MRM), which includes the cost of carrying a commodity in the regressions. The third group is based on the error-correction methodology (ECM). In this assignment, I will use the TRM and MRM methods. DATAThe data for this assignment were obtained from the website of Zhengzhou Commodity Exchange. Sugar futures and spot daily price data were for the period ranging from 2006/1/6 to 2007/9/28. The data used were divided into two periods: 2006/1/6 to 2006/11/31 for the optimal hedge ratio estimation, 2006/12/1 to 2007/3/2 for the completion and evaluation of the hedging strategy. For the spot price, the midpoint of the price level was used when a range was given as the spot price. Table 1 provides a summary statistics of the data used for estimating the hedge ratio.Spot and futures price within the range of 2006/1/6 and 2006/11/31:30003500400045005000550060001/063/175/268/0410/13The difference in spot price: D_S = Price_s-Price_s(-91)where D_S = change in spot price from 91 days ago-1000-800-600-400-20002004001/063/175/268/0410/13The difference in futures price: D_F03 = Price_F03-Price_F03(-91)(1) Where D_F03 = change in sugar futures (SR703) price from 91 days ago-2000-1500-1000-5005001/063/175/268/0410/13-2000-1500-1000-5005001/063/175/268/0410/13METHODOLOGYTraditional Hedge Ratio T echniquesTherefore, the βcoefficient of this regression gives the minimum-variance hedge ratio as suggested by Ederington (1979). The R-square gives a measure for the expected effectiveness of this hedge ratio.Modified Regression Hedge Ratio T echniquesssIn this situation, suppose the company would enter the futures market on 2006/12/01 and reverse out on 2007/03/02. The duration of the hedge would be 3 months (91days).The regression results are:TRM-1000-500500-2000-1500-1000-5000500D_F03D _SD_S vs. D_F03Dependent Variable: D_S Method: Least Squares Date: 10/31/07 Time: 10:11Sample(adjusted): 5/15/2006 11/15/2006Included observations: 133 after adjusting endpointsD_F03 0.412406 0.037404 11.02580 0.0000 R-squared0.481328 Mean dependent var -309.2105 Adjusted R-squared 0.477369 S.D. dependent var 313.3874 S.E. of regression 226.5579 Akaike info criterion 13.69880 Sum squared resid 6724030. Schwarz criterion 13.74227 Log likelihood -908.9703 F-statistic 121.5683 Durbin-Watson stat0.169503 Prob(F-statistic)0.000000The residual graph is as follows:-600-400-2000200400600-1000-50005005/156/127/108/079/0410/0210/30Therefore, the hedge ratio is 0.41. The regression has an R-square of 0.48. MRMModified_D_S = Change in Spot Price – Cost of Carrying Cost of Carrying = basis = spot price – futures price-1000-50050010001500-2000-1500-1000-5000500D_F03M O D I F I E D _D _SMODIFIED_D_S vs. D_F03Dependent Variable: MODIFIED_D_SMethod: Least SquaresDate: 10/31/07 Time: 10:20Sample(adjusted): 5/15/2006 11/15/2006Included observations: 133 after adjusting endpointsD_F03 0.202798 0.089622 2.262811 0.0253R-squared 0.037616 Mean dependent var 210.5714Adjusted R-squared 0.030270 S.D. dependent var 551.2560S.E. of regression 542.8487 Akaike info criterion 15.44646Sum squared resid 38603698 Schwarz criterion 15.48993Log likelihood -1025.190 F-statistic 5.120314Durbin-Watson stat 0.091331 Prob(F-statistic) 0.025293Theβcoefficient is 0.20, significant at the level of 5% with the R-square of 0.038. This regression result even presents worse desired features than the TRM. Therefore, I decided to use the hedge ratio according to TRM.How many contracts the company should sell?According to the TRMN = h*S/F= 0.41*1000/10= 41 contractsHow effective is the strategy?1) The net change in the value of assetsV alue change on the maturity date with the hedge:1000*(3690-4610) + 410*(3775-3699)-41*4 = - 889004V alue change without hedge:1000*(3690-4610) = - 920000Gain from the hedge:(-889004-(-920000))/(-920000) = 3.37%2) The change in variance during the range of 2006/12/1 to 2007/3/02The covariance matrix of spot and futures price changes from 2006/1/6 to 2006/11/30D_Price_F03 D_Price_SD_Price_F03 275852.31 113763.18D_Price_S 113763.18 97473.25The covariance matrix from 2006/12/1 to 2007/3/2D_Price_F03 D_Price_SD_Price_F03 28642.80 -45665.71D_Price_S -45665.71 218138.58V ariance without hedge: 218138.58V ariance with hedge: 0.59^2*218138.58-0.59*0.41*45665.71+0.41^2*28642.80=69702.36The variance is significantly reduced.However, the covariance matrix shows significant changes in the variance of spot price changes and covariance of the spot and futures price change. This indicates the ineffectiveness of estimating the future covariance and variance of price changes according to the historical data.Some thoughts about the hedging strategyThe hedging strategy provides better results than not hedge, but the strategy itself provides little protection to the company. The problem might be attributed to several factors.Deficiencies in the calculation method of the optimal hedge ratio:The hedge ratio calculation methodology might be defected.1) Changing covariance matrixThe data of spot and futures price changes may not be stationary and hence yield spurious regression results. The underlying assumption of the TRM and MRM is that the covariance matrix remains constant. But as shown in the previous covariance matrix, there are significant changes in the variance of spot price change and covariance of the spot and futures price change. This indicates that the estimation of the covariance matrix of historical data as the covariance matrix of the hedging period might be misleading. And this is also the main reason of the low effectiveness of the hedge strategy in this particular case.2) Changing average price changesAnother assumption underlies the regression-based technique is that average price changes will hold in the future. However, this may not be true. When there is trend in the price changes, the regression-based techniques can not give correct answers. In this particular case, it is highly likely that the data used presented unstationary features and the so the regression-base hedge ratio is defected.3) Loss of information available and convergence problemThis method does not incorporate the information available at the time the hedge is initiated. And it also fails to take care of the convergence problem.Deficiencies in the data usedQuestionable data frequencyThe frequency of the data used is also questionable. The daily tick price may present unstationary features while the weekly data may give better statistical features.The imperfections of the market:The market itself may be imperfect. The sugar futures just started to trade at Zhengzhou Commodity Exchange since January 2006. The market may not be liquid or efficient enough. The price changes may under-react or over-react due to irrational market participants. All of these factors can make the market price changes highly volatile. And there is also trading cost.REFERENCESDavid E. Bell, and William S. Krasker (1986). Estimating Hedge Ratios, Financial Management 15, 34-19Vivek Bhargava, and D.K. Malhotra (2007). Determining the Optimal Hedge Ratio: Evidence from Cotton and Soybean Markets, Journal of Business & Economic Studies, V ol. 13, No.1, 38-117Robert J. Myers (1991). Estimating Time-V arying Optimal Hedge Ratios on Futures Markets, The Journal of Futures Markets, V ol. 11, 39-53。

Assignment 1 for Ch 1 to Ch 4

Assignment 1 for Ch 1 to Ch 4

Assignment 1 (for Ch 1 to Ch 4)Question 1Suppose that one investment has a mean return of 8% and a standard deviation of returns of 14%. Another investment has a mean return of 12% and a standard deviation of returns of 20%. The correlation between the investments is 0.3. Produce a chart similar to Figure 1.2, showing alternative return-risk portfolios from the two investments. Question 2A fund manager has maintained an actively managed portfolio with a beta of 0.2. During the last year, the risk-free rate was 5% and major equity indices performed very badly, providing returns of about -30%. The manager produced a return of -10% and claims that in the circumstances it was good. Discuss this claim.Question 3Regulators calculate that DLC bank (see Section 2.2) will report a profit that is normally distributed with a mean of $0.6 million and a standard deviation of $2.0 million. How much equity capital in addition to that in Table 2.2 should regulators require for there to be a 99.9% chance of the capital not being wiped out by losses?Question 4An investment bank has been asked to underwrite an issue of 10 million shares by a company. It is trying to decide between a best-efforts deal where it charges a fee of $0.2 for each share sold and a firm-commitment deal where it buys the shares for $10 per share. For the latter deal, the bank considers that the selling price per share is either $10.8 or $9.8. What are the break-even probabilities of selling prices so that the bank is indifferent to the two deals (assume that all 10 million shares are sold out)? Question 5Use Table 3.1 to calculate the minimum premium an insurance company should charge for a $5 million three-year term life insurance contract issued to a man aged 60. Assume that the premium is paid at the beginning of each year and death always takes place halfway through a year. The risk-free interest rate is 6% per annum (with semi-annual compounding).Question 6Suppose that in a certain defined benefit pension plan (1)Employees work for 45 years earning salaries thatincrease at the real rate 實質利率 of 2% per year (= the nominal rate 名義利率 the inflation rate 通脹率 ).(2)The pension fund’s income is invested in bonds, whichearn the real rate of 1.5% per year.(3)They retire with an annuity equal to 70% of their finalsalaries. This annuity decreases at the real rate of 1% per year.(4)The annuities are received for 18 years.Calculate (using a software, say Excel) the percentage R of an employee’s salary that must be contributed to the pension plan if it is to remain solvent.Assume that the initial salary is $100,000 per year. Note that the salary of the employee makes no difference to the answer. This is because it has the effect of scaling all numbers up or down.Do all calculations in real rather than nominal dollars. Each team is required to hand in a spreadsheet only. (Given that the required contribution rate R = 25.02%.)Question 7An investor buys 100 shares in a mutual fund on 1 January 2015, for $50 each. The fund earns dividends of $2 and $3 per share during 2015 and 2016. These are reinvested in the fund. The fund’s realized capital gains in 2015 and 2016 are $5 per share and $3 per share, respectively. The investor sells the shares in the fund during 2017 for $59 per share. Explain how the investor is taxed.Question 8Good years are followed by equally bad years for a mutual fund. It earns +8%, –8%, +12%, –12% in successive years.(a)What is the investor’s overall return for the four years?(b)What is the inve stor’s av erage return each year?Form a team having 4 or 5 students (who register with the same Monday's or Friday's classes) to complete this assignment.Please hand in a hard copy of your team work during the classes held on 29 February 2016 (Monday's classes) / 4 March 2016 (Friday's classes).Note that this assignment carries only 5 marks out of 15 marks (the total of continuous assessment).。

Assignment 1 – Write each word 3 times each

Assignment 1 – Write each word 3 times each

Assignment 1– Write each word 3 times each.1._________________________________________________________2._________________________________________________________3._________________________________________________________4._________________________________________________________5._________________________________________________________6._________________________________________________________7._________________________________________________________8._________________________________________________________9._________________________________________________________10._________________________________________________________11._________________________________________________________12._________________________________________________________13._________________________________________________________14._________________________________________________________15._________________________________________________________16._________________________________________________________18._________________________________________________________19._________________________________________________________20._________________________________________________________ Assignment 2– List your words in alphabetical order.1._________________________________________________________2._________________________________________________________3._________________________________________________________4._________________________________________________________5._________________________________________________________6._________________________________________________________7._________________________________________________________8._________________________________________________________9._________________________________________________________11._________________________________________________________12._________________________________________________________13._________________________________________________________14._________________________________________________________15._________________________________________________________16._________________________________________________________17._________________________________________________________18._________________________________________________________19._________________________________________________________20._________________________________________________________ Assignment 3– Use each of your words in a completesentence.1._________________________________________________________2._________________________________________________________4._________________________________________________________5._________________________________________________________6._________________________________________________________7._________________________________________________________8._________________________________________________________9._________________________________________________________10._________________________________________________________11._________________________________________________________12._________________________________________________________13._________________________________________________________14._________________________________________________________15._________________________________________________________16._________________________________________________________17._________________________________________________________18._________________________________________________________19._________________________________________________________20._________________________________________________________Spelling PracticeSpelling Websites– Use the following sites to study your spelling words in fun ways. You can type in the list of words, then play games and complete other activities./SpellingTest/FreeSpellingTest.htmlOther ways to practice words …∙Write your words in shaving cream∙Use magnet letters and cookie sheets∙Write your words on a dry erase board∙Write your words outside with chalk∙Use a Q-tip and water to paint on a chalkboard∙Use a tape recorder to record yourself spelling the words ∙Practice your words out loud with a parent or sibling ∙Type your words on a typewriter or a computer∙Paint your words∙Use toothpicks or pipe cleaners to form your wordsName __________________ Date ____________ Lesson _____ Spelling Homework Checklist1._____ Complete the spelling rule sheet.2._____ Write your spelling words 3 times each.3._____ List your words in alphabetical order.4._____ Use each of your words in a complete sentence.5._____ Study for your test. Use the list of suggestions on thelast page.6._____ Check off all assignments. The entire packet should beturned in by Friday.----------------------------------------------GradingSpelling Rule Page - _____ out of 53 Times Each - _____ out of 5Alphabetical Order - _____ out of 5Sentences - _____ out of 5Total Weekly Homework Grade - _____ out of 20。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

Corporate Finance Assignment One
1. A stock has the following year-end prices and dividends:
What are the arithmetic and geometric returns for the stock?
2.You find a certain stock that had returns of 4 percent, -5 percent, -15 percent, and 16 percent
for four of the last five years. The average return of the stock for the 5-year period was 13 percent. What is the standard deviation of the stock's returns for the five-year period?
3.Consider the following information:
a.Your portfolio is invested 30% each in A and C, and 40% in B. What is the expected
return of the portfolio?
b.What is the variance of the portfolio? The standard deviation?
4.You have $100000 to invest in a portfolio containing stock X and stock Y. Your goal is to create
a portfolio that has an expected return of 18.5%. If stock X has expected return of 17.2% and
a beta of 1.4, and stock Y has an expected return of 13.6% and a beta of 0.95, how much
money will you invest in stock Y? How do you interpret your answer? What is the beta of your portfolio?
5.Suppose you observe the following situation:
a.Calculate the expected return on each stock.
b.Assuming the capital asset pricing model holds and stock A’s beta is greater than stock
B’s beta by 0.25, what is the expected market risk premium?。

相关文档
最新文档