1.In this problem and the next one, we’re going to make a very simple spam checker program by just looking
ooking at how likely a given email is to be spam based on the words it contains. In particular, in this problem we’re going to count how often words are present in spam emails within some set of training data (which here means a set of emails that have already been marked as spam or not spam manually).
We have already started to write a function spam_score(spam_file, not_file, word), which takes in two filenames, along with a target word (a lowercase string). Both filenames refer to text files which must be in the same directory as hw07.py (we’ve provided several such files in hw07files.zip). The text files contain one email per line (really just the subject line to keep things simple) - you can assume that these emails will be a series of words separated by spaces with no punctuation. The first file contains emails that have been identified as spam, the second contains emails that have been identified as not spam.
Since you haven’t learned File I/O yet, we’ve provided code that opens the two files and puts the data into two lists of strings (where each element is one line - that is, one email). You then must complete the function, so that it returns the spam score for the target word. The spam score is an integer representing the total number of times the target word occurs across all the spam emails, minus the total number of times the word occurs in not-spam emails. Convert all words to lowercase before counting, to ensure capitalization does not throw off the count.
2.This first part of the Individual Research Project is an Outline and Annotated Bibliography. The
Outline should provide a very brief
tline should provide a very brief overview of what you think you will do in the Policy Brief.
The Annotated Bibliography requires you to summarize at least three peer-reviewed scholarly
sources you will cite in the Policy Brief.
This assignment is designed to get you thinking about your topic in a way that clearly anticipates
the writing you will do for the Policy Brief. We want you to brainstorm and do a bit of research
well in advance of the deadline for the Policy Brief and, most importantly, we want you to put
your ideas down on paper so that we can give you feedback before writing the actual Policy
Brief. In other words, we are asking you to submit an Outline and Annotated Bibliography so
that we can help you write the best Policy Brief possible.
Your Outline should be divided into the following five sections and should be written in
I. Audience: Identify the audience you are addressing and consider what that audience
is interested in. Who are you talking to in the Policy Brief and what does this suggest
about the approach you should take? (75-100 words).
II. Problem: State how you know the issue exists. What is the proof that students need
to improve this skill? (125-150 words).
III. Importance of Problem: Indicate why this problem matters. What are the
consequences of the problem not being addressed? Why do students need to improve
this skill? (100 words)
IV. Solution: Identify your preferred solution. What solution will work in your context
and why? (75-100 words)
V. Alternative Solution: Identify at least one other possible solution. What other
solutions did you consider? (75-100 words)
The total length of the Outline should be between 450 and 550 words.
When you submit your Outline, you must also include an Annotated Bibliography. An Annotated
Bibliography is an alphabetical list of research sources that provides bibliographical data (the
title, author, date, publisher, etc.) and a short summary or annotation of the source.
Your Annotated Bibliography should contain a minimum of three scholarly or peer-reviewed
sources, each with an accompanying annotation that is between 150 and 250 words long. The
annotations must summarize the research question or thesis, research methodology, results, and
conclusion. Annotations must include summaries and paraphrased information, NOT quotations.
A good annotation will include two separate paragraphs: 1) a paragraph summarizing the
research question or thesis, research methodology, results and conclusion; and 2) a paragraph
commenting on why this source is relevant for your research.
3.I am taking a supply chain management course in college and I am taking a role of 'purchasing' in the
e fresh connection game, which is a game to run a juice company to make profits (ROI). I would like to do a cost benefit analysis about suppliers to see whether changing contracts with the suppliers are good or not, but I have no clear idea how to do the cost benefit analysis in this case. I have attached an excel file and I can provide additional data to do the analysis. I would like to get some help to do the cost benefit analysis so I would appreciate if we could schedule a lesson. Thank you
5.Above is 2 years and 4 months of actual demand data for a new call center. For example, cell
resenets 12,380 calls received in January 2019. Using this data, create two different models for demand forecasting. One combining Exponential Smoothing with Trend, and one combing Exponential Smoothing with both Trend and Seasonality. Ensure you conduct some type of error analysis and try to input adjust factors (such as Alpha) to minimize error. Please clearly indicate at the top of your sheet your selected value for factors (Alpha, Beta, Gamma) and the error analysis metric name and value. In the space below, indicate which model has less error and what you believe that indicates is true about the underlying demand pattern.
6.students are expected to research and compose a paper based on the application of concepts and theories examined in class.
ies examined in class. This paper is not a literature review, though a literature review is part of your work. As this course takes place in a compressed timeline, I provided some suggestions for research topics. Feel free to use one of these as a springboard or propose your own.
At the end of the second week of class, students submit a three-page research paper prospectus. A research prospectus is a preliminary plan for conducting a study. This is not a detailed and technical research proposal, but rather, an analysis of the issues likely confronted in such a study. In essence, it is a preliminary proposal of work.
Research Paper Prospectus Elements
To complete the Research Paper Prospectus, consider the following elements. While the prospectus is limited to three pages of body content, remember, students must cover each of these areas as relevant to the plan for research:
Research Problem. What is the research problem? A problem is a situation when left untreated, produces a negative consequence for a group, an institution, or a(n) individual(s). What makes it a problem? For whom? Who says so?
Assumptions. On what assumptions is the work based? Which assumptions are verifiable in literature? Which assumptions are speculative?
Theoretical Issues. What theoretical issues arise from the study? For example, "theoretically," how is the problem and suspected results explained to other scholars? Is there a behavior view? A social systems view? Are there other theoretical orientations to consider in the study's design?
Literature Review. What, in general, does the literature say about the topic? While more development is expected for the final paper, a review of major theories, research, and writers in the field is needed.
Research Questions. Based on the problem, what are the research questions to be answered? How and why will answering the questions contribute to solving the research problem? Remember....a research question can only be answered with empirical data or information.
General Research Plan. In general, what research is necessary to answer the research question. What kind of data is needed? Specify the type, such as surveys, observations, or interviews. Who is to be studied and why? How is the data reduced and made sense of? How is the quality of the data assured?
Anticipated Difficulties and Pitfalls. What kind of difficulties and pitfalls are expected in a study of this nature? What can be done to prevent them or minimize their effects?
Anticipated Benefits. Who will benefit from the fact this research is undertaken? How? Why? Who might be disturbed by this proposed study? How? Why?
Paper Format Requirements
The Research Paper Prospectus is presented in standard APA 7 format, with a cover page, running head, body, and references list. The cover page and references do not count toward the three-page requirement. The body uses headers and in-text citations in the manner prescribed by APA. Students should include any references they know at the time they submit the prospectus, though it is expected the references may change or increase in number. Full and complete adherence to APA is required.
As APA format is the rule, remember the formatting rules shown on the Sample Paper (Links to an external site.):
Times New Roman, 12pt
1" margins on all sides
Double spaced, with extra line spaces removed (see below)
Page numbers in the upper right
Two spaces after concluding punctuation
150-250 word abstract with keywords
APA-style in-text citations and quote format. Use the Purdue OWL in-text citation information (Links to an external site.)to help you.
Alphabetical (by author) reference page with correct reference format. DO NOT trust the reference generator in your word processing program. It is WRONG! Use the Purdue OWL references information (Links to an external site.)to correctly structure references and do so manually.
8.given this table figure out:
"Are the frequency distribution of mask types the same across the six cities?" In other
cities?" In other words, "do people in the 6 cities wear the different mask types with similar likelihood?"
Let's say you have 4 types of masks: N95, pleated blue polyester, cloth, neck gaiter. Then you'll have a data table that is 4x6 with how many degrees of freedom? With this table you only have one overall H0: the dist'n of mask types is the same for all 6 cities. The corresponding H1 is "at least one city is not like the others."
What happens if you have a violation of Cochran's Rule among the 24 expected values? What will you do?