In this assignment, you will use Python’s mlxtend.frequent_patterns to find the

In this assignment, you will use Python’s mlxtend.frequent_patterns to find the association rules satisfying given lift, confidence and support threshold for the list of transactions available at ‘online_retail.csv’ file.
Step 1 (35 points): Clean the data byremoving rows whose StockCode or Invoice values contain non-digit characters
removing rows whose Price values are less than 10
removing rows whose country values are not equal to “United Kingdom”, “Italy”, “France”, “Germany”, “Norway”, “Finland”, “Austria”, “Belgium”, “European Community”, “Cyprus”, “Greece”, “Iceland”, “Malta”, “Netherlands”, “Portugal”, “Spain”, “Sweden”, or “Switzerland”.
removing rows whose quantity values are negative.
trimming the description using string.strip function
Step 2 (30 points) Find the frequent itemsets with min_support = 0.01
Step 3 (35 points) Find the association rules with confidence greater than 10%. Among them, which rule(s) has the highest value of lift?
Deliverables
Submit a zip file containing your Python code and a “report.pdf” answering the question asked in step 3.

Deliverable:A Python file containing your code for your Rock, Paper, Scissors ga

Deliverable:A Python file containing your code for your Rock, Paper, Scissors game
Assignment Notes
input should be used for prompting. It returns a string containing the user’s choice.
There is a string method called lower. It converts the string to all characters to lower case. Thus:
‘ABC’.lower() Þ ‘abc’ This might prove helpful for user input checking.
PLEASE USE THIS ASSIGNMENT ATTACHED AND COMPLETE THIS FOR ME 100 PERCENT. PROVIDE ME WITH EVERYTTHING NEEDED TO SUBMIT THIS TO MY COURSE. GOODLUCK

Create 2 Simple web / screen scraper programs (preferably using 2 different webs

Create 2 Simple web / screen scraper programs (preferably using 2 different websites or try to extract 2 different pieces of information from 1 website). Be sure to submit your files as python files (.py) AND include Screenshots showing that they run (showing your sample output) Your programs need to display some meaningful information to receive full points (for example, just displaying an entire website or just displaying random symbols / tags / parts or words will result in loss of points) You can download a copy on your system by going to python.org. only have python version 3 installed, so if you find any notes or tips online, make sure you are using that version. I would suggest using version 3 if you download (any version of 3 should work fine).
Be sure to use the Python – GUI IDLE program to use the interactive window. You can create a python script by using file–> new script… and to run, use run -> run module. Several resources are posted in the week 3 folder, but feel free to use other sources if it’s helpful. If you end up following a particular tutorial, be sure to cite the source and modify it a bit to make it your own program. Feel free to search YouTube or other places online. You are free to use additional libraries if you are comfortable installing them (or use my example that is library free).
Alternatively, there are also online Python IDEs like replit.com that do not require installation and will automatically install libraries if you are having a hard time with your system.
For this week:
Create 2 Simple Web / Screen Scraper programs (preferably using 2 different websites or try to extract 2 different pieces of information from 1 website) due You can submit your (.py) files in the “Labs and Project” Tab. I am allowing a bit more time for this assignment, but it’s better to start early as issues may come up, and it will start to overlap with next week’s assignment. Also submit screenshots of your script’s output to show what it is doing.
There are other simple examples online you can search for if you don’t like the one posted. Many are using other libraries that you may need to install and setup. You can try to extract information from websites like uszip.com or simple news sites. My attached script is not using any libraries for simplicity, but it’s not efficient. You might want to use that sample file as an example.

I need to complete a Python assignment in which the reinforcement learning algor

I need to complete a Python assignment in which the reinforcement learning algorithm (Q-learning) needs to be implemented to let a robot how to navigate in a maze. The ROS simulation is not required. Follow each step listed in the attached “Project” document to complete the assignment. I will require that you produce the simulation results on a Word document. I also will require the python code used. Please make sure that you look at the rubric and that every step is covered.

1. I have created a python program in Colab that simulates betting on a coin fli

1. I have created a python program in Colab that simulates betting on a coin flip. https://colab.research.google.com/drive/1WkiDjaLvp…
We start with $25. We have a tip that the coin is unbalanced and lands on heads 60% of the time. This program uses the Kelly criterion to determine how much to bet on heads and tails for each bet. The program runs a sequence of 100 bets and determines the final bankroll. This is then repeated 100 times and the final results are summarized. A. You are to use this file to estimate what is the probability of losing money (finishing with less than $25 as a function of the number of bets. (10, 20, 40, 80, 100). Always repeat the run 100 times. B. Same as above but change the probability of heads to 75%
2. I have created a python program in colab that will load the statistics for an arbitrary stock and apply a trading strategy. https://colab.research.google.com/drive/18hjLCRlCc…
The strategy is to compute the Kelly fraction for the stock and then use it when buying and selling. The program uses momentum to decide to trade.
If the stock went up yesterday …it is on a roll. Buy.
If the stock went down yesterday … get out while you can. Sell. I gave an example in class of how Apple stock performed in 2022 and 2023.
Your goal is to find a stock in the S&P 500 that will do the best compared to a buy and hold strategy in each year. I have an idea of what stock is the best for each year, but I don’t know which is the best. That is your job. For 2022 and 2023 report the best stock, the value of buy and hold and the value of the trading bankroll.

1. I have created a python program in Colab that simulates betting on a coin fli

1. I have created a python program in Colab that simulates betting on a coin flip. https://colab.research.google.com/drive/1WkiDjaLvp…
We start with $25. We have a tip that the coin is unbalanced and lands on heads 60% of the time. This program uses the Kelly criterion to determine how much to bet on heads and tails for each bet. The program runs a sequence of 100 bets and determines the final bankroll. This is then repeated 100 times and the final results are summarized. A. You are to use this file to estimate what is the probability of losing money (finishing with less than $25 as a function of the number of bets. (10, 20, 40, 80, 100). Always repeat the run 100 times. B. Same as above but change the probability of heads to 75%
2. I have created a python program in colab that will load the statistics for an arbitrary stock and apply a trading strategy. https://colab.research.google.com/drive/18hjLCRlCc…
The strategy is to compute the Kelly fraction for the stock and then use it when buying and selling. The program uses momentum to decide to trade.
If the stock went up yesterday …it is on a roll. Buy.
If the stock went down yesterday … get out while you can. Sell. I gave an example in class of how Apple stock performed in 2022 and 2023.
Your goal is to find a stock in the S&P 500 that will do the best compared to a buy and hold strategy in each year. I have an idea of what stock is the best for each year, but I don’t know which is the best. That is your job. For 2022 and 2023 report the best stock, the value of buy and hold and the value of the trading bankroll.

# Python Program to calculate the square root # Note: change this value for a di

# Python Program to calculate the square root
# Note: change this value for a different result
num = 8
# To take the input from the user
#num = float(input(‘Enter a number: ‘))
num_sqrt = num ** 0.5
print(‘The square root of %0.3f is %0.3f’%(num ,num_sqrt))

Instructions: In one file, write programs for the tasks below and upload the fil

Instructions: In one file, write programs for the tasks below and upload the file (.py) to Blackboard. In the top comments section of the file, please include your name, the date, and the assignment number. While you don’t have to add comments for every line of code, please include comments to tell a reader what you are doing. Commenting your code also suggests to me that you know what you are doing.
While there is no one way to do things, your code should only use commands and methods from class. I do not want you using other commands that you got from the internet,
Also use the #%% command to divide each answer into its own cell. Note also include #%% after the last line of code in the program. the assignment questions in the word file ” assignment 2″, please the codes in the power point attached and not from any other source.

# Python Program to calculate the square root # Note: change this value for a di

# Python Program to calculate the square root
# Note: change this value for a different result
num = 8
# To take the input from the user
#num = float(input(‘Enter a number: ‘))
num_sqrt = num ** 0.5
print(‘The square root of %0.3f is %0.3f’%(num ,num_sqrt))

Instructions: In one file, write programs for the tasks below and upload the fil

Instructions: In one file, write programs for the tasks below and upload the file (.py) to Blackboard. In the top comments section of the file, please include your name, the date, and the assignment number. While you don’t have to add comments for every line of code, please include comments to tell a reader what you are doing. Commenting your code also suggests to me that you know what you are doing.
While there is no one way to do things, your code should only use commands and methods from class. I do not want you using other commands that you got from the internet,
Also use the #%% command to divide each answer into its own cell. Note also include #%% after the last line of code in the program. the assignment questions in the word file ” assignment 2″, please the codes in the power point attached and not from any other source.