AI prompts
Learn with the aid of AI
Last updated
Was this helpful?
Learn with the aid of AI
Last updated
Was this helpful?
Esempi di casi d'uso dell'IA in un corso di Data Science:
creare un tutor virtuale per gli studenti
creare un assistente virtuale per il docente
richiedere compiti di ragionamento (ad esempio, dimostrazione di teoremi o soluzione di problemi originali)
generare domande di ricerca a partire da un dataset
interpretare i risultati di un'analisi di dati
scrivere codice per risolvere una domande di ricerca
correggere codice
generare visualizzazioni di un dataset
analizzare e interpretare visualizzazioni di un dataset
generare dataset artificiali
riassumere e commentare articoli di ricerca
commentare l'utilità della materia (data science) in certi contesti (ad esempio diffusione di epidemie)
interpretare particolari ruoli (ad esempio, revisore o autore di articoli, esperto di dominio)
Esempi di prompt relativi ai casi d'uso elencati sopra:
Write a prompt to generate an AI tutor for the Web3 part of the course. The tutor will assist you during the leaning and integrate the teacher activity. The prompt need to contain at least the following information:
The topics covered in the course. We will explore blockchain technology, wallets, tokens, smart contracts, and decentralized organizations. We will also dig deeper into more advanced topics, like quadratic voting, zero-knowledge proofs, rollups, and more.
We will mainly use Ethereum and Tezos blockchains, with Metamask and Kukai wallets
Introduce yourself, your background, skills and knowledge level with respect to these topics
Describe how you desire to use and interact with the tutor. Try to be creative enough and program an ideal working environment for your learning, tailored on your preferences, skills and knowledge
Write a prompt to generate an AI tutor for the network science part of the course. The tutor will assist you during the leaning and integrate the teacher activity. The prompt need to contain at least the following information:
The topics covered in the course. Briefly, they are: centrality and power measures, similarity and heterogeneity measures, community detection and clustering, connectivity and resilience, small world, scale-free networks, and epidemics on networks
The language and packages used to analyze the data. We will use R for data science and the following packages: tidyverse (for tabular data) and igraph, tidygraph, and ggraph (for network data).
Introduce yourself, your background, skills and knowledge level with respect to these topics of the course.
Describe how you desire to use and interact with the tutor. Try to be creative enough and program an ideal working environment for your learning, tailored on your preferences, skills and knowledge
Do you know the Elo method for rating chess players
Why the Elo ratings are roughly normally distributed?
Write in R a function that implements the Elo rating system with the following input and output:
INPUT
games: a matrix with columns White, Black and Score, where White is the player playing as white, Black is the player playing as black, and Score is the game score (1 = White wins, 0 = Black wins, 0.5 = draw). Players are integer numbers starting at 1. The matrix rows are sorted in chronological order of the matches
z: logistic parameter (usually 400)
k: update K-factor (25)
OUTPUT
r: rating vector
Do you know the Zachary's karate club graph?
Visualize the graph in R with igraph
Visualize the graph in R with ggraph
Let's talk about regular and regularizable graphs. I will first explain the concepts and then ask you some questions.
Let's focus on undirected graphs for simplicity. An unweighted graph is regular if there is an integer R > 0 such that all nodes have degree equal to R. In a weighted graph, the weighted degree of a node is the sum of weights of edges incident in the node. An unweighted graph is regularizable if the edges of the graph can be weighted with positive integers and in the resulting weighted graph all nodes have weighted degree equal to some R > 0.
All right, so far?
Is a regular graph also regularizable? Why?
However, not all graphs are regularizable: can you provide a simple example of a graph that is not regularizable?
Can you provide an example of a regularizable graph that is not regular?
I will show you a regularizable graph which is not regular (the W4 graph). Can you find the weights of the edges that prove the fact that the graph is regularizable?
Do you know the friendship paradox, a phenomenon observed by sociologist Scott L. Feld on social networks?
Mathematically formalize and prove the paradox
Can you delve into the math of the paper?
Suppose now you are the author of the paper and want to reply to the reviewer's comment [choose one comment, such as "Expand Theoretical Discussion"] above. What would you write?
The author concludes that:
"The classic notion of quality of information is related to the judgment given by few field experts. PageRank introduced an original notion of quality of information found on the Web: the collective intelligence of the Web, formed by the opinions of the millions of people that populate this universe, is exploited to determine the importance, and ultimately the quality, of that information."
Can you comment on this conclusion?
David Lusseau, a researcher at the University of Aberdeen, observed the group of dolphins of Doubtful Sound. Every time a school of dolphins was encountered in the fjord between 1995 and 2001, each adult member of the school was photographed and identified from natural markings on the dorsal fin. This information was utilised to determine how often two individuals were seen together.
Here is the dataset. It is a zip file containing two CSV files:
All right so far?
Compute degree, closeness, betweenness and PageRank on the nodes of the network. Perform a gender analysis on the outcomes of these metrics [Perform given analysis]
Are female dolphins significantly performing better than male ones on these metrics? [Perform given analysis]
Compute the relative number of ties in the network that link dolphins with the same sex [Perform given analysis]
To your knowledge, edges linking dolphins of the same sex are 104 over 159. Given this outcome, do you think that the relationship among dolphins in the dataset is love or friendship? [Interpret the analysis outcome]
Can you suggest some additional analysis on this dataset? [Suggest additional research questions]
[Ask AI to write the R code for one analysis that caught your attention]
In the context of signed networks, edges have positive or negative signs. Balanced (or positive) triangles have an even number of negative signs (0 or 2), or the multiplication of the edge signs is positive, while unbalanced (or negative) triangles have an odd number of negative signs (1 or 3), or the multiplication of the edge signs is negative. A network is balanced if all triangles in it are balanced.
The argument of structural balance theorists is that because unbalanced triangles are sources of stress or psychological dissonance, people strive to minimize them in their personal relationships, and hence they will be less abundant in real social settings.
All right, so far?
In the attached picture you have two networks (left and right). Which one is balanced and why? [analyze image]
Can you provide a complete network with 5 nodes that is balanced? [dataset generation]
Provide downloadable CSV files for both nodes and edges [dataset generation]
Let's talk of signed general networks in which each edge has either positive of negative sign. The sign of a path is the product of the signs of its edges. A positive path is a path with positive sign (with an even number of negative signs). A negative path is a path with negative sign (with an odd number of negative signs). It holds that a signed graph is balanced if and only if all cycles are positive. All right so far?
Is the signed network depicted in figure balanced? Why? [reasoning]
Alternative: consider the signed graph with 15 nodes associated with the following adjacency matrix. Is the graph balanced or not? If not, provide a negative cycle. [reasoning]
Write the code in R to check if the a signed graph is balanced [coding]
The Zachary network represents the pattern of friendships between members of a karate club at a North American university.
Write R code to plot the network using ggraph
Write R code to compute community detection with all known methods in igraph. For each method, compute the modularity measure. Finally, list methods in decreasing order of modularity
Jose A. Rodriguez of the University of Barcelona created a network of the individuals involved in the bombing of commuter trains in Madrid on March 11, 2004. Rodriguez used press accounts in the two major Spanish daily newspapers (El Pais and El Mundo) to reconstruct the terrorist network. The names included were of those people suspected of having participated and their relatives. Rodriguez specified 4 kinds of ties linking the individuals involved:
Trust-friendship (contact, kinship, links in the telephone center)
Ties to Al Qaeda and to Osama Bin Laden
Co-participation in training camps or wars
Co-participation in previous terrorist attacks (Sept 11, Casablanca)
These four were added together providing a strength of connection index that ranges from 1 to 4.
Comment on how network science can be useful to dismantle this terror network.
In Network Science there are two models to generate artificial networks: the random model and the preferential attachment model.
Can you briefly recap how they generate a network?
What are the structural differences of the generated network with the two models?
Che impatto ha questo articolo nel contesto della Network Science?
Che impatto ha nel contesto della vita quotidiana?
How does network science can help in predicting and controlling epidemics?
How can one design an immunization strategy using network science?
For both prompts use Search mode and follow the links.
If you use ChatGPT try this tutor with GPT by Kenneth Bastian.
Summarize this
Imagine you are a reviewer of this paper for the journal. Write a review
Summarize this [ChatGPT produces a more complete summary than Copilot]
The file with with ids, names and sex of dolphins
The file with ties among dolphins
Riassumi l' The strength of week ties di Mark Granovetter.