Anteprima
Vedrai una selezione di 4 pagine su 11
Computational Tools for Economics and Management Pag. 1 Computational Tools for Economics and Management Pag. 2
Anteprima di 4 pagg. su 11.
Scarica il documento per vederlo tutto.
Computational Tools for Economics and Management Pag. 6
Anteprima di 4 pagg. su 11.
Scarica il documento per vederlo tutto.
Computational Tools for Economics and Management Pag. 11
1 su 11
D/illustrazione/soddisfatti o rimborsati
Disdici quando
vuoi
Acquista con carta
o PayPal
Scarica i documenti
tutte le volte che vuoi
Estratto del documento

EXERCISE NUMBER FOUR

- Let x <- and y <- Consider the functions g(x) = and h(x) = Plot both the

point function. exponential line.

functions and the points defined by x and y on the interval [a, b]. Which of the following sentence is true?

The curve is mostly below the line and ... points are below the graph of the exponential

‣ the curve is mostly above the line and ... points are below the graph of the exponential

‣ x <- point

‣ y <- function

g <- function(x) exp(...)

‣ h <- function(x) line

curve(g,a,b)

‣ curve(h,a,b,add=T,col=2)

analyse the graph

points(x,y):

EXERCISE NUMBER FIVE

First version : vector

- Type and press enter. Then immediately store in a vector normal pseudo-random

set.seed(...) 100

numbers with mean and standard deviation . Compute the sum of components of the vector,

m sd b

starting from position .

a

set.seed(...)

‣ v <- rnorm(100,m,sd)

‣ sum(v[a:((a+b)-1)])

Dettagli
Publisher
A.A. 2020-2021
11 pagine
1 download
SSD Scienze economiche e statistiche SECS-P/08 Economia e gestione delle imprese

I contenuti di questa pagina costituiscono rielaborazioni personali del Publisher EMMAMNRT di informazioni apprese con la frequenza delle lezioni di Computational Tools for Economics and Management e studio autonomo di eventuali libri di riferimento in preparazione dell'esame finale o della tesi. Non devono intendersi come materiale ufficiale dell'università Università degli studi Ca' Foscari di Venezia o del prof Fasano Giovanni.