Question

In: Computer Science

Background: This course is all about data visualization. However, we must first have some understanding about...

Background: This course is all about data visualization. However, we must first have some understanding about the dataset that we are using to create the visualizations.

Assignment:

  • Use RStudio to generate a word document with basic data analysis of the following dataset: dataset_price_personal_computers.csv  

Questions/Requests:

  • Create a summary of stats for the dataset. (provide a screen shot)
  • Create a correlation of stats for the dataset. (provide a screen shot) (Hint: Transform may be needed)
  • What is the Min, Max, Median, and Mean of the Price? (provide a screen shot)
  • What is the correlation values between Price, Ram, and Ads? (provide a screen shot)
  • Create a subset of the dataset with only Price, CD, and Premium. (provide a screen shot)
  • Create a subset of the dataset with only Price, HD, and Ram where Price is greater than or equal to $1750. (provide a screen shot)
  • What percentage of Premium computers were sold? (provide a screen shot)(Hint: Categorical analysis)
  • How many Premium computers with CDs were sold? (provide a screen shot)(Hint: Contingency table analysis)
  • How many Premium computers with CDs priced over $2000 were sold? (provide a screen shot)(Hint: Conditional table analysis)

Your document should be an easy-to-read font in MS Word (other word processors are fine to use but save it in MS Word format).

For : dataset_price_personal_computers.csv  this is the link. With the help of this you can download that csv file

https://drive.google.com/file/d/1Op6XIzU5WuVF-w1OHqdcUJXMTUICaFy0/view

Sorry, i came to know that unable to download the file. Try this link and let me know

Please provide answers for this question including screenshots and code.

Thanks

Solutions

Expert Solution

data<-read.csv("C:/Users/meet/Desktop/dataset_price_personal_computers .csv")[,-1]
#1

summary(data)

#2
str(data)
#creating a copy of data and saving it in data1
data1<-data
#converting column cd,multi & premium to integer type as they are factors
data1[,6:8]<-lapply(data1[,7:9],as.integer)
# now finding the correlation between the variables
cor(data1)

#output for 2nd ques

#3
summary(data$price)
#3 another way
min(data$price)
max(data$price)
mean(data$price)
median(data$price)

#4 the correlation values between Price, Ram, and Ads
cor(data[,c('price','ram','ads')])


#5 Create a subset of the dataset with only Price, CD, and Premium.
data_subset1=subset(data,select=c('price','cd','premium'))

#6 Create a subset of the dataset with only Price, HD, and Ram where Price is
#greater than or equal to $1750.
data_subset2<-subset(data,data$price>=1750,select=c('price','hd','ram'))

#7 percentage of Premium computers were sold

# answer is 90.22%
tab_premium<-table(data$premium)
prop.table(tab_premium)

#8 Premium computers with CDs were sold

#answer is 2824
table(data$premium,data$cd)

#9 Premium computers with CDs priced over $2000 were sold

#answer is2002
table(data$cd[which(data$price>2000)])

#output of 4th

#output of 5th

#output of 6th

#output 0f 7, 8 &9


Related Solutions

When we first began discussion sociology in this course, we talked about the idea of the...
When we first began discussion sociology in this course, we talked about the idea of the "sociological imagination." This is when we can see beyond our personal opinions and experiences in order to get a fuller perspective on how society works. Describe how the sociological imagination has impacted your life, OR provide an example of how the study of human behavior relates to your future professional field.
This week, we will focus on understanding the accounting/recording process. In our discussion you must first...
This week, we will focus on understanding the accounting/recording process. In our discussion you must first identify and discuss the steps in the recording process. Be sure to discuss what each step does and how it relates to the steps before and after it. Then, answer the following questions: Should business transactions credits and debits be recorded directly into the ledger accounts? What are the advantages of recording in the journal before posting transactions into the ledger?
At the beginning of this course, we considered some of the major trends that have impacted...
At the beginning of this course, we considered some of the major trends that have impacted the global business environment. Discuss the extent to which advances in information and communication technologies could help and hinder progress towards the UN Sustainable Development Goals.
In this course, we have talked about four uses of empowerment and participation. We said they...
In this course, we have talked about four uses of empowerment and participation. We said they are part of delegation, used to overcome resistance to change, used to overcome resistance to control, and used for motivation. Now, explain why empowerment and participation work in all of these areas.
4. This problem is about some function. All we know about the function is that it...
4. This problem is about some function. All we know about the function is that it exists everywhere and we also know the information given below about the derivative of the function. Answer each of the following questions about this function. Be sure to justify your answers. f ′(−5) = 0 f ′(−2) = 0 f ′(4) = 0 f ′(8) = 0 f ′(x) < 0 on (−5,−2), (−2,4), (8,∞) f ′(x) > 0 on (−∞,−5), (4,8) a. Identify...
Write about why we think lawyers (some; not all!) have a bad reputation. Explain why this...
Write about why we think lawyers (some; not all!) have a bad reputation. Explain why this reputation is either justified or not justified
There is no doubt we all have some strategies or techniques we use when we want...
There is no doubt we all have some strategies or techniques we use when we want to persuade others. There is something you want...or something you want someone to do. Maybe you're trying to change someone's opinion or the way they think. What is your preferred technique or strategy? Why does it work for you? Will it work in a formal persuasive speech? You already use persuasive techniques...let's talk about them.
Consider all the things we have covered in the last and fast 8 weeks in Course...
Consider all the things we have covered in the last and fast 8 weeks in Course Code: BE-205 Course Title: Principles of Microeconomics. In a 500+ WORD post, List and explain three items/concepts/theories that you have picked up/developed in Microeconomics that you can now apply in the workplace or your personal life.
Some analysts have argued that Big Data is fundamentally about data “plumbing,” and not about insights,...
Some analysts have argued that Big Data is fundamentally about data “plumbing,” and not about insights, or deriving interesting patterns. It is argued that value (the fifth V) can just as easily be found in “small,” normal, or “weird” datasets (i.e., datasets that wouldn’t have been considered before). Do you agree with this? Can you think of small or novel datasets that would provide value as well, without requiring a full-fledged Hadoop setup?
Previously, we listed all 29 topologies on the set X={a,b,c}. However, some of the resulting topological...
Previously, we listed all 29 topologies on the set X={a,b,c}. However, some of the resulting topological spaces are homeomorphic. Which are homeomorphic? Divide the set of 29 topological spaces into homeomorphism classes, and be sure to justify your choices. There are 9 homeomorphism classes in total. (To justify your choices, explain why the spaces within each class are homeomorphic to each other. Your explanations can be somewhat loose).
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT