Data Science Certification Training - R Programming | JAN 11 - FEB 09 | Samridhi

Discussion in 'Big Data and Analytics' started by Shohini_1, Jan 10, 2020.

  1. Promit Kumar Mukherjee

    Joined:
    Dec 29, 2019
    Messages:
    1
    Likes Received:
    0
    while using barplot in code in the lab , it's showing an error

    Error in plot.new() : figure margins too large

    Will anyone please help me, how to resolve. While I am trying with any plots it is showing the same error.
     
    #51
  2. Shilpa_93

    Shilpa_93 Member

    Joined:
    Jan 4, 2020
    Messages:
    2
    Likes Received:
    0
    read_excel function not working in R studio..any reason? any solution
     
    #52
  3. Mohammad yaseen

    Mohammad yaseen New Member

    Joined:
    Oct 22, 2019
    Messages:
    1
    Likes Received:
    0
    what happpens if late project submission
     
    #53
  4. Sandip Gujar

    Sandip Gujar Member

    Joined:
    Dec 20, 2019
    Messages:
    5
    Likes Received:
    0
    How to see the reply to the different message
     
    #54
  5. Adarsh Kumar_7

    Joined:
    Oct 29, 2019
    Messages:
    2
    Likes Received:
    0
    Hi Samridhi,

    Can you please share Class-7 R or text file. It's not available on the G-drive link.

    Thanks
     
    #55
  6. Debasish Biswas

    Joined:
    Dec 28, 2019
    Messages:
    3
    Likes Received:
    0
    Hi Samridhi,
    I have two samples - one represents the cost of apple in NY and other represents the cost of apple in LA. Since the sample size is small and population variation is unknown, I want to run a t test with assumed equal variance, to see is the average price of apple in NY is at least 20% higher than average price of apple in LA.

    I have defined the hypothesis as below -
    Ho : mu(NY) > mu(LA) + 20%mu(LA) or, Ho: mu(NY) - mu(LA) > 20%mu(LA) or, Ho: mu(Hyp) > 0.649
    Ha: mu(Hyp) < = 0.649

    So, I performed one sided test here. Here is my code below. can you please check if this is what i intended for ?

    NY_apple_data<- c(3.80, 3.76, 3.87, 3.99, 4.02, 4.25, 4.13, 3.98, 3.99, 3.62)
    LA_apple_data<-c(3.02, 3.22,3.24, 3.02, 3.06, 3.15, 3.81, 3.44)

    hyp_mu<- mean(LA_apple_data)/5 # Value of Hypothesised mean for T test

    t.test(NY_apple_data, y = LA_apple_data, alternative = "less", mu = hyp_mu, var.equal = T)-> t_test
    t_test
    if(t_test$p.value > 0.05){
    print("Average price of Apple in NY is atleast 20% higher than the price of LA")
    }else {print("Average price of Apple in NY is less than or equal to 20% higher price than the price of LA")}

    Now, my result shows that the price of apple in NY is alteast 20% higher than the price of apples in LA.
     
    #56
  7. Samridhi Dutta

    Samridhi Dutta Well-Known Member
    Alumni Trainer

    Joined:
    Aug 16, 2017
    Messages:
    196
    Likes Received:
    21
    Hi Shilpa,

    For read_excel fun, you need to first install package readxl and load it in RAM. Then only, you'll be able to execute read_excel fn.

    Regards,
    Samridhi
     
    #57
  8. Samridhi Dutta

    Samridhi Dutta Well-Known Member
    Alumni Trainer

    Joined:
    Aug 16, 2017
    Messages:
    196
    Likes Received:
    21
    Hi,

    Here is the drive link in which datasets and assignments are uploaded.

    Regards,
    Samridhi
     
    #58
  9. Samridhi Dutta

    Samridhi Dutta Well-Known Member
    Alumni Trainer

    Joined:
    Aug 16, 2017
    Messages:
    196
    Likes Received:
    21
    Hi Gautam,

    Please read the titanic_train file as shared in Datasets folder on google drive. You can read that using read.csv in a dataframe. The features in a dataframe can be accessed using $ symbol.

    Regards,
    Samridhi
     
    #59
  10. Samridhi Dutta

    Samridhi Dutta Well-Known Member
    Alumni Trainer

    Joined:
    Aug 16, 2017
    Messages:
    196
    Likes Received:
    21
    Hi,

    Here is the answer to the last part:
    hflights%>%filter(Origin=="HOU")%>%group_by(TailNum)%>%
    summarise(n=n_distinct(Dest))%>%filter(n==1)%>%summarise(n())

    Regards,
    Samridhi
     
    #60
  11. Samridhi Dutta

    Samridhi Dutta Well-Known Member
    Alumni Trainer

    Joined:
    Aug 16, 2017
    Messages:
    196
    Likes Received:
    21
    Hi Nanar,

    - cat will only paste and print the value. No value is being returned. Since the returned value is null, so the class of the returned value is NULL.
    - paste will return a character value.

    Regards,
    Samridhi
     
    #61
  12. Samridhi Dutta

    Samridhi Dutta Well-Known Member
    Alumni Trainer

    Joined:
    Aug 16, 2017
    Messages:
    196
    Likes Received:
    21
    Hi Nikhil,

    You should be looking for the pattern in the Passenger Names vector and not in Age vector.

    Regards,
    Samridhi
     
    #62
  13. Debasish Biswas

    Joined:
    Dec 28, 2019
    Messages:
    3
    Likes Received:
    0
    Hi Samridhi,

    can you please answer my queries ?
     
    #63
  14. Makarand Kulkarni

    Joined:
    Dec 30, 2019
    Messages:
    3
    Likes Received:
    0
    Hi Samriddhi,

    I have to go on an unplanned travel out of town. I won't be able to attend the last 2 sessions, and my project is also still work-in-progress. What are my options?
    One option I can think of is I will watch the recordings of the last 2 classes when I return on monday. Also submit my project sometime next week.

    Please let me know your thoughts.

    Thanks,
    Makarand
     
    #64
  15. Sandip Gujar

    Sandip Gujar Member

    Joined:
    Dec 20, 2019
    Messages:
    5
    Likes Received:
    0
    Please contact support asap
     
    #65
  16. Sandip Gujar

    Sandip Gujar Member

    Joined:
    Dec 20, 2019
    Messages:
    5
    Likes Received:
    0
    How can I see replies to different queries posted by Samridhi mam please help as I want o see response to queries raised
     
    #66

Share This Page