代写IB3M10 Fintech Summer 2022-2023调试Python程序

- 首页 >> Java编程

Module Code

IB3M10

Module Title

Fintech

Exam Paper Code

IB3M10_C

Exam Paper Title

IB3M10_ Fintech_ IB3M10 _Paper_ Summer 2022-2023

Duration

2 hours

Exam Paper Type

Fixed time - Open Book

Question 1

1.1 what  is a hash collision?  What  is  the optimal number of collisions that  a good hash function should have? [2 marks]

1.2 Explain why public-key encryption is a necessary element of decentralized ledgers such as Bitcoin block chain.  [3 marks]

1.3 your colleague claims that, due to the proof-of-stake consensus mechanism employed by Ether eum block chain,  it  is  harder to  tamper with  E there um transactions contained  in older blocks rather than with transactions that were added to the E there um block chain recently.  Do you agree with this statement? Explain your answer.   [3 marks]

1.4 write down and explain the incentive compatibility condition against an attacker that is used in the paper "The Economic Limits of Bitcoin and the Block chain" by Bu dish (2018).

[Hint:  begin by defining the ingredients of the equation. ]   [6 marks]

1.5 your colleague claims that the rate of change in the total supply of Bitcoins is inversely proportional to the amount of block rewards. Do you agree with this statement? Explain your ans we.   [2 marks]

1.6 what is the custody risk faced by clients of centralized exchanges (CEX) such as coin base? propose some steps that the clients can take to mitigate this risk when they use CEX.   [3 marks]

1.7 what are the two main types of collateralized stable coins? For each type, explain how it works and provide examples.  [4 marks]

1.8 what are the major criticism s in the current implementation of digital media NFTs that we discussed in the module? In each case, explain the associated limitations and discuss potential solutions.   [4 marks]

1.9 Illustrate schematically the working s ofa decentralized exchange (DEX) such as uni swap. [Hint:  draw the main parties involved and relationships bet ueen them.]   [5 marks]

[Total marks: 32]

Question 2

2.1 you are working at a central bank and your team is exploring potential ways of introducing CBDC. your colleague claims that:  "In order to introduce CBDC digital cash, at frst , the central bank has to retire banknotes and coins— physical cash."  DO YOU agree with this statement? Explain your answer.  [2 marks]

2 . 2  what is the role of market makers in traditional fnancial markets? Why would a market maker be willing to make payment for order fow to a brokerage such as Robinhood?   [3 marks]

2.3  Explain why enterprise D LTS, as opposed to public block chains such as E there um, might be better suited for firmns working in the fnancial services industry.   [3 marks]

2 . 4 what is a tech stack?  Explain the application of the idea of the stack to fnancial services that we discussed in the module. provide some examples.   [4 marks]

2.5 your friend claims that modern rob o-advisors such as wealth front have incentives to gam- ify the experience of their clients. Do you agree with this statement? Explain your answer.  [3 marks]

2.6 Describe securities fraud and approaches to its regulation that we discussed in the class. what trade-of do regulators face when thinking about securities fraud?   [4 marks]

2 . 7 Illustrate and explain how the stock ownership is tracked in the traditional fnancial system. [Hint:  draw the main parties involved and describe relationships between them.]   [4 marks]

2.8 Explain how the concept  "garbage in, garbage out"  can be applied in the context ofML models. provide an example.  [2 marks]

2.9 working in an insurance company, you are tasked to use ML tools to calculate appropriate car insurance premiums.  which category of ML, out of the three main categories that we looked at in the module, would you choose?  Outline the steps, including a description of the data that you need, that you would undertake to complete your task.   [4 marks]

[Total marks: 29]

Question 3

All questions below refer to the programming language python.

3.1 Describe what break statement does.  provide an example of a situation where it can be useful.   [2 marks]

3.2 Describe what the following script. does.  [Hint:  use the line number s on the left if you need to refer to apart of the code.

1       def   withdraw(spend ,   wallet) :

2              balance   =   len (wallet )

3             if   spend   < balance :

4                return  wallet [spend]

5

6 amount   =   O

7 for   i   in  range (4) :

8 result   =   withdraw (amount , ''Collude''

9 print (result)

10 amount   +=   2

what is its output?                                                                                           [6 marks]

3.3  your colleague claims that a List rather than a pandas Data Frame is amore appropriate data type to store time series data such as daily prices of Doge coin.   DO YOU agree with this statement? Brieay describe the two data types and explain your answer .   [2 marks]

3.4 Describe what the following script. does.  [Hint:  use the line number s on the left if you need to refer to apart of the code.

1        import   pandas   as   pd

2      houses   =  pd . Data Frame ({"Bathrooms " :    [2 ,   4,   2 ,   5] ,

3                                        "state " :    [" CA" ,   "CA" ,    "NY ,    "FL "] ,

4                                        "price " :    [150 ,    100 ,    150 ,    200] })

5

6        HM   =   houses [ "price" ]  . mean ()

7        houses ["price"]   =   ( houses [ "price "]   -   HM)

8      new   =   (houses [" state"]    ==   "CA" )    I   (houses [ " state " ]    ==   " FL" )

9      houses_new = houses [new]

10

11      grouped  =  houses-new . group by ( ["state "] ) ["price"] . agg ( [max ,   min] )

12      grouped . sort-values (by= 'max ' ,   ascending=False)

What is its output?                                                                                           [6 marks]

3.5 your team is training a neural network model that aims to estimate values of used cars. you have already collected data and trained the model.   Explain what steps need to be taken next in order to understand whether the model is over- or under-fitted.  what could be done in each case to combat the problem?   [4 marks]

3.6 Describe what the following script. does.  [Hint:  use the line number s on the left if you need to refer to apart of the code.

1        import   date time

2        class   Block chain() :

3          def   ___init___ (self ,   block ,   chain) :

4                    self . block   =   block

5                    self . chain   =   chain

6              def    add__blocks (self) :

7                temp  =  date time . date . today()

8                  my-block   =   temp . year

9 added  =   (my-block   -   self . block) *52560

10                return  print (self . chain+blocks   added :   about   " + str (added) )

11

12      bitcoin   =   Block chain (2008 ,    "BTC " ) 13      bitcoin . add__blocks ()

What is its output?                                                                                              [6 marks]

3.7 you are building an ML model that would be applied to predict value of used motorboats. To begin with, you have collected the data from a website that aggregates data on current and past sales of boats.  In the data,  for each boat, you have its characteristics  (such as length, engine horsepower, fuel type, etc.)  and its sale price.  when preparing the data for training of your ML model, you realize that about 19% of observations have 555,777 as a sale price.  Based on your knowledge and experience from the module, diagnose the issue and propose at least 2 ways how you can deal with it to proceed further with your ML training.    [3 marks]

[Total marks: 29]



站长地图