Problem 2 Suppose we have height and weight and its corresponding Tshirt size of several customers. Your task is to predict the T-shirt size of Anna, whose height is 161cm and her weight is 61kg. Use KNN algorithm with K=5 and Square distance formula. Height (in cms) 158 158 158 160 Weight (in kgs) 58 59 T shirt size M M M 63 59 160 163 60 60 163 160 61 64 163 165 64 61 165 165 62 65 168 168 62 63 168 66 63 170 170 64 170 68
Q: The following below gives the gain of an antenna and efficiency. Use it to solve the following…
A: As you have posted multipart questions, we will solve the first three parts for you. Given G= 43…
Q: Assume there are n courses offered by the university, where each course has one or no prerequisites.…
A: A Directed Acyclic graph can be drawn based on the prerequisites, and then topological sort can be…
Q: A salesman has n things to sale. The cost price of all n things is different out of which p things…
A: Since the programming language is not mentioned in the question, we will answer this question in the…
Q: Fourth Question: Use rules of inference to show that the hypotheses "If it does not rain or if it is…
A: Think about the theories If it doesn't rain or then again on the off chance that it isn't hazy,…
Q: Given a table with student scores. Based on the scores in Programming and Probability, we have to…
A: K Nearest Neighbors - Regression K nearest neighbors is a simple algorithm that stores all available…
Q: Given: Bayesian Network Solve the Joint Probability Distribution P(J=t, M=f, A=t, B=f, E=t) Sample…
A: Here we have given solution for finding the joint probability distribution for the given expression.…
Q: Use the mixed congruential method to generate a sequence of 32 random numbers with Xo=8, a=9, c=13,…
A:
Q: We have a basket of 12 fruits, 3 red apples, 4 yellow bananas, and 5 yellow clementines. We pick…
A: The answer is given below.
Q: A thief is robbing a jewelry store showcasing various gems. Having an empty knapsack which can fill…
A:
Q: Consider a set of movies M1, M2, ... , Mk. There is a set of customers, each one of which indicates…
A: We can model this problem with the help of a graph. Each node represents a movie Mi and each edge…
Q: 3- Suppose you have the information of some of chickens farms (F1, F2) as fallow: chicken dilscount…
A: Note: since your question contain multiple part but we can answer only first 3-sub parts due to our…
Q: Fibonacci numbers F1, F2, F3, . . . are defined by the rule: F1 = F2 = 1 and Fk = Fk−2 + Fk−1 for k…
A: In the question, it is given: Fk = Fk-2 + Fk-1 for k > 2 with F1=F2=1 ---(i) Lk = Lk-2 + Lk-1 for…
Q: We all know that when the temperature of a metal increases, it begins to expand. So, we experimented…
A: Simple linear regression:- Simple linear regression is a statistical way to evaluate the…
Q: iven an expression with opening and closing brackets, write a step by step algorithms capable of…
A: Required: Given an expression with opening and closing brackets, write a step by step algorithms…
Q: There are four possible ways to cross the river for a person. Let the first location is denoted by…
A:
Q: Given the graph below. The graph is: * all answers are correct (except “all answers are incorrect")…
A: A graph is a cluster of nodes connected among themselves via edges.
Q: Consider the following bridge crossing problem where n people with speeds s1, ··· , sn wish to cross…
A: Lets see the solution.
Q: P1 P1 P1 R D U P2 P2 P2 F M H T T P1 5,4 -1,1 7,0 2,6 7,4 2,1 7,3 K 4,1 2,1 a)Find the subgame…
A: a) Subgame Perfect EquilibriumIn sport theory, a subgame best equilibrium (or subgame best Nash…
Q: In a prison, there is a door b/w any pair of adjacent cells and one exit guarded by a guard G. One…
A: The stunt here is that maniac can go on his adjoining cell, kill its detainee and move back to his…
Q: One way to deternne how heachy a person s by measunng the body of the penon. The fomala to determine…
A: You didn't mention which program language we should use to code the program so i used c++ program…
Q: Problem 3 Suppose we have area and number of bedrooms and its corresponding for different houses…
A:
Q: Problem 2 Suppose we have height and weight and its corresponding Tshirt size of several customers.…
A: Actually, K-Nearest Neighbor is one of the simplest Machine Learning algorithms based on Supervised…
Q: Given: Sudoku. Solve the values in Column G (7th column from left). Give the value in cell G3 (3rd…
A: The correct option is 3. Using python programming, we can solve the given sudoku grid by entering…
Q: Q12: IF probability of getting a head (X) in a single coin flip is p(x) = p, then find VAR(X)?
A: The probability of getting a head (X) in a single coin flip the VAR (X)
Q: Note: please send me solution problem 2 normal solution. not in program or output Problem 2 Suppose…
A: KNN algorithm: KNN is mainly referred to the k-nearest algorithm and it is also being abbreviated as…
Q: For maximization problem, given the following data for the simulated annealing…
A: Hey there, I am writing the required solution based on the above given question. Please do find the…
Q: A certain cat shelter has devised a novel way of making prospective adopters choose their new pet.…
A: Let say, Total number of cats = N. The number of orange cats is x, which is even. The number of…
Q: Q2: Answer the fallowing Suppose you have the Degree, and then find the Result As fallow: * C 1…
A: Ans:) Given degree range and its values. We need to find the value according to the range.
Q: In binomial_overbooking.xlsx, the formula in cell B7 is not general. For example, if the overbooking…
A: Overview of Binomial random variable: n independent trials occur Airline overbooking - Airline…
Q: Researchers have developed a mathematical model that can be used to estimate the number of teeth at…
A: now we have to find the value of N(65)
Q: Suppose that the number of years that a used car will run before a major breakdown is exponentially…
A: Exponential distribution describes wait time between any two Poisson occurrences. If T is the time…
Q: Find the best solution for the 0-1 knapsack problem using backtracking algorithm. We have 5 items…
A: The above question is solved in step 2 and step 3 :-
Q: Please Solve the Following question using Python Code only: A hiker without a compass trying to…
A: function M = animWalk(xStepLst, yStepLst)%%% showWalk - visualization of random walkclf;minX =…
Q: 14.1-1. Consider the traveling salesman problem shown below, where city is the home city. 4 8 8 5 7…
A:
Q: C++ program to calculate the fair price of the butterfly spread using path-dependent simulation and…
A: It is defined as a general purpose programming language and widely used now a days for competitive…
Q: A club with 20 women and 17 men needs to choose three different members to be president, vice…
A:
Q: We all know that when the temperature of a metal increases, it begins to expand. So, we experimented…
A: import numpy as np # it is not pandas,it is numpy # as you need to carry out matrix…
Q: 2. Given the following Bayesian network which shows that Fire Smoke and Heat. (F=Fire, S=Smoke.…
A: Given the Bayesian network. We have to find the probability of fire if smoke has been given.
Q: . 8/36 d. 5/36 What are the eigenvalues of the following matrix? ( as shown in the picture ) a.…
A: All the questions are discussed in detail below.
Q: Solve the 0/1 Knapsack problem given that: The Knapsack can only carry a maximum of 8 Kg. The items…
A: 0 0 100 100 100 100 100 100 100 0 0 100 120 120 220 220 220 220 0 0 100 120 120 220 220 240 260…
Q: Given: Sudoku. Solve the values in Column G (7th column from left). Give the value in cell G1…
A: //writing sudoku program to find the G column value in c language…
Q: Let P2(x) be the least squares interpolating polynomial for f(x) := sin(πx) on the interval [0,1]…
A: It is defined as an interpreted, object-oriented, high-level programming language with dynamic…
Q: QI: The Collatz conjecture function is defined for a positive integer m as follows. (COO1) g(m) =…
A: ## As no language is mentioned, we write the code in Python language. def g(m):…
Q: onsider the simple case of evolving a string that contains all 1s in every location. Let the length…
A: Consider the simple case of evolving a string that contains all 1s in every location. Let the length…
Q: Assume there are n courses offered by the university, where each course has one or no prerequisites.…
A: A Directed Acyclic graph can be drawn based on the prerequisites, and then topological sort can be…
Q: Let's say, Alibaba has entered inside the mysterious cave with a knapsack of capacity 6 Kg. He Tound…
A:
Step by step
Solved in 2 steps
- Problem 2 Suppose we have height and weight and its corresponding Tshirt size of several customers. Your task is to predict the T-shirt size of Anna, whose height is 161cm and her weight is 61kg. Use KNN algorithm with K=5 and Square distance formula. Height (in cms) Weight (in kgs) T shirt size 158 58 M 158 59 M 158 63 M 160 59 160 60 M 163 60 М 163 61 M 160 64 163 64 L 165 61 L 165 62 L 165 65 L 168 62 168 63 168 66 L 170 63 L 170 64 L 170 68 LNote: please send me solution problem 2 normal solution. not in program or output Problem 2 Suppose we have height and weight and its corresponding Tshirt size of several customers. Your task is to predict the T-shirt size of Anna, whose height is 161cm and her weight is 61kg. Use KNN algorithm with K=5 and Square distance formula. Height (in cms) Weight (in kgs) T shirt size 158 58 M 158 59 158 63 160 59 M 160 60 М 163 60 M 163 61 M 160 64 L 163 64 165 61 L 165 62 165 65 168 62 L 168 63 168 66 L 170 63 170 64 L 170 68 LHomework İTÜ A laboratory test was performed to obtain the change of concentration with time. Test results are shown on the table. The student Concentration Time (s) (mg/L) noticed that one datum at t=20s is missing. 194 - Use interp1() function to predict the missing value using different methods: 10 246 15 369 >linear 25 384 > cubic > spline 30 271 40 24 - Plot the results on the same figure. ISTANBUL TEKNİK ÜNİVERSİTESİ Artentr ougt 2020-21 Spring Homework #3 -– Tolga Y. Ozudogru, Ph.D.
- Question: Suppose there are n people in a group, each aware of a scandal no one else in the group knows about. These people communicate by telephone; when two people in the group talk, they share information about all scandals each knows about. For example, on the first call, two people share information, so by the end of the call, each of these people knows about two scandals. The gossip problem asks for G(n), the minimum number of telephone calls that are needed for all n people to learn about all the scandals. a). Find G(1), G(2), G(3), and G(4). b). Use mathematical induction to prove that G(n) 4. [Hint: In the inductive step, have a new person call a particular person at the start and at the end.] c). Prove that G(n)= 2n – 4 for n> 4.A given Knapsack with maximal Weight capacity is 8Kg. There are some items can be chosen and taken into Knapsack. Each item has own weight and profit shown as follows. Please find the maximal profit of Knapsack after some items are selected and put into this Knapsack and its maximal Weight capacity isn't exceeded. item ID Weight 4Kg 5Kg 2Kg 1kg 6Kg A B с D E Profit 4500 5700 2250 1100 8700 The maximal profit of this Knapsack to taken some items and total weight is no exceeded the weight capacity : The last item is taken and put into this Knapsack is: The second item is taken and put into this Knapsack is : The first item is taken and put into this Knapsack is:Winter’s method assumes a multiplicative seasonalitybut an additive trend. For example, a trend of 5 means thatthe base will increase by 5 units per period. Suppose thereis actually a multiplicative trend. Then (ignoring seasonality)if the current estimate of the base is 50 and the currentestimate of the trend is 1.2, we would predict demand toincrease by 20% per period. Ignoring seasonality, we wouldthus forecast the next period’s demand to be 50(1.2) andforecast the demand two periods in the future to be 50(1.2)2
- A city would like to know how many vehicles it could move through its streets in an emergency. The most likely situa evacuation starting at the school and ending at the park. The connections between these two locations, plus their cap direction, is shown below. C Oak Street 1" Street F School Park B Elm Jad Street Street E A Path Capacity Б C D 30 20 E F 25 25 30 25 20 (Round your answer to the nearest whole number.) Maximum FlowA group of n tourists must cross a wide and deep river with no bridge in sight. They notice two 13-year-old boys playing in a rowboat by the shore. The boat is so tiny, however, that it can only hold two boys or one tourist. How can the tourists get across the river and leave the boys in joint possession of the boat? How many times need the boat pass from shore to shore?Correct answer Will be upvoted else downvoted. Since crystal fixtures are unique, every so often they will have a similar shading, yet occasionally — unique. Obviously, it looks poor and just pesters Vasya. Subsequently, at the kk-th time when ceiling fixtures will light with various tones, Vasya will get extremely upset and, most presumably, will fire the individual who purchased light fixtures. Your errand is to compute the day, when it occurs (counting from the day ceiling fixtures were introduced). You can feel that Vasya works each day without ends of the week and days off. Input The main line contains three integers nn, mm and kk (1≤n,m≤5000001≤n,m≤500000; 1≤k≤10121≤k≤1012) — the quantity of tones in the first and the subsequent light fixtures and how frequently tones ought to contrast to outrage Vasya. The subsequent line contains nn various integers aiai (1≤ai≤2⋅max(n,m)1≤ai≤2⋅max(n,m)) that depict the principal light fixture's succession of tones. The third…
- A nine character long password is to be created using lower-case letters, four special characters {!, @, #, $} and digits. For the password to be valid, it must contain at least one lower-case letter, one of the given special characters and one digit. What is the probability that a randomly generated nine character password is valid? Assume that the password is generated using only the lower-case letters, the given special characters and digitsA particular telephone number is used to receive both voice calls and fax messages. Suppose that 20% of the incoming calls involve fax messages, and consider a sample of 20 incoming calls. (Round your answers to three decimal places.) (a) What is the probability that at most 6 of the calls involve a fax message?(b) What is the probability that exactly 6 of the calls involve a fax message?(c) What is the probability that at least 6 of the calls involve a fax message?(d) What is the probability that more than 6 of the calls involve a fax message?A B C D X1 a1 b1 c3 L X2 a2 b1 c1 L X3 a2 b2 c1 H X4 a2 b2 c2 H X5 a2 b1 c1 L X6 a2 b2 c1 H X7 a2 b1 c2 H X8 a1 b2 c2 L Using the table above, calculate the following, there measures (1) Kulczynski, (2) Lift, and (3) Cosine. a) A1 ==> L b) A2, B2 ==> H c) A2, C2 ==> H