-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhw1_Vibhu_Dhavala.Rmd
85 lines (57 loc) · 4.4 KB
/
hw1_Vibhu_Dhavala.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
---
title: 'Homework #1'
author: "Vibhu DHavala"
output:
html_document: default
pdf_document: default
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
```
This homework is more or less a tutorial that helps you set up the coding environment used in this course, and familiarizes you with the format of the assignment submission.
As a pre-requisite of this homework, first install R, and then the RStudio (the free version of Rstudio Desktop).
Please respond to all questions. If the question asks you to do something on your laptop and you have finished that, just say "Done".
1. Create a folder named `ds202_hw1`, and **either** create an RMarkDown file `hw1_FirstName_LastName.Rmd` under this folder **or** move the provided template into this folder.
Replace `FirstName` and `LastName` with your first and last name.
`hw1_FirstName_LastName.Rmd` will include your solutions. The file and folder names are *case-sensitive*, which means `hw1.Rmd` and `HW1.rmd` are different. *It is crucial to follow the exact folder structure and file names* in this course, so that your homework can be reproduced. The correct folder structure is
```
ds202_hw1
|-- hw1_FirstName_LastName.Rmd
|-- hw1_FirstName_LastName.html (generated after knitting)
```
Answer: Done? (Note that the start of your answer on the next line must be indented. In other words, don't remove the leading spaces.)
2. Write your name in the YAML of your homework `Rmd` file.
Answer: Done
3. Write a paragraph to introduce yourself. Set your name in bold font and your major in italic.
Answer: Hello my name is **Vibhu Dhavala** and Im a junior persuing a major in *software engineering* and a minor in data science. I love working with data and seeing what it represents. I am from minnesota and love spending my summers outdoors.
4. Write a paragraph describing a job that you think is related to data science. Include a hyperlink and an image. Make sure your answer is in a nice format to read.
Answer: There are many fields that use data science but a specific one is the world of finance. Large market firms use data science every day to analyze stock data and write [algorithms](https://en.wikipedia.org/wiki/Algorithmic_trading) to predict what the best ![trades](C:\Users\vibsd\Documents\ds202\ds202_hw1\trading.png) to make would be. It is the job of a data scientist to develop these algorthims and interpret data
5. What data topic will you be most interested in? (Optional) Provide a source of such dataset if you have.
Answer: Im intrested in creating models to predict unknowns given a set of data.
6. To check that your R and Rstudio installation is correct, find the version of R by entering `version` into the R console. Include this command into a R code trunk in your solution `Rmd` file to have it automatically printed in the knitted html file.
Answer:
```{r}
system('version', show.output.on.console = TRUE)
```
7. Install git.
- If you are on Windows:
a. Install [Git for Windows](https://gitforwindows.org/). In the coming weeks we will use the Git Bash (but not the Git GUI).
b. After installation, set up Rstudio to use Git bash as the shell for the Terminal: Open RStudio, click Tools--Global Options--Terminal; under **Shells**, select Git Bash; click OK.
c. In the main menu of RStudio: click Tools--Terminal--New Terminal. If you have a `$` before your prompt, then you should be good to go.
d. If you don't see a `$` before your prompt, try restarting RStudio.
- If you are on Linux or macOS, Git has probably been installed by default, so you do not need to install anything. Just click the Terminal tab (above the R Console).
Answer: Done
8. What is the version of your Git? To find out, go to the Terminal tab in RStudio (right to the Console tab), and type in the following command. If it works, this shows that the setup of your terminal and Git is correct.
<!-- Then explore the bash command line and Git. -->
```
git --version
```
Answer: 2.30.1
9. Configure your git username and user email by modifying and entering the following commands into the terminal
```
git config --global user.name "your first and last name"
git config --global user.email "your email"
```
Answer: Done
10. Register a [GitHub](https://www.github.com) account. What is your username?
Answer: DhavalaV