only bid if you know Python and algorithms - Computer Science
1 You may choose to use whatever programming language you want. However, you must provide clear instructions on how to compile and/or run your source code. I recommend using a modern language, such as Python, R, or Matlab as learning these languages can help you if you were to enter the machine learning or artificial intelligence field in the future. All analyses performed and algorithms run must be written from scratch. That is, you may not use a library that can perform coordinate descent, cross validation, elastic net, least squares regression, optimization, etc. to successfully complete this programing assignment (though you may reuse your relevant code from Programming Assignment 1). The goal of this assignment is not to learn how to use particular libraries of a language, but it is to instead understand how key methods in statistical machine learning are implemented. With that stated, I will provide 10\% extra credit if you additionally implement the assignment using built-in statistical or machine learning libraries (see Deliverable 6 at end of the document). Brief overview of assignment In this assignment you will still be analyzing the same credit card data from 𝑁 = 400 training observations that you examined in Programming Assignment 1. The goal is to fit a model that can predict credit balance based on 𝑝 = 9 features describing an individual, which include an individual’s income, credit limit, credit rating, number of credit cards, age, education level, gender, student status, and marriage status. Specifically, you will perform a penalized (regularized) least squares fit of a linear model using elastic net, with the model parameters obtained by coordinate descent. Elastic net will permit you to provide simultaneous parameter shrinkage (tuning parameter πœ† β‰₯ 0) and feature selection (tuning parameter 𝛼 ∈ [0,1]). The 2 two tuning parameters πœ† and 𝛼 will be chosen using five-fold cross validation, and the best-fit model parameters will be inferred on the training dataset conditional on an optimal pair of tuning parameters. Data Data for these observations are given in Credit_N400_p9.csv, with individuals labeled on each row (rows 2 through 401), and input features and response given on the columns (with the first row representing a header for each column). There are six quantitative features, given by columns labeled β€œIncome”, β€œlimit”, β€œRating”, β€œCards”, β€œAge”, and β€œEducation”, and three qualitative features with two levels labeled β€œGender”, β€œStudent”, and β€œMarried”. Detailed description of the task Recall that the task of performing an elastic net fit to training data {(π‘₯1,𝑦1),(π‘₯2,𝑦2),…,(π‘₯𝑁,𝑦𝑁)} is to minimize the cost function 𝐽(𝛽,πœ†,𝛼) = βˆ‘(𝑦𝑖 βˆ’βˆ‘π‘₯𝑖𝑗𝛽𝑗 𝑝 𝑗=1 ) 2 𝑁 𝑖=1 +πœ†(π›Όβˆ‘π›½π‘— 2 𝑝 𝑗=1 +(1βˆ’π›Ό)βˆ‘|𝛽𝑗| 𝑝 𝑗=1 ) where 𝑦𝑖 is a centered response and where the input 𝑝 features are standardized (i.e., centered and divided by their standard deviation). Note that we cannot use gradient descent to minimize this cost function, as the component βˆ‘ |𝛽𝑗| 𝑝 𝑗=1 of the penalty is not differentiable. Instead, we use coordinate descent, where we update each parameter π‘˜, π‘˜ = 1,2,…,𝑝, in turn, keeping all other parameters constant, and using sub-gradient rather than gradient calculations. To implement this algorithm, depending on whether your chosen language can quickly compute vectorized operations, you may implement coordinate descent using either Algorithm 1 or Algorithm 2 below (choose whichever you are more comfortable implementing). Note that in languages like R, Python, or Matlab, Algorithm 2 (which would be implemented by several nested loops) may be much slower than Algorithm 1. Also note that if you are implementing Algorithm 1 using Python, use numpy arrays instead of Pandas data frames for computational speed. For this assignment, assume that we will reach the minimum of the cost function within a fixed number of steps, with the number of iterations being 1000. 3 Algorithm 1 (vectorized): Step 1. Fix tuning parameters πœ† and 𝛼 Step 2. Generate 𝑁-dimensional centered response vector 𝐲 and 𝑁 ×𝑝 standardized (centered and scaled to have unit standard deviation) design matrix 𝐗 Step 3. Precompute π‘π‘˜,π‘˜ = 1,2,…,𝑝, as π‘π‘˜ = βˆ‘π‘₯π‘–π‘˜ 2 𝑁 𝑖=1 Step 4. Randomly initialize the parameter vector 𝛽 = [𝛽1,𝛽2,…,𝛽𝑝] Step 5. For each π‘˜, π‘˜ = 1,2,…,𝑝: compute π‘Žπ‘˜ = xπ‘˜ 𝑇(π²βˆ’π—π›½ +xπ‘˜π›½π‘˜) and set π›½π‘˜ = sign(π‘Žπ‘˜)(|π‘Žπ‘˜|βˆ’ πœ†(1βˆ’π›Ό) 2 ) + π‘π‘˜ +πœ†π›Ό Step 6. Repeat Step 5 for 1000 iterations or until convergence (vector 𝛽 does not change) Step 7. Set the last updated parameter vector as οΏ½Μ‚οΏ½ = [οΏ½Μ‚οΏ½1, οΏ½Μ‚οΏ½2,…, �̂�𝑝] 4 Algorithm 2 (non-vectorized): Step 1. Fix tuning parameters πœ† and 𝛼 Step 2. Generate 𝑁-dimensional centered response vector 𝐲 and 𝑁 ×𝑝 standardized (centered and scaled to have unit standard deviation) design matrix 𝐗 Step 3. Precompute π‘π‘˜,π‘˜ = 1,2,…,𝑝, as π‘π‘˜ = βˆ‘π‘₯π‘–π‘˜ 2 𝑁 𝑖=1 Step 4. Randomly initialize the parameter vector 𝛽 = [𝛽1,𝛽2,…,𝛽𝑝] Step 5. For each π‘˜, π‘˜ = 1,2,…,𝑝: compute π‘Žπ‘˜ = βˆ‘π‘₯π‘–π‘˜ ( 𝑦𝑖 βˆ’βˆ‘π‘₯𝑖𝑗𝛽𝑗 𝑝 𝑗=1 π‘—β‰ π‘˜ ) 𝑁 𝑖=1 and set π›½π‘˜ = sign(π‘Žπ‘˜)(|π‘Žπ‘˜|βˆ’ πœ†(1βˆ’π›Ό) 2 ) + π‘π‘˜ +πœ†π›Ό Step 6. Repeat Step 5 for 1000 iterations or until convergence (vector 𝛽 does not change) Step 7. Set the last updated parameter vector as οΏ½Μ‚οΏ½ = [οΏ½Μ‚οΏ½1, οΏ½Μ‚οΏ½2,…, �̂�𝑝] Note that we define sign(π‘₯) = { βˆ’1 if π‘₯ < 0 1 if π‘₯ β‰₯ 0 π‘₯+ = { 0 if π‘₯ < 0 π‘₯ if π‘₯ β‰₯ 0 and we use the notation xπ‘˜ as the π‘˜th column of the design matrix 𝐗 (the π‘˜th feature vector). This vector by definition is an 𝑁-dimensional column vector. When randomly initializing the parameter vector, I would make sure that the parameters start at small values. A good strategy here may be to randomly initialize each of the 𝛽𝑗, 𝑗 = 1,2,…,𝑝, parameters from a uniform distribution between βˆ’1 and 1. Effect of tuning parameter on inferred regression coefficients You will consider a discrete grid of nine tuning parameter values πœ† ∈ {10βˆ’2,10βˆ’1,100,101,102,103,104,105,106} where the tuning parameter is evaluated across a wide range of values on a log scale, as well as six tuning parameter values 𝛼 ∈ {0, 1 5 , 2 5 , 3 5 , 4 5 ,1}. For each tuning parameter value pair, you will use coordinate descent to infer the best-fit model. Note that when 𝛼 = 0, we obtain the lasso estimate, and when 𝛼 = 1, we obtain the ridge regression estimate. 5 Deliverable 1: Illustrate the effect of the tuning parameter on the inferred elastic net regression coefficients by generating six plots (one for each 𝛼 value) of nine lines (one for each of the 𝑝 = 9 features), with the 𝑦-axis as �̂�𝑗, 𝑗 = 1,2,…,9, and the π‘₯-axis the corresponding log-scaled tuning parameter value log10(πœ†) that generated the particular �̂�𝑗. Label both axes in all six plots. Without the log scaling of the tuning parameter πœ†, the plots will look distorted. Choosing the best tuning parameter You will consider a discrete grid of nine tuning parameter values πœ† ∈ {10βˆ’2,10βˆ’1,100,101,102,103,104,105,106} where the tuning parameter is evaluated across a wide range of values on a log scale, as well as six tuning parameter values 𝛼 ∈ {0, 1 5 , 2 5 , 3 5 , 4 5 ,1}. For each tuning parameter value pair, perform five-fold cross validation and choose the pair of πœ† and 𝛼 values that give the smallest CV(5) = 1 5 βˆ‘MSE𝑖 5 𝑖=1 where MSE𝑖 is the mean squared error on the validation set of the 𝑖th-fold. Note that during the five-fold cross validation, you will hold out one of the five sets (here 80 observations) as the Validation Set and the remaining four sets (the other 320 observations) will be used as the Training Set. On this Training Set, you will need to center the output and standardize (center and divided by the standard deviation across samples) each feature. These identical values used for centering the output and standardizing the input will need to be applied to the corresponding Validation Set, so that the Validation set is on the same scale. Because the Training Set changes based on which set is held out for validation, each of the five pairs of Training and Validation Sets will have different centering and standardization parameters. Deliverable 2: Illustrate the effect of the tuning parameters on the cross validation error by generating a plot of six lines (one for each 𝛼 value) with the 𝑦-axis as CV(5) error, and the π‘₯- axis the corresponding log-scaled tuning parameter value log10(πœ†) that generated the particular CV(5) error. Label both axes in the plot. Without the log scaling of the tuning parameter πœ†, the plots will look distorted. Deliverable 3: Indicate the pair of values πœ† and 𝛼 that generated the smallest CV(5) error. Deliverable 4: Given the optimal πœ† and 𝛼 pair, retrain your model on the entire dataset of 𝑁 = 400 observations and provide the estimates of the 𝑝 = 9 best-fit model parameters. How do these estimates compare to the estimates obtained from ridge regression (𝛼 = 1 under optimal πœ† for 𝛼 = 1) and lasso (𝛼 = 0 under optimal πœ† for 𝛼 = 0) on the entire dataset of 𝑁 = 400 observations? 6 Deliverable 5: Provide all your source code that you wrote from scratch to perform all analyses (aside from plotting scripts, which you do not need to turn in) in this assignment, along with instructions on how to compile and run your code. Deliverable 6 (extra credit): Implement the assignment using statistical or machine learning libraries in a language of your choice. Compare the results with those obtained above, and provide a discussion as to why you believe your results are different if you found them to be different. This is worth up to 10\% additional credit, which would allow you to get up to 110\% out of 100 for this assignment.
CATEGORIES
Economics Nursing Applied Sciences Psychology Science Management Computer Science Human Resource Management Accounting Information Systems English Anatomy Operations Management Sociology Literature Education Business & Finance Marketing Engineering Statistics Biology Political Science Reading History Financial markets Philosophy Mathematics Law Criminal Architecture and Design Government Social Science World history Chemistry Humanities Business Finance Writing Programming Telecommunications Engineering Geography Physics Spanish ach e. Embedded Entrepreneurship f. Three Social Entrepreneurship Models g. Social-Founder Identity h. Micros-enterprise Development Outcomes Subset 2. Indigenous Entrepreneurship Approaches (Outside of Canada) a. Indigenous Australian Entrepreneurs Exami Calculus (people influence ofΒ  others) processes that you perceived occurs in this specific Institution Select one of the forms of stratification highlighted (focus on inter the intersectionalitiesΒ  of these three) to reflect and analyze the potential ways these ( American history Pharmacology Ancient history . Also Numerical analysis Environmental science Electrical Engineering Precalculus Physiology Civil Engineering Electronic Engineering ness Horizons Algebra Geology Physical chemistry nt When considering bothΒ O lassrooms Civil Probability ions Identify a specific consumer product that you or your family have used for quite some time. This might be a branded smartphone (if you have used several versions over the years) or the court to consider in its deliberations. Locard’s exchange principle argues that during the commission of a crime Chemical Engineering Ecology aragraphs (meaning 25 sentences or more). Your assignment may be more than 5 paragraphs but not less. INSTRUCTIONS:Β  To access the FNU Online Library for journals and articles you can go the FNU library link here:Β  https://www.fnu.edu/library/ In order to n that draws upon the theoretical reading to explain and contextualize the design choices. Be sure to directly quote or paraphrase the reading ce to the vaccine. Your campaign must educate and inform the audience on the benefits but also create for safe and open dialogue. A key metric of your campaign will be the direct increase in numbers.Β  Key outcomes: The approach that you take must be clear Mechanical Engineering Organic chemistry Geometry nment Topic You will need to pick one topic for your project (5 pts) Literature search You will need to perform a literature search for your topic Geophysics you been involved with a company doing a redesign of business processes Communication on Customer Relations. Discuss how two-way communication on social media channels impacts businesses both positively and negatively. Provide any personal examples from your experience od pressure and hypertension via a community-wide intervention that targets the problem across the lifespan (i.e. includes all ages). Develop a community-wide intervention to reduce elevated blood pressure and hypertension in the State of Alabama that in in body of the report Conclusions References (8 References Minimum) *** Words count = 2000 words. *** In-Text Citations and References using Harvard style. *** In Task section I’ve chose (Economic issues in overseas contracting)" Electromagnetism w or quality improvement; it was just all part of good nursing care.Β  The goal for quality improvement is to monitor patient outcomes using statistics for comparison to standards of care for different diseases e a 1 to 2 slide Microsoft PowerPoint presentation on the different models of case management.Β  Include speaker notes... .....Describe three different models of case management. visual representations of information. They can include numbers SSAY ame workbook for all 3 milestones. You do not need to download a new copy for Milestones 2 or 3. When you submit Milestone 3 pages): Provide a description of an existing intervention in Canada making the appropriate buying decisions in an ethical and professional manner. Topic: Purchasing and Technology You read about blockchain ledger technology. Now do some additional research out on the Internet and share your URL with the rest of the class be aware of which features their competitors are opting to include so the product development teams can design similar or enhanced features to attract more of the market. The more unique low (The Top Health Industry Trends to Watch in 2015) to assist you with this discussion.Β  Β Β  Β Β Β Β https://youtu.be/fRym_jyuBc0 Next year the $2.8 trillion U.S. healthcare industry will Β Β finally begin to look and feel more like the rest of the business wo evidence-based primary care curriculum. Throughout your nurse practitioner program Vignette Understanding Gender Fluidity Providing Inclusive Quality Care Affirming Clinical Encounters Conclusion References Nurse Practitioner Knowledge Mechanics and word limit is unit as a guide only. The assessment may be re-attempted on two further occasions (maximum three attempts in total). All assessments must be resubmitted 3 days within receiving your unsatisfactory grade. You must clearly indicate β€œRe-su Trigonometry Article writing Other 5. June 29 After the components sending to the manufacturing house 1. In 1972 the Furman v. Georgia case resulted in a decision that would put action into motion. Furman was originally sentenced to death because of a murder he committed in Georgia but the court debated whether or not this was a violation of his 8th amend One of the first conflicts that would need to be investigated would be whether the human service professional followed the responsibility to client ethical standard.Β Β While developing a relationship with client it is important to clarify that if danger or Ethical behavior is a critical topic in the workplace because the impact of it can make or break a business No matter which type of health care organization With a direct sale During the pandemic Computers are being used to monitor the spread of outbreaks in different areas of the world and with this record 3. Furman v. Georgia is a U.S Supreme Court case that resolves around the Eighth Amendments ban on cruel and unsual punishment in death penalty cases. The Furman v. Georgia case was based on Furman being convicted of murder in Georgia. Furman was caught i One major ethical conflict that may arise in my investigation is the Responsibility to Client in both Standard 3 and Standard 4 of the Ethical Standards for Human Service Professionals (2015).Β  Making sure we do not disclose information without consent ev 4. Identify two examples of real world problems that you have observed in your personal Summary & Evaluation: Reference & 188. Academic Search Ultimate Ethics We can mention at least one example of how the violation of ethical standards can be prevented. Many organizations promote ethical self-regulation by creating moral codes to help direct their business activities *DDB is used for the first three years For example The inbound logistics for William Instrument refer to purchase components from various electronic firms. During the purchase process William need to consider the quality and price of the components. In this case 4. A U.S. Supreme Court case known as Furman v. Georgia (1972) is a landmark case that involved Eighth Amendment’s ban of unusual and cruel punishment in death penalty cases (Furman v. Georgia (1972) With covid coming into place In my opinion with Not necessarily all home buyers are the same! When you choose to work withΒ we buy ugly houses Baltimore & nationwide USA The ability to view ourselves from an unbiased perspective allows us to critically assess our personal strengths and weaknesses. This is an important step in the process of finding the right resources for our personal learning style. Ego and pride can be Β· By Day 1 of this week While you must form your answers to the questions below from our assigned reading material CliftonLarsonAllen LLP (2013) 5 The family dynamic is awkward at first since the most outgoing and straight forward person in the family in Linda Urien The most important benefit of my statistical analysis would be the accuracy with which I interpret the data. The greatest obstacle From a similar but larger point of view 4 In order to get the entire family to come back for another session I would suggest coming in on a day the restaurant is not open When seeking to identify a patient’s health condition After viewing the you tube videos on prayer Your paper must be at least two pages in length (not counting the title and reference pages) The word assimilate is negative to me. I believe everyone should learn about a country that they are going to live in. It doesnt mean that they have to believe that everything in America is better than where they came from. It means that they care enough Data collection Single Subject Chris is a social worker in a geriatric case management program located in a midsize Northeastern town. She has an MSW and is part of a team of case managers that likes to continuously improve on its practice. The team is currently using an I would start off with Linda on repeating her options for the child and going over what she is feeling with each option. Β I would want to find out what she is afraid of. Β I would avoid asking her any β€œwhy” questions because I want her to be in the here an Summarize the advantages and disadvantages of using an Internet site as means of collecting data for psychological research (Comp 2.1) 25.0\% Summarization of the advantages and disadvantages of using an Internet site as means of collecting data for psych Identify the type of research used in a chosen study Compose a 1 Optics effect relationship becomes more difficultβ€”as the researcher cannot enact total control of another person even in an experimental environment. Social workers serve clients in highly complex real-world environments. Clients often implement recommended inte I think knowing more about you will allow you to be able to choose the right resources Be 4 pages in length soft MB-920 dumps review and documentation and high-quality listing pdf MB-920 braindumps also recommended and approved by Microsoft experts. The practical test g One thing you will need to do in college is learn how to find and use references. References support your ideas. College-level work must be supported by research. You are expected to do that for this paper. You will research Elaborate on any potential confounds or ethical concerns while participating in the psychological study 20.0\% Elaboration on any potential confounds or ethical concerns while participating in the psychological study is missing. Elaboration on any potenti 3 The first thing I would do in the family’s first session is develop a genogram of the family to get an idea of all the individuals who play a major role in Linda’s life. After establishing where each member is in relation to the family A Health in All Policies approach Note: The requirements outlined below correspond to the grading criteria in the scoring guide. At a minimum Chen Read Connecting Communities and Complexity: A Case Study in Creating the Conditions for Transformational Change Read Reflections on Cultural Humility Read A Basic Guide to ABCD Community Organizing Use the bolded black section and sub-section titles below to organize your paper. For each section Losinski forwarded the article on a priority basis to Mary Scott Losinksi wanted details on use of the ED at CGH. He asked the administrative resident