Question

In: Math

Zhaoxin needs to successfully complete a coding project that involves complex natural language processing algorithms. Zhaoxin...

Zhaoxin needs to successfully complete a coding project that involves complex natural language processing algorithms. Zhaoxin must choose between three different Application Programming Interfaces (API), but is unsure which API is best for the project. Being a Statistician, he decides to collect data, then use random chance to make the final decision. He assigns a probability of 0.45 for PyTorch, 0.25 for Keras, and the rest to TensorFlow. Each API affects Zhaoxin chances of completing the project on time. Zhaoxin will complete the project on-time with a 75% chance if he selects PyTorch, a 55% chance if he selects Keras, and only a 35% chance if he selects TensorFlow.

a) Draw a well-labeled tree diagram to illustrate the above information.

b) What is the probability that Zhaoxin is late and used the TensorFlow API?

c) What is the probability that Zhaoxin is on-time?

d) If Zhaoxin selects Keras as the API, what is the probability that he is on time with the project?

e) If Zhaoxin is late with the project, what is the probability that he selected PyTorch as the API?

f) Is choice of API and project completion independent? Support your answer mathematically.

Solutions

Expert Solution

Let py represent pytorch
Let k represent keras
let t represent tensor

Let o represent ontime
Let l represent late

P(py) = 0.45
P(k)= 0.25
P(t) = 0.30

Probrability of submitting the project on time given that it was done using pytorch = P(o|py)=0.75
Probrability of submitting the project late given that it was done using pytorch = P(l|py)=1-0.75 = 0.25

Probrability of submitting the project on time given that it was done using keras = P(o|k)=0.55
Probrability of submitting the project late given that it was done using keras = P(l|k)=1- 0.55= 0.45

Probrability of submitting the project on time given that it was done using tensor = P(o|t)=0.35
Probrability of submitting the project late given that it was done using tensor = P(l|t)=1-0.35 = 0.65


a) Draw a well-labeled tree diagram to illustrate the above information

.

b) What is the probability that Zhaoxin is late and used the TensorFlow API?
P(l|t)=1-0.35 = 0.65

c) What is the probability that Zhaoxin is on-time?

P(o) = P(o|py) p(py) + P(o|k) p(k) +P(o|t) p(t) = (0.75 * 0.45)+(0.55 * 0.25)+(0.30 * 0.35)=0.58
P(l) = 1- p(o)= 1-0.58= 0.42

d) If Zhaoxin selects Keras as the API, what is the probability that he is on time with the project?
P(o|k)=0.55

e) If Zhaoxin is late with the project, what is the probability that he selected PyTorch as the API?
P(py|l) = P(l|Py) *(P(py)/P(l))= (0.25*0.45)/(0.42)= 0.2678



Related Solutions

Natural Language Processing (NLP), is not a new technology, but it is one that is not...
Natural Language Processing (NLP), is not a new technology, but it is one that is not yet fully developed. Many healthcare professionals and organizations are working diligently on how to combine NLP with use in EMRs. What is NLP? What possible disadvantages will occur due to using NLP technology? What are the barriers to using NLP? What possible benefits will NLP provide to medical professionals and organizations? How can NLP benefit the patient experience?
Horus has developed successfully and needs additional funding. An IPO seems to be a natural step...
Horus has developed successfully and needs additional funding. An IPO seems to be a natural step forward. After the bookbuilding phase, it is decided that 1,000,000 stocks would be sold in the IPO at a per-unit price of $10. You think that there is a 0.55 probability that the price will go up to $13 (underpricing) and 0.45 probability it will go down to 8 (overpricing) . You also know that there are two types of investor in the market...
what is the most use applications of Natural language processing , could you describe it?
what is the most use applications of Natural language processing , could you describe it?
1-what is natural langage processing NLP and natural language generation NLG 2-name five use of each...
1-what is natural langage processing NLP and natural language generation NLG 2-name five use of each one on tax return auditing
Natural Language processing Read and implement the code in NLTK Ch 6, Section 1.3 “Document Classification”,...
Natural Language processing Read and implement the code in NLTK Ch 6, Section 1.3 “Document Classification”, which examines the sentiment analysis of movie reviews. a) Using the movie review document classifier discussed in this chapter, generate a list of the 30 features that the classifier finds to be most informative. Can you explain why these particular features are informative? Do you find any of them surprising? b) Word features can be very useful for performing document classification, since the words...
Assume that a very good Natural Language Processing (NLP) system, called, say, ‘Whitman’ is available. Whitman...
Assume that a very good Natural Language Processing (NLP) system, called, say, ‘Whitman’ is available. Whitman can listen to speech and understand the context 98 to 99% of the time. It has a very complex vocabulary and has mastered the understanding of syntax and idiom. How could this system make a significant difference to the cost of care? How could it bend the cost curve? Give one clearly illustrated example.
Objective: Using Java coding language, complete each "TO-DO" section for the following classes. Shape code (for...
Objective: Using Java coding language, complete each "TO-DO" section for the following classes. Shape code (for reference, nothing to complete here): import java.awt.Color; import java.awt.Graphics; import java.awt.Rectangle; import java.io.RandomAccessFile; public abstract class Shape extends Rectangle {    public int id;    public Color color;    public int xSpeed, ySpeed;       public Shape(int id, int x, int y, int width, int height, Color color, int xSpeed, int ySpeed) {        super(x,y,width,height);        this.id = id;        this.color...
A project that involves a complete Windows upgrade for an organization. All of the organization's PCs...
A project that involves a complete Windows upgrade for an organization. All of the organization's PCs are being upgraded with Windows 7 and all of the servers are being migrated to Windows 2008. Halfway through the upgrade, Sally is ahead of schedule and under budget when she discovers that there is a compatibility issue with several major printers throughout the organization. With research, she finds that 64-bit drivers are not available for the printers the organization currently owns. Explain the...
C Mini Project is a mini application that could be developed using C language that involves...
C Mini Project is a mini application that could be developed using C language that involves the concepts of arrays, functions, read and write data techniques. Based on your creativity, you are required to plan, design and develop a mini application for an organisation. You may choose to from the list below or propose your own mini application: 1. Customer Billing System 2. Employee Record System 3. Contact Management System 4. Appointment Management System 5. Attendance Record System Your responsibility...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT