Project 4 Instructions
.pdf
keyboard_arrow_up
School
Johns Hopkins University *
*We aren’t endorsed by this school
Course
220.620
Subject
Computer Science
Date
Dec 6, 2023
Type
Pages
2
Uploaded by HighnessComputerPigeon16
12/2/23, 9:27 PM
Project 4 Instructions
https://courses.edx.org/asset-v1:UTAustinX+DataSci.322+2T2023+type@asset+block/project4_instructions.html
1/2
Project 4 Instructions
Please use the project template R Markdown document to complete your project. The knitted R Markdown
document (as a PDF)
and
the raw R Markdown file (as .Rmd) must be submitted to edX by the posted deadline. To
upload your code, you must first compress it as a .zip file. These two documents will be graded jointly, so they
must be consistent (as in, don’t change the R Markdown file without also updating the knitted document!).
All results presented
must
have corresponding code.
Any answers/results given without the corresponding R
code that generated the result will be considered absent.
To be clear: if you do calculations by hand instead of
using R and then report the results from the calculations,
you will not receive credit
for those calculations. All
code reported in your final project document should work properly. Please do not include any extraneous code or
code which produces error messages. (Code which produces warnings is acceptable, as long as you understand
what the warnings mean.)
For this project, you will be working with a dataset containing information lemurs housed at the Duke Lemur
Center, such as their weight, gender, number of offspring, etc. The dataset includes life history records for all
individuals that lived at the Duke Lemur Center from 1966 to 2014, and is an important resources for lemur
conservation.
More information about the dataset can be found here:
https://github.com/rfordatascience/tidytuesday/tree/master/data/2021/2021-08-24
(https://github.com/rfordatascience/tidytuesday/tree/master/data/2021/2021-08-24) and
https://www.nature.com/articles/sdata201419 (https://www.nature.com/articles/sdata201419).
This project should be structured as follows:
Introduction (1–2 paragraphs)
Approach (1–2 paragraphs)
Analysis (2–3 code blocks, either 1 computed table and 1 figure or 2 figures, text/code comments as
needed)
Discussion (1–3 paragraphs)
We encourage you to be concise. A paragraph should typically not be longer than 5 sentences.
Overall Project Instructions
Your analysis must contain some of the material discussed in classes 19 through 22, i.e., some statistical
modeling or dimension reduction.
All plots must be of different types.
Specific Instructions
For Project 4, we provide you with the dataset and you define a specific question to answer.
In the Introduction section, write a brief introduction to the dataset, the question, and what parts of the dataset are
necessary to answer the question. You may repeat some of the information about the dataset provided above,
paraphrasing on your own terms. Imagine that your project is a standalone document and the grader has no prior
knowledge of the dataset.
Important:
You must describe the data columns you are going to use.
12/2/23, 9:27 PM
Project 4 Instructions
https://courses.edx.org/asset-v1:UTAustinX+DataSci.322+2T2023+type@asset+block/project4_instructions.html
2/2
In the Approach section, describe what type of data analysis you will perform and what kind of plot(s) you will
generate to address your question. Provide a clear explanation as to why your chosen analysis is best for
providing the information you are asking about.
In the Analysis section, provide the code that performs your analysis and generates your visualization. In your plot,
use scale functions to provide nice axis labels and guides. Also, use theme functions to customize the appearance
of your plot. All plots must be made with ggplot2. Do not use base R plotting functions.
In the Discussion section, interpret the results of your analysis. Identify any trends revealed (or not revealed) by
your analysis. Speculate about why the data looks the way it does.
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Related Questions
https://github.com/CSU-CS150B/CS150B-Lab-Instructions/blob/main/NBAPractical.md
https://docs.google.com/spreadsheets/d/1JodpSrqg4y8To8-EGos9x1WtggSX9SLZOtuApQwgYlM/edit?usp=sharing
import csv
# These are used to help you manage the CSV please do not change!input_handler = { "field goal": 10, "3 point": 13, "2 point": 16, "free throw": 20}
# This code assigns index_stat to the index of whatever value you enter.index_stat = -9999
# _______Begin student work after this line________
# These variables can be used to track the index of of certain values in the csv. # Use if you want.# index_name = ?# index_age = ?# index_team = ?
# Goal: take in a string containing a file name -> return a list of lists from a csv reader objectdef read_csv(filename): pass
# Goal: take in a team name and the dataset -> return a list of lists containing only player from the # specified team.def filter_data(team_name, data): pass
# For a given statistic find the player with the highest…
arrow_forward
https://github.com/CSU-CS150B/CS150B-Lab-Instructions/blob/main/NBAPractical.md
https://docs.google.com/spreadsheets/d/1JodpSrqg4y8To8-EGos9x1WtggSX9SLZOtuApQwgYlM/edit?usp=sharing
import csv
# These are used to help you manage the CSV please do not change!input_handler = { "field goal": 10, "3 point": 13, "2 point": 16, "free throw": 20}
# This code assigns index_stat to the index of whatever value you enter.index_stat = -9999
# _______Begin student work after this line________
# These variables can be used to track the index of of certain values in the csv. # Use if you want.# index_name = ?# index_age = ?# index_team = ?
# Goal: take in a string containing a file name -> return a list of lists from a csv reader objectdef read_csv(filename): pass
# Goal: take in a team name and the dataset -> return a list of lists containing only player from the # specified team.def filter_data(team_name, data): pass
# For a given statistic find the player with the highest…
arrow_forward
Create automatic. Html page.
arrow_forward
Help.
arrow_forward
Help! Thank you.
arrow_forward
6
DO NOT COPY FROM OTHER WEBSITES
Correct and detailed answer will be Upvoted else downvoted. Thank you!
arrow_forward
Note:- Don't copy from other contents if any wrong i will downvote
arrow_forward
Assignment
Create a well-formed valid XML file that contains this
information. The information does not have to be
correct only your name needs to be correct, you can
make up all other information. Then, create the proper
XSLT file to load that XML data and display it. When
displaying it, make sure you're using:
• Different font colors
• Tables
• header tags ( ...)
• Images where the image name is read from the
XML file
The information you must include:
• Name
• My Picture (this is an image file name. For
example: loay.jpg, or myphoto.jpg
• Address
o Street number
o City
o State
o Zipcode
• Movies I like
o Title
o Release Date
arrow_forward
bb.cas.edu.om/webapps/assessment/take/launch.jsp?course_assessment id%3 17343 1&course_id%3D 20233 1&content_id%3D 252109
Remaining Time: 1 hour, 59 minutes, 32 seconds.
* Question Completion Status:
Create the initial state table, and the complete state table.
Write the equations for all the state variables and the output z.
S1
S2
S3
S4
Z=0
Z=1
State diagram of 1011 sequehce recognizer
Attach File
Browse My Computer
Click Save and Submit to save and submit. Click Save All Answers to save all answers.
1).pdf
a Orgn (1-5).pdf
e here to search
Ps
81°F Mostly clear
Or
V53
Insert
&
3 r
4
3.
6.
8 A
7.
Y]
R
T.
U
D
F
arrow_forward
Below is a data file named as "mydata.txt":
northwest NW Charles Main
western
WE Sharon Gray
southwest SW
Lewis Dalsass
southern
southeast SE
eastern
northeast
SO Suan Chin
Patricia Hemenway
EA TB Savage
NE
AM Main Jr.
NO Ann Stephens
north
AB, ABB, ABBB, ABBBB,
ABC,ABCABC, ABCABCABC,
AAA,AAAA, AAAAA
300000.00
53000.89
290000.73
54500.10
400000.00
440500.45
57800.10
455000.50
AAB,AABB,AABBB, etc.
Write egrep and regular expressions to accomplish the following pattern searches:
a) search all the lines that contain "ABC", "ABCABC" and "ABCABCABC"
b) search all the lines that contain "north"
c) search all the lines that contain ".50" or ".00"
arrow_forward
Written Use Case
Follow the sample format shown in the attached photo.Sample have its label, while the one you should make a written use case is the one who have blue ovalsNOTE: YOU SHOULD MAKE THE WRITTEN USE CASE AS YOU CAN SEE IN THE SAMPLE TABLE. SOMEONE IS ANSWERING MY QUESTION WRONG!
arrow_forward
burses.projectstem.org/courses/64525/assignments/9460863?module_item_id=18079077
Maps
HH
50
Follow these steps to create your Warhol Grid:
1. Find or create an image (for this activity, a smaller starting image will produce higher quality results in
a shorter amount of time).
2. Using the Python documentation as a guide, create a program that loads the image, filters three
copies of it, and saves the result. Note: You will need to create the three filters using
the filter() method.
• Include multiple filters on at least two of your variants.
One of your variants must apply a single filter multiple times with the use of a loop. For
example, the top right image above uses a loop to blur the image 2 times (what if we did it 100
times?).
U
▪ One of your images must apply at least two different filters to the same image. In the example
image, the bottom right image includes a filter to smooth the image and then edge enhance
them.
L
• Create the Warhol Grid using Python with the three images…
arrow_forward
NOTE: Use the API endpoints available at https://jsonplaceholder.typicode.com/ to get the data required in these exercises.
HINT: Read the documented Resources and Routes.
Also the guide: https://jsonplaceholder.typicode.com/guide/
///////////////////////
2) Create a function named "getAllUsers".
Use Fetch with Async/Await to request all the posts. The function should return all the posts as JSON data.
arrow_forward
Mt noy Modify the Octave script that you wrote for Task 1 to generate the
following figure. It may look difficult at first, but if you really understand the code
that you wrote for Task 1, it shouldn't be that difficult to generate the figure
below.
arrow_forward
osted.cuny.edu/webapps/assessment/take/launch.jsp?course_assessment_id%3D_1787700_1&course id3_1950256_1&content id%3_55349866 1&step%3Dnull
* Question Completion Status:
Given a truth table below with the first two columns of truth values provided:
b.
f(p,q)
1
2.
F
4
Which of the answers below contains the truth values for the third column when f(p,q) ?
Column 3
truth values:
Column3
truth values:
Column 3
truth values:
Column 3
truth values:
Column 3
truth values:
1 T
1 T
1F
1 T
1 F
None of the other
O 2 E
O2 T
O2 F
2 T
2 T
Oanswers provided is
correct.
3 T
3 T
3 T
3 F
3 T
4 F
4 T
4 F
4 T
4 T
Chck Save and Submit to save and subrmi.Chick SaueAllansuersto save all answers.
Save All Answers
o search
99+
T.
FT
F.
3.
arrow_forward
Please help with the 1 Python question
Data File: https://docs.google.com/spreadsheets/d/1-S_xnAQXa1QCoWQt7xyvxo42XRNC1QBd/edit?usp=sharing&ouid=112107649557425878726&rtpof=true&sd=true
%%capture############################################################## EXECUTE THIS CELL BEFORE YOU TO TEST YOUR SOLUTIONS ##############################################################import imp, os, syssol = imp.load_compiled("solutions", "./solutions.py")sol.get_solutions("imdb.xlsx")from nose.tools import assert_equalfrom pandas.util.testing import assert_frame_equal, assert_series_equal
# Loading the dataimport pandas as pdimport numpy as np
xls = pd.ExcelFile('imdb.xlsx')df = xls.parse('imdb')df_directors = xls.parse('directors')df_countries = xls.parse('countries')
df = pd.merge(left=df, right=df_countries, how='inner', left_on='country_id', right_on='id')
df = pd.merge(left=df, right=df_directors, how='inner', left_on='director_id',…
arrow_forward
Using AutoCAD, draw the structural plan for this building i.e draw the Pillars, and beams of this building and upload your work in a .dwg file to Google drive
NB : the Red circle represents the pillars and the yellow paths are the beams which I've highlighted. This information will help you draw the Pillars and beams quickly.
You can use any dimensions of your choice!
arrow_forward
Please open this link and solve the
computer science assignment.
If there is any error in the link please tell
me in the comments.
https://drive.google.com/file/d/1RQ2OZK-
¿LSxpRyejKEMad1t2q15dbpVLCS/view?
usp=sharing
arrow_forward
Official Miami Dade College Hon x
/ Content
Take Test: Exam 2- CGS1540C-2 x
Ô https://mdc.blackboard.com/webapps/assessment/take/launch.jsp?course assessment_id= 818475 1&course_id=_207342_
O Imported from Inte.
Remaining Time: 1 hour, 48 minutes, 41 seconds.
* Question Completion Status:
QUESTION 2
During class, I showed you how application programs (e.g., software used by nurses in hospitals) written in different general-purpose programming
languages can use API to send SQL code to SQL servers. Which one of the following was an example of a programming language that I used to illustrate
that idea?
O Cookies
O PHP
O Front-end scripting
O HTML
QUESTION 3
Which of the following statements regarding MYSQL is FALSE?
O It has free and open-source versions
O It is most popular with web applications
O It is owned by Oracle
O It implements SQL in a non-relational structure
Click Save and Submit to save and submit. Click Save All Answers to save all answers.
P Type here to search
a * S O
77°F…
arrow_forward
4 & 5 python
arrow_forward
Python please
starter code:
# Web App to Get Stock Market Data from AlphaVantage Serviceimport requests#Function that gets stock info from API# Returns results in list of two strings# DO NOT EDIT THIS FUNCTION EXCEPT TO INSERT YOUR API KEY WHERE INDICATEDdef getStock(symbol):baseURL = "https://www.alphavantage.co/query?function=GLOBAL_QUOTE&datatype=csv"keyPart = "&apikey=" + "REPLACE WITH YOUR API KEY" #Add API keysymbolPart = "&symbol=" + symbolstockResponse = requests.get(baseURL+keyPart+symbolPart)return stockResponse.text #Return only text part of response#Function that computes and displays resultsdef main():# Add code that meets the program specifications (see instructions in Canvas)#Code that starts the appmain()
arrow_forward
Text categorization: given the following document-term matrix: (the value in the matrix represents the frequency of a specific term in that document) T1 T2 T3 T4 T5 T6 T7 T8 doc1 2 0 4 3 0 1 0 2 doc2 0 2 4 0 2 3 0 0 doc3 4 0 1 3 0 1 0 1 doc4 0 1 0 2 0 0 1 0 doc5 0 0 2 0 0 4 0 0 doc6 1 1 0 2 0 1 1 3 doc7 2 1 3 4 0 2 0 2 Assume that documents have been manually assigned to two pre-specified categories as follows: Class_1 = {Doc1, Doc2, Doc5}, Class_2 = {Doc3, Doc4, Doc6, Doc7} (a) Use Naïve Bayes Multinomial Model and Naïve Bayes Bernoulli Model to respectively calculate how Doc 8 and Doc 9 given above will be classified. Please use add-one smoothing to process the conditional probabilities in the calculation T1 T2 T3 T4 T5 T6 T7 T8 doc8 3 1 0 4 1 0 2 1 doc9 0 0 3 0 1 5 0 1 (b) Redo the classification, use the K-Nearest-Neighbor approach for document categorization with K = 3 to classify the following two new documents. Show calculation details. Note: no need to normalized the vectors,…
arrow_forward
Hete_Set the ranges for the x and y axes.
arrow_forward
Regex, APIs, BeautifulSoup: python
import requests, refrom pprint import pprintfrom bs4 import BeautifulSoup
complete the missing bodies of the functions below:
def companies(website):"""Question 6- Acces the table at the provided website:'https://en.wikipedia.org/wiki/Companies_listed_on_the_New_York_Stock_Exchange_(C)'- Parse through it and retrieve the names of all companies in the site that~ Are based in the US~ Have an acronym anywhere in their name~ (Let us define 'acronym' as any two or more consecutive capital letters)Args:string (website)Returns:list (list of company names)>>> web1 ='https://en.wikipedia.org/wiki/Companies_listed_on_the_New_York_Stock_Exchange_(C)'>>> web2 ='https://en.wikipedia.org/wiki/Companies_listed_on_the_New_York_Stock_Exchange_(T)'>>> companies(web1)['CACI','CAI International, Inc.','CARBO Ceramics Inc.',...'CYS Investments, Inc.']>>> len(companies(web1))
27>>> len(companies(web2))23"""pass…
arrow_forward
Guest House Paradiso
The Guest House Paradiso used to be a splendid place to stay. But things haven't been updated in a while. Including the way that room bookings are recorded. At the moment
they're recorded in a spreadsheet like this:
Bookings Table
Room
Number
Number of
Nights
Arrival Date
Departure Date
Guest Last Name
Guest Phone Number
Optional Extras
203
Mar 18 2022
Mar 20 2022
Howard
555-2381
bug-free bed
101
Mar 18 2022
Mar 21 2022
3
Gallagher
555-3619
clean towels, hot water
302
Mar 18 2022
Mar 19 2022
1
Mortimer
555-0856
bug-free bed, clean towels
103
Mar 18 2022
Mar 23 2022
5
McQueen
557-2428
hot water
...
203
Mar 20 2022
Mar 23 2022
3
Carraclough
554-8652
clean towels, hot water
Optional Extras
There are three types of 'Optional Extras' available in all rooms, and guests can order any combination of these:
• hot water
• bug-free bed
• clean towels
NOTE: For this scenario we will assume that a guest's phone number never changes and is unique.
arrow_forward
SUPPLIER
PRODUCT
ProductCode
ProductnName
unitPrice
SupCode
supCode
(Number, 3)
SupName
(text, 20)
АВC LLC
(Number, 10)
[Char(10)]
(>0)
1111111
Calculator
10
111
111
2222222
Notebook
2.5
777
222
ХҮX LLC
3333333
Book-AI
20
222
3333
PQR LLC
4444444
Pen
-2.0
222
222
AXL LLC
5555555
Pencil
.500
111
Eraser
.500
222
arrow_forward
Article Link:
https://www.mdpi.com/2304-6740/11/2/65Write a summary about the article
- Summarize the main idea/point(s)
- Please include excerpts from the article to emphasize a point, but it must be cited as an in-text citation. E.g. "Quote." (Author's lat name page) For example, (John 6)
arrow_forward
PHP
According to table the in the image
(Assume that the following program section (Program Code 1) are variables that receives input from the user via a form. Build program code to provide instructions for entering the data into the assessments table. In addition, next build a link to view the data that has been entered.)
<?php
include ('config.php');
$ matrixnum = $_POST['matrixnum'];
$ subject_code = $_POST['subject_code '];
$ quiz = $_POST['quiz'];
$ assignment = $_POST['assignment'];
$ project = $_POST['project'];
$ total_marks= $_POST['total_marks'];
$ grade = $_POST['grade'];
Code program 1
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage
Related Questions
- https://github.com/CSU-CS150B/CS150B-Lab-Instructions/blob/main/NBAPractical.md https://docs.google.com/spreadsheets/d/1JodpSrqg4y8To8-EGos9x1WtggSX9SLZOtuApQwgYlM/edit?usp=sharing import csv # These are used to help you manage the CSV please do not change!input_handler = { "field goal": 10, "3 point": 13, "2 point": 16, "free throw": 20} # This code assigns index_stat to the index of whatever value you enter.index_stat = -9999 # _______Begin student work after this line________ # These variables can be used to track the index of of certain values in the csv. # Use if you want.# index_name = ?# index_age = ?# index_team = ? # Goal: take in a string containing a file name -> return a list of lists from a csv reader objectdef read_csv(filename): pass # Goal: take in a team name and the dataset -> return a list of lists containing only player from the # specified team.def filter_data(team_name, data): pass # For a given statistic find the player with the highest…arrow_forwardhttps://github.com/CSU-CS150B/CS150B-Lab-Instructions/blob/main/NBAPractical.md https://docs.google.com/spreadsheets/d/1JodpSrqg4y8To8-EGos9x1WtggSX9SLZOtuApQwgYlM/edit?usp=sharing import csv # These are used to help you manage the CSV please do not change!input_handler = { "field goal": 10, "3 point": 13, "2 point": 16, "free throw": 20} # This code assigns index_stat to the index of whatever value you enter.index_stat = -9999 # _______Begin student work after this line________ # These variables can be used to track the index of of certain values in the csv. # Use if you want.# index_name = ?# index_age = ?# index_team = ? # Goal: take in a string containing a file name -> return a list of lists from a csv reader objectdef read_csv(filename): pass # Goal: take in a team name and the dataset -> return a list of lists containing only player from the # specified team.def filter_data(team_name, data): pass # For a given statistic find the player with the highest…arrow_forwardCreate automatic. Html page.arrow_forward
- Note:- Don't copy from other contents if any wrong i will downvotearrow_forwardAssignment Create a well-formed valid XML file that contains this information. The information does not have to be correct only your name needs to be correct, you can make up all other information. Then, create the proper XSLT file to load that XML data and display it. When displaying it, make sure you're using: • Different font colors • Tables • header tags ( ...) • Images where the image name is read from the XML file The information you must include: • Name • My Picture (this is an image file name. For example: loay.jpg, or myphoto.jpg • Address o Street number o City o State o Zipcode • Movies I like o Title o Release Datearrow_forwardbb.cas.edu.om/webapps/assessment/take/launch.jsp?course_assessment id%3 17343 1&course_id%3D 20233 1&content_id%3D 252109 Remaining Time: 1 hour, 59 minutes, 32 seconds. * Question Completion Status: Create the initial state table, and the complete state table. Write the equations for all the state variables and the output z. S1 S2 S3 S4 Z=0 Z=1 State diagram of 1011 sequehce recognizer Attach File Browse My Computer Click Save and Submit to save and submit. Click Save All Answers to save all answers. 1).pdf a Orgn (1-5).pdf e here to search Ps 81°F Mostly clear Or V53 Insert & 3 r 4 3. 6. 8 A 7. Y] R T. U D Farrow_forward
- Below is a data file named as "mydata.txt": northwest NW Charles Main western WE Sharon Gray southwest SW Lewis Dalsass southern southeast SE eastern northeast SO Suan Chin Patricia Hemenway EA TB Savage NE AM Main Jr. NO Ann Stephens north AB, ABB, ABBB, ABBBB, ABC,ABCABC, ABCABCABC, AAA,AAAA, AAAAA 300000.00 53000.89 290000.73 54500.10 400000.00 440500.45 57800.10 455000.50 AAB,AABB,AABBB, etc. Write egrep and regular expressions to accomplish the following pattern searches: a) search all the lines that contain "ABC", "ABCABC" and "ABCABCABC" b) search all the lines that contain "north" c) search all the lines that contain ".50" or ".00"arrow_forwardWritten Use Case Follow the sample format shown in the attached photo.Sample have its label, while the one you should make a written use case is the one who have blue ovalsNOTE: YOU SHOULD MAKE THE WRITTEN USE CASE AS YOU CAN SEE IN THE SAMPLE TABLE. SOMEONE IS ANSWERING MY QUESTION WRONG!arrow_forwardburses.projectstem.org/courses/64525/assignments/9460863?module_item_id=18079077 Maps HH 50 Follow these steps to create your Warhol Grid: 1. Find or create an image (for this activity, a smaller starting image will produce higher quality results in a shorter amount of time). 2. Using the Python documentation as a guide, create a program that loads the image, filters three copies of it, and saves the result. Note: You will need to create the three filters using the filter() method. • Include multiple filters on at least two of your variants. One of your variants must apply a single filter multiple times with the use of a loop. For example, the top right image above uses a loop to blur the image 2 times (what if we did it 100 times?). U ▪ One of your images must apply at least two different filters to the same image. In the example image, the bottom right image includes a filter to smooth the image and then edge enhance them. L • Create the Warhol Grid using Python with the three images…arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Np Ms Office 365/Excel 2016 I NtermedComputer ScienceISBN:9781337508841Author:CareyPublisher:Cengage
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage